diff --git a/aws_client/CHANGELOG.md b/aws_client/CHANGELOG.md index 5a93a8fbe..6041d2a3d 100644 --- a/aws_client/CHANGELOG.md +++ b/aws_client/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.1 + +- Expose `package:aws_client/credential_providers.dart` for advanced options to resolve the `AwsClientCredentials` +- Internal refactoring of the query protocol + ## 0.5.0 - Generate all the APIs with version v2.1635.0 of the AWS SDK diff --git a/aws_client/lib/credential_providers.dart b/aws_client/lib/credential_providers.dart new file mode 100644 index 000000000..c70ab0ef9 --- /dev/null +++ b/aws_client/lib/credential_providers.dart @@ -0,0 +1 @@ +export 'src/credential_providers/aws_credential_providers.dart'; diff --git a/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart b/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart index 7ad118a61..3b843f289 100644 --- a/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart +++ b/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2011_01_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate @@ -25,7 +24,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// health checks. class AutoScaling { final _s.QueryProtocol _protocol; - final Map shapes; AutoScaling({ required String region, @@ -33,7 +31,7 @@ class AutoScaling { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'autoscaling', @@ -42,9 +40,7 @@ class AutoScaling { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -84,9 +80,15 @@ class AutoScaling { required String autoScalingGroupName, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; await _protocol.send( $request, action: 'AttachInstances', @@ -94,8 +96,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachInstancesQuery'], - shapes: shapes, ); } @@ -154,9 +154,14 @@ class AutoScaling { required String autoScalingGroupName, required List targetGroupARNs, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TargetGroupARNs'] = targetGroupARNs; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (targetGroupARNs.isEmpty) + 'TargetGroupARNs': '' + else + for (var i1 = 0; i1 < targetGroupARNs.length; i1++) + 'TargetGroupARNs.member.${i1 + 1}': targetGroupARNs[i1], + }; await _protocol.send( $request, action: 'AttachLoadBalancerTargetGroups', @@ -164,8 +169,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachLoadBalancerTargetGroupsType'], - shapes: shapes, resultWrapper: 'AttachLoadBalancerTargetGroupsResult', ); } @@ -207,9 +210,14 @@ class AutoScaling { required String autoScalingGroupName, required List loadBalancerNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LoadBalancerNames'] = loadBalancerNames; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + }; await _protocol.send( $request, action: 'AttachLoadBalancers', @@ -217,8 +225,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachLoadBalancersType'], - shapes: shapes, resultWrapper: 'AttachLoadBalancersResult', ); } @@ -266,9 +272,15 @@ class AutoScaling { required String autoScalingGroupName, required List trafficSources, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TrafficSources'] = trafficSources; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (trafficSources.isEmpty) + 'TrafficSources': '' + else + for (var i1 = 0; i1 < trafficSources.length; i1++) + for (var e3 in trafficSources[i1].toQueryMap().entries) + 'TrafficSources.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AttachTrafficSources', @@ -276,8 +288,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachTrafficSourcesType'], - shapes: shapes, resultWrapper: 'AttachTrafficSourcesResult', ); } @@ -297,9 +307,14 @@ class AutoScaling { required String autoScalingGroupName, required List scheduledActionNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledActionNames'] = scheduledActionNames; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scheduledActionNames.isEmpty) + 'ScheduledActionNames': '' + else + for (var i1 = 0; i1 < scheduledActionNames.length; i1++) + 'ScheduledActionNames.member.${i1 + 1}': scheduledActionNames[i1], + }; final $result = await _protocol.send( $request, action: 'BatchDeleteScheduledAction', @@ -307,8 +322,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDeleteScheduledActionType'], - shapes: shapes, resultWrapper: 'BatchDeleteScheduledActionResult', ); return BatchDeleteScheduledActionAnswer.fromXml($result); @@ -332,9 +345,15 @@ class AutoScaling { required List scheduledUpdateGroupActions, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledUpdateGroupActions'] = scheduledUpdateGroupActions; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scheduledUpdateGroupActions.isEmpty) + 'ScheduledUpdateGroupActions': '' + else + for (var i1 = 0; i1 < scheduledUpdateGroupActions.length; i1++) + for (var e3 in scheduledUpdateGroupActions[i1].toQueryMap().entries) + 'ScheduledUpdateGroupActions.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'BatchPutScheduledUpdateGroupAction', @@ -342,8 +361,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchPutScheduledUpdateGroupActionType'], - shapes: shapes, resultWrapper: 'BatchPutScheduledUpdateGroupActionResult', ); return BatchPutScheduledUpdateGroupActionAnswer.fromXml($result); @@ -371,8 +388,9 @@ class AutoScaling { Future cancelInstanceRefresh({ required String autoScalingGroupName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + }; final $result = await _protocol.send( $request, action: 'CancelInstanceRefresh', @@ -380,8 +398,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelInstanceRefreshType'], - shapes: shapes, resultWrapper: 'CancelInstanceRefreshResult', ); return CancelInstanceRefreshAnswer.fromXml($result); @@ -451,12 +467,14 @@ class AutoScaling { String? instanceId, String? lifecycleActionToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleActionResult'] = lifecycleActionResult; - $request['LifecycleHookName'] = lifecycleHookName; - instanceId?.also((arg) => $request['InstanceId'] = arg); - lifecycleActionToken?.also((arg) => $request['LifecycleActionToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleActionResult': lifecycleActionResult, + 'LifecycleHookName': lifecycleHookName, + if (instanceId != null) 'InstanceId': instanceId, + if (lifecycleActionToken != null) + 'LifecycleActionToken': lifecycleActionToken, + }; await _protocol.send( $request, action: 'CompleteLifecycleAction', @@ -464,8 +482,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CompleteLifecycleActionType'], - shapes: shapes, resultWrapper: 'CompleteLifecycleActionResult', ); } @@ -799,41 +815,93 @@ class AutoScaling { List? trafficSources, String? vPCZoneIdentifier, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['MaxSize'] = maxSize; - $request['MinSize'] = minSize; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - capacityRebalance?.also((arg) => $request['CapacityRebalance'] = arg); - context?.also((arg) => $request['Context'] = arg); - defaultCooldown?.also((arg) => $request['DefaultCooldown'] = arg); - defaultInstanceWarmup - ?.also((arg) => $request['DefaultInstanceWarmup'] = arg); - desiredCapacity?.also((arg) => $request['DesiredCapacity'] = arg); - desiredCapacityType?.also((arg) => $request['DesiredCapacityType'] = arg); - healthCheckGracePeriod - ?.also((arg) => $request['HealthCheckGracePeriod'] = arg); - healthCheckType?.also((arg) => $request['HealthCheckType'] = arg); - instanceId?.also((arg) => $request['InstanceId'] = arg); - instanceMaintenancePolicy - ?.also((arg) => $request['InstanceMaintenancePolicy'] = arg); - launchConfigurationName - ?.also((arg) => $request['LaunchConfigurationName'] = arg); - launchTemplate?.also((arg) => $request['LaunchTemplate'] = arg); - lifecycleHookSpecificationList - ?.also((arg) => $request['LifecycleHookSpecificationList'] = arg); - loadBalancerNames?.also((arg) => $request['LoadBalancerNames'] = arg); - maxInstanceLifetime?.also((arg) => $request['MaxInstanceLifetime'] = arg); - mixedInstancesPolicy?.also((arg) => $request['MixedInstancesPolicy'] = arg); - newInstancesProtectedFromScaleIn - ?.also((arg) => $request['NewInstancesProtectedFromScaleIn'] = arg); - placementGroup?.also((arg) => $request['PlacementGroup'] = arg); - serviceLinkedRoleARN?.also((arg) => $request['ServiceLinkedRoleARN'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetGroupARNs?.also((arg) => $request['TargetGroupARNs'] = arg); - terminationPolicies?.also((arg) => $request['TerminationPolicies'] = arg); - trafficSources?.also((arg) => $request['TrafficSources'] = arg); - vPCZoneIdentifier?.also((arg) => $request['VPCZoneIdentifier'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'MaxSize': maxSize.toString(), + 'MinSize': minSize.toString(), + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + if (capacityRebalance != null) + 'CapacityRebalance': capacityRebalance.toString(), + if (context != null) 'Context': context, + if (defaultCooldown != null) + 'DefaultCooldown': defaultCooldown.toString(), + if (defaultInstanceWarmup != null) + 'DefaultInstanceWarmup': defaultInstanceWarmup.toString(), + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (desiredCapacityType != null) + 'DesiredCapacityType': desiredCapacityType, + if (healthCheckGracePeriod != null) + 'HealthCheckGracePeriod': healthCheckGracePeriod.toString(), + if (healthCheckType != null) 'HealthCheckType': healthCheckType, + if (instanceId != null) 'InstanceId': instanceId, + if (instanceMaintenancePolicy != null) + for (var e1 in instanceMaintenancePolicy.toQueryMap().entries) + 'InstanceMaintenancePolicy.${e1.key}': e1.value, + if (launchConfigurationName != null) + 'LaunchConfigurationName': launchConfigurationName, + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + if (lifecycleHookSpecificationList != null) + if (lifecycleHookSpecificationList.isEmpty) + 'LifecycleHookSpecificationList': '' + else + for (var i1 = 0; i1 < lifecycleHookSpecificationList.length; i1++) + for (var e3 + in lifecycleHookSpecificationList[i1].toQueryMap().entries) + 'LifecycleHookSpecificationList.member.${i1 + 1}.${e3.key}': + e3.value, + if (loadBalancerNames != null) + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (maxInstanceLifetime != null) + 'MaxInstanceLifetime': maxInstanceLifetime.toString(), + if (mixedInstancesPolicy != null) + for (var e1 in mixedInstancesPolicy.toQueryMap().entries) + 'MixedInstancesPolicy.${e1.key}': e1.value, + if (newInstancesProtectedFromScaleIn != null) + 'NewInstancesProtectedFromScaleIn': + newInstancesProtectedFromScaleIn.toString(), + if (placementGroup != null) 'PlacementGroup': placementGroup, + if (serviceLinkedRoleARN != null) + 'ServiceLinkedRoleARN': serviceLinkedRoleARN, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (targetGroupARNs != null) + if (targetGroupARNs.isEmpty) + 'TargetGroupARNs': '' + else + for (var i1 = 0; i1 < targetGroupARNs.length; i1++) + 'TargetGroupARNs.member.${i1 + 1}': targetGroupARNs[i1], + if (terminationPolicies != null) + if (terminationPolicies.isEmpty) + 'TerminationPolicies': '' + else + for (var i1 = 0; i1 < terminationPolicies.length; i1++) + 'TerminationPolicies.member.${i1 + 1}': terminationPolicies[i1], + if (trafficSources != null) + if (trafficSources.isEmpty) + 'TrafficSources': '' + else + for (var i1 = 0; i1 < trafficSources.length; i1++) + for (var e3 in trafficSources[i1].toQueryMap().entries) + 'TrafficSources.member.${i1 + 1}.${e3.key}': e3.value, + if (vPCZoneIdentifier != null) 'VPCZoneIdentifier': vPCZoneIdentifier, + }; await _protocol.send( $request, action: 'CreateAutoScalingGroup', @@ -841,8 +909,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAutoScalingGroupType'], - shapes: shapes, ); } @@ -1079,28 +1145,49 @@ class AutoScaling { String? spotPrice, String? userData, }) async { - final $request = {}; - $request['LaunchConfigurationName'] = launchConfigurationName; - associatePublicIpAddress - ?.also((arg) => $request['AssociatePublicIpAddress'] = arg); - blockDeviceMappings?.also((arg) => $request['BlockDeviceMappings'] = arg); - classicLinkVPCId?.also((arg) => $request['ClassicLinkVPCId'] = arg); - classicLinkVPCSecurityGroups - ?.also((arg) => $request['ClassicLinkVPCSecurityGroups'] = arg); - ebsOptimized?.also((arg) => $request['EbsOptimized'] = arg); - iamInstanceProfile?.also((arg) => $request['IamInstanceProfile'] = arg); - imageId?.also((arg) => $request['ImageId'] = arg); - instanceId?.also((arg) => $request['InstanceId'] = arg); - instanceMonitoring?.also((arg) => $request['InstanceMonitoring'] = arg); - instanceType?.also((arg) => $request['InstanceType'] = arg); - kernelId?.also((arg) => $request['KernelId'] = arg); - keyName?.also((arg) => $request['KeyName'] = arg); - metadataOptions?.also((arg) => $request['MetadataOptions'] = arg); - placementTenancy?.also((arg) => $request['PlacementTenancy'] = arg); - ramdiskId?.also((arg) => $request['RamdiskId'] = arg); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); - spotPrice?.also((arg) => $request['SpotPrice'] = arg); - userData?.also((arg) => $request['UserData'] = arg); + final $request = { + 'LaunchConfigurationName': launchConfigurationName, + if (associatePublicIpAddress != null) + 'AssociatePublicIpAddress': associatePublicIpAddress.toString(), + if (blockDeviceMappings != null) + if (blockDeviceMappings.isEmpty) + 'BlockDeviceMappings': '' + else + for (var i1 = 0; i1 < blockDeviceMappings.length; i1++) + for (var e3 in blockDeviceMappings[i1].toQueryMap().entries) + 'BlockDeviceMappings.member.${i1 + 1}.${e3.key}': e3.value, + if (classicLinkVPCId != null) 'ClassicLinkVPCId': classicLinkVPCId, + if (classicLinkVPCSecurityGroups != null) + if (classicLinkVPCSecurityGroups.isEmpty) + 'ClassicLinkVPCSecurityGroups': '' + else + for (var i1 = 0; i1 < classicLinkVPCSecurityGroups.length; i1++) + 'ClassicLinkVPCSecurityGroups.member.${i1 + 1}': + classicLinkVPCSecurityGroups[i1], + if (ebsOptimized != null) 'EbsOptimized': ebsOptimized.toString(), + if (iamInstanceProfile != null) 'IamInstanceProfile': iamInstanceProfile, + if (imageId != null) 'ImageId': imageId, + if (instanceId != null) 'InstanceId': instanceId, + if (instanceMonitoring != null) + for (var e1 in instanceMonitoring.toQueryMap().entries) + 'InstanceMonitoring.${e1.key}': e1.value, + if (instanceType != null) 'InstanceType': instanceType, + if (kernelId != null) 'KernelId': kernelId, + if (keyName != null) 'KeyName': keyName, + if (metadataOptions != null) + for (var e1 in metadataOptions.toQueryMap().entries) + 'MetadataOptions.${e1.key}': e1.value, + if (placementTenancy != null) 'PlacementTenancy': placementTenancy, + if (ramdiskId != null) 'RamdiskId': ramdiskId, + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (spotPrice != null) 'SpotPrice': spotPrice, + if (userData != null) 'UserData': userData, + }; await _protocol.send( $request, action: 'CreateLaunchConfiguration', @@ -1108,8 +1195,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLaunchConfigurationType'], - shapes: shapes, ); } @@ -1134,8 +1219,14 @@ class AutoScaling { Future createOrUpdateTags({ required List tags, }) async { - final $request = {}; - $request['Tags'] = tags; + final $request = { + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'CreateOrUpdateTags', @@ -1143,8 +1234,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOrUpdateTagsType'], - shapes: shapes, ); } @@ -1189,9 +1278,10 @@ class AutoScaling { required String autoScalingGroupName, bool? forceDelete, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - forceDelete?.also((arg) => $request['ForceDelete'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (forceDelete != null) 'ForceDelete': forceDelete.toString(), + }; await _protocol.send( $request, action: 'DeleteAutoScalingGroup', @@ -1199,8 +1289,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAutoScalingGroupType'], - shapes: shapes, ); } @@ -1218,8 +1306,9 @@ class AutoScaling { Future deleteLaunchConfiguration({ required String launchConfigurationName, }) async { - final $request = {}; - $request['LaunchConfigurationName'] = launchConfigurationName; + final $request = { + 'LaunchConfigurationName': launchConfigurationName, + }; await _protocol.send( $request, action: 'DeleteLaunchConfiguration', @@ -1227,8 +1316,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['LaunchConfigurationNameType'], - shapes: shapes, ); } @@ -1249,9 +1336,10 @@ class AutoScaling { required String autoScalingGroupName, required String lifecycleHookName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleHookName'] = lifecycleHookName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleHookName': lifecycleHookName, + }; await _protocol.send( $request, action: 'DeleteLifecycleHook', @@ -1259,8 +1347,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLifecycleHookType'], - shapes: shapes, resultWrapper: 'DeleteLifecycleHookResult', ); } @@ -1278,9 +1364,10 @@ class AutoScaling { required String autoScalingGroupName, required String topicARN, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TopicARN'] = topicARN; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'TopicARN': topicARN, + }; await _protocol.send( $request, action: 'DeleteNotificationConfiguration', @@ -1288,8 +1375,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteNotificationConfigurationType'], - shapes: shapes, ); } @@ -1315,9 +1400,11 @@ class AutoScaling { required String policyName, String? autoScalingGroupName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); + final $request = { + 'PolicyName': policyName, + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + }; await _protocol.send( $request, action: 'DeletePolicy', @@ -1325,8 +1412,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePolicyType'], - shapes: shapes, ); } @@ -1343,9 +1428,10 @@ class AutoScaling { required String autoScalingGroupName, required String scheduledActionName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledActionName'] = scheduledActionName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ScheduledActionName': scheduledActionName, + }; await _protocol.send( $request, action: 'DeleteScheduledAction', @@ -1353,8 +1439,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteScheduledActionType'], - shapes: shapes, ); } @@ -1368,8 +1452,14 @@ class AutoScaling { Future deleteTags({ required List tags, }) async { - final $request = {}; - $request['Tags'] = tags; + final $request = { + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'DeleteTags', @@ -1377,8 +1467,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTagsType'], - shapes: shapes, ); } @@ -1406,9 +1494,10 @@ class AutoScaling { required String autoScalingGroupName, bool? forceDelete, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - forceDelete?.also((arg) => $request['ForceDelete'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (forceDelete != null) 'ForceDelete': forceDelete.toString(), + }; await _protocol.send( $request, action: 'DeleteWarmPool', @@ -1416,8 +1505,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteWarmPoolType'], - shapes: shapes, resultWrapper: 'DeleteWarmPoolResult', ); } @@ -1435,7 +1522,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeAccountLimits() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -1443,7 +1530,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsAnswer.fromXml($result); @@ -1468,7 +1554,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeAdjustmentTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAdjustmentTypes', @@ -1476,7 +1562,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAdjustmentTypesResult', ); return DescribeAdjustmentTypesAnswer.fromXml($result); @@ -1520,12 +1605,23 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - autoScalingGroupNames - ?.also((arg) => $request['AutoScalingGroupNames'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (autoScalingGroupNames != null) + if (autoScalingGroupNames.isEmpty) + 'AutoScalingGroupNames': '' + else + for (var i1 = 0; i1 < autoScalingGroupNames.length; i1++) + 'AutoScalingGroupNames.member.${i1 + 1}': autoScalingGroupNames[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAutoScalingGroups', @@ -1533,8 +1629,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AutoScalingGroupNamesType'], - shapes: shapes, resultWrapper: 'DescribeAutoScalingGroupsResult', ); return AutoScalingGroupsType.fromXml($result); @@ -1565,10 +1659,16 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAutoScalingInstances', @@ -1576,8 +1676,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAutoScalingInstancesType'], - shapes: shapes, resultWrapper: 'DescribeAutoScalingInstancesResult', ); return AutoScalingInstancesType.fromXml($result); @@ -1589,7 +1687,7 @@ class AutoScaling { /// May throw [ResourceContentionFault]. Future describeAutoScalingNotificationTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAutoScalingNotificationTypes', @@ -1597,7 +1695,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAutoScalingNotificationTypesResult', ); return DescribeAutoScalingNotificationTypesAnswer.fromXml($result); @@ -1642,11 +1739,17 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceRefreshIds?.also((arg) => $request['InstanceRefreshIds'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceRefreshIds != null) + if (instanceRefreshIds.isEmpty) + 'InstanceRefreshIds': '' + else + for (var i1 = 0; i1 < instanceRefreshIds.length; i1++) + 'InstanceRefreshIds.member.${i1 + 1}': instanceRefreshIds[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeInstanceRefreshes', @@ -1654,8 +1757,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInstanceRefreshesType'], - shapes: shapes, resultWrapper: 'DescribeInstanceRefreshesResult', ); return DescribeInstanceRefreshesAnswer.fromXml($result); @@ -1685,11 +1786,17 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - launchConfigurationNames - ?.also((arg) => $request['LaunchConfigurationNames'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (launchConfigurationNames != null) + if (launchConfigurationNames.isEmpty) + 'LaunchConfigurationNames': '' + else + for (var i1 = 0; i1 < launchConfigurationNames.length; i1++) + 'LaunchConfigurationNames.member.${i1 + 1}': + launchConfigurationNames[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeLaunchConfigurations', @@ -1697,8 +1804,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['LaunchConfigurationNamesType'], - shapes: shapes, resultWrapper: 'DescribeLaunchConfigurationsResult', ); return LaunchConfigurationsType.fromXml($result); @@ -1719,7 +1824,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeLifecycleHookTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeLifecycleHookTypes', @@ -1727,7 +1832,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeLifecycleHookTypesResult', ); return DescribeLifecycleHookTypesAnswer.fromXml($result); @@ -1748,9 +1852,15 @@ class AutoScaling { required String autoScalingGroupName, List? lifecycleHookNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - lifecycleHookNames?.also((arg) => $request['LifecycleHookNames'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (lifecycleHookNames != null) + if (lifecycleHookNames.isEmpty) + 'LifecycleHookNames': '' + else + for (var i1 = 0; i1 < lifecycleHookNames.length; i1++) + 'LifecycleHookNames.member.${i1 + 1}': lifecycleHookNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeLifecycleHooks', @@ -1758,8 +1868,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLifecycleHooksType'], - shapes: shapes, resultWrapper: 'DescribeLifecycleHooksResult', ); return DescribeLifecycleHooksAnswer.fromXml($result); @@ -1828,10 +1936,11 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerTargetGroups', @@ -1839,8 +1948,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerTargetGroupsRequest'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerTargetGroupsResult', ); return DescribeLoadBalancerTargetGroupsResponse.fromXml($result); @@ -1907,10 +2014,11 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancers', @@ -1918,8 +2026,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancersRequest'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancersResult', ); return DescribeLoadBalancersResponse.fromXml($result); @@ -1930,7 +2036,7 @@ class AutoScaling { /// May throw [ResourceContentionFault]. Future describeMetricCollectionTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeMetricCollectionTypes', @@ -1938,7 +2044,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeMetricCollectionTypesResult', ); return DescribeMetricCollectionTypesAnswer.fromXml($result); @@ -1966,11 +2071,16 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - autoScalingGroupNames - ?.also((arg) => $request['AutoScalingGroupNames'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (autoScalingGroupNames != null) + if (autoScalingGroupNames.isEmpty) + 'AutoScalingGroupNames': '' + else + for (var i1 = 0; i1 < autoScalingGroupNames.length; i1++) + 'AutoScalingGroupNames.member.${i1 + 1}': autoScalingGroupNames[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeNotificationConfigurations', @@ -1978,8 +2088,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeNotificationConfigurationsType'], - shapes: shapes, resultWrapper: 'DescribeNotificationConfigurationsResult', ); return DescribeNotificationConfigurationsAnswer.fromXml($result); @@ -2021,12 +2129,24 @@ class AutoScaling { List? policyNames, List? policyTypes, }) async { - final $request = {}; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - policyNames?.also((arg) => $request['PolicyNames'] = arg); - policyTypes?.also((arg) => $request['PolicyTypes'] = arg); + final $request = { + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (policyNames != null) + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + if (policyTypes != null) + if (policyTypes.isEmpty) + 'PolicyTypes': '' + else + for (var i1 = 0; i1 < policyTypes.length; i1++) + 'PolicyTypes.member.${i1 + 1}': policyTypes[i1], + }; final $result = await _protocol.send( $request, action: 'DescribePolicies', @@ -2034,8 +2154,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePoliciesType'], - shapes: shapes, resultWrapper: 'DescribePoliciesResult', ); return PoliciesType.fromXml($result); @@ -2091,12 +2209,20 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - activityIds?.also((arg) => $request['ActivityIds'] = arg); - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - includeDeletedGroups?.also((arg) => $request['IncludeDeletedGroups'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (activityIds != null) + if (activityIds.isEmpty) + 'ActivityIds': '' + else + for (var i1 = 0; i1 < activityIds.length; i1++) + 'ActivityIds.member.${i1 + 1}': activityIds[i1], + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (includeDeletedGroups != null) + 'IncludeDeletedGroups': includeDeletedGroups.toString(), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeScalingActivities', @@ -2104,8 +2230,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScalingActivitiesType'], - shapes: shapes, resultWrapper: 'DescribeScalingActivitiesResult', ); return ActivitiesType.fromXml($result); @@ -2116,7 +2240,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeScalingProcessTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeScalingProcessTypes', @@ -2124,7 +2248,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeScalingProcessTypesResult', ); return ProcessesType.fromXml($result); @@ -2172,13 +2295,20 @@ class AutoScaling { List? scheduledActionNames, DateTime? startTime, }) async { - final $request = {}; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - scheduledActionNames?.also((arg) => $request['ScheduledActionNames'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (scheduledActionNames != null) + if (scheduledActionNames.isEmpty) + 'ScheduledActionNames': '' + else + for (var i1 = 0; i1 < scheduledActionNames.length; i1++) + 'ScheduledActionNames.member.${i1 + 1}': scheduledActionNames[i1], + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeScheduledActions', @@ -2186,8 +2316,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScheduledActionsType'], - shapes: shapes, resultWrapper: 'DescribeScheduledActionsResult', ); return ScheduledActionsType.fromXml($result); @@ -2229,10 +2357,17 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -2240,8 +2375,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsType'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return TagsType.fromXml($result); @@ -2257,7 +2390,7 @@ class AutoScaling { /// May throw [ResourceContentionFault]. Future describeTerminationPolicyTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeTerminationPolicyTypes', @@ -2265,7 +2398,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeTerminationPolicyTypesResult', ); return DescribeTerminationPolicyTypesAnswer.fromXml($result); @@ -2317,11 +2449,12 @@ class AutoScaling { String? nextToken, String? trafficSourceType, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - trafficSourceType?.also((arg) => $request['TrafficSourceType'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (trafficSourceType != null) 'TrafficSourceType': trafficSourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeTrafficSources', @@ -2329,8 +2462,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrafficSourcesRequest'], - shapes: shapes, resultWrapper: 'DescribeTrafficSourcesResult', ); return DescribeTrafficSourcesResponse.fromXml($result); @@ -2362,10 +2493,11 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeWarmPool', @@ -2373,8 +2505,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeWarmPoolType'], - shapes: shapes, resultWrapper: 'DescribeWarmPoolResult', ); return DescribeWarmPoolAnswer.fromXml($result); @@ -2414,10 +2544,17 @@ class AutoScaling { required bool shouldDecrementDesiredCapacity, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ShouldDecrementDesiredCapacity'] = shouldDecrementDesiredCapacity; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ShouldDecrementDesiredCapacity': + shouldDecrementDesiredCapacity.toString(), + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; final $result = await _protocol.send( $request, action: 'DetachInstances', @@ -2425,8 +2562,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachInstancesQuery'], - shapes: shapes, resultWrapper: 'DetachInstancesResult', ); return DetachInstancesAnswer.fromXml($result); @@ -2466,9 +2601,14 @@ class AutoScaling { required String autoScalingGroupName, required List targetGroupARNs, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TargetGroupARNs'] = targetGroupARNs; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (targetGroupARNs.isEmpty) + 'TargetGroupARNs': '' + else + for (var i1 = 0; i1 < targetGroupARNs.length; i1++) + 'TargetGroupARNs.member.${i1 + 1}': targetGroupARNs[i1], + }; await _protocol.send( $request, action: 'DetachLoadBalancerTargetGroups', @@ -2476,8 +2616,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachLoadBalancerTargetGroupsType'], - shapes: shapes, resultWrapper: 'DetachLoadBalancerTargetGroupsResult', ); } @@ -2514,9 +2652,14 @@ class AutoScaling { required String autoScalingGroupName, required List loadBalancerNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LoadBalancerNames'] = loadBalancerNames; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + }; await _protocol.send( $request, action: 'DetachLoadBalancers', @@ -2524,8 +2667,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachLoadBalancersType'], - shapes: shapes, resultWrapper: 'DetachLoadBalancersResult', ); } @@ -2550,9 +2691,15 @@ class AutoScaling { required String autoScalingGroupName, required List trafficSources, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TrafficSources'] = trafficSources; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (trafficSources.isEmpty) + 'TrafficSources': '' + else + for (var i1 = 0; i1 < trafficSources.length; i1++) + for (var e3 in trafficSources[i1].toQueryMap().entries) + 'TrafficSources.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'DetachTrafficSources', @@ -2560,8 +2707,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachTrafficSourcesType'], - shapes: shapes, resultWrapper: 'DetachTrafficSourcesResult', ); } @@ -2650,9 +2795,15 @@ class AutoScaling { required String autoScalingGroupName, List? metrics, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - metrics?.also((arg) => $request['Metrics'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + 'Metrics.member.${i1 + 1}': metrics[i1], + }; await _protocol.send( $request, action: 'DisableMetricsCollection', @@ -2660,8 +2811,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableMetricsCollectionQuery'], - shapes: shapes, ); } @@ -2763,10 +2912,16 @@ class AutoScaling { required String granularity, List? metrics, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['Granularity'] = granularity; - metrics?.also((arg) => $request['Metrics'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'Granularity': granularity, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + 'Metrics.member.${i1 + 1}': metrics[i1], + }; await _protocol.send( $request, action: 'EnableMetricsCollection', @@ -2774,8 +2929,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableMetricsCollectionQuery'], - shapes: shapes, ); } @@ -2811,10 +2964,17 @@ class AutoScaling { required bool shouldDecrementDesiredCapacity, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ShouldDecrementDesiredCapacity'] = shouldDecrementDesiredCapacity; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ShouldDecrementDesiredCapacity': + shouldDecrementDesiredCapacity.toString(), + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; final $result = await _protocol.send( $request, action: 'EnterStandby', @@ -2822,8 +2982,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnterStandbyQuery'], - shapes: shapes, resultWrapper: 'EnterStandbyResult', ); return EnterStandbyAnswer.fromXml($result); @@ -2876,12 +3034,15 @@ class AutoScaling { bool? honorCooldown, double? metricValue, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - breachThreshold?.also((arg) => $request['BreachThreshold'] = arg); - honorCooldown?.also((arg) => $request['HonorCooldown'] = arg); - metricValue?.also((arg) => $request['MetricValue'] = arg); + final $request = { + 'PolicyName': policyName, + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (breachThreshold != null) + 'BreachThreshold': breachThreshold.toString(), + if (honorCooldown != null) 'HonorCooldown': honorCooldown.toString(), + if (metricValue != null) 'MetricValue': metricValue.toString(), + }; await _protocol.send( $request, action: 'ExecutePolicy', @@ -2889,8 +3050,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExecutePolicyType'], - shapes: shapes, ); } @@ -2915,9 +3074,15 @@ class AutoScaling { required String autoScalingGroupName, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; final $result = await _protocol.send( $request, action: 'ExitStandby', @@ -2925,8 +3090,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExitStandbyQuery'], - shapes: shapes, resultWrapper: 'ExitStandbyResult', ); return ExitStandbyAnswer.fromXml($result); @@ -2974,11 +3137,12 @@ class AutoScaling { required String policyName, required DateTime startTime, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['PolicyName'] = policyName; - $request['StartTime'] = _s.iso8601ToJson(startTime); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'EndTime': _s.iso8601ToJson(endTime), + 'PolicyName': policyName, + 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'GetPredictiveScalingForecast', @@ -2986,8 +3150,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPredictiveScalingForecastType'], - shapes: shapes, resultWrapper: 'GetPredictiveScalingForecastResult', ); return GetPredictiveScalingForecastAnswer.fromXml($result); @@ -3118,16 +3280,20 @@ class AutoScaling { String? notificationTargetARN, String? roleARN, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleHookName'] = lifecycleHookName; - defaultResult?.also((arg) => $request['DefaultResult'] = arg); - heartbeatTimeout?.also((arg) => $request['HeartbeatTimeout'] = arg); - lifecycleTransition?.also((arg) => $request['LifecycleTransition'] = arg); - notificationMetadata?.also((arg) => $request['NotificationMetadata'] = arg); - notificationTargetARN - ?.also((arg) => $request['NotificationTargetARN'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleHookName': lifecycleHookName, + if (defaultResult != null) 'DefaultResult': defaultResult, + if (heartbeatTimeout != null) + 'HeartbeatTimeout': heartbeatTimeout.toString(), + if (lifecycleTransition != null) + 'LifecycleTransition': lifecycleTransition, + if (notificationMetadata != null) + 'NotificationMetadata': notificationMetadata, + if (notificationTargetARN != null) + 'NotificationTargetARN': notificationTargetARN, + if (roleARN != null) 'RoleARN': roleARN, + }; await _protocol.send( $request, action: 'PutLifecycleHook', @@ -3135,8 +3301,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutLifecycleHookType'], - shapes: shapes, resultWrapper: 'PutLifecycleHookResult', ); } @@ -3174,10 +3338,15 @@ class AutoScaling { required List notificationTypes, required String topicARN, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['NotificationTypes'] = notificationTypes; - $request['TopicARN'] = topicARN; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (notificationTypes.isEmpty) + 'NotificationTypes': '' + else + for (var i1 = 0; i1 < notificationTypes.length; i1++) + 'NotificationTypes.member.${i1 + 1}': notificationTypes[i1], + 'TopicARN': topicARN, + }; await _protocol.send( $request, action: 'PutNotificationConfiguration', @@ -3185,8 +3354,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutNotificationConfigurationType'], - shapes: shapes, ); } @@ -3393,26 +3560,37 @@ class AutoScaling { List? stepAdjustments, TargetTrackingConfiguration? targetTrackingConfiguration, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['PolicyName'] = policyName; - adjustmentType?.also((arg) => $request['AdjustmentType'] = arg); - cooldown?.also((arg) => $request['Cooldown'] = arg); - enabled?.also((arg) => $request['Enabled'] = arg); - estimatedInstanceWarmup - ?.also((arg) => $request['EstimatedInstanceWarmup'] = arg); - metricAggregationType - ?.also((arg) => $request['MetricAggregationType'] = arg); - minAdjustmentMagnitude - ?.also((arg) => $request['MinAdjustmentMagnitude'] = arg); - minAdjustmentStep?.also((arg) => $request['MinAdjustmentStep'] = arg); - policyType?.also((arg) => $request['PolicyType'] = arg); - predictiveScalingConfiguration - ?.also((arg) => $request['PredictiveScalingConfiguration'] = arg); - scalingAdjustment?.also((arg) => $request['ScalingAdjustment'] = arg); - stepAdjustments?.also((arg) => $request['StepAdjustments'] = arg); - targetTrackingConfiguration - ?.also((arg) => $request['TargetTrackingConfiguration'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'PolicyName': policyName, + if (adjustmentType != null) 'AdjustmentType': adjustmentType, + if (cooldown != null) 'Cooldown': cooldown.toString(), + if (enabled != null) 'Enabled': enabled.toString(), + if (estimatedInstanceWarmup != null) + 'EstimatedInstanceWarmup': estimatedInstanceWarmup.toString(), + if (metricAggregationType != null) + 'MetricAggregationType': metricAggregationType, + if (minAdjustmentMagnitude != null) + 'MinAdjustmentMagnitude': minAdjustmentMagnitude.toString(), + if (minAdjustmentStep != null) + 'MinAdjustmentStep': minAdjustmentStep.toString(), + if (policyType != null) 'PolicyType': policyType, + if (predictiveScalingConfiguration != null) + for (var e1 in predictiveScalingConfiguration.toQueryMap().entries) + 'PredictiveScalingConfiguration.${e1.key}': e1.value, + if (scalingAdjustment != null) + 'ScalingAdjustment': scalingAdjustment.toString(), + if (stepAdjustments != null) + if (stepAdjustments.isEmpty) + 'StepAdjustments': '' + else + for (var i1 = 0; i1 < stepAdjustments.length; i1++) + for (var e3 in stepAdjustments[i1].toQueryMap().entries) + 'StepAdjustments.member.${i1 + 1}.${e3.key}': e3.value, + if (targetTrackingConfiguration != null) + for (var e1 in targetTrackingConfiguration.toQueryMap().entries) + 'TargetTrackingConfiguration.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'PutScalingPolicy', @@ -3420,8 +3598,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutScalingPolicyType'], - shapes: shapes, resultWrapper: 'PutScalingPolicyResult', ); return PolicyARNType.fromXml($result); @@ -3516,17 +3692,19 @@ class AutoScaling { DateTime? time, String? timeZone, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledActionName'] = scheduledActionName; - desiredCapacity?.also((arg) => $request['DesiredCapacity'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - maxSize?.also((arg) => $request['MaxSize'] = arg); - minSize?.also((arg) => $request['MinSize'] = arg); - recurrence?.also((arg) => $request['Recurrence'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - time?.also((arg) => $request['Time'] = _s.iso8601ToJson(arg)); - timeZone?.also((arg) => $request['TimeZone'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ScheduledActionName': scheduledActionName, + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (maxSize != null) 'MaxSize': maxSize.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (recurrence != null) 'Recurrence': recurrence, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (time != null) 'Time': _s.iso8601ToJson(time), + if (timeZone != null) 'TimeZone': timeZone, + }; await _protocol.send( $request, action: 'PutScheduledUpdateGroupAction', @@ -3534,8 +3712,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutScheduledUpdateGroupActionType'], - shapes: shapes, ); } @@ -3620,13 +3796,16 @@ class AutoScaling { 0, 1152921504606846976, ); - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceReusePolicy?.also((arg) => $request['InstanceReusePolicy'] = arg); - maxGroupPreparedCapacity - ?.also((arg) => $request['MaxGroupPreparedCapacity'] = arg); - minSize?.also((arg) => $request['MinSize'] = arg); - poolState?.also((arg) => $request['PoolState'] = arg.toValue()); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceReusePolicy != null) + for (var e1 in instanceReusePolicy.toQueryMap().entries) + 'InstanceReusePolicy.${e1.key}': e1.value, + if (maxGroupPreparedCapacity != null) + 'MaxGroupPreparedCapacity': maxGroupPreparedCapacity.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (poolState != null) 'PoolState': poolState.toValue(), + }; await _protocol.send( $request, action: 'PutWarmPool', @@ -3634,8 +3813,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutWarmPoolType'], - shapes: shapes, resultWrapper: 'PutWarmPoolResult', ); } @@ -3701,11 +3878,13 @@ class AutoScaling { String? instanceId, String? lifecycleActionToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleHookName'] = lifecycleHookName; - instanceId?.also((arg) => $request['InstanceId'] = arg); - lifecycleActionToken?.also((arg) => $request['LifecycleActionToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleHookName': lifecycleHookName, + if (instanceId != null) 'InstanceId': instanceId, + if (lifecycleActionToken != null) + 'LifecycleActionToken': lifecycleActionToken, + }; await _protocol.send( $request, action: 'RecordLifecycleActionHeartbeat', @@ -3713,8 +3892,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RecordLifecycleActionHeartbeatType'], - shapes: shapes, resultWrapper: 'RecordLifecycleActionHeartbeatResult', ); } @@ -3770,9 +3947,15 @@ class AutoScaling { required String autoScalingGroupName, List? scalingProcesses, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - scalingProcesses?.also((arg) => $request['ScalingProcesses'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scalingProcesses != null) + if (scalingProcesses.isEmpty) + 'ScalingProcesses': '' + else + for (var i1 = 0; i1 < scalingProcesses.length; i1++) + 'ScalingProcesses.member.${i1 + 1}': scalingProcesses[i1], + }; await _protocol.send( $request, action: 'ResumeProcesses', @@ -3780,8 +3963,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ScalingProcessQuery'], - shapes: shapes, ); } @@ -3827,8 +4008,9 @@ class AutoScaling { Future rollbackInstanceRefresh({ required String autoScalingGroupName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + }; final $result = await _protocol.send( $request, action: 'RollbackInstanceRefresh', @@ -3836,8 +4018,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RollbackInstanceRefreshType'], - shapes: shapes, resultWrapper: 'RollbackInstanceRefreshResult', ); return RollbackInstanceRefreshAnswer.fromXml($result); @@ -3874,10 +4054,11 @@ class AutoScaling { required int desiredCapacity, bool? honorCooldown, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['DesiredCapacity'] = desiredCapacity; - honorCooldown?.also((arg) => $request['HonorCooldown'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'DesiredCapacity': desiredCapacity.toString(), + if (honorCooldown != null) 'HonorCooldown': honorCooldown.toString(), + }; await _protocol.send( $request, action: 'SetDesiredCapacity', @@ -3885,8 +4066,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetDesiredCapacityType'], - shapes: shapes, ); } @@ -3922,11 +4101,12 @@ class AutoScaling { required String instanceId, bool? shouldRespectGracePeriod, }) async { - final $request = {}; - $request['HealthStatus'] = healthStatus; - $request['InstanceId'] = instanceId; - shouldRespectGracePeriod - ?.also((arg) => $request['ShouldRespectGracePeriod'] = arg); + final $request = { + 'HealthStatus': healthStatus, + 'InstanceId': instanceId, + if (shouldRespectGracePeriod != null) + 'ShouldRespectGracePeriod': shouldRespectGracePeriod.toString(), + }; await _protocol.send( $request, action: 'SetInstanceHealth', @@ -3934,8 +4114,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetInstanceHealthQuery'], - shapes: shapes, ); } @@ -3968,10 +4146,15 @@ class AutoScaling { required List instanceIds, required bool protectedFromScaleIn, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['InstanceIds'] = instanceIds; - $request['ProtectedFromScaleIn'] = protectedFromScaleIn; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + 'ProtectedFromScaleIn': protectedFromScaleIn.toString(), + }; await _protocol.send( $request, action: 'SetInstanceProtection', @@ -3979,8 +4162,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetInstanceProtectionQuery'], - shapes: shapes, resultWrapper: 'SetInstanceProtectionResult', ); } @@ -4073,11 +4254,16 @@ class AutoScaling { RefreshPreferences? preferences, RefreshStrategy? strategy, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - desiredConfiguration?.also((arg) => $request['DesiredConfiguration'] = arg); - preferences?.also((arg) => $request['Preferences'] = arg); - strategy?.also((arg) => $request['Strategy'] = arg.toValue()); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (desiredConfiguration != null) + for (var e1 in desiredConfiguration.toQueryMap().entries) + 'DesiredConfiguration.${e1.key}': e1.value, + if (preferences != null) + for (var e1 in preferences.toQueryMap().entries) + 'Preferences.${e1.key}': e1.value, + if (strategy != null) 'Strategy': strategy.toValue(), + }; final $result = await _protocol.send( $request, action: 'StartInstanceRefresh', @@ -4085,8 +4271,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartInstanceRefreshType'], - shapes: shapes, resultWrapper: 'StartInstanceRefreshResult', ); return StartInstanceRefreshAnswer.fromXml($result); @@ -4148,9 +4332,15 @@ class AutoScaling { required String autoScalingGroupName, List? scalingProcesses, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - scalingProcesses?.also((arg) => $request['ScalingProcesses'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scalingProcesses != null) + if (scalingProcesses.isEmpty) + 'ScalingProcesses': '' + else + for (var i1 = 0; i1 < scalingProcesses.length; i1++) + 'ScalingProcesses.member.${i1 + 1}': scalingProcesses[i1], + }; await _protocol.send( $request, action: 'SuspendProcesses', @@ -4158,8 +4348,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ScalingProcessQuery'], - shapes: shapes, ); } @@ -4196,9 +4384,11 @@ class AutoScaling { required String instanceId, required bool shouldDecrementDesiredCapacity, }) async { - final $request = {}; - $request['InstanceId'] = instanceId; - $request['ShouldDecrementDesiredCapacity'] = shouldDecrementDesiredCapacity; + final $request = { + 'InstanceId': instanceId, + 'ShouldDecrementDesiredCapacity': + shouldDecrementDesiredCapacity.toString(), + }; final $result = await _protocol.send( $request, action: 'TerminateInstanceInAutoScalingGroup', @@ -4206,8 +4396,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TerminateInstanceInAutoScalingGroupType'], - shapes: shapes, resultWrapper: 'TerminateInstanceInAutoScalingGroupResult', ); return ActivityType.fromXml($result); @@ -4477,34 +4665,57 @@ class AutoScaling { List? terminationPolicies, String? vPCZoneIdentifier, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - capacityRebalance?.also((arg) => $request['CapacityRebalance'] = arg); - context?.also((arg) => $request['Context'] = arg); - defaultCooldown?.also((arg) => $request['DefaultCooldown'] = arg); - defaultInstanceWarmup - ?.also((arg) => $request['DefaultInstanceWarmup'] = arg); - desiredCapacity?.also((arg) => $request['DesiredCapacity'] = arg); - desiredCapacityType?.also((arg) => $request['DesiredCapacityType'] = arg); - healthCheckGracePeriod - ?.also((arg) => $request['HealthCheckGracePeriod'] = arg); - healthCheckType?.also((arg) => $request['HealthCheckType'] = arg); - instanceMaintenancePolicy - ?.also((arg) => $request['InstanceMaintenancePolicy'] = arg); - launchConfigurationName - ?.also((arg) => $request['LaunchConfigurationName'] = arg); - launchTemplate?.also((arg) => $request['LaunchTemplate'] = arg); - maxInstanceLifetime?.also((arg) => $request['MaxInstanceLifetime'] = arg); - maxSize?.also((arg) => $request['MaxSize'] = arg); - minSize?.also((arg) => $request['MinSize'] = arg); - mixedInstancesPolicy?.also((arg) => $request['MixedInstancesPolicy'] = arg); - newInstancesProtectedFromScaleIn - ?.also((arg) => $request['NewInstancesProtectedFromScaleIn'] = arg); - placementGroup?.also((arg) => $request['PlacementGroup'] = arg); - serviceLinkedRoleARN?.also((arg) => $request['ServiceLinkedRoleARN'] = arg); - terminationPolicies?.also((arg) => $request['TerminationPolicies'] = arg); - vPCZoneIdentifier?.also((arg) => $request['VPCZoneIdentifier'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + if (capacityRebalance != null) + 'CapacityRebalance': capacityRebalance.toString(), + if (context != null) 'Context': context, + if (defaultCooldown != null) + 'DefaultCooldown': defaultCooldown.toString(), + if (defaultInstanceWarmup != null) + 'DefaultInstanceWarmup': defaultInstanceWarmup.toString(), + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (desiredCapacityType != null) + 'DesiredCapacityType': desiredCapacityType, + if (healthCheckGracePeriod != null) + 'HealthCheckGracePeriod': healthCheckGracePeriod.toString(), + if (healthCheckType != null) 'HealthCheckType': healthCheckType, + if (instanceMaintenancePolicy != null) + for (var e1 in instanceMaintenancePolicy.toQueryMap().entries) + 'InstanceMaintenancePolicy.${e1.key}': e1.value, + if (launchConfigurationName != null) + 'LaunchConfigurationName': launchConfigurationName, + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + if (maxInstanceLifetime != null) + 'MaxInstanceLifetime': maxInstanceLifetime.toString(), + if (maxSize != null) 'MaxSize': maxSize.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (mixedInstancesPolicy != null) + for (var e1 in mixedInstancesPolicy.toQueryMap().entries) + 'MixedInstancesPolicy.${e1.key}': e1.value, + if (newInstancesProtectedFromScaleIn != null) + 'NewInstancesProtectedFromScaleIn': + newInstancesProtectedFromScaleIn.toString(), + if (placementGroup != null) 'PlacementGroup': placementGroup, + if (serviceLinkedRoleARN != null) + 'ServiceLinkedRoleARN': serviceLinkedRoleARN, + if (terminationPolicies != null) + if (terminationPolicies.isEmpty) + 'TerminationPolicies': '' + else + for (var i1 = 0; i1 < terminationPolicies.length; i1++) + 'TerminationPolicies.member.${i1 + 1}': terminationPolicies[i1], + if (vPCZoneIdentifier != null) 'VPCZoneIdentifier': vPCZoneIdentifier, + }; await _protocol.send( $request, action: 'UpdateAutoScalingGroup', @@ -4512,8 +4723,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAutoScalingGroupType'], - shapes: shapes, ); } } @@ -4547,6 +4756,15 @@ class AcceleratorCountRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } enum AcceleratorManufacturer { @@ -4669,6 +4887,15 @@ class AcceleratorTotalMemoryMiBRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } enum AcceleratorType { @@ -4946,6 +5173,18 @@ class AlarmSpecification { if (alarms != null) 'Alarms': alarms, }; } + + Map toQueryMap() { + final alarms = this.alarms; + return { + if (alarms != null) + if (alarms.isEmpty) + 'Alarms': '' + else + for (var i1 = 0; i1 < alarms.length; i1++) + 'Alarms.member.${i1 + 1}': alarms[i1], + }; + } } class AttachLoadBalancerTargetGroupsResultType { @@ -5549,6 +5788,15 @@ class BaselineEbsBandwidthMbpsRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } class BatchDeleteScheduledActionAnswer { @@ -5668,6 +5916,20 @@ class BlockDeviceMapping { if (virtualName != null) 'VirtualName': virtualName, }; } + + Map toQueryMap() { + final deviceName = this.deviceName; + final ebs = this.ebs; + final noDevice = this.noDevice; + final virtualName = this.virtualName; + return { + 'DeviceName': deviceName, + if (ebs != null) + for (var e1 in ebs.toQueryMap().entries) 'Ebs.${e1.key}': e1.value, + if (noDevice != null) 'NoDevice': noDevice.toString(), + if (virtualName != null) 'VirtualName': virtualName, + }; + } } enum BurstablePerformance { @@ -5906,6 +6168,35 @@ class CustomizedMetricSpecification { if (unit != null) 'Unit': unit, }; } + + Map toQueryMap() { + final dimensions = this.dimensions; + final metricName = this.metricName; + final metrics = this.metrics; + final namespace = this.namespace; + final statistic = this.statistic; + final unit = this.unit; + return { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricName != null) 'MetricName': metricName, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + for (var e3 in metrics[i1].toQueryMap().entries) + 'Metrics.member.${i1 + 1}.${e3.key}': e3.value, + if (namespace != null) 'Namespace': namespace, + if (statistic != null) 'Statistic': statistic.toValue(), + if (unit != null) 'Unit': unit, + }; + } } class DeleteLifecycleHookAnswer { @@ -6404,6 +6695,19 @@ class DesiredConfiguration { 'MixedInstancesPolicy': mixedInstancesPolicy, }; } + + Map toQueryMap() { + final launchTemplate = this.launchTemplate; + final mixedInstancesPolicy = this.mixedInstancesPolicy; + return { + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + if (mixedInstancesPolicy != null) + for (var e1 in mixedInstancesPolicy.toQueryMap().entries) + 'MixedInstancesPolicy.${e1.key}': e1.value, + }; + } } class DetachInstancesAnswer { @@ -6606,9 +6910,29 @@ class Ebs { if (volumeType != null) 'VolumeType': volumeType, }; } -} -/// Describes an enabled Auto Scaling group metric. + Map toQueryMap() { + final deleteOnTermination = this.deleteOnTermination; + final encrypted = this.encrypted; + final iops = this.iops; + final snapshotId = this.snapshotId; + final throughput = this.throughput; + final volumeSize = this.volumeSize; + final volumeType = this.volumeType; + return { + if (deleteOnTermination != null) + 'DeleteOnTermination': deleteOnTermination.toString(), + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (iops != null) 'Iops': iops.toString(), + if (snapshotId != null) 'SnapshotId': snapshotId, + if (throughput != null) 'Throughput': throughput.toString(), + if (volumeSize != null) 'VolumeSize': volumeSize.toString(), + if (volumeType != null) 'VolumeType': volumeType, + }; + } +} + +/// Describes an enabled Auto Scaling group metric. class EnabledMetric { /// The granularity of the metric. The only valid value is 1Minute. final String? granularity; @@ -6871,6 +7195,20 @@ class Filter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + if (name != null) 'Name': name, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } class GetPredictiveScalingForecastAnswer { @@ -7082,6 +7420,17 @@ class InstanceMaintenancePolicy { 'MinHealthyPercentage': minHealthyPercentage, }; } + + Map toQueryMap() { + final maxHealthyPercentage = this.maxHealthyPercentage; + final minHealthyPercentage = this.minHealthyPercentage; + return { + if (maxHealthyPercentage != null) + 'MaxHealthyPercentage': maxHealthyPercentage.toString(), + if (minHealthyPercentage != null) + 'MinHealthyPercentage': minHealthyPercentage.toString(), + }; + } } enum InstanceMetadataEndpointState { @@ -7208,6 +7557,18 @@ class InstanceMetadataOptions { if (httpTokens != null) 'HttpTokens': httpTokens.toValue(), }; } + + Map toQueryMap() { + final httpEndpoint = this.httpEndpoint; + final httpPutResponseHopLimit = this.httpPutResponseHopLimit; + final httpTokens = this.httpTokens; + return { + if (httpEndpoint != null) 'HttpEndpoint': httpEndpoint.toValue(), + if (httpPutResponseHopLimit != null) + 'HttpPutResponseHopLimit': httpPutResponseHopLimit.toString(), + if (httpTokens != null) 'HttpTokens': httpTokens.toValue(), + }; + } } /// Describes whether detailed monitoring is enabled for the Auto Scaling @@ -7232,6 +7593,13 @@ class InstanceMonitoring { if (enabled != null) 'Enabled': enabled, }; } + + Map toQueryMap() { + final enabled = this.enabled; + return { + if (enabled != null) 'Enabled': enabled.toString(), + }; + } } /// Describes an instance refresh for an Auto Scaling group. @@ -8105,6 +8473,129 @@ class InstanceRequirements { 'TotalLocalStorageGB': totalLocalStorageGB, }; } + + Map toQueryMap() { + final memoryMiB = this.memoryMiB; + final vCpuCount = this.vCpuCount; + final acceleratorCount = this.acceleratorCount; + final acceleratorManufacturers = this.acceleratorManufacturers; + final acceleratorNames = this.acceleratorNames; + final acceleratorTotalMemoryMiB = this.acceleratorTotalMemoryMiB; + final acceleratorTypes = this.acceleratorTypes; + final allowedInstanceTypes = this.allowedInstanceTypes; + final bareMetal = this.bareMetal; + final baselineEbsBandwidthMbps = this.baselineEbsBandwidthMbps; + final burstablePerformance = this.burstablePerformance; + final cpuManufacturers = this.cpuManufacturers; + final excludedInstanceTypes = this.excludedInstanceTypes; + final instanceGenerations = this.instanceGenerations; + final localStorage = this.localStorage; + final localStorageTypes = this.localStorageTypes; + final maxSpotPriceAsPercentageOfOptimalOnDemandPrice = + this.maxSpotPriceAsPercentageOfOptimalOnDemandPrice; + final memoryGiBPerVCpu = this.memoryGiBPerVCpu; + final networkBandwidthGbps = this.networkBandwidthGbps; + final networkInterfaceCount = this.networkInterfaceCount; + final onDemandMaxPricePercentageOverLowestPrice = + this.onDemandMaxPricePercentageOverLowestPrice; + final requireHibernateSupport = this.requireHibernateSupport; + final spotMaxPricePercentageOverLowestPrice = + this.spotMaxPricePercentageOverLowestPrice; + final totalLocalStorageGB = this.totalLocalStorageGB; + return { + for (var e1 in memoryMiB.toQueryMap().entries) + 'MemoryMiB.${e1.key}': e1.value, + for (var e1 in vCpuCount.toQueryMap().entries) + 'VCpuCount.${e1.key}': e1.value, + if (acceleratorCount != null) + for (var e1 in acceleratorCount.toQueryMap().entries) + 'AcceleratorCount.${e1.key}': e1.value, + if (acceleratorManufacturers != null) + if (acceleratorManufacturers.isEmpty) + 'AcceleratorManufacturers': '' + else + for (var i1 = 0; i1 < acceleratorManufacturers.length; i1++) + 'AcceleratorManufacturers.member.${i1 + 1}': + acceleratorManufacturers[i1].toValue(), + if (acceleratorNames != null) + if (acceleratorNames.isEmpty) + 'AcceleratorNames': '' + else + for (var i1 = 0; i1 < acceleratorNames.length; i1++) + 'AcceleratorNames.member.${i1 + 1}': acceleratorNames[i1].toValue(), + if (acceleratorTotalMemoryMiB != null) + for (var e1 in acceleratorTotalMemoryMiB.toQueryMap().entries) + 'AcceleratorTotalMemoryMiB.${e1.key}': e1.value, + if (acceleratorTypes != null) + if (acceleratorTypes.isEmpty) + 'AcceleratorTypes': '' + else + for (var i1 = 0; i1 < acceleratorTypes.length; i1++) + 'AcceleratorTypes.member.${i1 + 1}': acceleratorTypes[i1].toValue(), + if (allowedInstanceTypes != null) + if (allowedInstanceTypes.isEmpty) + 'AllowedInstanceTypes': '' + else + for (var i1 = 0; i1 < allowedInstanceTypes.length; i1++) + 'AllowedInstanceTypes.member.${i1 + 1}': allowedInstanceTypes[i1], + if (bareMetal != null) 'BareMetal': bareMetal.toValue(), + if (baselineEbsBandwidthMbps != null) + for (var e1 in baselineEbsBandwidthMbps.toQueryMap().entries) + 'BaselineEbsBandwidthMbps.${e1.key}': e1.value, + if (burstablePerformance != null) + 'BurstablePerformance': burstablePerformance.toValue(), + if (cpuManufacturers != null) + if (cpuManufacturers.isEmpty) + 'CpuManufacturers': '' + else + for (var i1 = 0; i1 < cpuManufacturers.length; i1++) + 'CpuManufacturers.member.${i1 + 1}': cpuManufacturers[i1].toValue(), + if (excludedInstanceTypes != null) + if (excludedInstanceTypes.isEmpty) + 'ExcludedInstanceTypes': '' + else + for (var i1 = 0; i1 < excludedInstanceTypes.length; i1++) + 'ExcludedInstanceTypes.member.${i1 + 1}': excludedInstanceTypes[i1], + if (instanceGenerations != null) + if (instanceGenerations.isEmpty) + 'InstanceGenerations': '' + else + for (var i1 = 0; i1 < instanceGenerations.length; i1++) + 'InstanceGenerations.member.${i1 + 1}': + instanceGenerations[i1].toValue(), + if (localStorage != null) 'LocalStorage': localStorage.toValue(), + if (localStorageTypes != null) + if (localStorageTypes.isEmpty) + 'LocalStorageTypes': '' + else + for (var i1 = 0; i1 < localStorageTypes.length; i1++) + 'LocalStorageTypes.member.${i1 + 1}': + localStorageTypes[i1].toValue(), + if (maxSpotPriceAsPercentageOfOptimalOnDemandPrice != null) + 'MaxSpotPriceAsPercentageOfOptimalOnDemandPrice': + maxSpotPriceAsPercentageOfOptimalOnDemandPrice.toString(), + if (memoryGiBPerVCpu != null) + for (var e1 in memoryGiBPerVCpu.toQueryMap().entries) + 'MemoryGiBPerVCpu.${e1.key}': e1.value, + if (networkBandwidthGbps != null) + for (var e1 in networkBandwidthGbps.toQueryMap().entries) + 'NetworkBandwidthGbps.${e1.key}': e1.value, + if (networkInterfaceCount != null) + for (var e1 in networkInterfaceCount.toQueryMap().entries) + 'NetworkInterfaceCount.${e1.key}': e1.value, + if (onDemandMaxPricePercentageOverLowestPrice != null) + 'OnDemandMaxPricePercentageOverLowestPrice': + onDemandMaxPricePercentageOverLowestPrice.toString(), + if (requireHibernateSupport != null) + 'RequireHibernateSupport': requireHibernateSupport.toString(), + if (spotMaxPricePercentageOverLowestPrice != null) + 'SpotMaxPricePercentageOverLowestPrice': + spotMaxPricePercentageOverLowestPrice.toString(), + if (totalLocalStorageGB != null) + for (var e1 in totalLocalStorageGB.toQueryMap().entries) + 'TotalLocalStorageGB.${e1.key}': e1.value, + }; + } } /// Describes an instance reuse policy for a warm pool. @@ -8133,6 +8624,13 @@ class InstanceReusePolicy { if (reuseOnScaleIn != null) 'ReuseOnScaleIn': reuseOnScaleIn, }; } + + Map toQueryMap() { + final reuseOnScaleIn = this.reuseOnScaleIn; + return { + if (reuseOnScaleIn != null) 'ReuseOnScaleIn': reuseOnScaleIn.toString(), + }; + } } /// Use this structure to specify the distribution of On-Demand Instances and @@ -8280,6 +8778,30 @@ class InstancesDistribution { if (spotMaxPrice != null) 'SpotMaxPrice': spotMaxPrice, }; } + + Map toQueryMap() { + final onDemandAllocationStrategy = this.onDemandAllocationStrategy; + final onDemandBaseCapacity = this.onDemandBaseCapacity; + final onDemandPercentageAboveBaseCapacity = + this.onDemandPercentageAboveBaseCapacity; + final spotAllocationStrategy = this.spotAllocationStrategy; + final spotInstancePools = this.spotInstancePools; + final spotMaxPrice = this.spotMaxPrice; + return { + if (onDemandAllocationStrategy != null) + 'OnDemandAllocationStrategy': onDemandAllocationStrategy, + if (onDemandBaseCapacity != null) + 'OnDemandBaseCapacity': onDemandBaseCapacity.toString(), + if (onDemandPercentageAboveBaseCapacity != null) + 'OnDemandPercentageAboveBaseCapacity': + onDemandPercentageAboveBaseCapacity.toString(), + if (spotAllocationStrategy != null) + 'SpotAllocationStrategy': spotAllocationStrategy, + if (spotInstancePools != null) + 'SpotInstancePools': spotInstancePools.toString(), + if (spotMaxPrice != null) 'SpotMaxPrice': spotMaxPrice, + }; + } } /// Describes a launch configuration. @@ -8591,6 +9113,23 @@ class LaunchTemplate { if (overrides != null) 'Overrides': overrides, }; } + + Map toQueryMap() { + final launchTemplateSpecification = this.launchTemplateSpecification; + final overrides = this.overrides; + return { + if (launchTemplateSpecification != null) + for (var e1 in launchTemplateSpecification.toQueryMap().entries) + 'LaunchTemplateSpecification.${e1.key}': e1.value, + if (overrides != null) + if (overrides.isEmpty) + 'Overrides': '' + else + for (var i1 = 0; i1 < overrides.length; i1++) + for (var e3 in overrides[i1].toQueryMap().entries) + 'Overrides.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Use this structure to let Amazon EC2 Auto Scaling do the following when the @@ -8716,6 +9255,23 @@ class LaunchTemplateOverrides { if (weightedCapacity != null) 'WeightedCapacity': weightedCapacity, }; } + + Map toQueryMap() { + final instanceRequirements = this.instanceRequirements; + final instanceType = this.instanceType; + final launchTemplateSpecification = this.launchTemplateSpecification; + final weightedCapacity = this.weightedCapacity; + return { + if (instanceRequirements != null) + for (var e1 in instanceRequirements.toQueryMap().entries) + 'InstanceRequirements.${e1.key}': e1.value, + if (instanceType != null) 'InstanceType': instanceType, + if (launchTemplateSpecification != null) + for (var e1 in launchTemplateSpecification.toQueryMap().entries) + 'LaunchTemplateSpecification.${e1.key}': e1.value, + if (weightedCapacity != null) 'WeightedCapacity': weightedCapacity, + }; + } } /// Describes the launch template and the version of the launch template that @@ -8781,6 +9337,17 @@ class LaunchTemplateSpecification { if (version != null) 'Version': version, }; } + + Map toQueryMap() { + final launchTemplateId = this.launchTemplateId; + final launchTemplateName = this.launchTemplateName; + final version = this.version; + return { + if (launchTemplateId != null) 'LaunchTemplateId': launchTemplateId, + if (launchTemplateName != null) 'LaunchTemplateName': launchTemplateName, + if (version != null) 'Version': version, + }; + } } /// Describes a lifecycle hook. A lifecycle hook lets you create solutions that @@ -8973,6 +9540,28 @@ class LifecycleHookSpecification { if (roleARN != null) 'RoleARN': roleARN, }; } + + Map toQueryMap() { + final lifecycleHookName = this.lifecycleHookName; + final lifecycleTransition = this.lifecycleTransition; + final defaultResult = this.defaultResult; + final heartbeatTimeout = this.heartbeatTimeout; + final notificationMetadata = this.notificationMetadata; + final notificationTargetARN = this.notificationTargetARN; + final roleARN = this.roleARN; + return { + 'LifecycleHookName': lifecycleHookName, + 'LifecycleTransition': lifecycleTransition, + if (defaultResult != null) 'DefaultResult': defaultResult, + if (heartbeatTimeout != null) + 'HeartbeatTimeout': heartbeatTimeout.toString(), + if (notificationMetadata != null) + 'NotificationMetadata': notificationMetadata, + if (notificationTargetARN != null) + 'NotificationTargetARN': notificationTargetARN, + if (roleARN != null) 'RoleARN': roleARN, + }; + } } enum LifecycleState { @@ -9350,6 +9939,15 @@ class MemoryGiBPerVCpuRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Specifies the minimum and maximum for the MemoryMiB object when @@ -9380,6 +9978,15 @@ class MemoryMiBRequest { if (max != null) 'Max': max, }; } + + Map toQueryMap() { + final min = this.min; + final max = this.max; + return { + 'Min': min.toString(), + if (max != null) 'Max': max.toString(), + }; + } } /// Represents a specific metric. @@ -9427,6 +10034,23 @@ class Metric { if (dimensions != null) 'Dimensions': dimensions, }; } + + Map toQueryMap() { + final metricName = this.metricName; + final namespace = this.namespace; + final dimensions = this.dimensions; + return { + 'MetricName': metricName, + 'Namespace': namespace, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a metric. @@ -9600,6 +10224,23 @@ class MetricDataQuery { if (returnData != null) 'ReturnData': returnData, }; } + + Map toQueryMap() { + final id = this.id; + final expression = this.expression; + final label = this.label; + final metricStat = this.metricStat; + final returnData = this.returnData; + return { + 'Id': id, + if (expression != null) 'Expression': expression, + if (label != null) 'Label': label, + if (metricStat != null) + for (var e1 in metricStat.toQueryMap().entries) + 'MetricStat.${e1.key}': e1.value, + if (returnData != null) 'ReturnData': returnData.toString(), + }; + } } /// Describes the dimension of a metric. @@ -9629,6 +10270,15 @@ class MetricDimension { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } /// Describes a granularity of a metric. @@ -9706,6 +10356,17 @@ class MetricStat { if (unit != null) 'Unit': unit, }; } + + Map toQueryMap() { + final metric = this.metric; + final stat = this.stat; + final unit = this.unit; + return { + for (var e1 in metric.toQueryMap().entries) 'Metric.${e1.key}': e1.value, + 'Stat': stat, + if (unit != null) 'Unit': unit, + }; + } } enum MetricStatistic { @@ -9830,6 +10491,19 @@ class MixedInstancesPolicy { if (launchTemplate != null) 'LaunchTemplate': launchTemplate, }; } + + Map toQueryMap() { + final instancesDistribution = this.instancesDistribution; + final launchTemplate = this.launchTemplate; + return { + if (instancesDistribution != null) + for (var e1 in instancesDistribution.toQueryMap().entries) + 'InstancesDistribution.${e1.key}': e1.value, + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + }; + } } /// Specifies the minimum and maximum for the NetworkBandwidthGbps @@ -9871,6 +10545,15 @@ class NetworkBandwidthGbpsRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Specifies the minimum and maximum for the NetworkInterfaceCount @@ -9902,6 +10585,15 @@ class NetworkInterfaceCountRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Describes a notification. @@ -10176,6 +10868,15 @@ class PredefinedMetricSpecification { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } enum PredefinedScalingMetricType { @@ -10317,6 +11018,29 @@ class PredictiveScalingConfiguration { 'SchedulingBufferTime': schedulingBufferTime, }; } + + Map toQueryMap() { + final metricSpecifications = this.metricSpecifications; + final maxCapacityBreachBehavior = this.maxCapacityBreachBehavior; + final maxCapacityBuffer = this.maxCapacityBuffer; + final mode = this.mode; + final schedulingBufferTime = this.schedulingBufferTime; + return { + if (metricSpecifications.isEmpty) + 'MetricSpecifications': '' + else + for (var i1 = 0; i1 < metricSpecifications.length; i1++) + for (var e3 in metricSpecifications[i1].toQueryMap().entries) + 'MetricSpecifications.member.${i1 + 1}.${e3.key}': e3.value, + if (maxCapacityBreachBehavior != null) + 'MaxCapacityBreachBehavior': maxCapacityBreachBehavior.toValue(), + if (maxCapacityBuffer != null) + 'MaxCapacityBuffer': maxCapacityBuffer.toString(), + if (mode != null) 'Mode': mode.toValue(), + if (schedulingBufferTime != null) + 'SchedulingBufferTime': schedulingBufferTime.toString(), + }; + } } /// Describes a customized capacity metric for a predictive scaling policy. @@ -10346,6 +11070,18 @@ class PredictiveScalingCustomizedCapacityMetric { 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a custom load metric for a predictive scaling policy. @@ -10374,6 +11110,18 @@ class PredictiveScalingCustomizedLoadMetric { 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a custom scaling metric for a predictive scaling policy. @@ -10402,6 +11150,18 @@ class PredictiveScalingCustomizedScalingMetric { 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } enum PredictiveScalingMaxCapacityBreachBehavior { @@ -10586,6 +11346,46 @@ class PredictiveScalingMetricSpecification { predefinedScalingMetricSpecification, }; } + + Map toQueryMap() { + final targetValue = this.targetValue; + final customizedCapacityMetricSpecification = + this.customizedCapacityMetricSpecification; + final customizedLoadMetricSpecification = + this.customizedLoadMetricSpecification; + final customizedScalingMetricSpecification = + this.customizedScalingMetricSpecification; + final predefinedLoadMetricSpecification = + this.predefinedLoadMetricSpecification; + final predefinedMetricPairSpecification = + this.predefinedMetricPairSpecification; + final predefinedScalingMetricSpecification = + this.predefinedScalingMetricSpecification; + return { + 'TargetValue': targetValue.toString(), + if (customizedCapacityMetricSpecification != null) + for (var e1 + in customizedCapacityMetricSpecification.toQueryMap().entries) + 'CustomizedCapacityMetricSpecification.${e1.key}': e1.value, + if (customizedLoadMetricSpecification != null) + for (var e1 in customizedLoadMetricSpecification.toQueryMap().entries) + 'CustomizedLoadMetricSpecification.${e1.key}': e1.value, + if (customizedScalingMetricSpecification != null) + for (var e1 + in customizedScalingMetricSpecification.toQueryMap().entries) + 'CustomizedScalingMetricSpecification.${e1.key}': e1.value, + if (predefinedLoadMetricSpecification != null) + for (var e1 in predefinedLoadMetricSpecification.toQueryMap().entries) + 'PredefinedLoadMetricSpecification.${e1.key}': e1.value, + if (predefinedMetricPairSpecification != null) + for (var e1 in predefinedMetricPairSpecification.toQueryMap().entries) + 'PredefinedMetricPairSpecification.${e1.key}': e1.value, + if (predefinedScalingMetricSpecification != null) + for (var e1 + in predefinedScalingMetricSpecification.toQueryMap().entries) + 'PredefinedScalingMetricSpecification.${e1.key}': e1.value, + }; + } } enum PredictiveScalingMode { @@ -10677,6 +11477,15 @@ class PredictiveScalingPredefinedLoadMetric { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } /// Represents a metric pair for a predictive scaling policy. @@ -10740,6 +11549,15 @@ class PredictiveScalingPredefinedMetricPair { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } /// Describes a scaling metric for a predictive scaling policy. @@ -10803,6 +11621,15 @@ class PredictiveScalingPredefinedScalingMetric { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } /// Describes a process type. @@ -11122,6 +11949,44 @@ class RefreshPreferences { 'StandbyInstances': standbyInstances.toValue(), }; } + + Map toQueryMap() { + final alarmSpecification = this.alarmSpecification; + final autoRollback = this.autoRollback; + final checkpointDelay = this.checkpointDelay; + final checkpointPercentages = this.checkpointPercentages; + final instanceWarmup = this.instanceWarmup; + final maxHealthyPercentage = this.maxHealthyPercentage; + final minHealthyPercentage = this.minHealthyPercentage; + final scaleInProtectedInstances = this.scaleInProtectedInstances; + final skipMatching = this.skipMatching; + final standbyInstances = this.standbyInstances; + return { + if (alarmSpecification != null) + for (var e1 in alarmSpecification.toQueryMap().entries) + 'AlarmSpecification.${e1.key}': e1.value, + if (autoRollback != null) 'AutoRollback': autoRollback.toString(), + if (checkpointDelay != null) + 'CheckpointDelay': checkpointDelay.toString(), + if (checkpointPercentages != null) + if (checkpointPercentages.isEmpty) + 'CheckpointPercentages': '' + else + for (var i1 = 0; i1 < checkpointPercentages.length; i1++) + 'CheckpointPercentages.member.${i1 + 1}': + checkpointPercentages[i1].toString(), + if (instanceWarmup != null) 'InstanceWarmup': instanceWarmup.toString(), + if (maxHealthyPercentage != null) + 'MaxHealthyPercentage': maxHealthyPercentage.toString(), + if (minHealthyPercentage != null) + 'MinHealthyPercentage': minHealthyPercentage.toString(), + if (scaleInProtectedInstances != null) + 'ScaleInProtectedInstances': scaleInProtectedInstances.toValue(), + if (skipMatching != null) 'SkipMatching': skipMatching.toString(), + if (standbyInstances != null) + 'StandbyInstances': standbyInstances.toValue(), + }; + } } enum RefreshStrategy { @@ -11748,6 +12613,28 @@ class ScheduledUpdateGroupActionRequest { if (timeZone != null) 'TimeZone': timeZone, }; } + + Map toQueryMap() { + final scheduledActionName = this.scheduledActionName; + final desiredCapacity = this.desiredCapacity; + final endTime = this.endTime; + final maxSize = this.maxSize; + final minSize = this.minSize; + final recurrence = this.recurrence; + final startTime = this.startTime; + final timeZone = this.timeZone; + return { + 'ScheduledActionName': scheduledActionName, + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (maxSize != null) 'MaxSize': maxSize.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (recurrence != null) 'Recurrence': recurrence, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (timeZone != null) 'TimeZone': timeZone, + }; + } } class SetInstanceProtectionAnswer { @@ -11908,6 +12795,19 @@ class StepAdjustment { 'MetricIntervalUpperBound': metricIntervalUpperBound, }; } + + Map toQueryMap() { + final scalingAdjustment = this.scalingAdjustment; + final metricIntervalLowerBound = this.metricIntervalLowerBound; + final metricIntervalUpperBound = this.metricIntervalUpperBound; + return { + 'ScalingAdjustment': scalingAdjustment.toString(), + if (metricIntervalLowerBound != null) + 'MetricIntervalLowerBound': metricIntervalLowerBound.toString(), + if (metricIntervalUpperBound != null) + 'MetricIntervalUpperBound': metricIntervalUpperBound.toString(), + }; + } } /// Describes an auto scaling process that has been suspended. @@ -11984,6 +12884,22 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final propagateAtLaunch = this.propagateAtLaunch; + final resourceId = this.resourceId; + final resourceType = this.resourceType; + final value = this.value; + return { + 'Key': key, + if (propagateAtLaunch != null) + 'PropagateAtLaunch': propagateAtLaunch.toString(), + if (resourceId != null) 'ResourceId': resourceId, + if (resourceType != null) 'ResourceType': resourceType, + if (value != null) 'Value': value, + }; + } } /// Describes a tag for an Auto Scaling group. @@ -12131,6 +13047,23 @@ class TargetTrackingConfiguration { 'PredefinedMetricSpecification': predefinedMetricSpecification, }; } + + Map toQueryMap() { + final targetValue = this.targetValue; + final customizedMetricSpecification = this.customizedMetricSpecification; + final disableScaleIn = this.disableScaleIn; + final predefinedMetricSpecification = this.predefinedMetricSpecification; + return { + 'TargetValue': targetValue.toString(), + if (customizedMetricSpecification != null) + for (var e1 in customizedMetricSpecification.toQueryMap().entries) + 'CustomizedMetricSpecification.${e1.key}': e1.value, + if (disableScaleIn != null) 'DisableScaleIn': disableScaleIn.toString(), + if (predefinedMetricSpecification != null) + for (var e1 in predefinedMetricSpecification.toQueryMap().entries) + 'PredefinedMetricSpecification.${e1.key}': e1.value, + }; + } } /// The metric data to return. Also defines whether this call is returning data @@ -12216,6 +13149,23 @@ class TargetTrackingMetricDataQuery { if (returnData != null) 'ReturnData': returnData, }; } + + Map toQueryMap() { + final id = this.id; + final expression = this.expression; + final label = this.label; + final metricStat = this.metricStat; + final returnData = this.returnData; + return { + 'Id': id, + if (expression != null) 'Expression': expression, + if (label != null) 'Label': label, + if (metricStat != null) + for (var e1 in metricStat.toQueryMap().entries) + 'MetricStat.${e1.key}': e1.value, + if (returnData != null) 'ReturnData': returnData.toString(), + }; + } } /// This structure defines the CloudWatch metric to return, along with the @@ -12265,6 +13215,17 @@ class TargetTrackingMetricStat { if (unit != null) 'Unit': unit, }; } + + Map toQueryMap() { + final metric = this.metric; + final stat = this.stat; + final unit = this.unit; + return { + for (var e1 in metric.toQueryMap().entries) 'Metric.${e1.key}': e1.value, + 'Stat': stat, + if (unit != null) 'Unit': unit, + }; + } } /// Specifies the minimum and maximum for the TotalLocalStorageGB @@ -12296,6 +13257,15 @@ class TotalLocalStorageGBRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Identifying information for a traffic source. @@ -12375,6 +13345,15 @@ class TrafficSourceIdentifier { if (type != null) 'Type': type, }; } + + Map toQueryMap() { + final identifier = this.identifier; + final type = this.type; + return { + 'Identifier': identifier, + if (type != null) 'Type': type, + }; + } } /// Describes the state of a traffic source. @@ -12495,6 +13474,15 @@ class VCpuCountRequest { if (max != null) 'Max': max, }; } + + Map toQueryMap() { + final min = this.min; + final max = this.max; + return { + 'Min': min.toString(), + if (max != null) 'Max': max.toString(), + }; + } } /// Describes a warm pool configuration. diff --git a/aws_client/lib/src/generated/auto_scaling/v2011_01_01.meta.dart b/aws_client/lib/src/generated/auto_scaling/v2011_01_01.meta.dart deleted file mode 100644 index b2a170e62..000000000 --- a/aws_client/lib/src/generated/auto_scaling/v2011_01_01.meta.dart +++ /dev/null @@ -1,2896 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AcceleratorCountRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveInteger", "flattened": false}, - "Max": {"shape": "NullablePositiveInteger", "flattened": false} - }, - "flattened": false - }, - "AcceleratorManufacturer": {"type": "string", "flattened": false}, - "AcceleratorManufacturers": { - "type": "list", - "member": {"shape": "AcceleratorManufacturer"}, - "flattened": false - }, - "AcceleratorName": {"type": "string", "flattened": false}, - "AcceleratorNames": { - "type": "list", - "member": {"shape": "AcceleratorName"}, - "flattened": false - }, - "AcceleratorTotalMemoryMiBRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveInteger", "flattened": false}, - "Max": {"shape": "NullablePositiveInteger", "flattened": false} - }, - "flattened": false - }, - "AcceleratorType": {"type": "string", "flattened": false}, - "AcceleratorTypes": { - "type": "list", - "member": {"shape": "AcceleratorType"}, - "flattened": false - }, - "Activities": { - "type": "list", - "member": {"shape": "Activity"}, - "flattened": false - }, - "ActivitiesType": { - "type": "structure", - "members": { - "Activities": {"shape": "Activities", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "Activity": { - "type": "structure", - "members": { - "ActivityId": {"shape": "XmlString", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "Description": {"shape": "XmlString", "flattened": false}, - "Cause": {"shape": "XmlStringMaxLen1023", "flattened": false}, - "StartTime": {"shape": "TimestampType", "flattened": false}, - "EndTime": {"shape": "TimestampType", "flattened": false}, - "StatusCode": {"shape": "ScalingActivityStatusCode", "flattened": false}, - "StatusMessage": {"shape": "XmlStringMaxLen255", "flattened": false}, - "Progress": {"shape": "Progress", "flattened": false}, - "Details": {"shape": "XmlString", "flattened": false}, - "AutoScalingGroupState": { - "shape": "AutoScalingGroupState", - "flattened": false - }, - "AutoScalingGroupARN": {"shape": "ResourceName", "flattened": false} - }, - "flattened": false - }, - "ActivityIds": { - "type": "list", - "member": {"shape": "XmlString"}, - "flattened": false - }, - "ActivityType": { - "type": "structure", - "members": { - "Activity": {"shape": "Activity", "flattened": false} - }, - "flattened": false - }, - "AdjustmentType": { - "type": "structure", - "members": { - "AdjustmentType": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "AdjustmentTypes": { - "type": "list", - "member": {"shape": "AdjustmentType"}, - "flattened": false - }, - "Alarm": { - "type": "structure", - "members": { - "AlarmName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "AlarmARN": {"shape": "ResourceName", "flattened": false} - }, - "flattened": false - }, - "AlarmList": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "AlarmSpecification": { - "type": "structure", - "members": { - "Alarms": {"shape": "AlarmList", "flattened": false} - }, - "flattened": false - }, - "Alarms": { - "type": "list", - "member": {"shape": "Alarm"}, - "flattened": false - }, - "AllowedInstanceType": {"type": "string", "flattened": false}, - "AllowedInstanceTypes": { - "type": "list", - "member": {"shape": "AllowedInstanceType"}, - "flattened": false - }, - "AnyPrintableAsciiStringMaxLen4000": {"type": "string", "flattened": false}, - "AsciiStringMaxLen255": {"type": "string", "flattened": false}, - "AssociatePublicIpAddress": {"type": "boolean", "flattened": false}, - "AttachInstancesQuery": { - "type": "structure", - "members": { - "InstanceIds": {"shape": "InstanceIds", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - } - }, - "flattened": false - }, - "AttachLoadBalancerTargetGroupsResultType": { - "type": "structure", - "members": {}, - "flattened": false - }, - "AttachLoadBalancerTargetGroupsType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TargetGroupARNs": {"shape": "TargetGroupARNs", "flattened": false} - }, - "flattened": false - }, - "AttachLoadBalancersResultType": { - "type": "structure", - "members": {}, - "flattened": false - }, - "AttachLoadBalancersType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LoadBalancerNames": {"shape": "LoadBalancerNames", "flattened": false} - }, - "flattened": false - }, - "AttachTrafficSourcesResultType": { - "type": "structure", - "members": {}, - "flattened": false - }, - "AttachTrafficSourcesType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TrafficSources": {"shape": "TrafficSources", "flattened": false} - }, - "flattened": false - }, - "AutoRollback": {"type": "boolean", "flattened": false}, - "AutoScalingGroup": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "AutoScalingGroupARN": {"shape": "ResourceName", "flattened": false}, - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchTemplate": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "MixedInstancesPolicy": { - "shape": "MixedInstancesPolicy", - "flattened": false - }, - "MinSize": {"shape": "AutoScalingGroupMinSize", "flattened": false}, - "MaxSize": {"shape": "AutoScalingGroupMaxSize", "flattened": false}, - "DesiredCapacity": { - "shape": "AutoScalingGroupDesiredCapacity", - "flattened": false - }, - "PredictedCapacity": { - "shape": "AutoScalingGroupPredictedCapacity", - "flattened": false - }, - "DefaultCooldown": {"shape": "Cooldown", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "LoadBalancerNames": {"shape": "LoadBalancerNames", "flattened": false}, - "TargetGroupARNs": {"shape": "TargetGroupARNs", "flattened": false}, - "HealthCheckType": {"shape": "XmlStringMaxLen32", "flattened": false}, - "HealthCheckGracePeriod": { - "shape": "HealthCheckGracePeriod", - "flattened": false - }, - "Instances": {"shape": "Instances", "flattened": false}, - "CreatedTime": {"shape": "TimestampType", "flattened": false}, - "SuspendedProcesses": {"shape": "SuspendedProcesses", "flattened": false}, - "PlacementGroup": {"shape": "XmlStringMaxLen255", "flattened": false}, - "VPCZoneIdentifier": {"shape": "XmlStringMaxLen2047", "flattened": false}, - "EnabledMetrics": {"shape": "EnabledMetrics", "flattened": false}, - "Status": {"shape": "XmlStringMaxLen255", "flattened": false}, - "Tags": {"shape": "TagDescriptionList", "flattened": false}, - "TerminationPolicies": { - "shape": "TerminationPolicies", - "flattened": false - }, - "NewInstancesProtectedFromScaleIn": { - "shape": "InstanceProtected", - "flattened": false - }, - "ServiceLinkedRoleARN": {"shape": "ResourceName", "flattened": false}, - "MaxInstanceLifetime": { - "shape": "MaxInstanceLifetime", - "flattened": false - }, - "CapacityRebalance": { - "shape": "CapacityRebalanceEnabled", - "flattened": false - }, - "WarmPoolConfiguration": { - "shape": "WarmPoolConfiguration", - "flattened": false - }, - "WarmPoolSize": {"shape": "WarmPoolSize", "flattened": false}, - "Context": {"shape": "Context", "flattened": false}, - "DesiredCapacityType": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "DefaultInstanceWarmup": { - "shape": "DefaultInstanceWarmup", - "flattened": false - }, - "TrafficSources": {"shape": "TrafficSources", "flattened": false}, - "InstanceMaintenancePolicy": { - "shape": "InstanceMaintenancePolicy", - "flattened": false - } - }, - "flattened": false - }, - "AutoScalingGroupDesiredCapacity": {"type": "integer", "flattened": false}, - "AutoScalingGroupMaxSize": {"type": "integer", "flattened": false}, - "AutoScalingGroupMinSize": {"type": "integer", "flattened": false}, - "AutoScalingGroupNames": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "AutoScalingGroupNamesType": { - "type": "structure", - "members": { - "AutoScalingGroupNames": { - "shape": "AutoScalingGroupNames", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "Filters": {"shape": "Filters", "flattened": false} - }, - "flattened": false - }, - "AutoScalingGroupPredictedCapacity": {"type": "integer", "flattened": false}, - "AutoScalingGroupState": {"type": "string", "flattened": false}, - "AutoScalingGroups": { - "type": "list", - "member": {"shape": "AutoScalingGroup"}, - "flattened": false - }, - "AutoScalingGroupsType": { - "type": "structure", - "members": { - "AutoScalingGroups": {"shape": "AutoScalingGroups", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "AutoScalingInstanceDetails": { - "type": "structure", - "members": { - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false}, - "InstanceType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "AvailabilityZone": {"shape": "XmlStringMaxLen255", "flattened": false}, - "LifecycleState": {"shape": "XmlStringMaxLen32", "flattened": false}, - "HealthStatus": {"shape": "XmlStringMaxLen32", "flattened": false}, - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchTemplate": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "ProtectedFromScaleIn": { - "shape": "InstanceProtected", - "flattened": false - }, - "WeightedCapacity": {"shape": "XmlStringMaxLen32", "flattened": false} - }, - "flattened": false - }, - "AutoScalingInstances": { - "type": "list", - "member": {"shape": "AutoScalingInstanceDetails"}, - "flattened": false - }, - "AutoScalingInstancesType": { - "type": "structure", - "members": { - "AutoScalingInstances": { - "shape": "AutoScalingInstances", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "AutoScalingNotificationTypes": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "AvailabilityZones": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "BareMetal": {"type": "string", "flattened": false}, - "BaselineEbsBandwidthMbpsRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveInteger", "flattened": false}, - "Max": {"shape": "NullablePositiveInteger", "flattened": false} - }, - "flattened": false - }, - "BatchDeleteScheduledActionAnswer": { - "type": "structure", - "members": { - "FailedScheduledActions": { - "shape": "FailedScheduledUpdateGroupActionRequests", - "flattened": false - } - }, - "flattened": false - }, - "BatchDeleteScheduledActionType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScheduledActionNames": { - "shape": "ScheduledActionNames", - "flattened": false - } - }, - "flattened": false - }, - "BatchPutScheduledUpdateGroupActionAnswer": { - "type": "structure", - "members": { - "FailedScheduledUpdateGroupActions": { - "shape": "FailedScheduledUpdateGroupActionRequests", - "flattened": false - } - }, - "flattened": false - }, - "BatchPutScheduledUpdateGroupActionType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScheduledUpdateGroupActions": { - "shape": "ScheduledUpdateGroupActionRequests", - "flattened": false - } - }, - "flattened": false - }, - "BlockDeviceEbsDeleteOnTermination": {"type": "boolean", "flattened": false}, - "BlockDeviceEbsEncrypted": {"type": "boolean", "flattened": false}, - "BlockDeviceEbsIops": {"type": "integer", "flattened": false}, - "BlockDeviceEbsThroughput": {"type": "integer", "flattened": false}, - "BlockDeviceEbsVolumeSize": {"type": "integer", "flattened": false}, - "BlockDeviceEbsVolumeType": {"type": "string", "flattened": false}, - "BlockDeviceMapping": { - "type": "structure", - "members": { - "VirtualName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "DeviceName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "Ebs": {"shape": "Ebs", "flattened": false}, - "NoDevice": {"shape": "NoDevice", "flattened": false} - }, - "flattened": false - }, - "BlockDeviceMappings": { - "type": "list", - "member": {"shape": "BlockDeviceMapping"}, - "flattened": false - }, - "BurstablePerformance": {"type": "string", "flattened": false}, - "CancelInstanceRefreshAnswer": { - "type": "structure", - "members": { - "InstanceRefreshId": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "CancelInstanceRefreshType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - } - }, - "flattened": false - }, - "CapacityForecast": { - "type": "structure", - "members": { - "Timestamps": { - "shape": "PredictiveScalingForecastTimestamps", - "flattened": false - }, - "Values": {"shape": "PredictiveScalingForecastValues", "flattened": false} - }, - "flattened": false - }, - "CapacityRebalanceEnabled": {"type": "boolean", "flattened": false}, - "CheckpointDelay": {"type": "integer", "flattened": false}, - "CheckpointPercentages": { - "type": "list", - "member": {"shape": "NonZeroIntPercent"}, - "flattened": false - }, - "ClassicLinkVPCSecurityGroups": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "CompleteLifecycleActionAnswer": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CompleteLifecycleActionType": { - "type": "structure", - "members": { - "LifecycleHookName": { - "shape": "AsciiStringMaxLen255", - "flattened": false - }, - "AutoScalingGroupName": {"shape": "ResourceName", "flattened": false}, - "LifecycleActionToken": { - "shape": "LifecycleActionToken", - "flattened": false - }, - "LifecycleActionResult": { - "shape": "LifecycleActionResult", - "flattened": false - }, - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false} - }, - "flattened": false - }, - "Context": {"type": "string", "flattened": false}, - "Cooldown": {"type": "integer", "flattened": false}, - "CpuManufacturer": {"type": "string", "flattened": false}, - "CpuManufacturers": { - "type": "list", - "member": {"shape": "CpuManufacturer"}, - "flattened": false - }, - "CreateAutoScalingGroupType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchTemplate": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "MixedInstancesPolicy": { - "shape": "MixedInstancesPolicy", - "flattened": false - }, - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false}, - "MinSize": {"shape": "AutoScalingGroupMinSize", "flattened": false}, - "MaxSize": {"shape": "AutoScalingGroupMaxSize", "flattened": false}, - "DesiredCapacity": { - "shape": "AutoScalingGroupDesiredCapacity", - "flattened": false - }, - "DefaultCooldown": {"shape": "Cooldown", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "LoadBalancerNames": {"shape": "LoadBalancerNames", "flattened": false}, - "TargetGroupARNs": {"shape": "TargetGroupARNs", "flattened": false}, - "HealthCheckType": {"shape": "XmlStringMaxLen32", "flattened": false}, - "HealthCheckGracePeriod": { - "shape": "HealthCheckGracePeriod", - "flattened": false - }, - "PlacementGroup": {"shape": "XmlStringMaxLen255", "flattened": false}, - "VPCZoneIdentifier": {"shape": "XmlStringMaxLen2047", "flattened": false}, - "TerminationPolicies": { - "shape": "TerminationPolicies", - "flattened": false - }, - "NewInstancesProtectedFromScaleIn": { - "shape": "InstanceProtected", - "flattened": false - }, - "CapacityRebalance": { - "shape": "CapacityRebalanceEnabled", - "flattened": false - }, - "LifecycleHookSpecificationList": { - "shape": "LifecycleHookSpecifications", - "flattened": false - }, - "Tags": {"shape": "Tags", "flattened": false}, - "ServiceLinkedRoleARN": {"shape": "ResourceName", "flattened": false}, - "MaxInstanceLifetime": { - "shape": "MaxInstanceLifetime", - "flattened": false - }, - "Context": {"shape": "Context", "flattened": false}, - "DesiredCapacityType": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "DefaultInstanceWarmup": { - "shape": "DefaultInstanceWarmup", - "flattened": false - }, - "TrafficSources": {"shape": "TrafficSources", "flattened": false}, - "InstanceMaintenancePolicy": { - "shape": "InstanceMaintenancePolicy", - "flattened": false - } - }, - "flattened": false - }, - "CreateLaunchConfigurationType": { - "type": "structure", - "members": { - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ImageId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "KeyName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false}, - "ClassicLinkVPCId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "ClassicLinkVPCSecurityGroups": { - "shape": "ClassicLinkVPCSecurityGroups", - "flattened": false - }, - "UserData": {"shape": "XmlStringUserData", "flattened": false}, - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false}, - "InstanceType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "KernelId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "RamdiskId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "BlockDeviceMappings": { - "shape": "BlockDeviceMappings", - "flattened": false - }, - "InstanceMonitoring": {"shape": "InstanceMonitoring", "flattened": false}, - "SpotPrice": {"shape": "SpotPrice", "flattened": false}, - "IamInstanceProfile": { - "shape": "XmlStringMaxLen1600", - "flattened": false - }, - "EbsOptimized": {"shape": "EbsOptimized", "flattened": false}, - "AssociatePublicIpAddress": { - "shape": "AssociatePublicIpAddress", - "flattened": false - }, - "PlacementTenancy": {"shape": "XmlStringMaxLen64", "flattened": false}, - "MetadataOptions": { - "shape": "InstanceMetadataOptions", - "flattened": false - } - }, - "flattened": false - }, - "CreateOrUpdateTagsType": { - "type": "structure", - "members": { - "Tags": {"shape": "Tags", "flattened": false} - }, - "flattened": false - }, - "CustomizedMetricSpecification": { - "type": "structure", - "members": { - "MetricName": {"shape": "MetricName", "flattened": false}, - "Namespace": {"shape": "MetricNamespace", "flattened": false}, - "Dimensions": {"shape": "MetricDimensions", "flattened": false}, - "Statistic": {"shape": "MetricStatistic", "flattened": false}, - "Unit": {"shape": "MetricUnit", "flattened": false}, - "Metrics": { - "shape": "TargetTrackingMetricDataQueries", - "flattened": false - } - }, - "flattened": false - }, - "DefaultInstanceWarmup": {"type": "integer", "flattened": false}, - "DeleteAutoScalingGroupType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ForceDelete": {"shape": "ForceDelete", "flattened": false} - }, - "flattened": false - }, - "DeleteLifecycleHookAnswer": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteLifecycleHookType": { - "type": "structure", - "members": { - "LifecycleHookName": { - "shape": "AsciiStringMaxLen255", - "flattened": false - }, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - } - }, - "flattened": false - }, - "DeleteNotificationConfigurationType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TopicARN": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "DeletePolicyType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "PolicyName": {"shape": "ResourceName", "flattened": false} - }, - "flattened": false - }, - "DeleteScheduledActionType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScheduledActionName": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "DeleteTagsType": { - "type": "structure", - "members": { - "Tags": {"shape": "Tags", "flattened": false} - }, - "flattened": false - }, - "DeleteWarmPoolAnswer": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteWarmPoolType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ForceDelete": {"shape": "ForceDelete", "flattened": false} - }, - "flattened": false - }, - "DescribeAccountLimitsAnswer": { - "type": "structure", - "members": { - "MaxNumberOfAutoScalingGroups": { - "shape": "MaxNumberOfAutoScalingGroups", - "flattened": false - }, - "MaxNumberOfLaunchConfigurations": { - "shape": "MaxNumberOfLaunchConfigurations", - "flattened": false - }, - "NumberOfAutoScalingGroups": { - "shape": "NumberOfAutoScalingGroups", - "flattened": false - }, - "NumberOfLaunchConfigurations": { - "shape": "NumberOfLaunchConfigurations", - "flattened": false - } - }, - "flattened": false - }, - "DescribeAdjustmentTypesAnswer": { - "type": "structure", - "members": { - "AdjustmentTypes": {"shape": "AdjustmentTypes", "flattened": false} - }, - "flattened": false - }, - "DescribeAutoScalingInstancesType": { - "type": "structure", - "members": { - "InstanceIds": {"shape": "InstanceIds", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeAutoScalingNotificationTypesAnswer": { - "type": "structure", - "members": { - "AutoScalingNotificationTypes": { - "shape": "AutoScalingNotificationTypes", - "flattened": false - } - }, - "flattened": false - }, - "DescribeInstanceRefreshesAnswer": { - "type": "structure", - "members": { - "InstanceRefreshes": {"shape": "InstanceRefreshes", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeInstanceRefreshesType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "InstanceRefreshIds": {"shape": "InstanceRefreshIds", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeLifecycleHookTypesAnswer": { - "type": "structure", - "members": { - "LifecycleHookTypes": { - "shape": "AutoScalingNotificationTypes", - "flattened": false - } - }, - "flattened": false - }, - "DescribeLifecycleHooksAnswer": { - "type": "structure", - "members": { - "LifecycleHooks": {"shape": "LifecycleHooks", "flattened": false} - }, - "flattened": false - }, - "DescribeLifecycleHooksType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LifecycleHookNames": {"shape": "LifecycleHookNames", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerTargetGroupsRequest": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerTargetGroupsResponse": { - "type": "structure", - "members": { - "LoadBalancerTargetGroups": { - "shape": "LoadBalancerTargetGroupStates", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancersRequest": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancersResponse": { - "type": "structure", - "members": { - "LoadBalancers": {"shape": "LoadBalancerStates", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeMetricCollectionTypesAnswer": { - "type": "structure", - "members": { - "Metrics": {"shape": "MetricCollectionTypes", "flattened": false}, - "Granularities": {"shape": "MetricGranularityTypes", "flattened": false} - }, - "flattened": false - }, - "DescribeNotificationConfigurationsAnswer": { - "type": "structure", - "members": { - "NotificationConfigurations": { - "shape": "NotificationConfigurations", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeNotificationConfigurationsType": { - "type": "structure", - "members": { - "AutoScalingGroupNames": { - "shape": "AutoScalingGroupNames", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribePoliciesType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "PolicyNames": {"shape": "PolicyNames", "flattened": false}, - "PolicyTypes": {"shape": "PolicyTypes", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeScalingActivitiesType": { - "type": "structure", - "members": { - "ActivityIds": {"shape": "ActivityIds", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "IncludeDeletedGroups": { - "shape": "IncludeDeletedGroups", - "flattened": false - }, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeScheduledActionsType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScheduledActionNames": { - "shape": "ScheduledActionNames", - "flattened": false - }, - "StartTime": {"shape": "TimestampType", "flattened": false}, - "EndTime": {"shape": "TimestampType", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeTagsType": { - "type": "structure", - "members": { - "Filters": {"shape": "Filters", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeTerminationPolicyTypesAnswer": { - "type": "structure", - "members": { - "TerminationPolicyTypes": { - "shape": "TerminationPolicies", - "flattened": false - } - }, - "flattened": false - }, - "DescribeTrafficSourcesRequest": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TrafficSourceType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeTrafficSourcesResponse": { - "type": "structure", - "members": { - "TrafficSources": {"shape": "TrafficSourceStates", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeWarmPoolAnswer": { - "type": "structure", - "members": { - "WarmPoolConfiguration": { - "shape": "WarmPoolConfiguration", - "flattened": false - }, - "Instances": {"shape": "Instances", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DescribeWarmPoolType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "DesiredConfiguration": { - "type": "structure", - "members": { - "LaunchTemplate": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "MixedInstancesPolicy": { - "shape": "MixedInstancesPolicy", - "flattened": false - } - }, - "flattened": false - }, - "DetachInstancesAnswer": { - "type": "structure", - "members": { - "Activities": {"shape": "Activities", "flattened": false} - }, - "flattened": false - }, - "DetachInstancesQuery": { - "type": "structure", - "members": { - "InstanceIds": {"shape": "InstanceIds", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ShouldDecrementDesiredCapacity": { - "shape": "ShouldDecrementDesiredCapacity", - "flattened": false - } - }, - "flattened": false - }, - "DetachLoadBalancerTargetGroupsResultType": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DetachLoadBalancerTargetGroupsType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TargetGroupARNs": {"shape": "TargetGroupARNs", "flattened": false} - }, - "flattened": false - }, - "DetachLoadBalancersResultType": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DetachLoadBalancersType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LoadBalancerNames": {"shape": "LoadBalancerNames", "flattened": false} - }, - "flattened": false - }, - "DetachTrafficSourcesResultType": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DetachTrafficSourcesType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TrafficSources": {"shape": "TrafficSources", "flattened": false} - }, - "flattened": false - }, - "DisableMetricsCollectionQuery": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "Metrics": {"shape": "Metrics", "flattened": false} - }, - "flattened": false - }, - "DisableScaleIn": {"type": "boolean", "flattened": false}, - "Ebs": { - "type": "structure", - "members": { - "SnapshotId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "VolumeSize": {"shape": "BlockDeviceEbsVolumeSize", "flattened": false}, - "VolumeType": {"shape": "BlockDeviceEbsVolumeType", "flattened": false}, - "DeleteOnTermination": { - "shape": "BlockDeviceEbsDeleteOnTermination", - "flattened": false - }, - "Iops": {"shape": "BlockDeviceEbsIops", "flattened": false}, - "Encrypted": {"shape": "BlockDeviceEbsEncrypted", "flattened": false}, - "Throughput": {"shape": "BlockDeviceEbsThroughput", "flattened": false} - }, - "flattened": false - }, - "EbsOptimized": {"type": "boolean", "flattened": false}, - "EnableMetricsCollectionQuery": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "Metrics": {"shape": "Metrics", "flattened": false}, - "Granularity": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "EnabledMetric": { - "type": "structure", - "members": { - "Metric": {"shape": "XmlStringMaxLen255", "flattened": false}, - "Granularity": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "EnabledMetrics": { - "type": "list", - "member": {"shape": "EnabledMetric"}, - "flattened": false - }, - "EnterStandbyAnswer": { - "type": "structure", - "members": { - "Activities": {"shape": "Activities", "flattened": false} - }, - "flattened": false - }, - "EnterStandbyQuery": { - "type": "structure", - "members": { - "InstanceIds": {"shape": "InstanceIds", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ShouldDecrementDesiredCapacity": { - "shape": "ShouldDecrementDesiredCapacity", - "flattened": false - } - }, - "flattened": false - }, - "EstimatedInstanceWarmup": {"type": "integer", "flattened": false}, - "ExcludedInstance": {"type": "string", "flattened": false}, - "ExcludedInstanceTypes": { - "type": "list", - "member": {"shape": "ExcludedInstance"}, - "flattened": false - }, - "ExecutePolicyType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "PolicyName": {"shape": "ResourceName", "flattened": false}, - "HonorCooldown": {"shape": "HonorCooldown", "flattened": false}, - "MetricValue": {"shape": "MetricScale", "flattened": false}, - "BreachThreshold": {"shape": "MetricScale", "flattened": false} - }, - "flattened": false - }, - "ExitStandbyAnswer": { - "type": "structure", - "members": { - "Activities": {"shape": "Activities", "flattened": false} - }, - "flattened": false - }, - "ExitStandbyQuery": { - "type": "structure", - "members": { - "InstanceIds": {"shape": "InstanceIds", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - } - }, - "flattened": false - }, - "FailedScheduledUpdateGroupActionRequest": { - "type": "structure", - "members": { - "ScheduledActionName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ErrorCode": {"shape": "XmlStringMaxLen64", "flattened": false}, - "ErrorMessage": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "FailedScheduledUpdateGroupActionRequests": { - "type": "list", - "member": {"shape": "FailedScheduledUpdateGroupActionRequest"}, - "flattened": false - }, - "Filter": { - "type": "structure", - "members": { - "Name": {"shape": "XmlString", "flattened": false}, - "Values": {"shape": "Values", "flattened": false} - }, - "flattened": false - }, - "Filters": { - "type": "list", - "member": {"shape": "Filter"}, - "flattened": false - }, - "ForceDelete": {"type": "boolean", "flattened": false}, - "GetPredictiveScalingForecastAnswer": { - "type": "structure", - "members": { - "LoadForecast": {"shape": "LoadForecasts", "flattened": false}, - "CapacityForecast": {"shape": "CapacityForecast", "flattened": false}, - "UpdateTime": {"shape": "TimestampType", "flattened": false} - }, - "flattened": false - }, - "GetPredictiveScalingForecastType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "PolicyName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "StartTime": {"shape": "TimestampType", "flattened": false}, - "EndTime": {"shape": "TimestampType", "flattened": false} - }, - "flattened": false - }, - "GlobalTimeout": {"type": "integer", "flattened": false}, - "HealthCheckGracePeriod": {"type": "integer", "flattened": false}, - "HeartbeatTimeout": {"type": "integer", "flattened": false}, - "HonorCooldown": {"type": "boolean", "flattened": false}, - "IncludeDeletedGroups": {"type": "boolean", "flattened": false}, - "Instance": { - "type": "structure", - "members": { - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false}, - "InstanceType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "AvailabilityZone": {"shape": "XmlStringMaxLen255", "flattened": false}, - "LifecycleState": {"shape": "LifecycleState", "flattened": false}, - "HealthStatus": {"shape": "XmlStringMaxLen32", "flattened": false}, - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchTemplate": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "ProtectedFromScaleIn": { - "shape": "InstanceProtected", - "flattened": false - }, - "WeightedCapacity": {"shape": "XmlStringMaxLen32", "flattened": false} - }, - "flattened": false - }, - "InstanceGeneration": {"type": "string", "flattened": false}, - "InstanceGenerations": { - "type": "list", - "member": {"shape": "InstanceGeneration"}, - "flattened": false - }, - "InstanceIds": { - "type": "list", - "member": {"shape": "XmlStringMaxLen19"}, - "flattened": false - }, - "InstanceMaintenancePolicy": { - "type": "structure", - "members": { - "MinHealthyPercentage": { - "shape": "IntPercentResettable", - "flattened": false - }, - "MaxHealthyPercentage": { - "shape": "IntPercent100To200Resettable", - "flattened": false - } - }, - "flattened": false - }, - "InstanceMetadataEndpointState": {"type": "string", "flattened": false}, - "InstanceMetadataHttpPutResponseHopLimit": { - "type": "integer", - "flattened": false - }, - "InstanceMetadataHttpTokensState": {"type": "string", "flattened": false}, - "InstanceMetadataOptions": { - "type": "structure", - "members": { - "HttpTokens": { - "shape": "InstanceMetadataHttpTokensState", - "flattened": false - }, - "HttpPutResponseHopLimit": { - "shape": "InstanceMetadataHttpPutResponseHopLimit", - "flattened": false - }, - "HttpEndpoint": { - "shape": "InstanceMetadataEndpointState", - "flattened": false - } - }, - "flattened": false - }, - "InstanceMonitoring": { - "type": "structure", - "members": { - "Enabled": {"shape": "MonitoringEnabled", "flattened": false} - }, - "flattened": false - }, - "InstanceProtected": {"type": "boolean", "flattened": false}, - "InstanceRefresh": { - "type": "structure", - "members": { - "InstanceRefreshId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "Status": {"shape": "InstanceRefreshStatus", "flattened": false}, - "StatusReason": {"shape": "XmlStringMaxLen1023", "flattened": false}, - "StartTime": {"shape": "TimestampType", "flattened": false}, - "EndTime": {"shape": "TimestampType", "flattened": false}, - "PercentageComplete": {"shape": "IntPercent", "flattened": false}, - "InstancesToUpdate": {"shape": "InstancesToUpdate", "flattened": false}, - "ProgressDetails": { - "shape": "InstanceRefreshProgressDetails", - "flattened": false - }, - "Preferences": {"shape": "RefreshPreferences", "flattened": false}, - "DesiredConfiguration": { - "shape": "DesiredConfiguration", - "flattened": false - }, - "RollbackDetails": {"shape": "RollbackDetails", "flattened": false} - }, - "flattened": false - }, - "InstanceRefreshIds": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "InstanceRefreshLivePoolProgress": { - "type": "structure", - "members": { - "PercentageComplete": {"shape": "IntPercent", "flattened": false}, - "InstancesToUpdate": {"shape": "InstancesToUpdate", "flattened": false} - }, - "flattened": false - }, - "InstanceRefreshProgressDetails": { - "type": "structure", - "members": { - "LivePoolProgress": { - "shape": "InstanceRefreshLivePoolProgress", - "flattened": false - }, - "WarmPoolProgress": { - "shape": "InstanceRefreshWarmPoolProgress", - "flattened": false - } - }, - "flattened": false - }, - "InstanceRefreshStatus": {"type": "string", "flattened": false}, - "InstanceRefreshWarmPoolProgress": { - "type": "structure", - "members": { - "PercentageComplete": {"shape": "IntPercent", "flattened": false}, - "InstancesToUpdate": {"shape": "InstancesToUpdate", "flattened": false} - }, - "flattened": false - }, - "InstanceRefreshes": { - "type": "list", - "member": {"shape": "InstanceRefresh"}, - "flattened": false - }, - "InstanceRequirements": { - "type": "structure", - "members": { - "VCpuCount": {"shape": "VCpuCountRequest", "flattened": false}, - "MemoryMiB": {"shape": "MemoryMiBRequest", "flattened": false}, - "CpuManufacturers": {"shape": "CpuManufacturers", "flattened": false}, - "MemoryGiBPerVCpu": { - "shape": "MemoryGiBPerVCpuRequest", - "flattened": false - }, - "ExcludedInstanceTypes": { - "shape": "ExcludedInstanceTypes", - "flattened": false - }, - "InstanceGenerations": { - "shape": "InstanceGenerations", - "flattened": false - }, - "SpotMaxPricePercentageOverLowestPrice": { - "shape": "NullablePositiveInteger", - "flattened": false - }, - "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice": { - "shape": "NullablePositiveInteger", - "flattened": false - }, - "OnDemandMaxPricePercentageOverLowestPrice": { - "shape": "NullablePositiveInteger", - "flattened": false - }, - "BareMetal": {"shape": "BareMetal", "flattened": false}, - "BurstablePerformance": { - "shape": "BurstablePerformance", - "flattened": false - }, - "RequireHibernateSupport": { - "shape": "NullableBoolean", - "flattened": false - }, - "NetworkInterfaceCount": { - "shape": "NetworkInterfaceCountRequest", - "flattened": false - }, - "LocalStorage": {"shape": "LocalStorage", "flattened": false}, - "LocalStorageTypes": {"shape": "LocalStorageTypes", "flattened": false}, - "TotalLocalStorageGB": { - "shape": "TotalLocalStorageGBRequest", - "flattened": false - }, - "BaselineEbsBandwidthMbps": { - "shape": "BaselineEbsBandwidthMbpsRequest", - "flattened": false - }, - "AcceleratorTypes": {"shape": "AcceleratorTypes", "flattened": false}, - "AcceleratorCount": { - "shape": "AcceleratorCountRequest", - "flattened": false - }, - "AcceleratorManufacturers": { - "shape": "AcceleratorManufacturers", - "flattened": false - }, - "AcceleratorNames": {"shape": "AcceleratorNames", "flattened": false}, - "AcceleratorTotalMemoryMiB": { - "shape": "AcceleratorTotalMemoryMiBRequest", - "flattened": false - }, - "NetworkBandwidthGbps": { - "shape": "NetworkBandwidthGbpsRequest", - "flattened": false - }, - "AllowedInstanceTypes": { - "shape": "AllowedInstanceTypes", - "flattened": false - } - }, - "flattened": false - }, - "InstanceReusePolicy": { - "type": "structure", - "members": { - "ReuseOnScaleIn": {"shape": "ReuseOnScaleIn", "flattened": false} - }, - "flattened": false - }, - "Instances": { - "type": "list", - "member": {"shape": "Instance"}, - "flattened": false - }, - "InstancesDistribution": { - "type": "structure", - "members": { - "OnDemandAllocationStrategy": {"shape": "XmlString", "flattened": false}, - "OnDemandBaseCapacity": { - "shape": "OnDemandBaseCapacity", - "flattened": false - }, - "OnDemandPercentageAboveBaseCapacity": { - "shape": "OnDemandPercentageAboveBaseCapacity", - "flattened": false - }, - "SpotAllocationStrategy": {"shape": "XmlString", "flattened": false}, - "SpotInstancePools": {"shape": "SpotInstancePools", "flattened": false}, - "SpotMaxPrice": {"shape": "MixedInstanceSpotPrice", "flattened": false} - }, - "flattened": false - }, - "InstancesToUpdate": {"type": "integer", "flattened": false}, - "IntPercent": {"type": "integer", "flattened": false}, - "IntPercent100To200": {"type": "integer", "flattened": false}, - "IntPercent100To200Resettable": {"type": "integer", "flattened": false}, - "IntPercentResettable": {"type": "integer", "flattened": false}, - "LaunchConfiguration": { - "type": "structure", - "members": { - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchConfigurationARN": {"shape": "ResourceName", "flattened": false}, - "ImageId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "KeyName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false}, - "ClassicLinkVPCId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "ClassicLinkVPCSecurityGroups": { - "shape": "ClassicLinkVPCSecurityGroups", - "flattened": false - }, - "UserData": {"shape": "XmlStringUserData", "flattened": false}, - "InstanceType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "KernelId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "RamdiskId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "BlockDeviceMappings": { - "shape": "BlockDeviceMappings", - "flattened": false - }, - "InstanceMonitoring": {"shape": "InstanceMonitoring", "flattened": false}, - "SpotPrice": {"shape": "SpotPrice", "flattened": false}, - "IamInstanceProfile": { - "shape": "XmlStringMaxLen1600", - "flattened": false - }, - "CreatedTime": {"shape": "TimestampType", "flattened": false}, - "EbsOptimized": {"shape": "EbsOptimized", "flattened": false}, - "AssociatePublicIpAddress": { - "shape": "AssociatePublicIpAddress", - "flattened": false - }, - "PlacementTenancy": {"shape": "XmlStringMaxLen64", "flattened": false}, - "MetadataOptions": { - "shape": "InstanceMetadataOptions", - "flattened": false - } - }, - "flattened": false - }, - "LaunchConfigurationNameType": { - "type": "structure", - "members": { - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - } - }, - "flattened": false - }, - "LaunchConfigurationNames": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "LaunchConfigurationNamesType": { - "type": "structure", - "members": { - "LaunchConfigurationNames": { - "shape": "LaunchConfigurationNames", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "LaunchConfigurations": { - "type": "list", - "member": {"shape": "LaunchConfiguration"}, - "flattened": false - }, - "LaunchConfigurationsType": { - "type": "structure", - "members": { - "LaunchConfigurations": { - "shape": "LaunchConfigurations", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "LaunchTemplate": { - "type": "structure", - "members": { - "LaunchTemplateSpecification": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "Overrides": {"shape": "Overrides", "flattened": false} - }, - "flattened": false - }, - "LaunchTemplateName": {"type": "string", "flattened": false}, - "LaunchTemplateOverrides": { - "type": "structure", - "members": { - "InstanceType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "WeightedCapacity": {"shape": "XmlStringMaxLen32", "flattened": false}, - "LaunchTemplateSpecification": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "InstanceRequirements": { - "shape": "InstanceRequirements", - "flattened": false - } - }, - "flattened": false - }, - "LaunchTemplateSpecification": { - "type": "structure", - "members": { - "LaunchTemplateId": {"shape": "XmlStringMaxLen255", "flattened": false}, - "LaunchTemplateName": {"shape": "LaunchTemplateName", "flattened": false}, - "Version": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "LifecycleActionResult": {"type": "string", "flattened": false}, - "LifecycleActionToken": {"type": "string", "flattened": false}, - "LifecycleHook": { - "type": "structure", - "members": { - "LifecycleHookName": { - "shape": "AsciiStringMaxLen255", - "flattened": false - }, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LifecycleTransition": { - "shape": "LifecycleTransition", - "flattened": false - }, - "NotificationTargetARN": { - "shape": "NotificationTargetResourceName", - "flattened": false - }, - "RoleARN": {"shape": "XmlStringMaxLen255", "flattened": false}, - "NotificationMetadata": { - "shape": "AnyPrintableAsciiStringMaxLen4000", - "flattened": false - }, - "HeartbeatTimeout": {"shape": "HeartbeatTimeout", "flattened": false}, - "GlobalTimeout": {"shape": "GlobalTimeout", "flattened": false}, - "DefaultResult": {"shape": "LifecycleActionResult", "flattened": false} - }, - "flattened": false - }, - "LifecycleHookNames": { - "type": "list", - "member": {"shape": "AsciiStringMaxLen255"}, - "flattened": false - }, - "LifecycleHookSpecification": { - "type": "structure", - "members": { - "LifecycleHookName": { - "shape": "AsciiStringMaxLen255", - "flattened": false - }, - "LifecycleTransition": { - "shape": "LifecycleTransition", - "flattened": false - }, - "NotificationMetadata": { - "shape": "AnyPrintableAsciiStringMaxLen4000", - "flattened": false - }, - "HeartbeatTimeout": {"shape": "HeartbeatTimeout", "flattened": false}, - "DefaultResult": {"shape": "LifecycleActionResult", "flattened": false}, - "NotificationTargetARN": { - "shape": "NotificationTargetResourceName", - "flattened": false - }, - "RoleARN": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "LifecycleHookSpecifications": { - "type": "list", - "member": {"shape": "LifecycleHookSpecification"}, - "flattened": false - }, - "LifecycleHooks": { - "type": "list", - "member": {"shape": "LifecycleHook"}, - "flattened": false - }, - "LifecycleState": {"type": "string", "flattened": false}, - "LifecycleTransition": {"type": "string", "flattened": false}, - "LoadBalancerNames": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "LoadBalancerState": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "State": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "LoadBalancerStates": { - "type": "list", - "member": {"shape": "LoadBalancerState"}, - "flattened": false - }, - "LoadBalancerTargetGroupState": { - "type": "structure", - "members": { - "LoadBalancerTargetGroupARN": { - "shape": "XmlStringMaxLen511", - "flattened": false - }, - "State": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "LoadBalancerTargetGroupStates": { - "type": "list", - "member": {"shape": "LoadBalancerTargetGroupState"}, - "flattened": false - }, - "LoadForecast": { - "type": "structure", - "members": { - "Timestamps": { - "shape": "PredictiveScalingForecastTimestamps", - "flattened": false - }, - "Values": { - "shape": "PredictiveScalingForecastValues", - "flattened": false - }, - "MetricSpecification": { - "shape": "PredictiveScalingMetricSpecification", - "flattened": false - } - }, - "flattened": false - }, - "LoadForecasts": { - "type": "list", - "member": {"shape": "LoadForecast"}, - "flattened": false - }, - "LocalStorage": {"type": "string", "flattened": false}, - "LocalStorageType": {"type": "string", "flattened": false}, - "LocalStorageTypes": { - "type": "list", - "member": {"shape": "LocalStorageType"}, - "flattened": false - }, - "MaxGroupPreparedCapacity": {"type": "integer", "flattened": false}, - "MaxInstanceLifetime": {"type": "integer", "flattened": false}, - "MaxNumberOfAutoScalingGroups": {"type": "integer", "flattened": false}, - "MaxNumberOfLaunchConfigurations": {"type": "integer", "flattened": false}, - "MaxRecords": {"type": "integer", "flattened": false}, - "MemoryGiBPerVCpuRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveDouble", "flattened": false}, - "Max": {"shape": "NullablePositiveDouble", "flattened": false} - }, - "flattened": false - }, - "MemoryMiBRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveInteger", "flattened": false}, - "Max": {"shape": "NullablePositiveInteger", "flattened": false} - }, - "flattened": false - }, - "Metric": { - "type": "structure", - "members": { - "Namespace": {"shape": "MetricNamespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "MetricDimensions", "flattened": false} - }, - "flattened": false - }, - "MetricCollectionType": { - "type": "structure", - "members": { - "Metric": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "MetricCollectionTypes": { - "type": "list", - "member": {"shape": "MetricCollectionType"}, - "flattened": false - }, - "MetricDataQueries": { - "type": "list", - "member": {"shape": "MetricDataQuery"}, - "flattened": false - }, - "MetricDataQuery": { - "type": "structure", - "members": { - "Id": {"shape": "XmlStringMaxLen255", "flattened": false}, - "Expression": {"shape": "XmlStringMaxLen1023", "flattened": false}, - "MetricStat": {"shape": "MetricStat", "flattened": false}, - "Label": {"shape": "XmlStringMetricLabel", "flattened": false}, - "ReturnData": {"shape": "ReturnData", "flattened": false} - }, - "flattened": false - }, - "MetricDimension": { - "type": "structure", - "members": { - "Name": {"shape": "MetricDimensionName", "flattened": false}, - "Value": {"shape": "MetricDimensionValue", "flattened": false} - }, - "flattened": false - }, - "MetricDimensionName": {"type": "string", "flattened": false}, - "MetricDimensionValue": {"type": "string", "flattened": false}, - "MetricDimensions": { - "type": "list", - "member": {"shape": "MetricDimension"}, - "flattened": false - }, - "MetricGranularityType": { - "type": "structure", - "members": { - "Granularity": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "MetricGranularityTypes": { - "type": "list", - "member": {"shape": "MetricGranularityType"}, - "flattened": false - }, - "MetricName": {"type": "string", "flattened": false}, - "MetricNamespace": {"type": "string", "flattened": false}, - "MetricScale": {"type": "double", "flattened": false}, - "MetricStat": { - "type": "structure", - "members": { - "Metric": {"shape": "Metric", "flattened": false}, - "Stat": {"shape": "XmlStringMetricStat", "flattened": false}, - "Unit": {"shape": "MetricUnit", "flattened": false} - }, - "flattened": false - }, - "MetricStatistic": {"type": "string", "flattened": false}, - "MetricType": {"type": "string", "flattened": false}, - "MetricUnit": {"type": "string", "flattened": false}, - "Metrics": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "MinAdjustmentMagnitude": {"type": "integer", "flattened": false}, - "MinAdjustmentStep": {"type": "integer", "flattened": false}, - "MixedInstanceSpotPrice": {"type": "string", "flattened": false}, - "MixedInstancesPolicy": { - "type": "structure", - "members": { - "LaunchTemplate": {"shape": "LaunchTemplate", "flattened": false}, - "InstancesDistribution": { - "shape": "InstancesDistribution", - "flattened": false - } - }, - "flattened": false - }, - "MonitoringEnabled": {"type": "boolean", "flattened": false}, - "NetworkBandwidthGbpsRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveDouble", "flattened": false}, - "Max": {"shape": "NullablePositiveDouble", "flattened": false} - }, - "flattened": false - }, - "NetworkInterfaceCountRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveInteger", "flattened": false}, - "Max": {"shape": "NullablePositiveInteger", "flattened": false} - }, - "flattened": false - }, - "NoDevice": {"type": "boolean", "flattened": false}, - "NonZeroIntPercent": {"type": "integer", "flattened": false}, - "NotificationConfiguration": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TopicARN": {"shape": "XmlStringMaxLen255", "flattened": false}, - "NotificationType": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "NotificationConfigurations": { - "type": "list", - "member": {"shape": "NotificationConfiguration"}, - "flattened": false - }, - "NotificationTargetResourceName": {"type": "string", "flattened": false}, - "NullableBoolean": {"type": "boolean", "flattened": false}, - "NullablePositiveDouble": {"type": "double", "flattened": false}, - "NullablePositiveInteger": {"type": "integer", "flattened": false}, - "NumberOfAutoScalingGroups": {"type": "integer", "flattened": false}, - "NumberOfLaunchConfigurations": {"type": "integer", "flattened": false}, - "OnDemandBaseCapacity": {"type": "integer", "flattened": false}, - "OnDemandPercentageAboveBaseCapacity": { - "type": "integer", - "flattened": false - }, - "Overrides": { - "type": "list", - "member": {"shape": "LaunchTemplateOverrides"}, - "flattened": false - }, - "PoliciesType": { - "type": "structure", - "members": { - "ScalingPolicies": {"shape": "ScalingPolicies", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "PolicyARNType": { - "type": "structure", - "members": { - "PolicyARN": {"shape": "ResourceName", "flattened": false}, - "Alarms": {"shape": "Alarms", "flattened": false} - }, - "flattened": false - }, - "PolicyIncrement": {"type": "integer", "flattened": false}, - "PolicyNames": { - "type": "list", - "member": {"shape": "ResourceName"}, - "flattened": false - }, - "PolicyTypes": { - "type": "list", - "member": {"shape": "XmlStringMaxLen64"}, - "flattened": false - }, - "PredefinedLoadMetricType": {"type": "string", "flattened": false}, - "PredefinedMetricPairType": {"type": "string", "flattened": false}, - "PredefinedMetricSpecification": { - "type": "structure", - "members": { - "PredefinedMetricType": {"shape": "MetricType", "flattened": false}, - "ResourceLabel": {"shape": "XmlStringMaxLen1023", "flattened": false} - }, - "flattened": false - }, - "PredefinedScalingMetricType": {"type": "string", "flattened": false}, - "PredictiveScalingConfiguration": { - "type": "structure", - "members": { - "MetricSpecifications": { - "shape": "PredictiveScalingMetricSpecifications", - "flattened": false - }, - "Mode": {"shape": "PredictiveScalingMode", "flattened": false}, - "SchedulingBufferTime": { - "shape": "PredictiveScalingSchedulingBufferTime", - "flattened": false - }, - "MaxCapacityBreachBehavior": { - "shape": "PredictiveScalingMaxCapacityBreachBehavior", - "flattened": false - }, - "MaxCapacityBuffer": { - "shape": "PredictiveScalingMaxCapacityBuffer", - "flattened": false - } - }, - "flattened": false - }, - "PredictiveScalingCustomizedCapacityMetric": { - "type": "structure", - "members": { - "MetricDataQueries": {"shape": "MetricDataQueries", "flattened": false} - }, - "flattened": false - }, - "PredictiveScalingCustomizedLoadMetric": { - "type": "structure", - "members": { - "MetricDataQueries": {"shape": "MetricDataQueries", "flattened": false} - }, - "flattened": false - }, - "PredictiveScalingCustomizedScalingMetric": { - "type": "structure", - "members": { - "MetricDataQueries": {"shape": "MetricDataQueries", "flattened": false} - }, - "flattened": false - }, - "PredictiveScalingForecastTimestamps": { - "type": "list", - "member": {"shape": "TimestampType"}, - "flattened": false - }, - "PredictiveScalingForecastValues": { - "type": "list", - "member": {"shape": "MetricScale"}, - "flattened": false - }, - "PredictiveScalingMaxCapacityBreachBehavior": { - "type": "string", - "flattened": false - }, - "PredictiveScalingMaxCapacityBuffer": {"type": "integer", "flattened": false}, - "PredictiveScalingMetricSpecification": { - "type": "structure", - "members": { - "TargetValue": {"shape": "MetricScale", "flattened": false}, - "PredefinedMetricPairSpecification": { - "shape": "PredictiveScalingPredefinedMetricPair", - "flattened": false - }, - "PredefinedScalingMetricSpecification": { - "shape": "PredictiveScalingPredefinedScalingMetric", - "flattened": false - }, - "PredefinedLoadMetricSpecification": { - "shape": "PredictiveScalingPredefinedLoadMetric", - "flattened": false - }, - "CustomizedScalingMetricSpecification": { - "shape": "PredictiveScalingCustomizedScalingMetric", - "flattened": false - }, - "CustomizedLoadMetricSpecification": { - "shape": "PredictiveScalingCustomizedLoadMetric", - "flattened": false - }, - "CustomizedCapacityMetricSpecification": { - "shape": "PredictiveScalingCustomizedCapacityMetric", - "flattened": false - } - }, - "flattened": false - }, - "PredictiveScalingMetricSpecifications": { - "type": "list", - "member": {"shape": "PredictiveScalingMetricSpecification"}, - "flattened": false - }, - "PredictiveScalingMode": {"type": "string", "flattened": false}, - "PredictiveScalingPredefinedLoadMetric": { - "type": "structure", - "members": { - "PredefinedMetricType": { - "shape": "PredefinedLoadMetricType", - "flattened": false - }, - "ResourceLabel": {"shape": "XmlStringMaxLen1023", "flattened": false} - }, - "flattened": false - }, - "PredictiveScalingPredefinedMetricPair": { - "type": "structure", - "members": { - "PredefinedMetricType": { - "shape": "PredefinedMetricPairType", - "flattened": false - }, - "ResourceLabel": {"shape": "XmlStringMaxLen1023", "flattened": false} - }, - "flattened": false - }, - "PredictiveScalingPredefinedScalingMetric": { - "type": "structure", - "members": { - "PredefinedMetricType": { - "shape": "PredefinedScalingMetricType", - "flattened": false - }, - "ResourceLabel": {"shape": "XmlStringMaxLen1023", "flattened": false} - }, - "flattened": false - }, - "PredictiveScalingSchedulingBufferTime": { - "type": "integer", - "flattened": false - }, - "ProcessNames": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "ProcessType": { - "type": "structure", - "members": { - "ProcessName": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "Processes": { - "type": "list", - "member": {"shape": "ProcessType"}, - "flattened": false - }, - "ProcessesType": { - "type": "structure", - "members": { - "Processes": {"shape": "Processes", "flattened": false} - }, - "flattened": false - }, - "Progress": {"type": "integer", "flattened": false}, - "PropagateAtLaunch": {"type": "boolean", "flattened": false}, - "ProtectedFromScaleIn": {"type": "boolean", "flattened": false}, - "PutLifecycleHookAnswer": { - "type": "structure", - "members": {}, - "flattened": false - }, - "PutLifecycleHookType": { - "type": "structure", - "members": { - "LifecycleHookName": { - "shape": "AsciiStringMaxLen255", - "flattened": false - }, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LifecycleTransition": { - "shape": "LifecycleTransition", - "flattened": false - }, - "RoleARN": {"shape": "XmlStringMaxLen255", "flattened": false}, - "NotificationTargetARN": { - "shape": "NotificationTargetResourceName", - "flattened": false - }, - "NotificationMetadata": { - "shape": "AnyPrintableAsciiStringMaxLen4000", - "flattened": false - }, - "HeartbeatTimeout": {"shape": "HeartbeatTimeout", "flattened": false}, - "DefaultResult": {"shape": "LifecycleActionResult", "flattened": false} - }, - "flattened": false - }, - "PutNotificationConfigurationType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "TopicARN": {"shape": "XmlStringMaxLen255", "flattened": false}, - "NotificationTypes": { - "shape": "AutoScalingNotificationTypes", - "flattened": false - } - }, - "flattened": false - }, - "PutScalingPolicyType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "PolicyName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "PolicyType": {"shape": "XmlStringMaxLen64", "flattened": false}, - "AdjustmentType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "MinAdjustmentStep": {"shape": "MinAdjustmentStep", "flattened": false}, - "MinAdjustmentMagnitude": { - "shape": "MinAdjustmentMagnitude", - "flattened": false - }, - "ScalingAdjustment": {"shape": "PolicyIncrement", "flattened": false}, - "Cooldown": {"shape": "Cooldown", "flattened": false}, - "MetricAggregationType": { - "shape": "XmlStringMaxLen32", - "flattened": false - }, - "StepAdjustments": {"shape": "StepAdjustments", "flattened": false}, - "EstimatedInstanceWarmup": { - "shape": "EstimatedInstanceWarmup", - "flattened": false - }, - "TargetTrackingConfiguration": { - "shape": "TargetTrackingConfiguration", - "flattened": false - }, - "Enabled": {"shape": "ScalingPolicyEnabled", "flattened": false}, - "PredictiveScalingConfiguration": { - "shape": "PredictiveScalingConfiguration", - "flattened": false - } - }, - "flattened": false - }, - "PutScheduledUpdateGroupActionType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScheduledActionName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "Time": {"shape": "TimestampType", "flattened": false}, - "StartTime": {"shape": "TimestampType", "flattened": false}, - "EndTime": {"shape": "TimestampType", "flattened": false}, - "Recurrence": {"shape": "XmlStringMaxLen255", "flattened": false}, - "MinSize": {"shape": "AutoScalingGroupMinSize", "flattened": false}, - "MaxSize": {"shape": "AutoScalingGroupMaxSize", "flattened": false}, - "DesiredCapacity": { - "shape": "AutoScalingGroupDesiredCapacity", - "flattened": false - }, - "TimeZone": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "PutWarmPoolAnswer": {"type": "structure", "members": {}, "flattened": false}, - "PutWarmPoolType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "MaxGroupPreparedCapacity": { - "shape": "MaxGroupPreparedCapacity", - "flattened": false - }, - "MinSize": {"shape": "WarmPoolMinSize", "flattened": false}, - "PoolState": {"shape": "WarmPoolState", "flattened": false}, - "InstanceReusePolicy": { - "shape": "InstanceReusePolicy", - "flattened": false - } - }, - "flattened": false - }, - "RecordLifecycleActionHeartbeatAnswer": { - "type": "structure", - "members": {}, - "flattened": false - }, - "RecordLifecycleActionHeartbeatType": { - "type": "structure", - "members": { - "LifecycleHookName": { - "shape": "AsciiStringMaxLen255", - "flattened": false - }, - "AutoScalingGroupName": {"shape": "ResourceName", "flattened": false}, - "LifecycleActionToken": { - "shape": "LifecycleActionToken", - "flattened": false - }, - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false} - }, - "flattened": false - }, - "RefreshInstanceWarmup": {"type": "integer", "flattened": false}, - "RefreshPreferences": { - "type": "structure", - "members": { - "MinHealthyPercentage": {"shape": "IntPercent", "flattened": false}, - "InstanceWarmup": {"shape": "RefreshInstanceWarmup", "flattened": false}, - "CheckpointPercentages": { - "shape": "CheckpointPercentages", - "flattened": false - }, - "CheckpointDelay": {"shape": "CheckpointDelay", "flattened": false}, - "SkipMatching": {"shape": "SkipMatching", "flattened": false}, - "AutoRollback": {"shape": "AutoRollback", "flattened": false}, - "ScaleInProtectedInstances": { - "shape": "ScaleInProtectedInstances", - "flattened": false - }, - "StandbyInstances": {"shape": "StandbyInstances", "flattened": false}, - "AlarmSpecification": {"shape": "AlarmSpecification", "flattened": false}, - "MaxHealthyPercentage": { - "shape": "IntPercent100To200", - "flattened": false - } - }, - "flattened": false - }, - "RefreshStrategy": {"type": "string", "flattened": false}, - "ResourceName": {"type": "string", "flattened": false}, - "ReturnData": {"type": "boolean", "flattened": false}, - "ReuseOnScaleIn": {"type": "boolean", "flattened": false}, - "RollbackDetails": { - "type": "structure", - "members": { - "RollbackReason": {"shape": "XmlStringMaxLen1023", "flattened": false}, - "RollbackStartTime": {"shape": "TimestampType", "flattened": false}, - "PercentageCompleteOnRollback": { - "shape": "IntPercent", - "flattened": false - }, - "InstancesToUpdateOnRollback": { - "shape": "InstancesToUpdate", - "flattened": false - }, - "ProgressDetailsOnRollback": { - "shape": "InstanceRefreshProgressDetails", - "flattened": false - } - }, - "flattened": false - }, - "RollbackInstanceRefreshAnswer": { - "type": "structure", - "members": { - "InstanceRefreshId": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "RollbackInstanceRefreshType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - } - }, - "flattened": false - }, - "ScaleInProtectedInstances": {"type": "string", "flattened": false}, - "ScalingActivityStatusCode": {"type": "string", "flattened": false}, - "ScalingPolicies": { - "type": "list", - "member": {"shape": "ScalingPolicy"}, - "flattened": false - }, - "ScalingPolicy": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "PolicyName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "PolicyARN": {"shape": "ResourceName", "flattened": false}, - "PolicyType": {"shape": "XmlStringMaxLen64", "flattened": false}, - "AdjustmentType": {"shape": "XmlStringMaxLen255", "flattened": false}, - "MinAdjustmentStep": {"shape": "MinAdjustmentStep", "flattened": false}, - "MinAdjustmentMagnitude": { - "shape": "MinAdjustmentMagnitude", - "flattened": false - }, - "ScalingAdjustment": {"shape": "PolicyIncrement", "flattened": false}, - "Cooldown": {"shape": "Cooldown", "flattened": false}, - "StepAdjustments": {"shape": "StepAdjustments", "flattened": false}, - "MetricAggregationType": { - "shape": "XmlStringMaxLen32", - "flattened": false - }, - "EstimatedInstanceWarmup": { - "shape": "EstimatedInstanceWarmup", - "flattened": false - }, - "Alarms": {"shape": "Alarms", "flattened": false}, - "TargetTrackingConfiguration": { - "shape": "TargetTrackingConfiguration", - "flattened": false - }, - "Enabled": {"shape": "ScalingPolicyEnabled", "flattened": false}, - "PredictiveScalingConfiguration": { - "shape": "PredictiveScalingConfiguration", - "flattened": false - } - }, - "flattened": false - }, - "ScalingPolicyEnabled": {"type": "boolean", "flattened": false}, - "ScalingProcessQuery": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScalingProcesses": {"shape": "ProcessNames", "flattened": false} - }, - "flattened": false - }, - "ScheduledActionNames": { - "type": "list", - "member": {"shape": "XmlStringMaxLen255"}, - "flattened": false - }, - "ScheduledActionsType": { - "type": "structure", - "members": { - "ScheduledUpdateGroupActions": { - "shape": "ScheduledUpdateGroupActions", - "flattened": false - }, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "ScheduledUpdateGroupAction": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScheduledActionName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ScheduledActionARN": {"shape": "ResourceName", "flattened": false}, - "Time": {"shape": "TimestampType", "flattened": false}, - "StartTime": {"shape": "TimestampType", "flattened": false}, - "EndTime": {"shape": "TimestampType", "flattened": false}, - "Recurrence": {"shape": "XmlStringMaxLen255", "flattened": false}, - "MinSize": {"shape": "AutoScalingGroupMinSize", "flattened": false}, - "MaxSize": {"shape": "AutoScalingGroupMaxSize", "flattened": false}, - "DesiredCapacity": { - "shape": "AutoScalingGroupDesiredCapacity", - "flattened": false - }, - "TimeZone": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "ScheduledUpdateGroupActionRequest": { - "type": "structure", - "members": { - "ScheduledActionName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "StartTime": {"shape": "TimestampType", "flattened": false}, - "EndTime": {"shape": "TimestampType", "flattened": false}, - "Recurrence": {"shape": "XmlStringMaxLen255", "flattened": false}, - "MinSize": {"shape": "AutoScalingGroupMinSize", "flattened": false}, - "MaxSize": {"shape": "AutoScalingGroupMaxSize", "flattened": false}, - "DesiredCapacity": { - "shape": "AutoScalingGroupDesiredCapacity", - "flattened": false - }, - "TimeZone": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "ScheduledUpdateGroupActionRequests": { - "type": "list", - "member": {"shape": "ScheduledUpdateGroupActionRequest"}, - "flattened": false - }, - "ScheduledUpdateGroupActions": { - "type": "list", - "member": {"shape": "ScheduledUpdateGroupAction"}, - "flattened": false - }, - "SecurityGroups": { - "type": "list", - "member": {"shape": "XmlString"}, - "flattened": false - }, - "SetDesiredCapacityType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "DesiredCapacity": { - "shape": "AutoScalingGroupDesiredCapacity", - "flattened": false - }, - "HonorCooldown": {"shape": "HonorCooldown", "flattened": false} - }, - "flattened": false - }, - "SetInstanceHealthQuery": { - "type": "structure", - "members": { - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false}, - "HealthStatus": {"shape": "XmlStringMaxLen32", "flattened": false}, - "ShouldRespectGracePeriod": { - "shape": "ShouldRespectGracePeriod", - "flattened": false - } - }, - "flattened": false - }, - "SetInstanceProtectionAnswer": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetInstanceProtectionQuery": { - "type": "structure", - "members": { - "InstanceIds": {"shape": "InstanceIds", "flattened": false}, - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "ProtectedFromScaleIn": { - "shape": "ProtectedFromScaleIn", - "flattened": false - } - }, - "flattened": false - }, - "ShouldDecrementDesiredCapacity": {"type": "boolean", "flattened": false}, - "ShouldRespectGracePeriod": {"type": "boolean", "flattened": false}, - "SkipMatching": {"type": "boolean", "flattened": false}, - "SpotInstancePools": {"type": "integer", "flattened": false}, - "SpotPrice": {"type": "string", "flattened": false}, - "StandbyInstances": {"type": "string", "flattened": false}, - "StartInstanceRefreshAnswer": { - "type": "structure", - "members": { - "InstanceRefreshId": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "StartInstanceRefreshType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "Strategy": {"shape": "RefreshStrategy", "flattened": false}, - "DesiredConfiguration": { - "shape": "DesiredConfiguration", - "flattened": false - }, - "Preferences": {"shape": "RefreshPreferences", "flattened": false} - }, - "flattened": false - }, - "StepAdjustment": { - "type": "structure", - "members": { - "MetricIntervalLowerBound": {"shape": "MetricScale", "flattened": false}, - "MetricIntervalUpperBound": {"shape": "MetricScale", "flattened": false}, - "ScalingAdjustment": {"shape": "PolicyIncrement", "flattened": false} - }, - "flattened": false - }, - "StepAdjustments": { - "type": "list", - "member": {"shape": "StepAdjustment"}, - "flattened": false - }, - "SuspendedProcess": { - "type": "structure", - "members": { - "ProcessName": {"shape": "XmlStringMaxLen255", "flattened": false}, - "SuspensionReason": {"shape": "XmlStringMaxLen255", "flattened": false} - }, - "flattened": false - }, - "SuspendedProcesses": { - "type": "list", - "member": {"shape": "SuspendedProcess"}, - "flattened": false - }, - "Tag": { - "type": "structure", - "members": { - "ResourceId": {"shape": "XmlString", "flattened": false}, - "ResourceType": {"shape": "XmlString", "flattened": false}, - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false}, - "PropagateAtLaunch": {"shape": "PropagateAtLaunch", "flattened": false} - }, - "flattened": false - }, - "TagDescription": { - "type": "structure", - "members": { - "ResourceId": {"shape": "XmlString", "flattened": false}, - "ResourceType": {"shape": "XmlString", "flattened": false}, - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false}, - "PropagateAtLaunch": {"shape": "PropagateAtLaunch", "flattened": false} - }, - "flattened": false - }, - "TagDescriptionList": { - "type": "list", - "member": {"shape": "TagDescription"}, - "flattened": false - }, - "TagKey": {"type": "string", "flattened": false}, - "TagValue": {"type": "string", "flattened": false}, - "Tags": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TagsType": { - "type": "structure", - "members": { - "Tags": {"shape": "TagDescriptionList", "flattened": false}, - "NextToken": {"shape": "XmlString", "flattened": false} - }, - "flattened": false - }, - "TargetGroupARNs": { - "type": "list", - "member": {"shape": "XmlStringMaxLen511"}, - "flattened": false - }, - "TargetTrackingConfiguration": { - "type": "structure", - "members": { - "PredefinedMetricSpecification": { - "shape": "PredefinedMetricSpecification", - "flattened": false - }, - "CustomizedMetricSpecification": { - "shape": "CustomizedMetricSpecification", - "flattened": false - }, - "TargetValue": {"shape": "MetricScale", "flattened": false}, - "DisableScaleIn": {"shape": "DisableScaleIn", "flattened": false} - }, - "flattened": false - }, - "TargetTrackingMetricDataQueries": { - "type": "list", - "member": {"shape": "TargetTrackingMetricDataQuery"}, - "flattened": false - }, - "TargetTrackingMetricDataQuery": { - "type": "structure", - "members": { - "Id": {"shape": "XmlStringMaxLen255", "flattened": false}, - "Expression": {"shape": "XmlStringMaxLen2047", "flattened": false}, - "MetricStat": {"shape": "TargetTrackingMetricStat", "flattened": false}, - "Label": {"shape": "XmlStringMetricLabel", "flattened": false}, - "ReturnData": {"shape": "ReturnData", "flattened": false} - }, - "flattened": false - }, - "TargetTrackingMetricStat": { - "type": "structure", - "members": { - "Metric": {"shape": "Metric", "flattened": false}, - "Stat": {"shape": "XmlStringMetricStat", "flattened": false}, - "Unit": {"shape": "MetricUnit", "flattened": false} - }, - "flattened": false - }, - "TerminateInstanceInAutoScalingGroupType": { - "type": "structure", - "members": { - "InstanceId": {"shape": "XmlStringMaxLen19", "flattened": false}, - "ShouldDecrementDesiredCapacity": { - "shape": "ShouldDecrementDesiredCapacity", - "flattened": false - } - }, - "flattened": false - }, - "TerminationPolicies": { - "type": "list", - "member": {"shape": "XmlStringMaxLen1600"}, - "flattened": false - }, - "TimestampType": {"type": "timestamp", "flattened": false}, - "TotalLocalStorageGBRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveDouble", "flattened": false}, - "Max": {"shape": "NullablePositiveDouble", "flattened": false} - }, - "flattened": false - }, - "TrafficSourceIdentifier": { - "type": "structure", - "members": { - "Identifier": {"shape": "XmlStringMaxLen511", "flattened": false}, - "Type": {"shape": "XmlStringMaxLen511", "flattened": false} - }, - "flattened": false - }, - "TrafficSourceState": { - "type": "structure", - "members": { - "TrafficSource": {"shape": "XmlStringMaxLen511", "flattened": false}, - "State": {"shape": "XmlStringMaxLen255", "flattened": false}, - "Identifier": {"shape": "XmlStringMaxLen511", "flattened": false}, - "Type": {"shape": "XmlStringMaxLen511", "flattened": false} - }, - "flattened": false - }, - "TrafficSourceStates": { - "type": "list", - "member": {"shape": "TrafficSourceState"}, - "flattened": false - }, - "TrafficSources": { - "type": "list", - "member": {"shape": "TrafficSourceIdentifier"}, - "flattened": false - }, - "UpdateAutoScalingGroupType": { - "type": "structure", - "members": { - "AutoScalingGroupName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchConfigurationName": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "LaunchTemplate": { - "shape": "LaunchTemplateSpecification", - "flattened": false - }, - "MixedInstancesPolicy": { - "shape": "MixedInstancesPolicy", - "flattened": false - }, - "MinSize": {"shape": "AutoScalingGroupMinSize", "flattened": false}, - "MaxSize": {"shape": "AutoScalingGroupMaxSize", "flattened": false}, - "DesiredCapacity": { - "shape": "AutoScalingGroupDesiredCapacity", - "flattened": false - }, - "DefaultCooldown": {"shape": "Cooldown", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "HealthCheckType": {"shape": "XmlStringMaxLen32", "flattened": false}, - "HealthCheckGracePeriod": { - "shape": "HealthCheckGracePeriod", - "flattened": false - }, - "PlacementGroup": {"shape": "XmlStringMaxLen255", "flattened": false}, - "VPCZoneIdentifier": {"shape": "XmlStringMaxLen2047", "flattened": false}, - "TerminationPolicies": { - "shape": "TerminationPolicies", - "flattened": false - }, - "NewInstancesProtectedFromScaleIn": { - "shape": "InstanceProtected", - "flattened": false - }, - "ServiceLinkedRoleARN": {"shape": "ResourceName", "flattened": false}, - "MaxInstanceLifetime": { - "shape": "MaxInstanceLifetime", - "flattened": false - }, - "CapacityRebalance": { - "shape": "CapacityRebalanceEnabled", - "flattened": false - }, - "Context": {"shape": "Context", "flattened": false}, - "DesiredCapacityType": { - "shape": "XmlStringMaxLen255", - "flattened": false - }, - "DefaultInstanceWarmup": { - "shape": "DefaultInstanceWarmup", - "flattened": false - }, - "InstanceMaintenancePolicy": { - "shape": "InstanceMaintenancePolicy", - "flattened": false - } - }, - "flattened": false - }, - "VCpuCountRequest": { - "type": "structure", - "members": { - "Min": {"shape": "NullablePositiveInteger", "flattened": false}, - "Max": {"shape": "NullablePositiveInteger", "flattened": false} - }, - "flattened": false - }, - "Values": { - "type": "list", - "member": {"shape": "XmlString"}, - "flattened": false - }, - "WarmPoolConfiguration": { - "type": "structure", - "members": { - "MaxGroupPreparedCapacity": { - "shape": "MaxGroupPreparedCapacity", - "flattened": false - }, - "MinSize": {"shape": "WarmPoolMinSize", "flattened": false}, - "PoolState": {"shape": "WarmPoolState", "flattened": false}, - "Status": {"shape": "WarmPoolStatus", "flattened": false}, - "InstanceReusePolicy": { - "shape": "InstanceReusePolicy", - "flattened": false - } - }, - "flattened": false - }, - "WarmPoolMinSize": {"type": "integer", "flattened": false}, - "WarmPoolSize": {"type": "integer", "flattened": false}, - "WarmPoolState": {"type": "string", "flattened": false}, - "WarmPoolStatus": {"type": "string", "flattened": false}, - "XmlString": {"type": "string", "flattened": false}, - "XmlStringMaxLen1023": {"type": "string", "flattened": false}, - "XmlStringMaxLen1600": {"type": "string", "flattened": false}, - "XmlStringMaxLen19": {"type": "string", "flattened": false}, - "XmlStringMaxLen2047": {"type": "string", "flattened": false}, - "XmlStringMaxLen255": {"type": "string", "flattened": false}, - "XmlStringMaxLen32": {"type": "string", "flattened": false}, - "XmlStringMaxLen511": {"type": "string", "flattened": false}, - "XmlStringMaxLen64": {"type": "string", "flattened": false}, - "XmlStringMetricLabel": {"type": "string", "flattened": false}, - "XmlStringMetricStat": {"type": "string", "flattened": false}, - "XmlStringUserData": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart b/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart index 88be892a5..60a3d14c1 100644 --- a/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart +++ b/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2010_05_15.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// CloudFormation allows you to create and manage Amazon Web Services @@ -29,7 +28,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// creating or configuring the underlying Amazon Web Services infrastructure. class CloudFormation { final _s.QueryProtocol _protocol; - final Map shapes; CloudFormation({ required String region, @@ -37,7 +35,7 @@ class CloudFormation { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'cloudformation', @@ -46,9 +44,7 @@ class CloudFormation { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -66,7 +62,7 @@ class CloudFormation { /// May throw [InvalidOperationException]. /// May throw [OperationNotFoundException]. Future activateOrganizationsAccess() async { - final $request = {}; + final $request = {}; await _protocol.send( $request, action: 'ActivateOrganizationsAccess', @@ -74,8 +70,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ActivateOrganizationsAccessInput'], - shapes: shapes, resultWrapper: 'ActivateOrganizationsAccessResult', ); } @@ -187,17 +181,20 @@ class CloudFormation { 1, 100000, ); - final $request = {}; - autoUpdate?.also((arg) => $request['AutoUpdate'] = arg); - executionRoleArn?.also((arg) => $request['ExecutionRoleArn'] = arg); - loggingConfig?.also((arg) => $request['LoggingConfig'] = arg); - majorVersion?.also((arg) => $request['MajorVersion'] = arg); - publicTypeArn?.also((arg) => $request['PublicTypeArn'] = arg); - publisherId?.also((arg) => $request['PublisherId'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - typeNameAlias?.also((arg) => $request['TypeNameAlias'] = arg); - versionBump?.also((arg) => $request['VersionBump'] = arg.toValue()); + final $request = { + if (autoUpdate != null) 'AutoUpdate': autoUpdate.toString(), + if (executionRoleArn != null) 'ExecutionRoleArn': executionRoleArn, + if (loggingConfig != null) + for (var e1 in loggingConfig.toQueryMap().entries) + 'LoggingConfig.${e1.key}': e1.value, + if (majorVersion != null) 'MajorVersion': majorVersion.toString(), + if (publicTypeArn != null) 'PublicTypeArn': publicTypeArn, + if (publisherId != null) 'PublisherId': publisherId, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (typeNameAlias != null) 'TypeNameAlias': typeNameAlias, + if (versionBump != null) 'VersionBump': versionBump.toValue(), + }; final $result = await _protocol.send( $request, action: 'ActivateType', @@ -205,8 +202,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ActivateTypeInput'], - shapes: shapes, resultWrapper: 'ActivateTypeResult', ); return ActivateTypeOutput.fromXml($result); @@ -229,8 +224,14 @@ class CloudFormation { batchDescribeTypeConfigurations({ required List typeConfigurationIdentifiers, }) async { - final $request = {}; - $request['TypeConfigurationIdentifiers'] = typeConfigurationIdentifiers; + final $request = { + if (typeConfigurationIdentifiers.isEmpty) + 'TypeConfigurationIdentifiers': '' + else + for (var i1 = 0; i1 < typeConfigurationIdentifiers.length; i1++) + for (var e3 in typeConfigurationIdentifiers[i1].toQueryMap().entries) + 'TypeConfigurationIdentifiers.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'BatchDescribeTypeConfigurations', @@ -238,8 +239,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDescribeTypeConfigurationsInput'], - shapes: shapes, resultWrapper: 'BatchDescribeTypeConfigurationsResult', ); return BatchDescribeTypeConfigurationsOutput.fromXml($result); @@ -280,9 +279,10 @@ class CloudFormation { required String stackName, String? clientRequestToken, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + }; await _protocol.send( $request, action: 'CancelUpdateStack', @@ -290,8 +290,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelUpdateStackInput'], - shapes: shapes, ); } @@ -392,11 +390,17 @@ class CloudFormation { List? resourcesToSkip, String? roleARN, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - resourcesToSkip?.also((arg) => $request['ResourcesToSkip'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (resourcesToSkip != null) + if (resourcesToSkip.isEmpty) + 'ResourcesToSkip': '' + else + for (var i1 = 0; i1 < resourcesToSkip.length; i1++) + 'ResourcesToSkip.member.${i1 + 1}': resourcesToSkip[i1], + if (roleARN != null) 'RoleARN': roleARN, + }; await _protocol.send( $request, action: 'ContinueUpdateRollback', @@ -404,8 +408,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ContinueUpdateRollbackInput'], - shapes: shapes, resultWrapper: 'ContinueUpdateRollbackResult', ); } @@ -742,29 +744,65 @@ class CloudFormation { String? templateURL, bool? usePreviousTemplate, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - $request['StackName'] = stackName; - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - changeSetType?.also((arg) => $request['ChangeSetType'] = arg.toValue()); - clientToken?.also((arg) => $request['ClientToken'] = arg); - description?.also((arg) => $request['Description'] = arg); - importExistingResources - ?.also((arg) => $request['ImportExistingResources'] = arg); - includeNestedStacks?.also((arg) => $request['IncludeNestedStacks'] = arg); - notificationARNs?.also((arg) => $request['NotificationARNs'] = arg); - onStackFailure?.also((arg) => $request['OnStackFailure'] = arg.toValue()); - parameters?.also((arg) => $request['Parameters'] = arg); - resourceTypes?.also((arg) => $request['ResourceTypes'] = arg); - resourcesToImport?.also((arg) => $request['ResourcesToImport'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); - rollbackConfiguration - ?.also((arg) => $request['RollbackConfiguration'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - usePreviousTemplate?.also((arg) => $request['UsePreviousTemplate'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + 'StackName': stackName, + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (changeSetType != null) 'ChangeSetType': changeSetType.toValue(), + if (clientToken != null) 'ClientToken': clientToken, + if (description != null) 'Description': description, + if (importExistingResources != null) + 'ImportExistingResources': importExistingResources.toString(), + if (includeNestedStacks != null) + 'IncludeNestedStacks': includeNestedStacks.toString(), + if (notificationARNs != null) + if (notificationARNs.isEmpty) + 'NotificationARNs': '' + else + for (var i1 = 0; i1 < notificationARNs.length; i1++) + 'NotificationARNs.member.${i1 + 1}': notificationARNs[i1], + if (onStackFailure != null) 'OnStackFailure': onStackFailure.toValue(), + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (resourceTypes != null) + if (resourceTypes.isEmpty) + 'ResourceTypes': '' + else + for (var i1 = 0; i1 < resourceTypes.length; i1++) + 'ResourceTypes.member.${i1 + 1}': resourceTypes[i1], + if (resourcesToImport != null) + if (resourcesToImport.isEmpty) + 'ResourcesToImport': '' + else + for (var i1 = 0; i1 < resourcesToImport.length; i1++) + for (var e3 in resourcesToImport[i1].toQueryMap().entries) + 'ResourcesToImport.member.${i1 + 1}.${e3.key}': e3.value, + if (roleARN != null) 'RoleARN': roleARN, + if (rollbackConfiguration != null) + for (var e1 in rollbackConfiguration.toQueryMap().entries) + 'RollbackConfiguration.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (usePreviousTemplate != null) + 'UsePreviousTemplate': usePreviousTemplate.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateChangeSet', @@ -772,8 +810,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateChangeSetInput'], - shapes: shapes, resultWrapper: 'CreateChangeSetResult', ); return CreateChangeSetOutput.fromXml($result); @@ -810,12 +846,20 @@ class CloudFormation { String? stackName, TemplateConfiguration? templateConfiguration, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; - resources?.also((arg) => $request['Resources'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); - templateConfiguration - ?.also((arg) => $request['TemplateConfiguration'] = arg); + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + if (resources != null) + if (resources.isEmpty) + 'Resources': '' + else + for (var i1 = 0; i1 < resources.length; i1++) + for (var e3 in resources[i1].toQueryMap().entries) + 'Resources.member.${i1 + 1}.${e3.key}': e3.value, + if (stackName != null) 'StackName': stackName, + if (templateConfiguration != null) + for (var e1 in templateConfiguration.toQueryMap().entries) + 'TemplateConfiguration.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'CreateGeneratedTemplate', @@ -823,8 +867,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'CreateGeneratedTemplateResult', ); return CreateGeneratedTemplateOutput.fromXml($result); @@ -1137,28 +1179,59 @@ class CloudFormation { 1, 1152921504606846976, ); - final $request = {}; - $request['StackName'] = stackName; - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - disableRollback?.also((arg) => $request['DisableRollback'] = arg); - enableTerminationProtection - ?.also((arg) => $request['EnableTerminationProtection'] = arg); - notificationARNs?.also((arg) => $request['NotificationARNs'] = arg); - onFailure?.also((arg) => $request['OnFailure'] = arg.toValue()); - parameters?.also((arg) => $request['Parameters'] = arg); - resourceTypes?.also((arg) => $request['ResourceTypes'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); - rollbackConfiguration - ?.also((arg) => $request['RollbackConfiguration'] = arg); - stackPolicyBody?.also((arg) => $request['StackPolicyBody'] = arg); - stackPolicyURL?.also((arg) => $request['StackPolicyURL'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - timeoutInMinutes?.also((arg) => $request['TimeoutInMinutes'] = arg); + final $request = { + 'StackName': stackName, + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (disableRollback != null) + 'DisableRollback': disableRollback.toString(), + if (enableTerminationProtection != null) + 'EnableTerminationProtection': enableTerminationProtection.toString(), + if (notificationARNs != null) + if (notificationARNs.isEmpty) + 'NotificationARNs': '' + else + for (var i1 = 0; i1 < notificationARNs.length; i1++) + 'NotificationARNs.member.${i1 + 1}': notificationARNs[i1], + if (onFailure != null) 'OnFailure': onFailure.toValue(), + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (resourceTypes != null) + if (resourceTypes.isEmpty) + 'ResourceTypes': '' + else + for (var i1 = 0; i1 < resourceTypes.length; i1++) + 'ResourceTypes.member.${i1 + 1}': resourceTypes[i1], + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (roleARN != null) 'RoleARN': roleARN, + if (rollbackConfiguration != null) + for (var e1 in rollbackConfiguration.toQueryMap().entries) + 'RollbackConfiguration.${e1.key}': e1.value, + if (stackPolicyBody != null) 'StackPolicyBody': stackPolicyBody, + if (stackPolicyURL != null) 'StackPolicyURL': stackPolicyURL, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (timeoutInMinutes != null) + 'TimeoutInMinutes': timeoutInMinutes.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateStack', @@ -1166,8 +1239,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateStackInput'], - shapes: shapes, resultWrapper: 'CreateStackResult', ); return CreateStackOutput.fromXml($result); @@ -1294,15 +1365,35 @@ class CloudFormation { StackSetOperationPreferences? operationPreferences, List? parameterOverrides, }) async { - final $request = {}; - $request['Regions'] = regions; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - parameterOverrides?.also((arg) => $request['ParameterOverrides'] = arg); + final $request = { + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (callAs != null) 'CallAs': callAs.toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (parameterOverrides != null) + if (parameterOverrides.isEmpty) + 'ParameterOverrides': '' + else + for (var i1 = 0; i1 < parameterOverrides.length; i1++) + for (var e3 in parameterOverrides[i1].toQueryMap().entries) + 'ParameterOverrides.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateStackInstances', @@ -1310,8 +1401,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateStackInstancesInput'], - shapes: shapes, resultWrapper: 'CreateStackInstancesResult', ); return CreateStackInstancesOutput.fromXml($result); @@ -1571,25 +1660,45 @@ class CloudFormation { String? templateBody, String? templateURL, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - administrationRoleARN - ?.also((arg) => $request['AdministrationRoleARN'] = arg); - autoDeployment?.also((arg) => $request['AutoDeployment'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - $request['ClientRequestToken'] = - clientRequestToken ?? _s.generateIdempotencyToken(); - description?.also((arg) => $request['Description'] = arg); - executionRoleName?.also((arg) => $request['ExecutionRoleName'] = arg); - managedExecution?.also((arg) => $request['ManagedExecution'] = arg); - parameters?.also((arg) => $request['Parameters'] = arg); - permissionModel?.also((arg) => $request['PermissionModel'] = arg.toValue()); - stackId?.also((arg) => $request['StackId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (administrationRoleARN != null) + 'AdministrationRoleARN': administrationRoleARN, + if (autoDeployment != null) + for (var e1 in autoDeployment.toQueryMap().entries) + 'AutoDeployment.${e1.key}': e1.value, + if (callAs != null) 'CallAs': callAs.toValue(), + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + 'ClientRequestToken': clientRequestToken ?? _s.generateIdempotencyToken(), + if (description != null) 'Description': description, + if (executionRoleName != null) 'ExecutionRoleName': executionRoleName, + if (managedExecution != null) + for (var e1 in managedExecution.toQueryMap().entries) + 'ManagedExecution.${e1.key}': e1.value, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (permissionModel != null) 'PermissionModel': permissionModel.toValue(), + if (stackId != null) 'StackId': stackId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'CreateStackSet', @@ -1597,8 +1706,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateStackSetInput'], - shapes: shapes, resultWrapper: 'CreateStackSetResult', ); return CreateStackSetOutput.fromXml($result); @@ -1611,7 +1718,7 @@ class CloudFormation { /// May throw [InvalidOperationException]. /// May throw [OperationNotFoundException]. Future deactivateOrganizationsAccess() async { - final $request = {}; + final $request = {}; await _protocol.send( $request, action: 'DeactivateOrganizationsAccess', @@ -1619,8 +1726,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeactivateOrganizationsAccessInput'], - shapes: shapes, resultWrapper: 'DeactivateOrganizationsAccessResult', ); } @@ -1662,10 +1767,11 @@ class CloudFormation { ThirdPartyType? type, String? typeName, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + }; await _protocol.send( $request, action: 'DeactivateType', @@ -1673,8 +1779,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeactivateTypeInput'], - shapes: shapes, resultWrapper: 'DeactivateTypeResult', ); } @@ -1704,9 +1808,10 @@ class CloudFormation { required String changeSetName, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (stackName != null) 'StackName': stackName, + }; await _protocol.send( $request, action: 'DeleteChangeSet', @@ -1714,8 +1819,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteChangeSetInput'], - shapes: shapes, resultWrapper: 'DeleteChangeSetResult', ); } @@ -1730,8 +1833,9 @@ class CloudFormation { Future deleteGeneratedTemplate({ required String generatedTemplateName, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + }; await _protocol.send( $request, action: 'DeleteGeneratedTemplate', @@ -1739,8 +1843,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGeneratedTemplateInput'], - shapes: shapes, ); } @@ -1814,12 +1916,18 @@ class CloudFormation { List? retainResources, String? roleARN, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - deletionMode?.also((arg) => $request['DeletionMode'] = arg.toValue()); - retainResources?.also((arg) => $request['RetainResources'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (deletionMode != null) 'DeletionMode': deletionMode.toValue(), + if (retainResources != null) + if (retainResources.isEmpty) + 'RetainResources': '' + else + for (var i1 = 0; i1 < retainResources.length; i1++) + 'RetainResources.member.${i1 + 1}': retainResources[i1], + if (roleARN != null) 'RoleARN': roleARN, + }; await _protocol.send( $request, action: 'DeleteStack', @@ -1827,8 +1935,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteStackInput'], - shapes: shapes, ); } @@ -1920,15 +2026,29 @@ class CloudFormation { String? operationId, StackSetOperationPreferences? operationPreferences, }) async { - final $request = {}; - $request['Regions'] = regions; - $request['RetainStacks'] = retainStacks; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); + final $request = { + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + 'RetainStacks': retainStacks.toString(), + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (callAs != null) 'CallAs': callAs.toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DeleteStackInstances', @@ -1936,8 +2056,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteStackInstancesInput'], - shapes: shapes, resultWrapper: 'DeleteStackInstancesResult', ); return DeleteStackInstancesOutput.fromXml($result); @@ -1980,9 +2098,10 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; await _protocol.send( $request, action: 'DeleteStackSet', @@ -1990,8 +2109,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteStackSetInput'], - shapes: shapes, resultWrapper: 'DeleteStackSetResult', ); } @@ -2046,11 +2163,12 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; await _protocol.send( $request, action: 'DeregisterType', @@ -2058,8 +2176,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterTypeInput'], - shapes: shapes, resultWrapper: 'DeregisterTypeResult', ); } @@ -2076,8 +2192,9 @@ class CloudFormation { Future describeAccountLimits({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -2085,8 +2202,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountLimitsInput'], - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsOutput.fromXml($result); @@ -2121,12 +2236,13 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - includePropertyValues - ?.also((arg) => $request['IncludePropertyValues'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (includePropertyValues != null) + 'IncludePropertyValues': includePropertyValues.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeChangeSet', @@ -2134,8 +2250,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeChangeSetInput'], - shapes: shapes, resultWrapper: 'DescribeChangeSetResult', ); return DescribeChangeSetOutput.fromXml($result); @@ -2168,11 +2282,12 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - logicalResourceId?.also((arg) => $request['LogicalResourceId'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeChangeSetHooks', @@ -2180,8 +2295,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeChangeSetHooksInput'], - shapes: shapes, resultWrapper: 'DescribeChangeSetHooksResult', ); return DescribeChangeSetHooksOutput.fromXml($result); @@ -2200,8 +2313,9 @@ class CloudFormation { Future describeGeneratedTemplate({ required String generatedTemplateName, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + }; final $result = await _protocol.send( $request, action: 'DescribeGeneratedTemplate', @@ -2209,8 +2323,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'DescribeGeneratedTemplateResult', ); return DescribeGeneratedTemplateOutput.fromXml($result); @@ -2249,8 +2361,9 @@ class CloudFormation { Future describeOrganizationsAccess({ CallAs? callAs, }) async { - final $request = {}; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrganizationsAccess', @@ -2258,8 +2371,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrganizationsAccessInput'], - shapes: shapes, resultWrapper: 'DescribeOrganizationsAccessResult', ); return DescribeOrganizationsAccessOutput.fromXml($result); @@ -2297,8 +2408,9 @@ class CloudFormation { Future describePublisher({ String? publisherId, }) async { - final $request = {}; - publisherId?.also((arg) => $request['PublisherId'] = arg); + final $request = { + if (publisherId != null) 'PublisherId': publisherId, + }; final $result = await _protocol.send( $request, action: 'DescribePublisher', @@ -2306,8 +2418,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePublisherInput'], - shapes: shapes, resultWrapper: 'DescribePublisherResult', ); return DescribePublisherOutput.fromXml($result); @@ -2322,8 +2432,9 @@ class CloudFormation { Future describeResourceScan({ required String resourceScanId, }) async { - final $request = {}; - $request['ResourceScanId'] = resourceScanId; + final $request = { + 'ResourceScanId': resourceScanId, + }; final $result = await _protocol.send( $request, action: 'DescribeResourceScan', @@ -2331,8 +2442,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeResourceScanInput'], - shapes: shapes, resultWrapper: 'DescribeResourceScanResult', ); return DescribeResourceScanOutput.fromXml($result); @@ -2365,8 +2474,9 @@ class CloudFormation { describeStackDriftDetectionStatus({ required String stackDriftDetectionId, }) async { - final $request = {}; - $request['StackDriftDetectionId'] = stackDriftDetectionId; + final $request = { + 'StackDriftDetectionId': stackDriftDetectionId, + }; final $result = await _protocol.send( $request, action: 'DescribeStackDriftDetectionStatus', @@ -2374,8 +2484,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackDriftDetectionStatusInput'], - shapes: shapes, resultWrapper: 'DescribeStackDriftDetectionStatusResult', ); return DescribeStackDriftDetectionStatusOutput.fromXml($result); @@ -2413,9 +2521,10 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStackEvents', @@ -2423,8 +2532,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackEventsInput'], - shapes: shapes, resultWrapper: 'DescribeStackEventsResult', ); return DescribeStackEventsOutput.fromXml($result); @@ -2478,11 +2585,12 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['StackInstanceAccount'] = stackInstanceAccount; - $request['StackInstanceRegion'] = stackInstanceRegion; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'StackInstanceAccount': stackInstanceAccount, + 'StackInstanceRegion': stackInstanceRegion, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackInstance', @@ -2490,8 +2598,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackInstanceInput'], - shapes: shapes, resultWrapper: 'DescribeStackInstanceResult', ); return DescribeStackInstanceOutput.fromXml($result); @@ -2525,9 +2631,10 @@ class CloudFormation { required String logicalResourceId, required String stackName, }) async { - final $request = {}; - $request['LogicalResourceId'] = logicalResourceId; - $request['StackName'] = stackName; + final $request = { + 'LogicalResourceId': logicalResourceId, + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStackResource', @@ -2535,8 +2642,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackResourceInput'], - shapes: shapes, resultWrapper: 'DescribeStackResourceResult', ); return DescribeStackResourceOutput.fromXml($result); @@ -2605,13 +2710,18 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackName'] = stackName; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackResourceDriftStatusFilters?.also((arg) => - $request['StackResourceDriftStatusFilters'] = - arg.map((e) => e.toValue()).toList()); + final $request = { + 'StackName': stackName, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackResourceDriftStatusFilters != null) + if (stackResourceDriftStatusFilters.isEmpty) + 'StackResourceDriftStatusFilters': '' + else + for (var i1 = 0; i1 < stackResourceDriftStatusFilters.length; i1++) + 'StackResourceDriftStatusFilters.member.${i1 + 1}': + stackResourceDriftStatusFilters[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackResourceDrifts', @@ -2619,8 +2729,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackResourceDriftsInput'], - shapes: shapes, resultWrapper: 'DescribeStackResourceDriftsResult', ); return DescribeStackResourceDriftsOutput.fromXml($result); @@ -2694,10 +2802,11 @@ class CloudFormation { String? physicalResourceId, String? stackName, }) async { - final $request = {}; - logicalResourceId?.also((arg) => $request['LogicalResourceId'] = arg); - physicalResourceId?.also((arg) => $request['PhysicalResourceId'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, + if (physicalResourceId != null) 'PhysicalResourceId': physicalResourceId, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStackResources', @@ -2705,8 +2814,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackResourcesInput'], - shapes: shapes, resultWrapper: 'DescribeStackResourcesResult', ); return DescribeStackResourcesOutput.fromXml($result); @@ -2745,9 +2852,10 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackSet', @@ -2755,8 +2863,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackSetInput'], - shapes: shapes, resultWrapper: 'DescribeStackSetResult', ); return DescribeStackSetOutput.fromXml($result); @@ -2800,10 +2906,11 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['OperationId'] = operationId; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'OperationId': operationId, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackSetOperation', @@ -2811,8 +2918,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackSetOperationInput'], - shapes: shapes, resultWrapper: 'DescribeStackSetOperationResult', ); return DescribeStackSetOperationOutput.fromXml($result); @@ -2866,9 +2971,10 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStacks', @@ -2876,8 +2982,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStacksInput'], - shapes: shapes, resultWrapper: 'DescribeStacksResult', ); return DescribeStacksOutput.fromXml($result); @@ -2935,13 +3039,15 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - publicVersionNumber?.also((arg) => $request['PublicVersionNumber'] = arg); - publisherId?.also((arg) => $request['PublisherId'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (publicVersionNumber != null) + 'PublicVersionNumber': publicVersionNumber, + if (publisherId != null) 'PublisherId': publisherId, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; final $result = await _protocol.send( $request, action: 'DescribeType', @@ -2949,8 +3055,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTypeInput'], - shapes: shapes, resultWrapper: 'DescribeTypeResult', ); return DescribeTypeOutput.fromXml($result); @@ -2976,8 +3080,9 @@ class CloudFormation { Future describeTypeRegistration({ required String registrationToken, }) async { - final $request = {}; - $request['RegistrationToken'] = registrationToken; + final $request = { + 'RegistrationToken': registrationToken, + }; final $result = await _protocol.send( $request, action: 'DescribeTypeRegistration', @@ -2985,8 +3090,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTypeRegistrationInput'], - shapes: shapes, resultWrapper: 'DescribeTypeRegistrationResult', ); return DescribeTypeRegistrationOutput.fromXml($result); @@ -3033,9 +3136,15 @@ class CloudFormation { required String stackName, List? logicalResourceIds, }) async { - final $request = {}; - $request['StackName'] = stackName; - logicalResourceIds?.also((arg) => $request['LogicalResourceIds'] = arg); + final $request = { + 'StackName': stackName, + if (logicalResourceIds != null) + if (logicalResourceIds.isEmpty) + 'LogicalResourceIds': '' + else + for (var i1 = 0; i1 < logicalResourceIds.length; i1++) + 'LogicalResourceIds.member.${i1 + 1}': logicalResourceIds[i1], + }; final $result = await _protocol.send( $request, action: 'DetectStackDrift', @@ -3043,8 +3152,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetectStackDriftInput'], - shapes: shapes, resultWrapper: 'DetectStackDriftResult', ); return DetectStackDriftOutput.fromXml($result); @@ -3078,9 +3185,10 @@ class CloudFormation { required String logicalResourceId, required String stackName, }) async { - final $request = {}; - $request['LogicalResourceId'] = logicalResourceId; - $request['StackName'] = stackName; + final $request = { + 'LogicalResourceId': logicalResourceId, + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DetectStackResourceDrift', @@ -3088,8 +3196,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetectStackResourceDriftInput'], - shapes: shapes, resultWrapper: 'DetectStackResourceDriftResult', ); return DetectStackResourceDriftOutput.fromXml($result); @@ -3188,11 +3294,14 @@ class CloudFormation { String? operationId, StackSetOperationPreferences? operationPreferences, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DetectStackSetDrift', @@ -3200,8 +3309,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetectStackSetDriftInput'], - shapes: shapes, resultWrapper: 'DetectStackSetDriftResult', ); return DetectStackSetDriftOutput.fromXml($result); @@ -3240,10 +3347,17 @@ class CloudFormation { String? templateBody, String? templateURL, }) async { - final $request = {}; - parameters?.also((arg) => $request['Parameters'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'EstimateTemplateCost', @@ -3251,8 +3365,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EstimateTemplateCostInput'], - shapes: shapes, resultWrapper: 'EstimateTemplateCostResult', ); return EstimateTemplateCostOutput.fromXml($result); @@ -3333,12 +3445,15 @@ class CloudFormation { bool? retainExceptOnCreate, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - disableRollback?.also((arg) => $request['DisableRollback'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (disableRollback != null) + 'DisableRollback': disableRollback.toString(), + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (stackName != null) 'StackName': stackName, + }; await _protocol.send( $request, action: 'ExecuteChangeSet', @@ -3346,8 +3461,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExecuteChangeSetInput'], - shapes: shapes, resultWrapper: 'ExecuteChangeSetResult', ); } @@ -3384,9 +3497,10 @@ class CloudFormation { required String generatedTemplateName, TemplateFormat? format, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; - format?.also((arg) => $request['Format'] = arg.toValue()); + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + if (format != null) 'Format': format.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetGeneratedTemplate', @@ -3394,8 +3508,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'GetGeneratedTemplateResult', ); return GetGeneratedTemplateOutput.fromXml($result); @@ -3410,8 +3522,9 @@ class CloudFormation { Future getStackPolicy({ required String stackName, }) async { - final $request = {}; - $request['StackName'] = stackName; + final $request = { + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'GetStackPolicy', @@ -3419,8 +3532,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetStackPolicyInput'], - shapes: shapes, resultWrapper: 'GetStackPolicyResult', ); return GetStackPolicyOutput.fromXml($result); @@ -3471,10 +3582,11 @@ class CloudFormation { String? stackName, TemplateStage? templateStage, }) async { - final $request = {}; - changeSetName?.also((arg) => $request['ChangeSetName'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); - templateStage?.also((arg) => $request['TemplateStage'] = arg.toValue()); + final $request = { + if (changeSetName != null) 'ChangeSetName': changeSetName, + if (stackName != null) 'StackName': stackName, + if (templateStage != null) 'TemplateStage': templateStage.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetTemplate', @@ -3482,8 +3594,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTemplateInput'], - shapes: shapes, resultWrapper: 'GetTemplateResult', ); return GetTemplateOutput.fromXml($result); @@ -3578,14 +3688,16 @@ class CloudFormation { TemplateSummaryConfig? templateSummaryConfig, String? templateURL, }) async { - final $request = {}; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - stackName?.also((arg) => $request['StackName'] = arg); - stackSetName?.also((arg) => $request['StackSetName'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateSummaryConfig - ?.also((arg) => $request['TemplateSummaryConfig'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + if (callAs != null) 'CallAs': callAs.toValue(), + if (stackName != null) 'StackName': stackName, + if (stackSetName != null) 'StackSetName': stackSetName, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateSummaryConfig != null) + for (var e1 in templateSummaryConfig.toQueryMap().entries) + 'TemplateSummaryConfig.${e1.key}': e1.value, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'GetTemplateSummary', @@ -3593,8 +3705,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTemplateSummaryInput'], - shapes: shapes, resultWrapper: 'GetTemplateSummaryResult', ); return GetTemplateSummaryOutput.fromXml($result); @@ -3665,15 +3775,27 @@ class CloudFormation { List? stackIds, String? stackIdsUrl, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - organizationalUnitIds - ?.also((arg) => $request['OrganizationalUnitIds'] = arg); - stackIds?.also((arg) => $request['StackIds'] = arg); - stackIdsUrl?.also((arg) => $request['StackIdsUrl'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (organizationalUnitIds != null) + if (organizationalUnitIds.isEmpty) + 'OrganizationalUnitIds': '' + else + for (var i1 = 0; i1 < organizationalUnitIds.length; i1++) + 'OrganizationalUnitIds.member.${i1 + 1}': organizationalUnitIds[i1], + if (stackIds != null) + if (stackIds.isEmpty) + 'StackIds': '' + else + for (var i1 = 0; i1 < stackIds.length; i1++) + 'StackIds.member.${i1 + 1}': stackIds[i1], + if (stackIdsUrl != null) 'StackIdsUrl': stackIdsUrl, + }; final $result = await _protocol.send( $request, action: 'ImportStacksToStackSet', @@ -3681,8 +3803,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ImportStacksToStackSetInput'], - shapes: shapes, resultWrapper: 'ImportStacksToStackSetResult', ); return ImportStacksToStackSetOutput.fromXml($result); @@ -3703,9 +3823,10 @@ class CloudFormation { required String stackName, String? nextToken, }) async { - final $request = {}; - $request['StackName'] = stackName; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackName': stackName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListChangeSets', @@ -3713,8 +3834,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListChangeSetsInput'], - shapes: shapes, resultWrapper: 'ListChangeSetsResult', ); return ListChangeSetsOutput.fromXml($result); @@ -3737,8 +3856,9 @@ class CloudFormation { Future listExports({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListExports', @@ -3746,8 +3866,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListExportsInput'], - shapes: shapes, resultWrapper: 'ListExportsResult', ); return ListExportsOutput.fromXml($result); @@ -3774,9 +3892,10 @@ class CloudFormation { 1, 100, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListGeneratedTemplates', @@ -3784,8 +3903,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGeneratedTemplatesInput'], - shapes: shapes, resultWrapper: 'ListGeneratedTemplatesResult', ); return ListGeneratedTemplatesOutput.fromXml($result); @@ -3812,9 +3929,10 @@ class CloudFormation { required String exportName, String? nextToken, }) async { - final $request = {}; - $request['ExportName'] = exportName; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'ExportName': exportName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListImports', @@ -3822,8 +3940,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListImportsInput'], - shapes: shapes, resultWrapper: 'ListImportsResult', ); return ListImportsOutput.fromXml($result); @@ -3865,11 +3981,17 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['ResourceScanId'] = resourceScanId; - $request['Resources'] = resources; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'ResourceScanId': resourceScanId, + if (resources.isEmpty) + 'Resources': '' + else + for (var i1 = 0; i1 < resources.length; i1++) + for (var e3 in resources[i1].toQueryMap().entries) + 'Resources.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListResourceScanRelatedResources', @@ -3877,8 +3999,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListResourceScanRelatedResourcesInput'], - shapes: shapes, resultWrapper: 'ListResourceScanRelatedResourcesResult', ); return ListResourceScanRelatedResourcesOutput.fromXml($result); @@ -3929,14 +4049,15 @@ class CloudFormation { String? tagKey, String? tagValue, }) async { - final $request = {}; - $request['ResourceScanId'] = resourceScanId; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); - resourceTypePrefix?.also((arg) => $request['ResourceTypePrefix'] = arg); - tagKey?.also((arg) => $request['TagKey'] = arg); - tagValue?.also((arg) => $request['TagValue'] = arg); + final $request = { + 'ResourceScanId': resourceScanId, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + if (resourceTypePrefix != null) 'ResourceTypePrefix': resourceTypePrefix, + if (tagKey != null) 'TagKey': tagKey, + if (tagValue != null) 'TagValue': tagValue, + }; final $result = await _protocol.send( $request, action: 'ListResourceScanResources', @@ -3944,8 +4065,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListResourceScanResourcesInput'], - shapes: shapes, resultWrapper: 'ListResourceScanResourcesResult', ); return ListResourceScanResourcesOutput.fromXml($result); @@ -3966,9 +4085,10 @@ class CloudFormation { int? maxResults, String? nextToken, }) async { - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListResourceScans', @@ -3976,8 +4096,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListResourceScansInput'], - shapes: shapes, resultWrapper: 'ListResourceScansResult', ); return ListResourceScansOutput.fromXml($result); @@ -4083,17 +4201,22 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['OperationId'] = operationId; - $request['StackInstanceAccount'] = stackInstanceAccount; - $request['StackInstanceRegion'] = stackInstanceRegion; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackInstanceResourceDriftStatuses?.also((arg) => - $request['StackInstanceResourceDriftStatuses'] = - arg.map((e) => e.toValue()).toList()); + final $request = { + 'OperationId': operationId, + 'StackInstanceAccount': stackInstanceAccount, + 'StackInstanceRegion': stackInstanceRegion, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackInstanceResourceDriftStatuses != null) + if (stackInstanceResourceDriftStatuses.isEmpty) + 'StackInstanceResourceDriftStatuses': '' + else + for (var i1 = 0; i1 < stackInstanceResourceDriftStatuses.length; i1++) + 'StackInstanceResourceDriftStatuses.member.${i1 + 1}': + stackInstanceResourceDriftStatuses[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'ListStackInstanceResourceDrifts', @@ -4101,8 +4224,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackInstanceResourceDriftsInput'], - shapes: shapes, resultWrapper: 'ListStackInstanceResourceDriftsResult', ); return ListStackInstanceResourceDriftsOutput.fromXml($result); @@ -4180,14 +4301,23 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - filters?.also((arg) => $request['Filters'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackInstanceAccount?.also((arg) => $request['StackInstanceAccount'] = arg); - stackInstanceRegion?.also((arg) => $request['StackInstanceRegion'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackInstanceAccount != null) + 'StackInstanceAccount': stackInstanceAccount, + if (stackInstanceRegion != null) + 'StackInstanceRegion': stackInstanceRegion, + }; final $result = await _protocol.send( $request, action: 'ListStackInstances', @@ -4195,8 +4325,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackInstancesInput'], - shapes: shapes, resultWrapper: 'ListStackInstancesResult', ); return ListStackInstancesOutput.fromXml($result); @@ -4229,9 +4357,10 @@ class CloudFormation { required String stackName, String? nextToken, }) async { - final $request = {}; - $request['StackName'] = stackName; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackName': stackName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackResources', @@ -4239,8 +4368,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackResourcesInput'], - shapes: shapes, resultWrapper: 'ListStackResourcesResult', ); return ListStackResourcesOutput.fromXml($result); @@ -4299,11 +4426,12 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackSetAutoDeploymentTargets', @@ -4311,8 +4439,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetAutoDeploymentTargetsInput'], - shapes: shapes, resultWrapper: 'ListStackSetAutoDeploymentTargetsResult', ); return ListStackSetAutoDeploymentTargetsOutput.fromXml($result); @@ -4384,13 +4510,20 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['OperationId'] = operationId; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - filters?.also((arg) => $request['Filters'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'OperationId': operationId, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackSetOperationResults', @@ -4398,8 +4531,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetOperationResultsInput'], - shapes: shapes, resultWrapper: 'ListStackSetOperationResultsResult', ); return ListStackSetOperationResultsOutput.fromXml($result); @@ -4462,11 +4593,12 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackSetOperations', @@ -4474,8 +4606,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetOperationsInput'], - shapes: shapes, resultWrapper: 'ListStackSetOperationsResult', ); return ListStackSetOperationsOutput.fromXml($result); @@ -4558,11 +4688,12 @@ class CloudFormation { 1, 100, ); - final $request = {}; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListStackSets', @@ -4570,8 +4701,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetsInput'], - shapes: shapes, resultWrapper: 'ListStackSetsResult', ); return ListStackSetsOutput.fromXml($result); @@ -4596,10 +4725,16 @@ class CloudFormation { String? nextToken, List? stackStatusFilter, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); - stackStatusFilter?.also((arg) => - $request['StackStatusFilter'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + if (stackStatusFilter != null) + if (stackStatusFilter.isEmpty) + 'StackStatusFilter': '' + else + for (var i1 = 0; i1 < stackStatusFilter.length; i1++) + 'StackStatusFilter.member.${i1 + 1}': + stackStatusFilter[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'ListStacks', @@ -4607,8 +4742,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStacksInput'], - shapes: shapes, resultWrapper: 'ListStacksResult', ); return ListStacksOutput.fromXml($result); @@ -4668,14 +4801,15 @@ class CloudFormation { 1, 100, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - registrationStatusFilter - ?.also((arg) => $request['RegistrationStatusFilter'] = arg.toValue()); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeArn?.also((arg) => $request['TypeArn'] = arg); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (registrationStatusFilter != null) + 'RegistrationStatusFilter': registrationStatusFilter.toValue(), + if (type != null) 'Type': type.toValue(), + if (typeArn != null) 'TypeArn': typeArn, + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'ListTypeRegistrations', @@ -4683,8 +4817,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTypeRegistrationsInput'], - shapes: shapes, resultWrapper: 'ListTypeRegistrationsResult', ); return ListTypeRegistrationsOutput.fromXml($result); @@ -4765,15 +4897,16 @@ class CloudFormation { 1, 100, ); - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - deprecatedStatus - ?.also((arg) => $request['DeprecatedStatus'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - publisherId?.also((arg) => $request['PublisherId'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (deprecatedStatus != null) + 'DeprecatedStatus': deprecatedStatus.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (publisherId != null) 'PublisherId': publisherId, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'ListTypeVersions', @@ -4781,8 +4914,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTypeVersionsInput'], - shapes: shapes, resultWrapper: 'ListTypeVersionsResult', ); return ListTypeVersionsOutput.fromXml($result); @@ -4902,16 +5033,19 @@ class CloudFormation { 1, 100, ); - final $request = {}; - deprecatedStatus - ?.also((arg) => $request['DeprecatedStatus'] = arg.toValue()); - filters?.also((arg) => $request['Filters'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - provisioningType - ?.also((arg) => $request['ProvisioningType'] = arg.toValue()); - type?.also((arg) => $request['Type'] = arg.toValue()); - visibility?.also((arg) => $request['Visibility'] = arg.toValue()); + final $request = { + if (deprecatedStatus != null) + 'DeprecatedStatus': deprecatedStatus.toValue(), + if (filters != null) + for (var e1 in filters.toQueryMap().entries) + 'Filters.${e1.key}': e1.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (provisioningType != null) + 'ProvisioningType': provisioningType.toValue(), + if (type != null) 'Type': type.toValue(), + if (visibility != null) 'Visibility': visibility.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListTypes', @@ -4919,8 +5053,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTypesInput'], - shapes: shapes, resultWrapper: 'ListTypesResult', ); return ListTypesOutput.fromXml($result); @@ -4982,11 +5114,13 @@ class CloudFormation { ThirdPartyType? type, String? typeName, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - publicVersionNumber?.also((arg) => $request['PublicVersionNumber'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (publicVersionNumber != null) + 'PublicVersionNumber': publicVersionNumber, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'PublishType', @@ -4994,8 +5128,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PublishTypeInput'], - shapes: shapes, resultWrapper: 'PublishTypeResult', ); return PublishTypeOutput.fromXml($result); @@ -5053,15 +5185,16 @@ class CloudFormation { String? resourceModel, String? statusMessage, }) async { - final $request = {}; - $request['BearerToken'] = bearerToken; - $request['OperationStatus'] = operationStatus.toValue(); - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - currentOperationStatus - ?.also((arg) => $request['CurrentOperationStatus'] = arg.toValue()); - errorCode?.also((arg) => $request['ErrorCode'] = arg.toValue()); - resourceModel?.also((arg) => $request['ResourceModel'] = arg); - statusMessage?.also((arg) => $request['StatusMessage'] = arg); + final $request = { + 'BearerToken': bearerToken, + 'OperationStatus': operationStatus.toValue(), + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (currentOperationStatus != null) + 'CurrentOperationStatus': currentOperationStatus.toValue(), + if (errorCode != null) 'ErrorCode': errorCode.toValue(), + if (resourceModel != null) 'ResourceModel': resourceModel, + if (statusMessage != null) 'StatusMessage': statusMessage, + }; await _protocol.send( $request, action: 'RecordHandlerProgress', @@ -5069,8 +5202,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RecordHandlerProgressInput'], - shapes: shapes, resultWrapper: 'RecordHandlerProgressResult', ); } @@ -5110,10 +5241,11 @@ class CloudFormation { bool? acceptTermsAndConditions, String? connectionArn, }) async { - final $request = {}; - acceptTermsAndConditions - ?.also((arg) => $request['AcceptTermsAndConditions'] = arg); - connectionArn?.also((arg) => $request['ConnectionArn'] = arg); + final $request = { + if (acceptTermsAndConditions != null) + 'AcceptTermsAndConditions': acceptTermsAndConditions.toString(), + if (connectionArn != null) 'ConnectionArn': connectionArn, + }; final $result = await _protocol.send( $request, action: 'RegisterPublisher', @@ -5121,8 +5253,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterPublisherInput'], - shapes: shapes, resultWrapper: 'RegisterPublisherResult', ); return RegisterPublisherOutput.fromXml($result); @@ -5269,13 +5399,16 @@ class CloudFormation { LoggingConfig? loggingConfig, RegistryType? type, }) async { - final $request = {}; - $request['SchemaHandlerPackage'] = schemaHandlerPackage; - $request['TypeName'] = typeName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - executionRoleArn?.also((arg) => $request['ExecutionRoleArn'] = arg); - loggingConfig?.also((arg) => $request['LoggingConfig'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); + final $request = { + 'SchemaHandlerPackage': schemaHandlerPackage, + 'TypeName': typeName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (executionRoleArn != null) 'ExecutionRoleArn': executionRoleArn, + if (loggingConfig != null) + for (var e1 in loggingConfig.toQueryMap().entries) + 'LoggingConfig.${e1.key}': e1.value, + if (type != null) 'Type': type.toValue(), + }; final $result = await _protocol.send( $request, action: 'RegisterType', @@ -5283,8 +5416,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterTypeInput'], - shapes: shapes, resultWrapper: 'RegisterTypeResult', ); return RegisterTypeOutput.fromXml($result); @@ -5343,11 +5474,13 @@ class CloudFormation { bool? retainExceptOnCreate, String? roleARN, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (roleARN != null) 'RoleARN': roleARN, + }; final $result = await _protocol.send( $request, action: 'RollbackStack', @@ -5355,8 +5488,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RollbackStackInput'], - shapes: shapes, resultWrapper: 'RollbackStackResult', ); return RollbackStackOutput.fromXml($result); @@ -5386,10 +5517,11 @@ class CloudFormation { String? stackPolicyBody, String? stackPolicyURL, }) async { - final $request = {}; - $request['StackName'] = stackName; - stackPolicyBody?.also((arg) => $request['StackPolicyBody'] = arg); - stackPolicyURL?.also((arg) => $request['StackPolicyURL'] = arg); + final $request = { + 'StackName': stackName, + if (stackPolicyBody != null) 'StackPolicyBody': stackPolicyBody, + if (stackPolicyURL != null) 'StackPolicyURL': stackPolicyURL, + }; await _protocol.send( $request, action: 'SetStackPolicy', @@ -5397,8 +5529,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetStackPolicyInput'], - shapes: shapes, ); } @@ -5474,12 +5604,13 @@ class CloudFormation { String? typeArn, String? typeName, }) async { - final $request = {}; - $request['Configuration'] = configuration; - configurationAlias?.also((arg) => $request['ConfigurationAlias'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeArn?.also((arg) => $request['TypeArn'] = arg); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + 'Configuration': configuration, + if (configurationAlias != null) 'ConfigurationAlias': configurationAlias, + if (type != null) 'Type': type.toValue(), + if (typeArn != null) 'TypeArn': typeArn, + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'SetTypeConfiguration', @@ -5487,8 +5618,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetTypeConfigurationInput'], - shapes: shapes, resultWrapper: 'SetTypeConfigurationResult', ); return SetTypeConfigurationOutput.fromXml($result); @@ -5529,11 +5658,12 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; await _protocol.send( $request, action: 'SetTypeDefaultVersion', @@ -5541,8 +5671,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetTypeDefaultVersionInput'], - shapes: shapes, resultWrapper: 'SetTypeDefaultVersionResult', ); } @@ -5579,11 +5707,12 @@ class CloudFormation { required ResourceSignalStatus status, required String uniqueId, }) async { - final $request = {}; - $request['LogicalResourceId'] = logicalResourceId; - $request['StackName'] = stackName; - $request['Status'] = status.toValue(); - $request['UniqueId'] = uniqueId; + final $request = { + 'LogicalResourceId': logicalResourceId, + 'StackName': stackName, + 'Status': status.toValue(), + 'UniqueId': uniqueId, + }; await _protocol.send( $request, action: 'SignalResource', @@ -5591,8 +5720,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SignalResourceInput'], - shapes: shapes, ); } @@ -5609,8 +5736,9 @@ class CloudFormation { Future startResourceScan({ String? clientRequestToken, }) async { - final $request = {}; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); + final $request = { + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + }; final $result = await _protocol.send( $request, action: 'StartResourceScan', @@ -5618,8 +5746,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartResourceScanInput'], - shapes: shapes, resultWrapper: 'StartResourceScanResult', ); return StartResourceScanOutput.fromXml($result); @@ -5667,10 +5793,11 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['OperationId'] = operationId; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'OperationId': operationId, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; await _protocol.send( $request, action: 'StopStackSetOperation', @@ -5678,8 +5805,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopStackSetOperationInput'], - shapes: shapes, resultWrapper: 'StopStackSetOperationResult', ); } @@ -5782,12 +5907,13 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - logDeliveryBucket?.also((arg) => $request['LogDeliveryBucket'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (logDeliveryBucket != null) 'LogDeliveryBucket': logDeliveryBucket, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; final $result = await _protocol.send( $request, action: 'TestType', @@ -5795,8 +5921,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestTypeInput'], - shapes: shapes, resultWrapper: 'TestTypeResult', ); return TestTypeOutput.fromXml($result); @@ -5842,15 +5966,29 @@ class CloudFormation { List? removeResources, TemplateConfiguration? templateConfiguration, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; - addResources?.also((arg) => $request['AddResources'] = arg); - newGeneratedTemplateName - ?.also((arg) => $request['NewGeneratedTemplateName'] = arg); - refreshAllResources?.also((arg) => $request['RefreshAllResources'] = arg); - removeResources?.also((arg) => $request['RemoveResources'] = arg); - templateConfiguration - ?.also((arg) => $request['TemplateConfiguration'] = arg); + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + if (addResources != null) + if (addResources.isEmpty) + 'AddResources': '' + else + for (var i1 = 0; i1 < addResources.length; i1++) + for (var e3 in addResources[i1].toQueryMap().entries) + 'AddResources.member.${i1 + 1}.${e3.key}': e3.value, + if (newGeneratedTemplateName != null) + 'NewGeneratedTemplateName': newGeneratedTemplateName, + if (refreshAllResources != null) + 'RefreshAllResources': refreshAllResources.toString(), + if (removeResources != null) + if (removeResources.isEmpty) + 'RemoveResources': '' + else + for (var i1 = 0; i1 < removeResources.length; i1++) + 'RemoveResources.member.${i1 + 1}': removeResources[i1], + if (templateConfiguration != null) + for (var e1 in templateConfiguration.toQueryMap().entries) + 'TemplateConfiguration.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'UpdateGeneratedTemplate', @@ -5858,8 +5996,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'UpdateGeneratedTemplateResult', ); return UpdateGeneratedTemplateOutput.fromXml($result); @@ -6177,29 +6313,60 @@ class CloudFormation { String? templateURL, bool? usePreviousTemplate, }) async { - final $request = {}; - $request['StackName'] = stackName; - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - disableRollback?.also((arg) => $request['DisableRollback'] = arg); - notificationARNs?.also((arg) => $request['NotificationARNs'] = arg); - parameters?.also((arg) => $request['Parameters'] = arg); - resourceTypes?.also((arg) => $request['ResourceTypes'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); - rollbackConfiguration - ?.also((arg) => $request['RollbackConfiguration'] = arg); - stackPolicyBody?.also((arg) => $request['StackPolicyBody'] = arg); - stackPolicyDuringUpdateBody - ?.also((arg) => $request['StackPolicyDuringUpdateBody'] = arg); - stackPolicyDuringUpdateURL - ?.also((arg) => $request['StackPolicyDuringUpdateURL'] = arg); - stackPolicyURL?.also((arg) => $request['StackPolicyURL'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - usePreviousTemplate?.also((arg) => $request['UsePreviousTemplate'] = arg); + final $request = { + 'StackName': stackName, + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (disableRollback != null) + 'DisableRollback': disableRollback.toString(), + if (notificationARNs != null) + if (notificationARNs.isEmpty) + 'NotificationARNs': '' + else + for (var i1 = 0; i1 < notificationARNs.length; i1++) + 'NotificationARNs.member.${i1 + 1}': notificationARNs[i1], + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (resourceTypes != null) + if (resourceTypes.isEmpty) + 'ResourceTypes': '' + else + for (var i1 = 0; i1 < resourceTypes.length; i1++) + 'ResourceTypes.member.${i1 + 1}': resourceTypes[i1], + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (roleARN != null) 'RoleARN': roleARN, + if (rollbackConfiguration != null) + for (var e1 in rollbackConfiguration.toQueryMap().entries) + 'RollbackConfiguration.${e1.key}': e1.value, + if (stackPolicyBody != null) 'StackPolicyBody': stackPolicyBody, + if (stackPolicyDuringUpdateBody != null) + 'StackPolicyDuringUpdateBody': stackPolicyDuringUpdateBody, + if (stackPolicyDuringUpdateURL != null) + 'StackPolicyDuringUpdateURL': stackPolicyDuringUpdateURL, + if (stackPolicyURL != null) 'StackPolicyURL': stackPolicyURL, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (usePreviousTemplate != null) + 'UsePreviousTemplate': usePreviousTemplate.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateStack', @@ -6207,8 +6374,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStackInput'], - shapes: shapes, resultWrapper: 'UpdateStackResult', ); return UpdateStackOutput.fromXml($result); @@ -6363,15 +6528,35 @@ class CloudFormation { StackSetOperationPreferences? operationPreferences, List? parameterOverrides, }) async { - final $request = {}; - $request['Regions'] = regions; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - parameterOverrides?.also((arg) => $request['ParameterOverrides'] = arg); + final $request = { + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (callAs != null) 'CallAs': callAs.toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (parameterOverrides != null) + if (parameterOverrides.isEmpty) + 'ParameterOverrides': '' + else + for (var i1 = 0; i1 < parameterOverrides.length; i1++) + for (var e3 in parameterOverrides[i1].toQueryMap().entries) + 'ParameterOverrides.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'UpdateStackInstances', @@ -6379,8 +6564,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStackInstancesInput'], - shapes: shapes, resultWrapper: 'UpdateStackInstancesResult', ); return UpdateStackInstancesOutput.fromXml($result); @@ -6750,28 +6933,64 @@ class CloudFormation { String? templateURL, bool? usePreviousTemplate, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - administrationRoleARN - ?.also((arg) => $request['AdministrationRoleARN'] = arg); - autoDeployment?.also((arg) => $request['AutoDeployment'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - description?.also((arg) => $request['Description'] = arg); - executionRoleName?.also((arg) => $request['ExecutionRoleName'] = arg); - managedExecution?.also((arg) => $request['ManagedExecution'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - parameters?.also((arg) => $request['Parameters'] = arg); - permissionModel?.also((arg) => $request['PermissionModel'] = arg.toValue()); - regions?.also((arg) => $request['Regions'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - usePreviousTemplate?.also((arg) => $request['UsePreviousTemplate'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (administrationRoleARN != null) + 'AdministrationRoleARN': administrationRoleARN, + if (autoDeployment != null) + for (var e1 in autoDeployment.toQueryMap().entries) + 'AutoDeployment.${e1.key}': e1.value, + if (callAs != null) 'CallAs': callAs.toValue(), + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + if (description != null) 'Description': description, + if (executionRoleName != null) 'ExecutionRoleName': executionRoleName, + if (managedExecution != null) + for (var e1 in managedExecution.toQueryMap().entries) + 'ManagedExecution.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (permissionModel != null) 'PermissionModel': permissionModel.toValue(), + if (regions != null) + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (usePreviousTemplate != null) + 'UsePreviousTemplate': usePreviousTemplate.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateStackSet', @@ -6779,8 +6998,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStackSetInput'], - shapes: shapes, resultWrapper: 'UpdateStackSetResult', ); return UpdateStackSetOutput.fromXml($result); @@ -6807,9 +7024,10 @@ class CloudFormation { required bool enableTerminationProtection, required String stackName, }) async { - final $request = {}; - $request['EnableTerminationProtection'] = enableTerminationProtection; - $request['StackName'] = stackName; + final $request = { + 'EnableTerminationProtection': enableTerminationProtection.toString(), + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'UpdateTerminationProtection', @@ -6817,8 +7035,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateTerminationProtectionInput'], - shapes: shapes, resultWrapper: 'UpdateTerminationProtectionResult', ); return UpdateTerminationProtectionOutput.fromXml($result); @@ -6854,9 +7070,10 @@ class CloudFormation { String? templateBody, String? templateURL, }) async { - final $request = {}; - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'ValidateTemplate', @@ -6864,8 +7081,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ValidateTemplateInput'], - shapes: shapes, resultWrapper: 'ValidateTemplateResult', ); return ValidateTemplateOutput.fromXml($result); @@ -7181,6 +7396,16 @@ class AutoDeployment { 'RetainStacksOnAccountRemoval': retainStacksOnAccountRemoval, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final retainStacksOnAccountRemoval = this.retainStacksOnAccountRemoval; + return { + if (enabled != null) 'Enabled': enabled.toString(), + if (retainStacksOnAccountRemoval != null) + 'RetainStacksOnAccountRemoval': retainStacksOnAccountRemoval.toString(), + }; + } } /// Detailed information concerning an error generated during the setting of @@ -8292,6 +8517,30 @@ class DeploymentTargets { 'OrganizationalUnitIds': organizationalUnitIds, }; } + + Map toQueryMap() { + final accountFilterType = this.accountFilterType; + final accounts = this.accounts; + final accountsUrl = this.accountsUrl; + final organizationalUnitIds = this.organizationalUnitIds; + return { + if (accountFilterType != null) + 'AccountFilterType': accountFilterType.toValue(), + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (accountsUrl != null) 'AccountsUrl': accountsUrl, + if (organizationalUnitIds != null) + if (organizationalUnitIds.isEmpty) + 'OrganizationalUnitIds': '' + else + for (var i1 = 0; i1 < organizationalUnitIds.length; i1++) + 'OrganizationalUnitIds.member.${i1 + 1}': organizationalUnitIds[i1], + }; + } } enum DeprecatedStatus { @@ -11424,6 +11673,15 @@ class LoggingConfig { 'LogRoleArn': logRoleArn, }; } + + Map toQueryMap() { + final logGroupName = this.logGroupName; + final logRoleArn = this.logRoleArn; + return { + 'LogGroupName': logGroupName, + 'LogRoleArn': logRoleArn, + }; + } } /// Describes whether StackSets performs non-conflicting operations concurrently @@ -11458,6 +11716,13 @@ class ManagedExecution { if (active != null) 'Active': active, }; } + + Map toQueryMap() { + final active = this.active; + return { + if (active != null) 'Active': active.toString(), + }; + } } /// Contains information about the module from which the resource was created, @@ -11602,6 +11867,15 @@ class OperationResultFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + if (name != null) 'Name': name.toValue(), + if (values != null) 'Values': values, + }; + } } enum OperationResultFilterName { @@ -11789,6 +12063,20 @@ class Parameter { if (usePreviousValue != null) 'UsePreviousValue': usePreviousValue, }; } + + Map toQueryMap() { + final parameterKey = this.parameterKey; + final parameterValue = this.parameterValue; + final resolvedValue = this.resolvedValue; + final usePreviousValue = this.usePreviousValue; + return { + if (parameterKey != null) 'ParameterKey': parameterKey, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (resolvedValue != null) 'ResolvedValue': resolvedValue, + if (usePreviousValue != null) + 'UsePreviousValue': usePreviousValue.toString(), + }; + } } /// A set of criteria that CloudFormation uses to validate parameter values. @@ -12782,6 +13070,20 @@ class ResourceDefinition { if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, }; } + + Map toQueryMap() { + final resourceIdentifier = this.resourceIdentifier; + final resourceType = this.resourceType; + final logicalResourceId = this.logicalResourceId; + return { + for (var e1 in resourceIdentifier.entries.toList().asMap().entries) ...{ + 'ResourceIdentifier.entry.${e1.key + 1}.key': e1.value.key, + 'ResourceIdentifier.entry.${e1.key + 1}.value': e1.value.value, + }, + 'ResourceType': resourceType, + if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, + }; + } } /// Details about a resource in a generated template @@ -13317,6 +13619,20 @@ class ResourceToImport { 'ResourceType': resourceType, }; } + + Map toQueryMap() { + final logicalResourceId = this.logicalResourceId; + final resourceIdentifier = this.resourceIdentifier; + final resourceType = this.resourceType; + return { + 'LogicalResourceId': logicalResourceId, + for (var e1 in resourceIdentifier.entries.toList().asMap().entries) ...{ + 'ResourceIdentifier.entry.${e1.key + 1}.key': e1.value.key, + 'ResourceIdentifier.entry.${e1.key + 1}.value': e1.value.value, + }, + 'ResourceType': resourceType, + }; + } } /// Structure containing the rollback triggers for CloudFormation to monitor @@ -13404,6 +13720,22 @@ class RollbackConfiguration { if (rollbackTriggers != null) 'RollbackTriggers': rollbackTriggers, }; } + + Map toQueryMap() { + final monitoringTimeInMinutes = this.monitoringTimeInMinutes; + final rollbackTriggers = this.rollbackTriggers; + return { + if (monitoringTimeInMinutes != null) + 'MonitoringTimeInMinutes': monitoringTimeInMinutes.toString(), + if (rollbackTriggers != null) + if (rollbackTriggers.isEmpty) + 'RollbackTriggers': '' + else + for (var i1 = 0; i1 < rollbackTriggers.length; i1++) + for (var e3 in rollbackTriggers[i1].toQueryMap().entries) + 'RollbackTriggers.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } class RollbackStackOutput { @@ -13464,6 +13796,15 @@ class RollbackTrigger { 'Type': type, }; } + + Map toQueryMap() { + final arn = this.arn; + final type = this.type; + return { + 'Arn': arn, + 'Type': type, + }; + } } /// A scanned resource returned by ListResourceScanResources or @@ -13560,6 +13901,18 @@ class ScannedResourceIdentifier { 'ResourceType': resourceType, }; } + + Map toQueryMap() { + final resourceIdentifier = this.resourceIdentifier; + final resourceType = this.resourceType; + return { + for (var e1 in resourceIdentifier.entries.toList().asMap().entries) ...{ + 'ResourceIdentifier.entry.${e1.key + 1}.key': e1.value.key, + 'ResourceIdentifier.entry.${e1.key + 1}.value': e1.value.value, + }, + 'ResourceType': resourceType, + }; + } } class SetTypeConfigurationOutput { @@ -14576,6 +14929,15 @@ class StackInstanceFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + if (name != null) 'Name': name.toValue(), + if (values != null) 'Values': values, + }; + } } enum StackInstanceFilterName { @@ -16434,6 +16796,35 @@ class StackSetOperationPreferences { if (regionOrder != null) 'RegionOrder': regionOrder, }; } + + Map toQueryMap() { + final concurrencyMode = this.concurrencyMode; + final failureToleranceCount = this.failureToleranceCount; + final failureTolerancePercentage = this.failureTolerancePercentage; + final maxConcurrentCount = this.maxConcurrentCount; + final maxConcurrentPercentage = this.maxConcurrentPercentage; + final regionConcurrencyType = this.regionConcurrencyType; + final regionOrder = this.regionOrder; + return { + if (concurrencyMode != null) 'ConcurrencyMode': concurrencyMode.toValue(), + if (failureToleranceCount != null) + 'FailureToleranceCount': failureToleranceCount.toString(), + if (failureTolerancePercentage != null) + 'FailureTolerancePercentage': failureTolerancePercentage.toString(), + if (maxConcurrentCount != null) + 'MaxConcurrentCount': maxConcurrentCount.toString(), + if (maxConcurrentPercentage != null) + 'MaxConcurrentPercentage': maxConcurrentPercentage.toString(), + if (regionConcurrencyType != null) + 'RegionConcurrencyType': regionConcurrencyType.toValue(), + if (regionOrder != null) + if (regionOrder.isEmpty) + 'RegionOrder': '' + else + for (var i1 = 0; i1 < regionOrder.length; i1++) + 'RegionOrder.member.${i1 + 1}': regionOrder[i1], + }; + } } enum StackSetOperationResultStatus { @@ -17257,6 +17648,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } /// The configuration details of a generated template. @@ -17319,6 +17719,16 @@ class TemplateConfiguration { 'UpdateReplacePolicy': updateReplacePolicy.toValue(), }; } + + Map toQueryMap() { + final deletionPolicy = this.deletionPolicy; + final updateReplacePolicy = this.updateReplacePolicy; + return { + if (deletionPolicy != null) 'DeletionPolicy': deletionPolicy.toValue(), + if (updateReplacePolicy != null) + 'UpdateReplacePolicy': updateReplacePolicy.toValue(), + }; + } } enum TemplateFormat { @@ -17588,6 +17998,16 @@ class TemplateSummaryConfig { treatUnrecognizedResourceTypesAsWarnings, }; } + + Map toQueryMap() { + final treatUnrecognizedResourceTypesAsWarnings = + this.treatUnrecognizedResourceTypesAsWarnings; + return { + if (treatUnrecognizedResourceTypesAsWarnings != null) + 'TreatUnrecognizedResourceTypesAsWarnings': + treatUnrecognizedResourceTypesAsWarnings.toString(), + }; + } } class TestTypeOutput { @@ -17795,6 +18215,23 @@ class TypeConfigurationIdentifier { if (typeName != null) 'TypeName': typeName, }; } + + Map toQueryMap() { + final type = this.type; + final typeArn = this.typeArn; + final typeConfigurationAlias = this.typeConfigurationAlias; + final typeConfigurationArn = this.typeConfigurationArn; + final typeName = this.typeName; + return { + if (type != null) 'Type': type.toValue(), + if (typeArn != null) 'TypeArn': typeArn, + if (typeConfigurationAlias != null) + 'TypeConfigurationAlias': typeConfigurationAlias, + if (typeConfigurationArn != null) + 'TypeConfigurationArn': typeConfigurationArn, + if (typeName != null) 'TypeName': typeName, + }; + } } /// Filter criteria to use in determining which extensions to return. @@ -17855,6 +18292,17 @@ class TypeFilters { if (typeNamePrefix != null) 'TypeNamePrefix': typeNamePrefix, }; } + + Map toQueryMap() { + final category = this.category; + final publisherId = this.publisherId; + final typeNamePrefix = this.typeNamePrefix; + return { + if (category != null) 'Category': category.toValue(), + if (publisherId != null) 'PublisherId': publisherId, + if (typeNamePrefix != null) 'TypeNamePrefix': typeNamePrefix, + }; + } } /// Contains summary information about the specified CloudFormation extension. diff --git a/aws_client/lib/src/generated/cloud_formation/v2010_05_15.meta.dart b/aws_client/lib/src/generated/cloud_formation/v2010_05_15.meta.dart deleted file mode 100644 index 03d467c8c..000000000 --- a/aws_client/lib/src/generated/cloud_formation/v2010_05_15.meta.dart +++ /dev/null @@ -1,3418 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AcceptTermsAndConditions": {"type": "boolean", "flattened": false}, - "Account": {"type": "string", "flattened": false}, - "AccountFilterType": {"type": "string", "flattened": false}, - "AccountGateResult": { - "type": "structure", - "members": { - "Status": {"shape": "AccountGateStatus", "flattened": false}, - "StatusReason": {"shape": "AccountGateStatusReason", "flattened": false} - }, - "flattened": false - }, - "AccountGateStatus": {"type": "string", "flattened": false}, - "AccountGateStatusReason": {"type": "string", "flattened": false}, - "AccountLimit": { - "type": "structure", - "members": { - "Name": {"shape": "LimitName", "flattened": false}, - "Value": {"shape": "LimitValue", "flattened": false} - }, - "flattened": false - }, - "AccountLimitList": { - "type": "list", - "member": {"shape": "AccountLimit"}, - "flattened": false - }, - "AccountList": { - "type": "list", - "member": {"shape": "Account"}, - "flattened": false - }, - "AccountsUrl": {"type": "string", "flattened": false}, - "ActivateOrganizationsAccessInput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ActivateOrganizationsAccessOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ActivateTypeInput": { - "type": "structure", - "members": { - "Type": {"shape": "ThirdPartyType", "flattened": false}, - "PublicTypeArn": {"shape": "ThirdPartyTypeArn", "flattened": false}, - "PublisherId": {"shape": "PublisherId", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "TypeNameAlias": {"shape": "TypeName", "flattened": false}, - "AutoUpdate": {"shape": "AutoUpdate", "flattened": false}, - "LoggingConfig": {"shape": "LoggingConfig", "flattened": false}, - "ExecutionRoleArn": {"shape": "RoleArn", "flattened": false}, - "VersionBump": {"shape": "VersionBump", "flattened": false}, - "MajorVersion": {"shape": "MajorVersion", "flattened": false} - }, - "flattened": false - }, - "ActivateTypeOutput": { - "type": "structure", - "members": { - "Arn": {"shape": "PrivateTypeArn", "flattened": false} - }, - "flattened": false - }, - "AfterContext": {"type": "string", "flattened": false}, - "AfterValue": {"type": "string", "flattened": false}, - "AllowedValue": {"type": "string", "flattened": false}, - "AllowedValues": { - "type": "list", - "member": {"shape": "AllowedValue"}, - "flattened": false - }, - "Arn": {"type": "string", "flattened": false}, - "AttributeChangeType": {"type": "string", "flattened": false}, - "AutoDeployment": { - "type": "structure", - "members": { - "Enabled": {"shape": "AutoDeploymentNullable", "flattened": false}, - "RetainStacksOnAccountRemoval": { - "shape": "RetainStacksOnAccountRemovalNullable", - "flattened": false - } - }, - "flattened": false - }, - "AutoDeploymentNullable": {"type": "boolean", "flattened": false}, - "AutoUpdate": {"type": "boolean", "flattened": false}, - "BatchDescribeTypeConfigurationsError": { - "type": "structure", - "members": { - "ErrorCode": {"shape": "ErrorCode", "flattened": false}, - "ErrorMessage": {"shape": "ErrorMessage", "flattened": false}, - "TypeConfigurationIdentifier": { - "shape": "TypeConfigurationIdentifier", - "flattened": false - } - }, - "flattened": false - }, - "BatchDescribeTypeConfigurationsErrors": { - "type": "list", - "member": {"shape": "BatchDescribeTypeConfigurationsError"}, - "flattened": false - }, - "BatchDescribeTypeConfigurationsInput": { - "type": "structure", - "members": { - "TypeConfigurationIdentifiers": { - "shape": "TypeConfigurationIdentifiers", - "flattened": false - } - }, - "flattened": false - }, - "BatchDescribeTypeConfigurationsOutput": { - "type": "structure", - "members": { - "Errors": { - "shape": "BatchDescribeTypeConfigurationsErrors", - "flattened": false - }, - "UnprocessedTypeConfigurations": { - "shape": "UnprocessedTypeConfigurations", - "flattened": false - }, - "TypeConfigurations": { - "shape": "TypeConfigurationDetailsList", - "flattened": false - } - }, - "flattened": false - }, - "BeforeContext": {"type": "string", "flattened": false}, - "BeforeValue": {"type": "string", "flattened": false}, - "BoxedInteger": {"type": "integer", "flattened": false}, - "BoxedMaxResults": {"type": "integer", "flattened": false}, - "CallAs": {"type": "string", "flattened": false}, - "CancelUpdateStackInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "Capabilities": { - "type": "list", - "member": {"shape": "Capability"}, - "flattened": false - }, - "CapabilitiesReason": {"type": "string", "flattened": false}, - "Capability": {"type": "string", "flattened": false}, - "Category": {"type": "string", "flattened": false}, - "CausingEntity": {"type": "string", "flattened": false}, - "Change": { - "type": "structure", - "members": { - "Type": {"shape": "ChangeType", "flattened": false}, - "HookInvocationCount": { - "shape": "HookInvocationCount", - "flattened": false - }, - "ResourceChange": {"shape": "ResourceChange", "flattened": false} - }, - "flattened": false - }, - "ChangeAction": {"type": "string", "flattened": false}, - "ChangeSetHook": { - "type": "structure", - "members": { - "InvocationPoint": {"shape": "HookInvocationPoint", "flattened": false}, - "FailureMode": {"shape": "HookFailureMode", "flattened": false}, - "TypeName": {"shape": "HookTypeName", "flattened": false}, - "TypeVersionId": {"shape": "HookTypeVersionId", "flattened": false}, - "TypeConfigurationVersionId": { - "shape": "HookTypeConfigurationVersionId", - "flattened": false - }, - "TargetDetails": { - "shape": "ChangeSetHookTargetDetails", - "flattened": false - } - }, - "flattened": false - }, - "ChangeSetHookResourceTargetDetails": { - "type": "structure", - "members": { - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "ResourceType": {"shape": "HookTargetTypeName", "flattened": false}, - "ResourceAction": {"shape": "ChangeAction", "flattened": false} - }, - "flattened": false - }, - "ChangeSetHookTargetDetails": { - "type": "structure", - "members": { - "TargetType": {"shape": "HookTargetType", "flattened": false}, - "ResourceTargetDetails": { - "shape": "ChangeSetHookResourceTargetDetails", - "flattened": false - } - }, - "flattened": false - }, - "ChangeSetHooks": { - "type": "list", - "member": {"shape": "ChangeSetHook"}, - "flattened": false - }, - "ChangeSetHooksStatus": {"type": "string", "flattened": false}, - "ChangeSetId": {"type": "string", "flattened": false}, - "ChangeSetName": {"type": "string", "flattened": false}, - "ChangeSetNameOrId": {"type": "string", "flattened": false}, - "ChangeSetStatus": {"type": "string", "flattened": false}, - "ChangeSetStatusReason": {"type": "string", "flattened": false}, - "ChangeSetSummaries": { - "type": "list", - "member": {"shape": "ChangeSetSummary"}, - "flattened": false - }, - "ChangeSetSummary": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false}, - "StackName": {"shape": "StackName", "flattened": false}, - "ChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "ChangeSetName": {"shape": "ChangeSetName", "flattened": false}, - "ExecutionStatus": {"shape": "ExecutionStatus", "flattened": false}, - "Status": {"shape": "ChangeSetStatus", "flattened": false}, - "StatusReason": {"shape": "ChangeSetStatusReason", "flattened": false}, - "CreationTime": {"shape": "CreationTime", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "IncludeNestedStacks": { - "shape": "IncludeNestedStacks", - "flattened": false - }, - "ParentChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "RootChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "ImportExistingResources": { - "shape": "ImportExistingResources", - "flattened": false - } - }, - "flattened": false - }, - "ChangeSetType": {"type": "string", "flattened": false}, - "ChangeSource": {"type": "string", "flattened": false}, - "ChangeType": {"type": "string", "flattened": false}, - "Changes": { - "type": "list", - "member": {"shape": "Change"}, - "flattened": false - }, - "ClientRequestToken": {"type": "string", "flattened": false}, - "ClientToken": {"type": "string", "flattened": false}, - "ConcurrencyMode": {"type": "string", "flattened": false}, - "ConfigurationSchema": {"type": "string", "flattened": false}, - "ConnectionArn": {"type": "string", "flattened": false}, - "ContinueUpdateRollbackInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "RoleARN": {"shape": "RoleARN", "flattened": false}, - "ResourcesToSkip": {"shape": "ResourcesToSkip", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "ContinueUpdateRollbackOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateChangeSetInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false}, - "UsePreviousTemplate": { - "shape": "UsePreviousTemplate", - "flattened": false - }, - "Parameters": {"shape": "Parameters", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "ResourceTypes": {"shape": "ResourceTypes", "flattened": false}, - "RoleARN": {"shape": "RoleARN", "flattened": false}, - "RollbackConfiguration": { - "shape": "RollbackConfiguration", - "flattened": false - }, - "NotificationARNs": {"shape": "NotificationARNs", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "ChangeSetName": {"shape": "ChangeSetName", "flattened": false}, - "ClientToken": {"shape": "ClientToken", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "ChangeSetType": {"shape": "ChangeSetType", "flattened": false}, - "ResourcesToImport": {"shape": "ResourcesToImport", "flattened": false}, - "IncludeNestedStacks": { - "shape": "IncludeNestedStacks", - "flattened": false - }, - "OnStackFailure": {"shape": "OnStackFailure", "flattened": false}, - "ImportExistingResources": { - "shape": "ImportExistingResources", - "flattened": false - } - }, - "flattened": false - }, - "CreateChangeSetOutput": { - "type": "structure", - "members": { - "Id": {"shape": "ChangeSetId", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false} - }, - "flattened": false - }, - "CreateGeneratedTemplateInput": { - "type": "structure", - "members": { - "Resources": {"shape": "ResourceDefinitions", "flattened": false}, - "GeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - }, - "StackName": {"shape": "StackName", "flattened": false}, - "TemplateConfiguration": { - "shape": "TemplateConfiguration", - "flattened": false - } - }, - "flattened": false - }, - "CreateGeneratedTemplateOutput": { - "type": "structure", - "members": { - "GeneratedTemplateId": { - "shape": "GeneratedTemplateId", - "flattened": false - } - }, - "flattened": false - }, - "CreateStackInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false}, - "Parameters": {"shape": "Parameters", "flattened": false}, - "DisableRollback": {"shape": "DisableRollback", "flattened": false}, - "RollbackConfiguration": { - "shape": "RollbackConfiguration", - "flattened": false - }, - "TimeoutInMinutes": {"shape": "TimeoutMinutes", "flattened": false}, - "NotificationARNs": {"shape": "NotificationARNs", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "ResourceTypes": {"shape": "ResourceTypes", "flattened": false}, - "RoleARN": {"shape": "RoleARN", "flattened": false}, - "OnFailure": {"shape": "OnFailure", "flattened": false}, - "StackPolicyBody": {"shape": "StackPolicyBody", "flattened": false}, - "StackPolicyURL": {"shape": "StackPolicyURL", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false}, - "EnableTerminationProtection": { - "shape": "EnableTerminationProtection", - "flattened": false - }, - "RetainExceptOnCreate": { - "shape": "RetainExceptOnCreate", - "flattened": false - } - }, - "flattened": false - }, - "CreateStackInstancesInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "Accounts": {"shape": "AccountList", "flattened": false}, - "DeploymentTargets": {"shape": "DeploymentTargets", "flattened": false}, - "Regions": {"shape": "RegionList", "flattened": false}, - "ParameterOverrides": {"shape": "Parameters", "flattened": false}, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - }, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "CreateStackInstancesOutput": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "CreateStackOutput": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false} - }, - "flattened": false - }, - "CreateStackSetInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "Parameters": {"shape": "Parameters", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "AdministrationRoleARN": {"shape": "RoleARN", "flattened": false}, - "ExecutionRoleName": {"shape": "ExecutionRoleName", "flattened": false}, - "PermissionModel": {"shape": "PermissionModels", "flattened": false}, - "AutoDeployment": {"shape": "AutoDeployment", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false}, - "ManagedExecution": {"shape": "ManagedExecution", "flattened": false} - }, - "flattened": false - }, - "CreateStackSetOutput": { - "type": "structure", - "members": { - "StackSetId": {"shape": "StackSetId", "flattened": false} - }, - "flattened": false - }, - "CreationTime": {"type": "timestamp", "flattened": false}, - "DeactivateOrganizationsAccessInput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeactivateOrganizationsAccessOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeactivateTypeInput": { - "type": "structure", - "members": { - "TypeName": {"shape": "TypeName", "flattened": false}, - "Type": {"shape": "ThirdPartyType", "flattened": false}, - "Arn": {"shape": "PrivateTypeArn", "flattened": false} - }, - "flattened": false - }, - "DeactivateTypeOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteChangeSetInput": { - "type": "structure", - "members": { - "ChangeSetName": {"shape": "ChangeSetNameOrId", "flattened": false}, - "StackName": {"shape": "StackNameOrId", "flattened": false} - }, - "flattened": false - }, - "DeleteChangeSetOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteGeneratedTemplateInput": { - "type": "structure", - "members": { - "GeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - } - }, - "flattened": false - }, - "DeleteStackInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "RetainResources": {"shape": "RetainResources", "flattened": false}, - "RoleARN": {"shape": "RoleARN", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false}, - "DeletionMode": {"shape": "DeletionMode", "flattened": false} - }, - "flattened": false - }, - "DeleteStackInstancesInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "Accounts": {"shape": "AccountList", "flattened": false}, - "DeploymentTargets": {"shape": "DeploymentTargets", "flattened": false}, - "Regions": {"shape": "RegionList", "flattened": false}, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - }, - "RetainStacks": {"shape": "RetainStacks", "flattened": false}, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "DeleteStackInstancesOutput": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "DeleteStackSetInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "DeleteStackSetOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeletionMode": {"type": "string", "flattened": false}, - "DeletionTime": {"type": "timestamp", "flattened": false}, - "DeploymentTargets": { - "type": "structure", - "members": { - "Accounts": {"shape": "AccountList", "flattened": false}, - "AccountsUrl": {"shape": "AccountsUrl", "flattened": false}, - "OrganizationalUnitIds": { - "shape": "OrganizationalUnitIdList", - "flattened": false - }, - "AccountFilterType": {"shape": "AccountFilterType", "flattened": false} - }, - "flattened": false - }, - "DeprecatedStatus": {"type": "string", "flattened": false}, - "DeregisterTypeInput": { - "type": "structure", - "members": { - "Arn": {"shape": "PrivateTypeArn", "flattened": false}, - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "VersionId": {"shape": "TypeVersionId", "flattened": false} - }, - "flattened": false - }, - "DeregisterTypeOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DescribeAccountLimitsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeAccountLimitsOutput": { - "type": "structure", - "members": { - "AccountLimits": {"shape": "AccountLimitList", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeChangeSetHooksInput": { - "type": "structure", - "members": { - "ChangeSetName": {"shape": "ChangeSetNameOrId", "flattened": false}, - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false} - }, - "flattened": false - }, - "DescribeChangeSetHooksOutput": { - "type": "structure", - "members": { - "ChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "ChangeSetName": {"shape": "ChangeSetName", "flattened": false}, - "Hooks": {"shape": "ChangeSetHooks", "flattened": false}, - "Status": {"shape": "ChangeSetHooksStatus", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "StackName": {"shape": "StackName", "flattened": false} - }, - "flattened": false - }, - "DescribeChangeSetInput": { - "type": "structure", - "members": { - "ChangeSetName": {"shape": "ChangeSetNameOrId", "flattened": false}, - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "IncludePropertyValues": { - "shape": "IncludePropertyValues", - "flattened": false - } - }, - "flattened": false - }, - "DescribeChangeSetOutput": { - "type": "structure", - "members": { - "ChangeSetName": {"shape": "ChangeSetName", "flattened": false}, - "ChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "StackName": {"shape": "StackName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Parameters": {"shape": "Parameters", "flattened": false}, - "CreationTime": {"shape": "CreationTime", "flattened": false}, - "ExecutionStatus": {"shape": "ExecutionStatus", "flattened": false}, - "Status": {"shape": "ChangeSetStatus", "flattened": false}, - "StatusReason": {"shape": "ChangeSetStatusReason", "flattened": false}, - "NotificationARNs": {"shape": "NotificationARNs", "flattened": false}, - "RollbackConfiguration": { - "shape": "RollbackConfiguration", - "flattened": false - }, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "Changes": {"shape": "Changes", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "IncludeNestedStacks": { - "shape": "IncludeNestedStacks", - "flattened": false - }, - "ParentChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "RootChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "OnStackFailure": {"shape": "OnStackFailure", "flattened": false}, - "ImportExistingResources": { - "shape": "ImportExistingResources", - "flattened": false - } - }, - "flattened": false - }, - "DescribeGeneratedTemplateInput": { - "type": "structure", - "members": { - "GeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - } - }, - "flattened": false - }, - "DescribeGeneratedTemplateOutput": { - "type": "structure", - "members": { - "GeneratedTemplateId": { - "shape": "GeneratedTemplateId", - "flattened": false - }, - "GeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - }, - "Resources": {"shape": "ResourceDetails", "flattened": false}, - "Status": {"shape": "GeneratedTemplateStatus", "flattened": false}, - "StatusReason": {"shape": "TemplateStatusReason", "flattened": false}, - "CreationTime": {"shape": "CreationTime", "flattened": false}, - "LastUpdatedTime": {"shape": "LastUpdatedTime", "flattened": false}, - "Progress": {"shape": "TemplateProgress", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "TemplateConfiguration": { - "shape": "TemplateConfiguration", - "flattened": false - }, - "TotalWarnings": {"shape": "TotalWarnings", "flattened": false} - }, - "flattened": false - }, - "DescribeOrganizationsAccessInput": { - "type": "structure", - "members": { - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "DescribeOrganizationsAccessOutput": { - "type": "structure", - "members": { - "Status": {"shape": "OrganizationStatus", "flattened": false} - }, - "flattened": false - }, - "DescribePublisherInput": { - "type": "structure", - "members": { - "PublisherId": {"shape": "PublisherId", "flattened": false} - }, - "flattened": false - }, - "DescribePublisherOutput": { - "type": "structure", - "members": { - "PublisherId": {"shape": "PublisherId", "flattened": false}, - "PublisherStatus": {"shape": "PublisherStatus", "flattened": false}, - "IdentityProvider": {"shape": "IdentityProvider", "flattened": false}, - "PublisherProfile": {"shape": "PublisherProfile", "flattened": false} - }, - "flattened": false - }, - "DescribeResourceScanInput": { - "type": "structure", - "members": { - "ResourceScanId": {"shape": "ResourceScanId", "flattened": false} - }, - "flattened": false - }, - "DescribeResourceScanOutput": { - "type": "structure", - "members": { - "ResourceScanId": {"shape": "ResourceScanId", "flattened": false}, - "Status": {"shape": "ResourceScanStatus", "flattened": false}, - "StatusReason": {"shape": "ResourceScanStatusReason", "flattened": false}, - "StartTime": {"shape": "Timestamp", "flattened": false}, - "EndTime": {"shape": "Timestamp", "flattened": false}, - "PercentageCompleted": { - "shape": "PercentageCompleted", - "flattened": false - }, - "ResourceTypes": {"shape": "ResourceTypes", "flattened": false}, - "ResourcesScanned": {"shape": "ResourcesScanned", "flattened": false}, - "ResourcesRead": {"shape": "ResourcesRead", "flattened": false} - }, - "flattened": false - }, - "DescribeStackDriftDetectionStatusInput": { - "type": "structure", - "members": { - "StackDriftDetectionId": { - "shape": "StackDriftDetectionId", - "flattened": false - } - }, - "flattened": false - }, - "DescribeStackDriftDetectionStatusOutput": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false}, - "StackDriftDetectionId": { - "shape": "StackDriftDetectionId", - "flattened": false - }, - "StackDriftStatus": {"shape": "StackDriftStatus", "flattened": false}, - "DetectionStatus": { - "shape": "StackDriftDetectionStatus", - "flattened": false - }, - "DetectionStatusReason": { - "shape": "StackDriftDetectionStatusReason", - "flattened": false - }, - "DriftedStackResourceCount": { - "shape": "BoxedInteger", - "flattened": false - }, - "Timestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "DescribeStackEventsInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeStackEventsOutput": { - "type": "structure", - "members": { - "StackEvents": {"shape": "StackEvents", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeStackInstanceInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "StackInstanceAccount": {"shape": "Account", "flattened": false}, - "StackInstanceRegion": {"shape": "Region", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "DescribeStackInstanceOutput": { - "type": "structure", - "members": { - "StackInstance": {"shape": "StackInstance", "flattened": false} - }, - "flattened": false - }, - "DescribeStackResourceDriftsInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "StackResourceDriftStatusFilters": { - "shape": "StackResourceDriftStatusFilters", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "BoxedMaxResults", "flattened": false} - }, - "flattened": false - }, - "DescribeStackResourceDriftsOutput": { - "type": "structure", - "members": { - "StackResourceDrifts": { - "shape": "StackResourceDrifts", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeStackResourceInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false} - }, - "flattened": false - }, - "DescribeStackResourceOutput": { - "type": "structure", - "members": { - "StackResourceDetail": { - "shape": "StackResourceDetail", - "flattened": false - } - }, - "flattened": false - }, - "DescribeStackResourcesInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false} - }, - "flattened": false - }, - "DescribeStackResourcesOutput": { - "type": "structure", - "members": { - "StackResources": {"shape": "StackResources", "flattened": false} - }, - "flattened": false - }, - "DescribeStackSetInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "DescribeStackSetOperationInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "DescribeStackSetOperationOutput": { - "type": "structure", - "members": { - "StackSetOperation": {"shape": "StackSetOperation", "flattened": false} - }, - "flattened": false - }, - "DescribeStackSetOutput": { - "type": "structure", - "members": { - "StackSet": {"shape": "StackSet", "flattened": false} - }, - "flattened": false - }, - "DescribeStacksInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeStacksOutput": { - "type": "structure", - "members": { - "Stacks": {"shape": "Stacks", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeTypeInput": { - "type": "structure", - "members": { - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "Arn": {"shape": "TypeArn", "flattened": false}, - "VersionId": {"shape": "TypeVersionId", "flattened": false}, - "PublisherId": {"shape": "PublisherId", "flattened": false}, - "PublicVersionNumber": { - "shape": "PublicVersionNumber", - "flattened": false - } - }, - "flattened": false - }, - "DescribeTypeOutput": { - "type": "structure", - "members": { - "Arn": {"shape": "TypeArn", "flattened": false}, - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "DefaultVersionId": {"shape": "TypeVersionId", "flattened": false}, - "IsDefaultVersion": {"shape": "IsDefaultVersion", "flattened": false}, - "TypeTestsStatus": {"shape": "TypeTestsStatus", "flattened": false}, - "TypeTestsStatusDescription": { - "shape": "TypeTestsStatusDescription", - "flattened": false - }, - "Description": {"shape": "Description", "flattened": false}, - "Schema": {"shape": "TypeSchema", "flattened": false}, - "ProvisioningType": {"shape": "ProvisioningType", "flattened": false}, - "DeprecatedStatus": {"shape": "DeprecatedStatus", "flattened": false}, - "LoggingConfig": {"shape": "LoggingConfig", "flattened": false}, - "RequiredActivatedTypes": { - "shape": "RequiredActivatedTypes", - "flattened": false - }, - "ExecutionRoleArn": {"shape": "RoleArn", "flattened": false}, - "Visibility": {"shape": "Visibility", "flattened": false}, - "SourceUrl": {"shape": "OptionalSecureUrl", "flattened": false}, - "DocumentationUrl": {"shape": "OptionalSecureUrl", "flattened": false}, - "LastUpdated": {"shape": "Timestamp", "flattened": false}, - "TimeCreated": {"shape": "Timestamp", "flattened": false}, - "ConfigurationSchema": { - "shape": "ConfigurationSchema", - "flattened": false - }, - "PublisherId": {"shape": "PublisherId", "flattened": false}, - "OriginalTypeName": {"shape": "TypeName", "flattened": false}, - "OriginalTypeArn": {"shape": "TypeArn", "flattened": false}, - "PublicVersionNumber": { - "shape": "PublicVersionNumber", - "flattened": false - }, - "LatestPublicVersion": { - "shape": "PublicVersionNumber", - "flattened": false - }, - "IsActivated": {"shape": "IsActivated", "flattened": false}, - "AutoUpdate": {"shape": "AutoUpdate", "flattened": false} - }, - "flattened": false - }, - "DescribeTypeRegistrationInput": { - "type": "structure", - "members": { - "RegistrationToken": {"shape": "RegistrationToken", "flattened": false} - }, - "flattened": false - }, - "DescribeTypeRegistrationOutput": { - "type": "structure", - "members": { - "ProgressStatus": {"shape": "RegistrationStatus", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "TypeArn": {"shape": "TypeArn", "flattened": false}, - "TypeVersionArn": {"shape": "TypeArn", "flattened": false} - }, - "flattened": false - }, - "Description": {"type": "string", "flattened": false}, - "DetailedStatus": {"type": "string", "flattened": false}, - "DetectStackDriftInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "LogicalResourceIds": {"shape": "LogicalResourceIds", "flattened": false} - }, - "flattened": false - }, - "DetectStackDriftOutput": { - "type": "structure", - "members": { - "StackDriftDetectionId": { - "shape": "StackDriftDetectionId", - "flattened": false - } - }, - "flattened": false - }, - "DetectStackResourceDriftInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false} - }, - "flattened": false - }, - "DetectStackResourceDriftOutput": { - "type": "structure", - "members": { - "StackResourceDrift": {"shape": "StackResourceDrift", "flattened": false} - }, - "flattened": false - }, - "DetectStackSetDriftInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetNameOrId", "flattened": false}, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - }, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "DetectStackSetDriftOutput": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "DifferenceType": {"type": "string", "flattened": false}, - "DisableRollback": {"type": "boolean", "flattened": false}, - "DriftedStackInstancesCount": {"type": "integer", "flattened": false}, - "EnableTerminationProtection": {"type": "boolean", "flattened": false}, - "ErrorCode": {"type": "string", "flattened": false}, - "ErrorMessage": {"type": "string", "flattened": false}, - "EstimateTemplateCostInput": { - "type": "structure", - "members": { - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false}, - "Parameters": {"shape": "Parameters", "flattened": false} - }, - "flattened": false - }, - "EstimateTemplateCostOutput": { - "type": "structure", - "members": { - "Url": {"shape": "Url", "flattened": false} - }, - "flattened": false - }, - "EvaluationType": {"type": "string", "flattened": false}, - "EventId": {"type": "string", "flattened": false}, - "ExecuteChangeSetInput": { - "type": "structure", - "members": { - "ChangeSetName": {"shape": "ChangeSetNameOrId", "flattened": false}, - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false}, - "DisableRollback": {"shape": "DisableRollback", "flattened": false}, - "RetainExceptOnCreate": { - "shape": "RetainExceptOnCreate", - "flattened": false - } - }, - "flattened": false - }, - "ExecuteChangeSetOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ExecutionRoleName": {"type": "string", "flattened": false}, - "ExecutionStatus": {"type": "string", "flattened": false}, - "Export": { - "type": "structure", - "members": { - "ExportingStackId": {"shape": "StackId", "flattened": false}, - "Name": {"shape": "ExportName", "flattened": false}, - "Value": {"shape": "ExportValue", "flattened": false} - }, - "flattened": false - }, - "ExportName": {"type": "string", "flattened": false}, - "ExportValue": {"type": "string", "flattened": false}, - "Exports": { - "type": "list", - "member": {"shape": "Export"}, - "flattened": false - }, - "FailedStackInstancesCount": {"type": "integer", "flattened": false}, - "FailureToleranceCount": {"type": "integer", "flattened": false}, - "FailureTolerancePercentage": {"type": "integer", "flattened": false}, - "GeneratedTemplateDeletionPolicy": {"type": "string", "flattened": false}, - "GeneratedTemplateId": {"type": "string", "flattened": false}, - "GeneratedTemplateName": {"type": "string", "flattened": false}, - "GeneratedTemplateResourceStatus": {"type": "string", "flattened": false}, - "GeneratedTemplateStatus": {"type": "string", "flattened": false}, - "GeneratedTemplateUpdateReplacePolicy": { - "type": "string", - "flattened": false - }, - "GetGeneratedTemplateInput": { - "type": "structure", - "members": { - "Format": {"shape": "TemplateFormat", "flattened": false}, - "GeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - } - }, - "flattened": false - }, - "GetGeneratedTemplateOutput": { - "type": "structure", - "members": { - "Status": {"shape": "GeneratedTemplateStatus", "flattened": false}, - "TemplateBody": {"shape": "TemplateBody", "flattened": false} - }, - "flattened": false - }, - "GetStackPolicyInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false} - }, - "flattened": false - }, - "GetStackPolicyOutput": { - "type": "structure", - "members": { - "StackPolicyBody": {"shape": "StackPolicyBody", "flattened": false} - }, - "flattened": false - }, - "GetTemplateInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "ChangeSetName": {"shape": "ChangeSetNameOrId", "flattened": false}, - "TemplateStage": {"shape": "TemplateStage", "flattened": false} - }, - "flattened": false - }, - "GetTemplateOutput": { - "type": "structure", - "members": { - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "StagesAvailable": {"shape": "StageList", "flattened": false} - }, - "flattened": false - }, - "GetTemplateSummaryInput": { - "type": "structure", - "members": { - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false}, - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "StackSetName": {"shape": "StackSetNameOrId", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false}, - "TemplateSummaryConfig": { - "shape": "TemplateSummaryConfig", - "flattened": false - } - }, - "flattened": false - }, - "GetTemplateSummaryOutput": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParameterDeclarations", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "CapabilitiesReason": {"shape": "CapabilitiesReason", "flattened": false}, - "ResourceTypes": {"shape": "ResourceTypes", "flattened": false}, - "Version": {"shape": "Version", "flattened": false}, - "Metadata": {"shape": "Metadata", "flattened": false}, - "DeclaredTransforms": {"shape": "TransformsList", "flattened": false}, - "ResourceIdentifierSummaries": { - "shape": "ResourceIdentifierSummaries", - "flattened": false - }, - "Warnings": {"shape": "Warnings", "flattened": false} - }, - "flattened": false - }, - "HandlerErrorCode": {"type": "string", "flattened": false}, - "HookFailureMode": {"type": "string", "flattened": false}, - "HookInvocationCount": {"type": "integer", "flattened": false}, - "HookInvocationPoint": {"type": "string", "flattened": false}, - "HookStatus": {"type": "string", "flattened": false}, - "HookStatusReason": {"type": "string", "flattened": false}, - "HookTargetType": {"type": "string", "flattened": false}, - "HookTargetTypeName": {"type": "string", "flattened": false}, - "HookType": {"type": "string", "flattened": false}, - "HookTypeConfigurationVersionId": {"type": "string", "flattened": false}, - "HookTypeName": {"type": "string", "flattened": false}, - "HookTypeVersionId": {"type": "string", "flattened": false}, - "IdentityProvider": {"type": "string", "flattened": false}, - "ImportExistingResources": {"type": "boolean", "flattened": false}, - "ImportStacksToStackSetInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetNameOrId", "flattened": false}, - "StackIds": {"shape": "StackIdList", "flattened": false}, - "StackIdsUrl": {"shape": "StackIdsUrl", "flattened": false}, - "OrganizationalUnitIds": { - "shape": "OrganizationalUnitIdList", - "flattened": false - }, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - }, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "ImportStacksToStackSetOutput": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "Imports": { - "type": "list", - "member": {"shape": "StackName"}, - "flattened": false - }, - "InProgressStackInstancesCount": {"type": "integer", "flattened": false}, - "InSyncStackInstancesCount": {"type": "integer", "flattened": false}, - "IncludeNestedStacks": {"type": "boolean", "flattened": false}, - "IncludePropertyValues": {"type": "boolean", "flattened": false}, - "IsActivated": {"type": "boolean", "flattened": false}, - "IsDefaultConfiguration": {"type": "boolean", "flattened": false}, - "IsDefaultVersion": {"type": "boolean", "flattened": false}, - "JazzLogicalResourceIds": { - "type": "list", - "member": {"shape": "LogicalResourceId"}, - "flattened": false - }, - "JazzResourceIdentifierProperties": { - "type": "map", - "key": {"shape": "JazzResourceIdentifierPropertyKey"}, - "value": {"shape": "JazzResourceIdentifierPropertyValue"}, - "flattened": false - }, - "JazzResourceIdentifierPropertyKey": {"type": "string", "flattened": false}, - "JazzResourceIdentifierPropertyValue": {"type": "string", "flattened": false}, - "Key": {"type": "string", "flattened": false}, - "LastUpdatedTime": {"type": "timestamp", "flattened": false}, - "LimitName": {"type": "string", "flattened": false}, - "LimitValue": {"type": "integer", "flattened": false}, - "ListChangeSetsInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListChangeSetsOutput": { - "type": "structure", - "members": { - "Summaries": {"shape": "ChangeSetSummaries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListExportsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListExportsOutput": { - "type": "structure", - "members": { - "Exports": {"shape": "Exports", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListGeneratedTemplatesInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false} - }, - "flattened": false - }, - "ListGeneratedTemplatesOutput": { - "type": "structure", - "members": { - "Summaries": {"shape": "TemplateSummaries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListImportsInput": { - "type": "structure", - "members": { - "ExportName": {"shape": "ExportName", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListImportsOutput": { - "type": "structure", - "members": { - "Imports": {"shape": "Imports", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListResourceScanRelatedResourcesInput": { - "type": "structure", - "members": { - "ResourceScanId": {"shape": "ResourceScanId", "flattened": false}, - "Resources": {"shape": "ScannedResourceIdentifiers", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "BoxedMaxResults", "flattened": false} - }, - "flattened": false - }, - "ListResourceScanRelatedResourcesOutput": { - "type": "structure", - "members": { - "RelatedResources": {"shape": "RelatedResources", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListResourceScanResourcesInput": { - "type": "structure", - "members": { - "ResourceScanId": {"shape": "ResourceScanId", "flattened": false}, - "ResourceIdentifier": {"shape": "ResourceIdentifier", "flattened": false}, - "ResourceTypePrefix": {"shape": "ResourceTypePrefix", "flattened": false}, - "TagKey": {"shape": "TagKey", "flattened": false}, - "TagValue": {"shape": "TagValue", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "ResourceScannerMaxResults", "flattened": false} - }, - "flattened": false - }, - "ListResourceScanResourcesOutput": { - "type": "structure", - "members": { - "Resources": {"shape": "ScannedResources", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListResourceScansInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "ResourceScannerMaxResults", "flattened": false} - }, - "flattened": false - }, - "ListResourceScansOutput": { - "type": "structure", - "members": { - "ResourceScanSummaries": { - "shape": "ResourceScanSummaries", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackInstanceResourceDriftsInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetNameOrId", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "StackInstanceResourceDriftStatuses": { - "shape": "StackResourceDriftStatusFilters", - "flattened": false - }, - "StackInstanceAccount": {"shape": "Account", "flattened": false}, - "StackInstanceRegion": {"shape": "Region", "flattened": false}, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "ListStackInstanceResourceDriftsOutput": { - "type": "structure", - "members": { - "Summaries": { - "shape": "StackInstanceResourceDriftsSummaries", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackInstancesInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "Filters": {"shape": "StackInstanceFilters", "flattened": false}, - "StackInstanceAccount": {"shape": "Account", "flattened": false}, - "StackInstanceRegion": {"shape": "Region", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "ListStackInstancesOutput": { - "type": "structure", - "members": { - "Summaries": {"shape": "StackInstanceSummaries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackResourcesInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackResourcesOutput": { - "type": "structure", - "members": { - "StackResourceSummaries": { - "shape": "StackResourceSummaries", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackSetAutoDeploymentTargetsInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetNameOrId", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "ListStackSetAutoDeploymentTargetsOutput": { - "type": "structure", - "members": { - "Summaries": { - "shape": "StackSetAutoDeploymentTargetSummaries", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackSetOperationResultsInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false}, - "Filters": {"shape": "OperationResultFilters", "flattened": false} - }, - "flattened": false - }, - "ListStackSetOperationResultsOutput": { - "type": "structure", - "members": { - "Summaries": { - "shape": "StackSetOperationResultSummaries", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackSetOperationsInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "ListStackSetOperationsOutput": { - "type": "structure", - "members": { - "Summaries": {"shape": "StackSetOperationSummaries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStackSetsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "Status": {"shape": "StackSetStatus", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "ListStackSetsOutput": { - "type": "structure", - "members": { - "Summaries": {"shape": "StackSetSummaries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListStacksInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "StackStatusFilter": {"shape": "StackStatusFilter", "flattened": false} - }, - "flattened": false - }, - "ListStacksOutput": { - "type": "structure", - "members": { - "StackSummaries": {"shape": "StackSummaries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListTypeRegistrationsInput": { - "type": "structure", - "members": { - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "TypeArn": {"shape": "TypeArn", "flattened": false}, - "RegistrationStatusFilter": { - "shape": "RegistrationStatus", - "flattened": false - }, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListTypeRegistrationsOutput": { - "type": "structure", - "members": { - "RegistrationTokenList": { - "shape": "RegistrationTokenList", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListTypeVersionsInput": { - "type": "structure", - "members": { - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "Arn": {"shape": "TypeArn", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "DeprecatedStatus": {"shape": "DeprecatedStatus", "flattened": false}, - "PublisherId": {"shape": "PublisherId", "flattened": false} - }, - "flattened": false - }, - "ListTypeVersionsOutput": { - "type": "structure", - "members": { - "TypeVersionSummaries": { - "shape": "TypeVersionSummaries", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListTypesInput": { - "type": "structure", - "members": { - "Visibility": {"shape": "Visibility", "flattened": false}, - "ProvisioningType": {"shape": "ProvisioningType", "flattened": false}, - "DeprecatedStatus": {"shape": "DeprecatedStatus", "flattened": false}, - "Type": {"shape": "RegistryType", "flattened": false}, - "Filters": {"shape": "TypeFilters", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListTypesOutput": { - "type": "structure", - "members": { - "TypeSummaries": {"shape": "TypeSummaries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "LogGroupName": {"type": "string", "flattened": false}, - "LoggingConfig": { - "type": "structure", - "members": { - "LogRoleArn": {"shape": "RoleArn", "flattened": false}, - "LogGroupName": {"shape": "LogGroupName", "flattened": false} - }, - "flattened": false - }, - "LogicalIdHierarchy": {"type": "string", "flattened": false}, - "LogicalResourceId": {"type": "string", "flattened": false}, - "LogicalResourceIds": { - "type": "list", - "member": {"shape": "LogicalResourceId"}, - "flattened": false - }, - "MajorVersion": {"type": "long", "flattened": false}, - "ManagedByStack": {"type": "boolean", "flattened": false}, - "ManagedExecution": { - "type": "structure", - "members": { - "Active": {"shape": "ManagedExecutionNullable", "flattened": false} - }, - "flattened": false - }, - "ManagedExecutionNullable": {"type": "boolean", "flattened": false}, - "MaxConcurrentCount": {"type": "integer", "flattened": false}, - "MaxConcurrentPercentage": {"type": "integer", "flattened": false}, - "MaxResults": {"type": "integer", "flattened": false}, - "Metadata": {"type": "string", "flattened": false}, - "ModuleInfo": { - "type": "structure", - "members": { - "TypeHierarchy": {"shape": "TypeHierarchy", "flattened": false}, - "LogicalIdHierarchy": {"shape": "LogicalIdHierarchy", "flattened": false} - }, - "flattened": false - }, - "MonitoringTimeInMinutes": {"type": "integer", "flattened": false}, - "NextToken": {"type": "string", "flattened": false}, - "NoEcho": {"type": "boolean", "flattened": false}, - "NotificationARN": {"type": "string", "flattened": false}, - "NotificationARNs": { - "type": "list", - "member": {"shape": "NotificationARN"}, - "flattened": false - }, - "NumberOfResources": {"type": "integer", "flattened": false}, - "OnFailure": {"type": "string", "flattened": false}, - "OnStackFailure": {"type": "string", "flattened": false}, - "OperationResultFilter": { - "type": "structure", - "members": { - "Name": {"shape": "OperationResultFilterName", "flattened": false}, - "Values": {"shape": "OperationResultFilterValues", "flattened": false} - }, - "flattened": false - }, - "OperationResultFilterName": {"type": "string", "flattened": false}, - "OperationResultFilterValues": {"type": "string", "flattened": false}, - "OperationResultFilters": { - "type": "list", - "member": {"shape": "OperationResultFilter"}, - "flattened": false - }, - "OperationStatus": {"type": "string", "flattened": false}, - "OptionalSecureUrl": {"type": "string", "flattened": false}, - "OrganizationStatus": {"type": "string", "flattened": false}, - "OrganizationalUnitId": {"type": "string", "flattened": false}, - "OrganizationalUnitIdList": { - "type": "list", - "member": {"shape": "OrganizationalUnitId"}, - "flattened": false - }, - "Output": { - "type": "structure", - "members": { - "OutputKey": {"shape": "OutputKey", "flattened": false}, - "OutputValue": {"shape": "OutputValue", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "ExportName": {"shape": "ExportName", "flattened": false} - }, - "flattened": false - }, - "OutputKey": {"type": "string", "flattened": false}, - "OutputValue": {"type": "string", "flattened": false}, - "Outputs": { - "type": "list", - "member": {"shape": "Output"}, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterKey": {"shape": "ParameterKey", "flattened": false}, - "ParameterValue": {"shape": "ParameterValue", "flattened": false}, - "UsePreviousValue": {"shape": "UsePreviousValue", "flattened": false}, - "ResolvedValue": {"shape": "ParameterValue", "flattened": false} - }, - "flattened": false - }, - "ParameterConstraints": { - "type": "structure", - "members": { - "AllowedValues": {"shape": "AllowedValues", "flattened": false} - }, - "flattened": false - }, - "ParameterDeclaration": { - "type": "structure", - "members": { - "ParameterKey": {"shape": "ParameterKey", "flattened": false}, - "DefaultValue": {"shape": "ParameterValue", "flattened": false}, - "ParameterType": {"shape": "ParameterType", "flattened": false}, - "NoEcho": {"shape": "NoEcho", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "ParameterConstraints": { - "shape": "ParameterConstraints", - "flattened": false - } - }, - "flattened": false - }, - "ParameterDeclarations": { - "type": "list", - "member": {"shape": "ParameterDeclaration"}, - "flattened": false - }, - "ParameterKey": {"type": "string", "flattened": false}, - "ParameterType": {"type": "string", "flattened": false}, - "ParameterValue": {"type": "string", "flattened": false}, - "Parameters": { - "type": "list", - "member": {"shape": "Parameter"}, - "flattened": false - }, - "PercentageCompleted": {"type": "double", "flattened": false}, - "PermissionModels": {"type": "string", "flattened": false}, - "PhysicalResourceId": {"type": "string", "flattened": false}, - "PhysicalResourceIdContext": { - "type": "list", - "member": {"shape": "PhysicalResourceIdContextKeyValuePair"}, - "flattened": false - }, - "PhysicalResourceIdContextKeyValuePair": { - "type": "structure", - "members": { - "Key": {"shape": "Key", "flattened": false}, - "Value": {"shape": "Value", "flattened": false} - }, - "flattened": false - }, - "PolicyAction": {"type": "string", "flattened": false}, - "PrivateTypeArn": {"type": "string", "flattened": false}, - "Properties": {"type": "string", "flattened": false}, - "PropertyDescription": {"type": "string", "flattened": false}, - "PropertyDifference": { - "type": "structure", - "members": { - "PropertyPath": {"shape": "PropertyPath", "flattened": false}, - "ExpectedValue": {"shape": "PropertyValue", "flattened": false}, - "ActualValue": {"shape": "PropertyValue", "flattened": false}, - "DifferenceType": {"shape": "DifferenceType", "flattened": false} - }, - "flattened": false - }, - "PropertyDifferences": { - "type": "list", - "member": {"shape": "PropertyDifference"}, - "flattened": false - }, - "PropertyName": {"type": "string", "flattened": false}, - "PropertyPath": {"type": "string", "flattened": false}, - "PropertyValue": {"type": "string", "flattened": false}, - "ProvisioningType": {"type": "string", "flattened": false}, - "PublicVersionNumber": {"type": "string", "flattened": false}, - "PublishTypeInput": { - "type": "structure", - "members": { - "Type": {"shape": "ThirdPartyType", "flattened": false}, - "Arn": {"shape": "PrivateTypeArn", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "PublicVersionNumber": { - "shape": "PublicVersionNumber", - "flattened": false - } - }, - "flattened": false - }, - "PublishTypeOutput": { - "type": "structure", - "members": { - "PublicTypeArn": {"shape": "TypeArn", "flattened": false} - }, - "flattened": false - }, - "PublisherId": {"type": "string", "flattened": false}, - "PublisherName": {"type": "string", "flattened": false}, - "PublisherProfile": {"type": "string", "flattened": false}, - "PublisherStatus": {"type": "string", "flattened": false}, - "Reason": {"type": "string", "flattened": false}, - "RecordHandlerProgressInput": { - "type": "structure", - "members": { - "BearerToken": {"shape": "ClientToken", "flattened": false}, - "OperationStatus": {"shape": "OperationStatus", "flattened": false}, - "CurrentOperationStatus": { - "shape": "OperationStatus", - "flattened": false - }, - "StatusMessage": {"shape": "StatusMessage", "flattened": false}, - "ErrorCode": {"shape": "HandlerErrorCode", "flattened": false}, - "ResourceModel": {"shape": "ResourceModel", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "RecordHandlerProgressOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "RefreshAllResources": {"type": "boolean", "flattened": false}, - "Region": {"type": "string", "flattened": false}, - "RegionConcurrencyType": {"type": "string", "flattened": false}, - "RegionList": { - "type": "list", - "member": {"shape": "Region"}, - "flattened": false - }, - "RegisterPublisherInput": { - "type": "structure", - "members": { - "AcceptTermsAndConditions": { - "shape": "AcceptTermsAndConditions", - "flattened": false - }, - "ConnectionArn": {"shape": "ConnectionArn", "flattened": false} - }, - "flattened": false - }, - "RegisterPublisherOutput": { - "type": "structure", - "members": { - "PublisherId": {"shape": "PublisherId", "flattened": false} - }, - "flattened": false - }, - "RegisterTypeInput": { - "type": "structure", - "members": { - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "SchemaHandlerPackage": {"shape": "S3Url", "flattened": false}, - "LoggingConfig": {"shape": "LoggingConfig", "flattened": false}, - "ExecutionRoleArn": {"shape": "RoleArn", "flattened": false}, - "ClientRequestToken": {"shape": "RequestToken", "flattened": false} - }, - "flattened": false - }, - "RegisterTypeOutput": { - "type": "structure", - "members": { - "RegistrationToken": {"shape": "RegistrationToken", "flattened": false} - }, - "flattened": false - }, - "RegistrationStatus": {"type": "string", "flattened": false}, - "RegistrationToken": {"type": "string", "flattened": false}, - "RegistrationTokenList": { - "type": "list", - "member": {"shape": "RegistrationToken"}, - "flattened": false - }, - "RegistryType": {"type": "string", "flattened": false}, - "RelatedResources": { - "type": "list", - "member": {"shape": "ScannedResource"}, - "flattened": false - }, - "Replacement": {"type": "string", "flattened": false}, - "RequestToken": {"type": "string", "flattened": false}, - "RequiredActivatedType": { - "type": "structure", - "members": { - "TypeNameAlias": {"shape": "TypeName", "flattened": false}, - "OriginalTypeName": {"shape": "TypeName", "flattened": false}, - "PublisherId": {"shape": "PublisherId", "flattened": false}, - "SupportedMajorVersions": { - "shape": "SupportedMajorVersions", - "flattened": false - } - }, - "flattened": false - }, - "RequiredActivatedTypes": { - "type": "list", - "member": {"shape": "RequiredActivatedType"}, - "flattened": false - }, - "RequiredProperty": {"type": "boolean", "flattened": false}, - "RequiresRecreation": {"type": "string", "flattened": false}, - "ResourceAttribute": {"type": "string", "flattened": false}, - "ResourceChange": { - "type": "structure", - "members": { - "PolicyAction": {"shape": "PolicyAction", "flattened": false}, - "Action": {"shape": "ChangeAction", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false}, - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "Replacement": {"shape": "Replacement", "flattened": false}, - "Scope": {"shape": "Scope", "flattened": false}, - "Details": {"shape": "ResourceChangeDetails", "flattened": false}, - "ChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "ModuleInfo": {"shape": "ModuleInfo", "flattened": false}, - "BeforeContext": {"shape": "BeforeContext", "flattened": false}, - "AfterContext": {"shape": "AfterContext", "flattened": false} - }, - "flattened": false - }, - "ResourceChangeDetail": { - "type": "structure", - "members": { - "Target": {"shape": "ResourceTargetDefinition", "flattened": false}, - "Evaluation": {"shape": "EvaluationType", "flattened": false}, - "ChangeSource": {"shape": "ChangeSource", "flattened": false}, - "CausingEntity": {"shape": "CausingEntity", "flattened": false} - }, - "flattened": false - }, - "ResourceChangeDetails": { - "type": "list", - "member": {"shape": "ResourceChangeDetail"}, - "flattened": false - }, - "ResourceDefinition": { - "type": "structure", - "members": { - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "ResourceIdentifier": { - "shape": "ResourceIdentifierProperties", - "flattened": false - } - }, - "flattened": false - }, - "ResourceDefinitions": { - "type": "list", - "member": {"shape": "ResourceDefinition"}, - "flattened": false - }, - "ResourceDetail": { - "type": "structure", - "members": { - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "ResourceIdentifier": { - "shape": "ResourceIdentifierProperties", - "flattened": false - }, - "ResourceStatus": { - "shape": "GeneratedTemplateResourceStatus", - "flattened": false - }, - "ResourceStatusReason": { - "shape": "ResourceStatusReason", - "flattened": false - }, - "Warnings": {"shape": "WarningDetails", "flattened": false} - }, - "flattened": false - }, - "ResourceDetails": { - "type": "list", - "member": {"shape": "ResourceDetail"}, - "flattened": false - }, - "ResourceIdentifier": {"type": "string", "flattened": false}, - "ResourceIdentifierProperties": { - "type": "map", - "key": {"shape": "ResourceIdentifierPropertyKey"}, - "value": {"shape": "ResourceIdentifierPropertyValue"}, - "flattened": false - }, - "ResourceIdentifierPropertyKey": {"type": "string", "flattened": false}, - "ResourceIdentifierPropertyValue": {"type": "string", "flattened": false}, - "ResourceIdentifierSummaries": { - "type": "list", - "member": {"shape": "ResourceIdentifierSummary"}, - "flattened": false - }, - "ResourceIdentifierSummary": { - "type": "structure", - "members": { - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "LogicalResourceIds": {"shape": "LogicalResourceIds", "flattened": false}, - "ResourceIdentifiers": { - "shape": "ResourceIdentifiers", - "flattened": false - } - }, - "flattened": false - }, - "ResourceIdentifiers": { - "type": "list", - "member": {"shape": "ResourceIdentifierPropertyKey"}, - "flattened": false - }, - "ResourceModel": {"type": "string", "flattened": false}, - "ResourceProperties": {"type": "string", "flattened": false}, - "ResourcePropertyPath": {"type": "string", "flattened": false}, - "ResourceScanId": {"type": "string", "flattened": false}, - "ResourceScanStatus": {"type": "string", "flattened": false}, - "ResourceScanStatusReason": {"type": "string", "flattened": false}, - "ResourceScanSummaries": { - "type": "list", - "member": {"shape": "ResourceScanSummary"}, - "flattened": false - }, - "ResourceScanSummary": { - "type": "structure", - "members": { - "ResourceScanId": {"shape": "ResourceScanId", "flattened": false}, - "Status": {"shape": "ResourceScanStatus", "flattened": false}, - "StatusReason": {"shape": "ResourceScanStatusReason", "flattened": false}, - "StartTime": {"shape": "Timestamp", "flattened": false}, - "EndTime": {"shape": "Timestamp", "flattened": false}, - "PercentageCompleted": { - "shape": "PercentageCompleted", - "flattened": false - } - }, - "flattened": false - }, - "ResourceScannerMaxResults": {"type": "integer", "flattened": false}, - "ResourceSignalStatus": {"type": "string", "flattened": false}, - "ResourceSignalUniqueId": {"type": "string", "flattened": false}, - "ResourceStatus": {"type": "string", "flattened": false}, - "ResourceStatusReason": {"type": "string", "flattened": false}, - "ResourceTargetDefinition": { - "type": "structure", - "members": { - "Attribute": {"shape": "ResourceAttribute", "flattened": false}, - "Name": {"shape": "PropertyName", "flattened": false}, - "RequiresRecreation": {"shape": "RequiresRecreation", "flattened": false}, - "Path": {"shape": "ResourcePropertyPath", "flattened": false}, - "BeforeValue": {"shape": "BeforeValue", "flattened": false}, - "AfterValue": {"shape": "AfterValue", "flattened": false}, - "AttributeChangeType": { - "shape": "AttributeChangeType", - "flattened": false - } - }, - "flattened": false - }, - "ResourceToImport": { - "type": "structure", - "members": { - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "ResourceIdentifier": { - "shape": "ResourceIdentifierProperties", - "flattened": false - } - }, - "flattened": false - }, - "ResourceToSkip": {"type": "string", "flattened": false}, - "ResourceType": {"type": "string", "flattened": false}, - "ResourceTypePrefix": {"type": "string", "flattened": false}, - "ResourceTypes": { - "type": "list", - "member": {"shape": "ResourceType"}, - "flattened": false - }, - "ResourcesFailed": {"type": "integer", "flattened": false}, - "ResourcesPending": {"type": "integer", "flattened": false}, - "ResourcesProcessing": {"type": "integer", "flattened": false}, - "ResourcesRead": {"type": "integer", "flattened": false}, - "ResourcesScanned": {"type": "integer", "flattened": false}, - "ResourcesSucceeded": {"type": "integer", "flattened": false}, - "ResourcesToImport": { - "type": "list", - "member": {"shape": "ResourceToImport"}, - "flattened": false - }, - "ResourcesToSkip": { - "type": "list", - "member": {"shape": "ResourceToSkip"}, - "flattened": false - }, - "RetainExceptOnCreate": {"type": "boolean", "flattened": false}, - "RetainResources": { - "type": "list", - "member": {"shape": "LogicalResourceId"}, - "flattened": false - }, - "RetainStacks": {"type": "boolean", "flattened": false}, - "RetainStacksNullable": {"type": "boolean", "flattened": false}, - "RetainStacksOnAccountRemovalNullable": { - "type": "boolean", - "flattened": false - }, - "RoleARN": {"type": "string", "flattened": false}, - "RoleArn": {"type": "string", "flattened": false}, - "RollbackConfiguration": { - "type": "structure", - "members": { - "RollbackTriggers": {"shape": "RollbackTriggers", "flattened": false}, - "MonitoringTimeInMinutes": { - "shape": "MonitoringTimeInMinutes", - "flattened": false - } - }, - "flattened": false - }, - "RollbackStackInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "RoleARN": {"shape": "RoleARN", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false}, - "RetainExceptOnCreate": { - "shape": "RetainExceptOnCreate", - "flattened": false - } - }, - "flattened": false - }, - "RollbackStackOutput": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false} - }, - "flattened": false - }, - "RollbackTrigger": { - "type": "structure", - "members": { - "Arn": {"shape": "Arn", "flattened": false}, - "Type": {"shape": "Type", "flattened": false} - }, - "flattened": false - }, - "RollbackTriggers": { - "type": "list", - "member": {"shape": "RollbackTrigger"}, - "flattened": false - }, - "S3Bucket": {"type": "string", "flattened": false}, - "S3Url": {"type": "string", "flattened": false}, - "ScannedResource": { - "type": "structure", - "members": { - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "ResourceIdentifier": { - "shape": "JazzResourceIdentifierProperties", - "flattened": false - }, - "ManagedByStack": {"shape": "ManagedByStack", "flattened": false} - }, - "flattened": false - }, - "ScannedResourceIdentifier": { - "type": "structure", - "members": { - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "ResourceIdentifier": { - "shape": "JazzResourceIdentifierProperties", - "flattened": false - } - }, - "flattened": false - }, - "ScannedResourceIdentifiers": { - "type": "list", - "member": {"shape": "ScannedResourceIdentifier"}, - "flattened": false - }, - "ScannedResources": { - "type": "list", - "member": {"shape": "ScannedResource"}, - "flattened": false - }, - "Scope": { - "type": "list", - "member": {"shape": "ResourceAttribute"}, - "flattened": false - }, - "SetStackPolicyInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "StackPolicyBody": {"shape": "StackPolicyBody", "flattened": false}, - "StackPolicyURL": {"shape": "StackPolicyURL", "flattened": false} - }, - "flattened": false - }, - "SetTypeConfigurationInput": { - "type": "structure", - "members": { - "TypeArn": {"shape": "TypeArn", "flattened": false}, - "Configuration": {"shape": "TypeConfiguration", "flattened": false}, - "ConfigurationAlias": { - "shape": "TypeConfigurationAlias", - "flattened": false - }, - "TypeName": {"shape": "TypeName", "flattened": false}, - "Type": {"shape": "ThirdPartyType", "flattened": false} - }, - "flattened": false - }, - "SetTypeConfigurationOutput": { - "type": "structure", - "members": { - "ConfigurationArn": {"shape": "TypeConfigurationArn", "flattened": false} - }, - "flattened": false - }, - "SetTypeDefaultVersionInput": { - "type": "structure", - "members": { - "Arn": {"shape": "PrivateTypeArn", "flattened": false}, - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "VersionId": {"shape": "TypeVersionId", "flattened": false} - }, - "flattened": false - }, - "SetTypeDefaultVersionOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SignalResourceInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackNameOrId", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "UniqueId": {"shape": "ResourceSignalUniqueId", "flattened": false}, - "Status": {"shape": "ResourceSignalStatus", "flattened": false} - }, - "flattened": false - }, - "Stack": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false}, - "StackName": {"shape": "StackName", "flattened": false}, - "ChangeSetId": {"shape": "ChangeSetId", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Parameters": {"shape": "Parameters", "flattened": false}, - "CreationTime": {"shape": "CreationTime", "flattened": false}, - "DeletionTime": {"shape": "DeletionTime", "flattened": false}, - "LastUpdatedTime": {"shape": "LastUpdatedTime", "flattened": false}, - "RollbackConfiguration": { - "shape": "RollbackConfiguration", - "flattened": false - }, - "StackStatus": {"shape": "StackStatus", "flattened": false}, - "StackStatusReason": {"shape": "StackStatusReason", "flattened": false}, - "DisableRollback": {"shape": "DisableRollback", "flattened": false}, - "NotificationARNs": {"shape": "NotificationARNs", "flattened": false}, - "TimeoutInMinutes": {"shape": "TimeoutMinutes", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "Outputs": {"shape": "Outputs", "flattened": false}, - "RoleARN": {"shape": "RoleARN", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "EnableTerminationProtection": { - "shape": "EnableTerminationProtection", - "flattened": false - }, - "ParentId": {"shape": "StackId", "flattened": false}, - "RootId": {"shape": "StackId", "flattened": false}, - "DriftInformation": { - "shape": "StackDriftInformation", - "flattened": false - }, - "RetainExceptOnCreate": { - "shape": "RetainExceptOnCreate", - "flattened": false - }, - "DeletionMode": {"shape": "DeletionMode", "flattened": false}, - "DetailedStatus": {"shape": "DetailedStatus", "flattened": false} - }, - "flattened": false - }, - "StackDriftDetectionId": {"type": "string", "flattened": false}, - "StackDriftDetectionStatus": {"type": "string", "flattened": false}, - "StackDriftDetectionStatusReason": {"type": "string", "flattened": false}, - "StackDriftInformation": { - "type": "structure", - "members": { - "StackDriftStatus": {"shape": "StackDriftStatus", "flattened": false}, - "LastCheckTimestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "StackDriftInformationSummary": { - "type": "structure", - "members": { - "StackDriftStatus": {"shape": "StackDriftStatus", "flattened": false}, - "LastCheckTimestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "StackDriftStatus": {"type": "string", "flattened": false}, - "StackEvent": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false}, - "EventId": {"shape": "EventId", "flattened": false}, - "StackName": {"shape": "StackName", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false}, - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "ResourceStatus": {"shape": "ResourceStatus", "flattened": false}, - "ResourceStatusReason": { - "shape": "ResourceStatusReason", - "flattened": false - }, - "ResourceProperties": {"shape": "ResourceProperties", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false}, - "HookType": {"shape": "HookType", "flattened": false}, - "HookStatus": {"shape": "HookStatus", "flattened": false}, - "HookStatusReason": {"shape": "HookStatusReason", "flattened": false}, - "HookInvocationPoint": { - "shape": "HookInvocationPoint", - "flattened": false - }, - "HookFailureMode": {"shape": "HookFailureMode", "flattened": false}, - "DetailedStatus": {"shape": "DetailedStatus", "flattened": false} - }, - "flattened": false - }, - "StackEvents": { - "type": "list", - "member": {"shape": "StackEvent"}, - "flattened": false - }, - "StackId": {"type": "string", "flattened": false}, - "StackIdList": { - "type": "list", - "member": {"shape": "StackId"}, - "flattened": false - }, - "StackIdsUrl": {"type": "string", "flattened": false}, - "StackInstance": { - "type": "structure", - "members": { - "StackSetId": {"shape": "StackSetId", "flattened": false}, - "Region": {"shape": "Region", "flattened": false}, - "Account": {"shape": "Account", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "ParameterOverrides": {"shape": "Parameters", "flattened": false}, - "Status": {"shape": "StackInstanceStatus", "flattened": false}, - "StackInstanceStatus": { - "shape": "StackInstanceComprehensiveStatus", - "flattened": false - }, - "StatusReason": {"shape": "Reason", "flattened": false}, - "OrganizationalUnitId": { - "shape": "OrganizationalUnitId", - "flattened": false - }, - "DriftStatus": {"shape": "StackDriftStatus", "flattened": false}, - "LastDriftCheckTimestamp": {"shape": "Timestamp", "flattened": false}, - "LastOperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "StackInstanceComprehensiveStatus": { - "type": "structure", - "members": { - "DetailedStatus": { - "shape": "StackInstanceDetailedStatus", - "flattened": false - } - }, - "flattened": false - }, - "StackInstanceDetailedStatus": {"type": "string", "flattened": false}, - "StackInstanceFilter": { - "type": "structure", - "members": { - "Name": {"shape": "StackInstanceFilterName", "flattened": false}, - "Values": {"shape": "StackInstanceFilterValues", "flattened": false} - }, - "flattened": false - }, - "StackInstanceFilterName": {"type": "string", "flattened": false}, - "StackInstanceFilterValues": {"type": "string", "flattened": false}, - "StackInstanceFilters": { - "type": "list", - "member": {"shape": "StackInstanceFilter"}, - "flattened": false - }, - "StackInstanceResourceDriftsSummaries": { - "type": "list", - "member": {"shape": "StackInstanceResourceDriftsSummary"}, - "flattened": false - }, - "StackInstanceResourceDriftsSummary": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false}, - "PhysicalResourceIdContext": { - "shape": "PhysicalResourceIdContext", - "flattened": false - }, - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "PropertyDifferences": { - "shape": "PropertyDifferences", - "flattened": false - }, - "StackResourceDriftStatus": { - "shape": "StackResourceDriftStatus", - "flattened": false - }, - "Timestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "StackInstanceStatus": {"type": "string", "flattened": false}, - "StackInstanceSummaries": { - "type": "list", - "member": {"shape": "StackInstanceSummary"}, - "flattened": false - }, - "StackInstanceSummary": { - "type": "structure", - "members": { - "StackSetId": {"shape": "StackSetId", "flattened": false}, - "Region": {"shape": "Region", "flattened": false}, - "Account": {"shape": "Account", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "Status": {"shape": "StackInstanceStatus", "flattened": false}, - "StatusReason": {"shape": "Reason", "flattened": false}, - "StackInstanceStatus": { - "shape": "StackInstanceComprehensiveStatus", - "flattened": false - }, - "OrganizationalUnitId": { - "shape": "OrganizationalUnitId", - "flattened": false - }, - "DriftStatus": {"shape": "StackDriftStatus", "flattened": false}, - "LastDriftCheckTimestamp": {"shape": "Timestamp", "flattened": false}, - "LastOperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "StackName": {"type": "string", "flattened": false}, - "StackNameOrId": {"type": "string", "flattened": false}, - "StackPolicyBody": {"type": "string", "flattened": false}, - "StackPolicyDuringUpdateBody": {"type": "string", "flattened": false}, - "StackPolicyDuringUpdateURL": {"type": "string", "flattened": false}, - "StackPolicyURL": {"type": "string", "flattened": false}, - "StackResource": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false}, - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "ResourceStatus": {"shape": "ResourceStatus", "flattened": false}, - "ResourceStatusReason": { - "shape": "ResourceStatusReason", - "flattened": false - }, - "Description": {"shape": "Description", "flattened": false}, - "DriftInformation": { - "shape": "StackResourceDriftInformation", - "flattened": false - }, - "ModuleInfo": {"shape": "ModuleInfo", "flattened": false} - }, - "flattened": false - }, - "StackResourceDetail": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "StackId": {"shape": "StackId", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false}, - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "LastUpdatedTimestamp": {"shape": "Timestamp", "flattened": false}, - "ResourceStatus": {"shape": "ResourceStatus", "flattened": false}, - "ResourceStatusReason": { - "shape": "ResourceStatusReason", - "flattened": false - }, - "Description": {"shape": "Description", "flattened": false}, - "Metadata": {"shape": "Metadata", "flattened": false}, - "DriftInformation": { - "shape": "StackResourceDriftInformation", - "flattened": false - }, - "ModuleInfo": {"shape": "ModuleInfo", "flattened": false} - }, - "flattened": false - }, - "StackResourceDrift": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false}, - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false}, - "PhysicalResourceIdContext": { - "shape": "PhysicalResourceIdContext", - "flattened": false - }, - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "ExpectedProperties": {"shape": "Properties", "flattened": false}, - "ActualProperties": {"shape": "Properties", "flattened": false}, - "PropertyDifferences": { - "shape": "PropertyDifferences", - "flattened": false - }, - "StackResourceDriftStatus": { - "shape": "StackResourceDriftStatus", - "flattened": false - }, - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "ModuleInfo": {"shape": "ModuleInfo", "flattened": false} - }, - "flattened": false - }, - "StackResourceDriftInformation": { - "type": "structure", - "members": { - "StackResourceDriftStatus": { - "shape": "StackResourceDriftStatus", - "flattened": false - }, - "LastCheckTimestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "StackResourceDriftInformationSummary": { - "type": "structure", - "members": { - "StackResourceDriftStatus": { - "shape": "StackResourceDriftStatus", - "flattened": false - }, - "LastCheckTimestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "StackResourceDriftStatus": {"type": "string", "flattened": false}, - "StackResourceDriftStatusFilters": { - "type": "list", - "member": {"shape": "StackResourceDriftStatus"}, - "flattened": false - }, - "StackResourceDrifts": { - "type": "list", - "member": {"shape": "StackResourceDrift"}, - "flattened": false - }, - "StackResourceSummaries": { - "type": "list", - "member": {"shape": "StackResourceSummary"}, - "flattened": false - }, - "StackResourceSummary": { - "type": "structure", - "members": { - "LogicalResourceId": {"shape": "LogicalResourceId", "flattened": false}, - "PhysicalResourceId": {"shape": "PhysicalResourceId", "flattened": false}, - "ResourceType": {"shape": "ResourceType", "flattened": false}, - "LastUpdatedTimestamp": {"shape": "Timestamp", "flattened": false}, - "ResourceStatus": {"shape": "ResourceStatus", "flattened": false}, - "ResourceStatusReason": { - "shape": "ResourceStatusReason", - "flattened": false - }, - "DriftInformation": { - "shape": "StackResourceDriftInformationSummary", - "flattened": false - }, - "ModuleInfo": {"shape": "ModuleInfo", "flattened": false} - }, - "flattened": false - }, - "StackResources": { - "type": "list", - "member": {"shape": "StackResource"}, - "flattened": false - }, - "StackSet": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "StackSetId": {"shape": "StackSetId", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Status": {"shape": "StackSetStatus", "flattened": false}, - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "Parameters": {"shape": "Parameters", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "StackSetARN": {"shape": "StackSetARN", "flattened": false}, - "AdministrationRoleARN": {"shape": "RoleARN", "flattened": false}, - "ExecutionRoleName": {"shape": "ExecutionRoleName", "flattened": false}, - "StackSetDriftDetectionDetails": { - "shape": "StackSetDriftDetectionDetails", - "flattened": false - }, - "AutoDeployment": {"shape": "AutoDeployment", "flattened": false}, - "PermissionModel": {"shape": "PermissionModels", "flattened": false}, - "OrganizationalUnitIds": { - "shape": "OrganizationalUnitIdList", - "flattened": false - }, - "ManagedExecution": {"shape": "ManagedExecution", "flattened": false}, - "Regions": {"shape": "RegionList", "flattened": false} - }, - "flattened": false - }, - "StackSetARN": {"type": "string", "flattened": false}, - "StackSetAutoDeploymentTargetSummaries": { - "type": "list", - "member": {"shape": "StackSetAutoDeploymentTargetSummary"}, - "flattened": false - }, - "StackSetAutoDeploymentTargetSummary": { - "type": "structure", - "members": { - "OrganizationalUnitId": { - "shape": "OrganizationalUnitId", - "flattened": false - }, - "Regions": {"shape": "RegionList", "flattened": false} - }, - "flattened": false - }, - "StackSetDriftDetectionDetails": { - "type": "structure", - "members": { - "DriftStatus": {"shape": "StackSetDriftStatus", "flattened": false}, - "DriftDetectionStatus": { - "shape": "StackSetDriftDetectionStatus", - "flattened": false - }, - "LastDriftCheckTimestamp": {"shape": "Timestamp", "flattened": false}, - "TotalStackInstancesCount": { - "shape": "TotalStackInstancesCount", - "flattened": false - }, - "DriftedStackInstancesCount": { - "shape": "DriftedStackInstancesCount", - "flattened": false - }, - "InSyncStackInstancesCount": { - "shape": "InSyncStackInstancesCount", - "flattened": false - }, - "InProgressStackInstancesCount": { - "shape": "InProgressStackInstancesCount", - "flattened": false - }, - "FailedStackInstancesCount": { - "shape": "FailedStackInstancesCount", - "flattened": false - } - }, - "flattened": false - }, - "StackSetDriftDetectionStatus": {"type": "string", "flattened": false}, - "StackSetDriftStatus": {"type": "string", "flattened": false}, - "StackSetId": {"type": "string", "flattened": false}, - "StackSetName": {"type": "string", "flattened": false}, - "StackSetNameOrId": {"type": "string", "flattened": false}, - "StackSetOperation": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "StackSetId": {"shape": "StackSetId", "flattened": false}, - "Action": {"shape": "StackSetOperationAction", "flattened": false}, - "Status": {"shape": "StackSetOperationStatus", "flattened": false}, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - }, - "RetainStacks": {"shape": "RetainStacksNullable", "flattened": false}, - "AdministrationRoleARN": {"shape": "RoleARN", "flattened": false}, - "ExecutionRoleName": {"shape": "ExecutionRoleName", "flattened": false}, - "CreationTimestamp": {"shape": "Timestamp", "flattened": false}, - "EndTimestamp": {"shape": "Timestamp", "flattened": false}, - "DeploymentTargets": {"shape": "DeploymentTargets", "flattened": false}, - "StackSetDriftDetectionDetails": { - "shape": "StackSetDriftDetectionDetails", - "flattened": false - }, - "StatusReason": { - "shape": "StackSetOperationStatusReason", - "flattened": false - }, - "StatusDetails": { - "shape": "StackSetOperationStatusDetails", - "flattened": false - } - }, - "flattened": false - }, - "StackSetOperationAction": {"type": "string", "flattened": false}, - "StackSetOperationPreferences": { - "type": "structure", - "members": { - "RegionConcurrencyType": { - "shape": "RegionConcurrencyType", - "flattened": false - }, - "RegionOrder": {"shape": "RegionList", "flattened": false}, - "FailureToleranceCount": { - "shape": "FailureToleranceCount", - "flattened": false - }, - "FailureTolerancePercentage": { - "shape": "FailureTolerancePercentage", - "flattened": false - }, - "MaxConcurrentCount": {"shape": "MaxConcurrentCount", "flattened": false}, - "MaxConcurrentPercentage": { - "shape": "MaxConcurrentPercentage", - "flattened": false - }, - "ConcurrencyMode": {"shape": "ConcurrencyMode", "flattened": false} - }, - "flattened": false - }, - "StackSetOperationResultStatus": {"type": "string", "flattened": false}, - "StackSetOperationResultSummaries": { - "type": "list", - "member": {"shape": "StackSetOperationResultSummary"}, - "flattened": false - }, - "StackSetOperationResultSummary": { - "type": "structure", - "members": { - "Account": {"shape": "Account", "flattened": false}, - "Region": {"shape": "Region", "flattened": false}, - "Status": {"shape": "StackSetOperationResultStatus", "flattened": false}, - "StatusReason": {"shape": "Reason", "flattened": false}, - "AccountGateResult": {"shape": "AccountGateResult", "flattened": false}, - "OrganizationalUnitId": { - "shape": "OrganizationalUnitId", - "flattened": false - } - }, - "flattened": false - }, - "StackSetOperationStatus": {"type": "string", "flattened": false}, - "StackSetOperationStatusDetails": { - "type": "structure", - "members": { - "FailedStackInstancesCount": { - "shape": "FailedStackInstancesCount", - "flattened": false - } - }, - "flattened": false - }, - "StackSetOperationStatusReason": {"type": "string", "flattened": false}, - "StackSetOperationSummaries": { - "type": "list", - "member": {"shape": "StackSetOperationSummary"}, - "flattened": false - }, - "StackSetOperationSummary": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "Action": {"shape": "StackSetOperationAction", "flattened": false}, - "Status": {"shape": "StackSetOperationStatus", "flattened": false}, - "CreationTimestamp": {"shape": "Timestamp", "flattened": false}, - "EndTimestamp": {"shape": "Timestamp", "flattened": false}, - "StatusReason": { - "shape": "StackSetOperationStatusReason", - "flattened": false - }, - "StatusDetails": { - "shape": "StackSetOperationStatusDetails", - "flattened": false - }, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - } - }, - "flattened": false - }, - "StackSetStatus": {"type": "string", "flattened": false}, - "StackSetSummaries": { - "type": "list", - "member": {"shape": "StackSetSummary"}, - "flattened": false - }, - "StackSetSummary": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "StackSetId": {"shape": "StackSetId", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Status": {"shape": "StackSetStatus", "flattened": false}, - "AutoDeployment": {"shape": "AutoDeployment", "flattened": false}, - "PermissionModel": {"shape": "PermissionModels", "flattened": false}, - "DriftStatus": {"shape": "StackDriftStatus", "flattened": false}, - "LastDriftCheckTimestamp": {"shape": "Timestamp", "flattened": false}, - "ManagedExecution": {"shape": "ManagedExecution", "flattened": false} - }, - "flattened": false - }, - "StackStatus": {"type": "string", "flattened": false}, - "StackStatusFilter": { - "type": "list", - "member": {"shape": "StackStatus"}, - "flattened": false - }, - "StackStatusReason": {"type": "string", "flattened": false}, - "StackSummaries": { - "type": "list", - "member": {"shape": "StackSummary"}, - "flattened": false - }, - "StackSummary": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false}, - "StackName": {"shape": "StackName", "flattened": false}, - "TemplateDescription": { - "shape": "TemplateDescription", - "flattened": false - }, - "CreationTime": {"shape": "CreationTime", "flattened": false}, - "LastUpdatedTime": {"shape": "LastUpdatedTime", "flattened": false}, - "DeletionTime": {"shape": "DeletionTime", "flattened": false}, - "StackStatus": {"shape": "StackStatus", "flattened": false}, - "StackStatusReason": {"shape": "StackStatusReason", "flattened": false}, - "ParentId": {"shape": "StackId", "flattened": false}, - "RootId": {"shape": "StackId", "flattened": false}, - "DriftInformation": { - "shape": "StackDriftInformationSummary", - "flattened": false - } - }, - "flattened": false - }, - "Stacks": { - "type": "list", - "member": {"shape": "Stack"}, - "flattened": false - }, - "StageList": { - "type": "list", - "member": {"shape": "TemplateStage"}, - "flattened": false - }, - "StartResourceScanInput": { - "type": "structure", - "members": { - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "StartResourceScanOutput": { - "type": "structure", - "members": { - "ResourceScanId": {"shape": "ResourceScanId", "flattened": false} - }, - "flattened": false - }, - "StatusMessage": {"type": "string", "flattened": false}, - "StopStackSetOperationInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "StopStackSetOperationOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SupportedMajorVersion": {"type": "integer", "flattened": false}, - "SupportedMajorVersions": { - "type": "list", - "member": {"shape": "SupportedMajorVersion"}, - "flattened": false - }, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false} - }, - "flattened": false - }, - "TagKey": {"type": "string", "flattened": false}, - "TagValue": {"type": "string", "flattened": false}, - "Tags": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TemplateBody": {"type": "string", "flattened": false}, - "TemplateConfiguration": { - "type": "structure", - "members": { - "DeletionPolicy": { - "shape": "GeneratedTemplateDeletionPolicy", - "flattened": false - }, - "UpdateReplacePolicy": { - "shape": "GeneratedTemplateUpdateReplacePolicy", - "flattened": false - } - }, - "flattened": false - }, - "TemplateDescription": {"type": "string", "flattened": false}, - "TemplateFormat": {"type": "string", "flattened": false}, - "TemplateParameter": { - "type": "structure", - "members": { - "ParameterKey": {"shape": "ParameterKey", "flattened": false}, - "DefaultValue": {"shape": "ParameterValue", "flattened": false}, - "NoEcho": {"shape": "NoEcho", "flattened": false}, - "Description": {"shape": "Description", "flattened": false} - }, - "flattened": false - }, - "TemplateParameters": { - "type": "list", - "member": {"shape": "TemplateParameter"}, - "flattened": false - }, - "TemplateProgress": { - "type": "structure", - "members": { - "ResourcesSucceeded": {"shape": "ResourcesSucceeded", "flattened": false}, - "ResourcesFailed": {"shape": "ResourcesFailed", "flattened": false}, - "ResourcesProcessing": { - "shape": "ResourcesProcessing", - "flattened": false - }, - "ResourcesPending": {"shape": "ResourcesPending", "flattened": false} - }, - "flattened": false - }, - "TemplateStage": {"type": "string", "flattened": false}, - "TemplateStatusReason": {"type": "string", "flattened": false}, - "TemplateSummaries": { - "type": "list", - "member": {"shape": "TemplateSummary"}, - "flattened": false - }, - "TemplateSummary": { - "type": "structure", - "members": { - "GeneratedTemplateId": { - "shape": "GeneratedTemplateId", - "flattened": false - }, - "GeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - }, - "Status": {"shape": "GeneratedTemplateStatus", "flattened": false}, - "StatusReason": {"shape": "TemplateStatusReason", "flattened": false}, - "CreationTime": {"shape": "CreationTime", "flattened": false}, - "LastUpdatedTime": {"shape": "LastUpdatedTime", "flattened": false}, - "NumberOfResources": {"shape": "NumberOfResources", "flattened": false} - }, - "flattened": false - }, - "TemplateSummaryConfig": { - "type": "structure", - "members": { - "TreatUnrecognizedResourceTypesAsWarnings": { - "shape": "TreatUnrecognizedResourceTypesAsWarnings", - "flattened": false - } - }, - "flattened": false - }, - "TemplateURL": {"type": "string", "flattened": false}, - "TestTypeInput": { - "type": "structure", - "members": { - "Arn": {"shape": "TypeArn", "flattened": false}, - "Type": {"shape": "ThirdPartyType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "VersionId": {"shape": "TypeVersionId", "flattened": false}, - "LogDeliveryBucket": {"shape": "S3Bucket", "flattened": false} - }, - "flattened": false - }, - "TestTypeOutput": { - "type": "structure", - "members": { - "TypeVersionArn": {"shape": "TypeArn", "flattened": false} - }, - "flattened": false - }, - "ThirdPartyType": {"type": "string", "flattened": false}, - "ThirdPartyTypeArn": {"type": "string", "flattened": false}, - "TimeoutMinutes": {"type": "integer", "flattened": false}, - "Timestamp": {"type": "timestamp", "flattened": false}, - "TotalStackInstancesCount": {"type": "integer", "flattened": false}, - "TotalWarnings": {"type": "integer", "flattened": false}, - "TransformName": {"type": "string", "flattened": false}, - "TransformsList": { - "type": "list", - "member": {"shape": "TransformName"}, - "flattened": false - }, - "TreatUnrecognizedResourceTypesAsWarnings": { - "type": "boolean", - "flattened": false - }, - "Type": {"type": "string", "flattened": false}, - "TypeArn": {"type": "string", "flattened": false}, - "TypeConfiguration": {"type": "string", "flattened": false}, - "TypeConfigurationAlias": {"type": "string", "flattened": false}, - "TypeConfigurationArn": {"type": "string", "flattened": false}, - "TypeConfigurationDetails": { - "type": "structure", - "members": { - "Arn": {"shape": "TypeConfigurationArn", "flattened": false}, - "Alias": {"shape": "TypeConfigurationAlias", "flattened": false}, - "Configuration": {"shape": "TypeConfiguration", "flattened": false}, - "LastUpdated": {"shape": "Timestamp", "flattened": false}, - "TypeArn": {"shape": "TypeArn", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "IsDefaultConfiguration": { - "shape": "IsDefaultConfiguration", - "flattened": false - } - }, - "flattened": false - }, - "TypeConfigurationDetailsList": { - "type": "list", - "member": {"shape": "TypeConfigurationDetails"}, - "flattened": false - }, - "TypeConfigurationIdentifier": { - "type": "structure", - "members": { - "TypeArn": {"shape": "TypeArn", "flattened": false}, - "TypeConfigurationAlias": { - "shape": "TypeConfigurationAlias", - "flattened": false - }, - "TypeConfigurationArn": { - "shape": "TypeConfigurationArn", - "flattened": false - }, - "Type": {"shape": "ThirdPartyType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false} - }, - "flattened": false - }, - "TypeConfigurationIdentifiers": { - "type": "list", - "member": {"shape": "TypeConfigurationIdentifier"}, - "flattened": false - }, - "TypeFilters": { - "type": "structure", - "members": { - "Category": {"shape": "Category", "flattened": false}, - "PublisherId": {"shape": "PublisherId", "flattened": false}, - "TypeNamePrefix": {"shape": "TypeNamePrefix", "flattened": false} - }, - "flattened": false - }, - "TypeHierarchy": {"type": "string", "flattened": false}, - "TypeName": {"type": "string", "flattened": false}, - "TypeNamePrefix": {"type": "string", "flattened": false}, - "TypeSchema": {"type": "string", "flattened": false}, - "TypeSummaries": { - "type": "list", - "member": {"shape": "TypeSummary"}, - "flattened": false - }, - "TypeSummary": { - "type": "structure", - "members": { - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "DefaultVersionId": {"shape": "TypeVersionId", "flattened": false}, - "TypeArn": {"shape": "TypeArn", "flattened": false}, - "LastUpdated": {"shape": "Timestamp", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "PublisherId": {"shape": "PublisherId", "flattened": false}, - "OriginalTypeName": {"shape": "TypeName", "flattened": false}, - "PublicVersionNumber": { - "shape": "PublicVersionNumber", - "flattened": false - }, - "LatestPublicVersion": { - "shape": "PublicVersionNumber", - "flattened": false - }, - "PublisherIdentity": {"shape": "IdentityProvider", "flattened": false}, - "PublisherName": {"shape": "PublisherName", "flattened": false}, - "IsActivated": {"shape": "IsActivated", "flattened": false} - }, - "flattened": false - }, - "TypeTestsStatus": {"type": "string", "flattened": false}, - "TypeTestsStatusDescription": {"type": "string", "flattened": false}, - "TypeVersionId": {"type": "string", "flattened": false}, - "TypeVersionSummaries": { - "type": "list", - "member": {"shape": "TypeVersionSummary"}, - "flattened": false - }, - "TypeVersionSummary": { - "type": "structure", - "members": { - "Type": {"shape": "RegistryType", "flattened": false}, - "TypeName": {"shape": "TypeName", "flattened": false}, - "VersionId": {"shape": "TypeVersionId", "flattened": false}, - "IsDefaultVersion": {"shape": "IsDefaultVersion", "flattened": false}, - "Arn": {"shape": "TypeArn", "flattened": false}, - "TimeCreated": {"shape": "Timestamp", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "PublicVersionNumber": { - "shape": "PublicVersionNumber", - "flattened": false - } - }, - "flattened": false - }, - "UnprocessedTypeConfigurations": { - "type": "list", - "member": {"shape": "TypeConfigurationIdentifier"}, - "flattened": false - }, - "UpdateGeneratedTemplateInput": { - "type": "structure", - "members": { - "GeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - }, - "NewGeneratedTemplateName": { - "shape": "GeneratedTemplateName", - "flattened": false - }, - "AddResources": {"shape": "ResourceDefinitions", "flattened": false}, - "RemoveResources": { - "shape": "JazzLogicalResourceIds", - "flattened": false - }, - "RefreshAllResources": { - "shape": "RefreshAllResources", - "flattened": false - }, - "TemplateConfiguration": { - "shape": "TemplateConfiguration", - "flattened": false - } - }, - "flattened": false - }, - "UpdateGeneratedTemplateOutput": { - "type": "structure", - "members": { - "GeneratedTemplateId": { - "shape": "GeneratedTemplateId", - "flattened": false - } - }, - "flattened": false - }, - "UpdateStackInput": { - "type": "structure", - "members": { - "StackName": {"shape": "StackName", "flattened": false}, - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false}, - "UsePreviousTemplate": { - "shape": "UsePreviousTemplate", - "flattened": false - }, - "StackPolicyDuringUpdateBody": { - "shape": "StackPolicyDuringUpdateBody", - "flattened": false - }, - "StackPolicyDuringUpdateURL": { - "shape": "StackPolicyDuringUpdateURL", - "flattened": false - }, - "Parameters": {"shape": "Parameters", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "ResourceTypes": {"shape": "ResourceTypes", "flattened": false}, - "RoleARN": {"shape": "RoleARN", "flattened": false}, - "RollbackConfiguration": { - "shape": "RollbackConfiguration", - "flattened": false - }, - "StackPolicyBody": {"shape": "StackPolicyBody", "flattened": false}, - "StackPolicyURL": {"shape": "StackPolicyURL", "flattened": false}, - "NotificationARNs": {"shape": "NotificationARNs", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "DisableRollback": {"shape": "DisableRollback", "flattened": false}, - "ClientRequestToken": {"shape": "ClientRequestToken", "flattened": false}, - "RetainExceptOnCreate": { - "shape": "RetainExceptOnCreate", - "flattened": false - } - }, - "flattened": false - }, - "UpdateStackInstancesInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetNameOrId", "flattened": false}, - "Accounts": {"shape": "AccountList", "flattened": false}, - "DeploymentTargets": {"shape": "DeploymentTargets", "flattened": false}, - "Regions": {"shape": "RegionList", "flattened": false}, - "ParameterOverrides": {"shape": "Parameters", "flattened": false}, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - }, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false} - }, - "flattened": false - }, - "UpdateStackInstancesOutput": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "UpdateStackOutput": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false} - }, - "flattened": false - }, - "UpdateStackSetInput": { - "type": "structure", - "members": { - "StackSetName": {"shape": "StackSetName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false}, - "UsePreviousTemplate": { - "shape": "UsePreviousTemplate", - "flattened": false - }, - "Parameters": {"shape": "Parameters", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "OperationPreferences": { - "shape": "StackSetOperationPreferences", - "flattened": false - }, - "AdministrationRoleARN": {"shape": "RoleARN", "flattened": false}, - "ExecutionRoleName": {"shape": "ExecutionRoleName", "flattened": false}, - "DeploymentTargets": {"shape": "DeploymentTargets", "flattened": false}, - "PermissionModel": {"shape": "PermissionModels", "flattened": false}, - "AutoDeployment": {"shape": "AutoDeployment", "flattened": false}, - "OperationId": {"shape": "ClientRequestToken", "flattened": false}, - "Accounts": {"shape": "AccountList", "flattened": false}, - "Regions": {"shape": "RegionList", "flattened": false}, - "CallAs": {"shape": "CallAs", "flattened": false}, - "ManagedExecution": {"shape": "ManagedExecution", "flattened": false} - }, - "flattened": false - }, - "UpdateStackSetOutput": { - "type": "structure", - "members": { - "OperationId": {"shape": "ClientRequestToken", "flattened": false} - }, - "flattened": false - }, - "UpdateTerminationProtectionInput": { - "type": "structure", - "members": { - "EnableTerminationProtection": { - "shape": "EnableTerminationProtection", - "flattened": false - }, - "StackName": {"shape": "StackNameOrId", "flattened": false} - }, - "flattened": false - }, - "UpdateTerminationProtectionOutput": { - "type": "structure", - "members": { - "StackId": {"shape": "StackId", "flattened": false} - }, - "flattened": false - }, - "Url": {"type": "string", "flattened": false}, - "UsePreviousTemplate": {"type": "boolean", "flattened": false}, - "UsePreviousValue": {"type": "boolean", "flattened": false}, - "ValidateTemplateInput": { - "type": "structure", - "members": { - "TemplateBody": {"shape": "TemplateBody", "flattened": false}, - "TemplateURL": {"shape": "TemplateURL", "flattened": false} - }, - "flattened": false - }, - "ValidateTemplateOutput": { - "type": "structure", - "members": { - "Parameters": {"shape": "TemplateParameters", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Capabilities": {"shape": "Capabilities", "flattened": false}, - "CapabilitiesReason": {"shape": "CapabilitiesReason", "flattened": false}, - "DeclaredTransforms": {"shape": "TransformsList", "flattened": false} - }, - "flattened": false - }, - "Value": {"type": "string", "flattened": false}, - "Version": {"type": "string", "flattened": false}, - "VersionBump": {"type": "string", "flattened": false}, - "Visibility": {"type": "string", "flattened": false}, - "WarningDetail": { - "type": "structure", - "members": { - "Type": {"shape": "WarningType", "flattened": false}, - "Properties": {"shape": "WarningProperties", "flattened": false} - }, - "flattened": false - }, - "WarningDetails": { - "type": "list", - "member": {"shape": "WarningDetail"}, - "flattened": false - }, - "WarningProperties": { - "type": "list", - "member": {"shape": "WarningProperty"}, - "flattened": false - }, - "WarningProperty": { - "type": "structure", - "members": { - "PropertyPath": {"shape": "PropertyPath", "flattened": false}, - "Required": {"shape": "RequiredProperty", "flattened": false}, - "Description": {"shape": "PropertyDescription", "flattened": false} - }, - "flattened": false - }, - "WarningType": {"type": "string", "flattened": false}, - "Warnings": { - "type": "structure", - "members": { - "UnrecognizedResourceTypes": { - "shape": "ResourceTypes", - "flattened": false - } - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart b/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart index 689d8587e..9048979bb 100644 --- a/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart +++ b/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2011_02_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// You use the configuration service to create, configure, and manage search @@ -26,7 +25,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// GET or POST with a query parameter named Action. class CloudSearch { final _s.QueryProtocol _protocol; - final Map shapes; CloudSearch({ required String region, @@ -34,7 +32,7 @@ class CloudSearch { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'cloudsearch', @@ -43,9 +41,7 @@ class CloudSearch { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -64,8 +60,9 @@ class CloudSearch { Future createDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'CreateDomain', @@ -73,8 +70,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDomainRequest'], - shapes: shapes, resultWrapper: 'CreateDomainResult', ); return CreateDomainResponse.fromXml($result); @@ -94,9 +89,11 @@ class CloudSearch { required String domainName, required IndexField indexField, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexField'] = indexField; + final $request = { + 'DomainName': domainName, + for (var e1 in indexField.toQueryMap().entries) + 'IndexField.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineIndexField', @@ -104,8 +101,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DefineIndexFieldResult', ); return DefineIndexFieldResponse.fromXml($result); @@ -125,9 +120,11 @@ class CloudSearch { required String domainName, required NamedRankExpression rankExpression, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['RankExpression'] = rankExpression; + final $request = { + 'DomainName': domainName, + for (var e1 in rankExpression.toQueryMap().entries) + 'RankExpression.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineRankExpression', @@ -135,8 +132,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineRankExpressionRequest'], - shapes: shapes, resultWrapper: 'DefineRankExpressionResult', ); return DefineRankExpressionResponse.fromXml($result); @@ -149,8 +144,9 @@ class CloudSearch { Future deleteDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DeleteDomain', @@ -158,8 +154,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDomainRequest'], - shapes: shapes, resultWrapper: 'DeleteDomainResult', ); return DeleteDomainResponse.fromXml($result); @@ -175,9 +169,10 @@ class CloudSearch { required String domainName, required String indexFieldName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexFieldName'] = indexFieldName; + final $request = { + 'DomainName': domainName, + 'IndexFieldName': indexFieldName, + }; final $result = await _protocol.send( $request, action: 'DeleteIndexField', @@ -185,8 +180,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DeleteIndexFieldResult', ); return DeleteIndexFieldResponse.fromXml($result); @@ -205,9 +198,10 @@ class CloudSearch { required String domainName, required String rankName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['RankName'] = rankName; + final $request = { + 'DomainName': domainName, + 'RankName': rankName, + }; final $result = await _protocol.send( $request, action: 'DeleteRankExpression', @@ -215,8 +209,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRankExpressionRequest'], - shapes: shapes, resultWrapper: 'DeleteRankExpressionResult', ); return DeleteRankExpressionResponse.fromXml($result); @@ -242,8 +234,9 @@ class CloudSearch { Future describeAvailabilityOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeAvailabilityOptions', @@ -251,8 +244,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeAvailabilityOptionsResult', ); return DescribeAvailabilityOptionsResponse.fromXml($result); @@ -266,8 +257,9 @@ class CloudSearch { Future describeDefaultSearchField({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeDefaultSearchField', @@ -275,8 +267,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDefaultSearchFieldRequest'], - shapes: shapes, resultWrapper: 'DescribeDefaultSearchFieldResult', ); return DescribeDefaultSearchFieldResponse.fromXml($result); @@ -293,8 +283,14 @@ class CloudSearch { Future describeDomains({ List? domainNames, }) async { - final $request = {}; - domainNames?.also((arg) => $request['DomainNames'] = arg); + final $request = { + if (domainNames != null) + if (domainNames.isEmpty) + 'DomainNames': '' + else + for (var i1 = 0; i1 < domainNames.length; i1++) + 'DomainNames.member.${i1 + 1}': domainNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeDomains', @@ -302,8 +298,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDomainsRequest'], - shapes: shapes, resultWrapper: 'DescribeDomainsResult', ); return DescribeDomainsResponse.fromXml($result); @@ -323,9 +317,15 @@ class CloudSearch { required String domainName, List? fieldNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - fieldNames?.also((arg) => $request['FieldNames'] = arg); + final $request = { + 'DomainName': domainName, + if (fieldNames != null) + if (fieldNames.isEmpty) + 'FieldNames': '' + else + for (var i1 = 0; i1 < fieldNames.length; i1++) + 'FieldNames.member.${i1 + 1}': fieldNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeIndexFields', @@ -333,8 +333,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeIndexFieldsRequest'], - shapes: shapes, resultWrapper: 'DescribeIndexFieldsResult', ); return DescribeIndexFieldsResponse.fromXml($result); @@ -355,9 +353,15 @@ class CloudSearch { required String domainName, List? rankNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - rankNames?.also((arg) => $request['RankNames'] = arg); + final $request = { + 'DomainName': domainName, + if (rankNames != null) + if (rankNames.isEmpty) + 'RankNames': '' + else + for (var i1 = 0; i1 < rankNames.length; i1++) + 'RankNames.member.${i1 + 1}': rankNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeRankExpressions', @@ -365,8 +369,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeRankExpressionsRequest'], - shapes: shapes, resultWrapper: 'DescribeRankExpressionsResult', ); return DescribeRankExpressionsResponse.fromXml($result); @@ -381,8 +383,9 @@ class CloudSearch { Future describeServiceAccessPolicies({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeServiceAccessPolicies', @@ -390,8 +393,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'DescribeServiceAccessPoliciesResult', ); return DescribeServiceAccessPoliciesResponse.fromXml($result); @@ -405,8 +406,9 @@ class CloudSearch { Future describeStemmingOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeStemmingOptions', @@ -414,8 +416,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStemmingOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeStemmingOptionsResult', ); return DescribeStemmingOptionsResponse.fromXml($result); @@ -429,8 +429,9 @@ class CloudSearch { Future describeStopwordOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeStopwordOptions', @@ -438,8 +439,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStopwordOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeStopwordOptionsResult', ); return DescribeStopwordOptionsResponse.fromXml($result); @@ -453,8 +452,9 @@ class CloudSearch { Future describeSynonymOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeSynonymOptions', @@ -462,8 +462,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSynonymOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeSynonymOptionsResult', ); return DescribeSynonymOptionsResponse.fromXml($result); @@ -481,8 +479,9 @@ class CloudSearch { Future indexDocuments({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'IndexDocuments', @@ -490,8 +489,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IndexDocumentsRequest'], - shapes: shapes, resultWrapper: 'IndexDocumentsResult', ); return IndexDocumentsResponse.fromXml($result); @@ -522,9 +519,10 @@ class CloudSearch { required String domainName, required bool multiAZ, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['MultiAZ'] = multiAZ; + final $request = { + 'DomainName': domainName, + 'MultiAZ': multiAZ.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateAvailabilityOptions', @@ -532,8 +530,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateAvailabilityOptionsResult', ); return UpdateAvailabilityOptionsResponse.fromXml($result); @@ -560,9 +556,10 @@ class CloudSearch { required String defaultSearchField, required String domainName, }) async { - final $request = {}; - $request['DefaultSearchField'] = defaultSearchField; - $request['DomainName'] = domainName; + final $request = { + 'DefaultSearchField': defaultSearchField, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateDefaultSearchField', @@ -570,8 +567,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateDefaultSearchFieldRequest'], - shapes: shapes, resultWrapper: 'UpdateDefaultSearchFieldResult', ); return UpdateDefaultSearchFieldResponse.fromXml($result); @@ -589,9 +584,10 @@ class CloudSearch { required String accessPolicies, required String domainName, }) async { - final $request = {}; - $request['AccessPolicies'] = accessPolicies; - $request['DomainName'] = domainName; + final $request = { + 'AccessPolicies': accessPolicies, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateServiceAccessPolicies', @@ -599,8 +595,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'UpdateServiceAccessPoliciesResult', ); return UpdateServiceAccessPoliciesResponse.fromXml($result); @@ -619,9 +613,10 @@ class CloudSearch { required String domainName, required String stems, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Stems'] = stems; + final $request = { + 'DomainName': domainName, + 'Stems': stems, + }; final $result = await _protocol.send( $request, action: 'UpdateStemmingOptions', @@ -629,8 +624,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStemmingOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateStemmingOptionsResult', ); return UpdateStemmingOptionsResponse.fromXml($result); @@ -649,9 +642,10 @@ class CloudSearch { required String domainName, required String stopwords, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Stopwords'] = stopwords; + final $request = { + 'DomainName': domainName, + 'Stopwords': stopwords, + }; final $result = await _protocol.send( $request, action: 'UpdateStopwordOptions', @@ -659,8 +653,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStopwordOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateStopwordOptionsResult', ); return UpdateStopwordOptionsResponse.fromXml($result); @@ -680,9 +672,10 @@ class CloudSearch { required String domainName, required String synonyms, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Synonyms'] = synonyms; + final $request = { + 'DomainName': domainName, + 'Synonyms': synonyms, + }; final $result = await _protocol.send( $request, action: 'UpdateSynonymOptions', @@ -690,8 +683,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSynonymOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateSynonymOptionsResult', ); return UpdateSynonymOptionsResponse.fromXml($result); @@ -1395,6 +1386,35 @@ class IndexField { if (uIntOptions != null) 'UIntOptions': uIntOptions, }; } + + Map toQueryMap() { + final indexFieldName = this.indexFieldName; + final indexFieldType = this.indexFieldType; + final literalOptions = this.literalOptions; + final sourceAttributes = this.sourceAttributes; + final textOptions = this.textOptions; + final uIntOptions = this.uIntOptions; + return { + 'IndexFieldName': indexFieldName, + 'IndexFieldType': indexFieldType.toValue(), + if (literalOptions != null) + for (var e1 in literalOptions.toQueryMap().entries) + 'LiteralOptions.${e1.key}': e1.value, + if (sourceAttributes != null) + if (sourceAttributes.isEmpty) + 'SourceAttributes': '' + else + for (var i1 = 0; i1 < sourceAttributes.length; i1++) + for (var e3 in sourceAttributes[i1].toQueryMap().entries) + 'SourceAttributes.member.${i1 + 1}.${e3.key}': e3.value, + if (textOptions != null) + for (var e1 in textOptions.toQueryMap().entries) + 'TextOptions.${e1.key}': e1.value, + if (uIntOptions != null) + for (var e1 in uIntOptions.toQueryMap().entries) + 'UIntOptions.${e1.key}': e1.value, + }; + } } /// The value of an IndexField and its current status. @@ -1543,6 +1563,19 @@ class LiteralOptions { if (searchEnabled != null) 'SearchEnabled': searchEnabled, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final resultEnabled = this.resultEnabled; + final searchEnabled = this.searchEnabled; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (resultEnabled != null) 'ResultEnabled': resultEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + }; + } } /// A named expression that can be evaluated at search time and used for ranking @@ -1616,6 +1649,15 @@ class NamedRankExpression { 'RankName': rankName, }; } + + Map toQueryMap() { + final rankExpression = this.rankExpression; + final rankName = this.rankName; + return { + 'RankExpression': rankExpression, + 'RankName': rankName, + }; + } } /// The state of processing a change to an option. @@ -1842,6 +1884,25 @@ class SourceAttribute { 'SourceDataTrimTitle': sourceDataTrimTitle, }; } + + Map toQueryMap() { + final sourceDataFunction = this.sourceDataFunction; + final sourceDataCopy = this.sourceDataCopy; + final sourceDataMap = this.sourceDataMap; + final sourceDataTrimTitle = this.sourceDataTrimTitle; + return { + 'SourceDataFunction': sourceDataFunction.toValue(), + if (sourceDataCopy != null) + for (var e1 in sourceDataCopy.toQueryMap().entries) + 'SourceDataCopy.${e1.key}': e1.value, + if (sourceDataMap != null) + for (var e1 in sourceDataMap.toQueryMap().entries) + 'SourceDataMap.${e1.key}': e1.value, + if (sourceDataTrimTitle != null) + for (var e1 in sourceDataTrimTitle.toQueryMap().entries) + 'SourceDataTrimTitle.${e1.key}': e1.value, + }; + } } /// The source attribute name and an optional default value to use if a document @@ -1874,6 +1935,15 @@ class SourceData { if (defaultValue != null) 'DefaultValue': defaultValue, }; } + + Map toQueryMap() { + final sourceName = this.sourceName; + final defaultValue = this.defaultValue; + return { + 'SourceName': sourceName, + if (defaultValue != null) 'DefaultValue': defaultValue, + }; + } } enum SourceDataFunction { @@ -1954,6 +2024,21 @@ class SourceDataMap { if (defaultValue != null) 'DefaultValue': defaultValue, }; } + + Map toQueryMap() { + final sourceName = this.sourceName; + final cases = this.cases; + final defaultValue = this.defaultValue; + return { + 'SourceName': sourceName, + if (cases != null) + for (var e1 in cases.entries.toList().asMap().entries) ...{ + 'Cases.entry.${e1.key + 1}.key': e1.value.key, + 'Cases.entry.${e1.key + 1}.value': e1.value.value, + }, + if (defaultValue != null) 'DefaultValue': defaultValue, + }; + } } /// Specifies how to trim common words from the beginning of a field to enable @@ -1998,6 +2083,19 @@ class SourceDataTrimTitle { if (separator != null) 'Separator': separator, }; } + + Map toQueryMap() { + final sourceName = this.sourceName; + final defaultValue = this.defaultValue; + final language = this.language; + final separator = this.separator; + return { + 'SourceName': sourceName, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (language != null) 'Language': language, + if (separator != null) 'Separator': separator, + }; + } } /// The stemming options configured for this search domain and the current @@ -2129,6 +2227,19 @@ class TextOptions { if (textProcessor != null) 'TextProcessor': textProcessor, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final resultEnabled = this.resultEnabled; + final textProcessor = this.textProcessor; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (resultEnabled != null) 'ResultEnabled': resultEnabled.toString(), + if (textProcessor != null) 'TextProcessor': textProcessor, + }; + } } /// Options that define a uint field in the search index. @@ -2151,6 +2262,13 @@ class UIntOptions { if (defaultValue != null) 'DefaultValue': defaultValue, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + }; + } } /// The result of a UpdateAvailabilityOptions request. Contains the diff --git a/aws_client/lib/src/generated/cloud_search/v2011_02_01.meta.dart b/aws_client/lib/src/generated/cloud_search/v2011_02_01.meta.dart deleted file mode 100644 index 6e8752414..000000000 --- a/aws_client/lib/src/generated/cloud_search/v2011_02_01.meta.dart +++ /dev/null @@ -1,617 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AccessPoliciesStatus": { - "type": "structure", - "members": { - "Options": {"shape": "PolicyDocument", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "Arn": {"type": "string", "flattened": false}, - "AvailabilityOptionsStatus": { - "type": "structure", - "members": { - "Options": {"shape": "MultiAZ", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "BaseException": { - "type": "structure", - "members": { - "Code": {"shape": "ErrorCode", "flattened": false}, - "Message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "CreateDomainRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "CreateDomainResponse": { - "type": "structure", - "members": { - "DomainStatus": {"shape": "DomainStatus", "flattened": false} - }, - "flattened": false - }, - "DefaultSearchFieldStatus": { - "type": "structure", - "members": { - "Options": {"shape": "FieldName", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "DefineIndexFieldRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "IndexField": {"shape": "IndexField", "flattened": false} - }, - "flattened": false - }, - "DefineIndexFieldResponse": { - "type": "structure", - "members": { - "IndexField": {"shape": "IndexFieldStatus", "flattened": false} - }, - "flattened": false - }, - "DefineRankExpressionRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "RankExpression": {"shape": "NamedRankExpression", "flattened": false} - }, - "flattened": false - }, - "DefineRankExpressionResponse": { - "type": "structure", - "members": { - "RankExpression": {"shape": "RankExpressionStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteDomainRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DeleteDomainResponse": { - "type": "structure", - "members": { - "DomainStatus": {"shape": "DomainStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteIndexFieldRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "IndexFieldName": {"shape": "FieldName", "flattened": false} - }, - "flattened": false - }, - "DeleteIndexFieldResponse": { - "type": "structure", - "members": { - "IndexField": {"shape": "IndexFieldStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteRankExpressionRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "RankName": {"shape": "FieldName", "flattened": false} - }, - "flattened": false - }, - "DeleteRankExpressionResponse": { - "type": "structure", - "members": { - "RankExpression": {"shape": "RankExpressionStatus", "flattened": false} - }, - "flattened": false - }, - "DescribeAvailabilityOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DescribeAvailabilityOptionsResponse": { - "type": "structure", - "members": { - "AvailabilityOptions": { - "shape": "AvailabilityOptionsStatus", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDefaultSearchFieldRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DescribeDefaultSearchFieldResponse": { - "type": "structure", - "members": { - "DefaultSearchField": { - "shape": "DefaultSearchFieldStatus", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDomainsRequest": { - "type": "structure", - "members": { - "DomainNames": {"shape": "DomainNameList", "flattened": false} - }, - "flattened": false - }, - "DescribeDomainsResponse": { - "type": "structure", - "members": { - "DomainStatusList": {"shape": "DomainStatusList", "flattened": false} - }, - "flattened": false - }, - "DescribeIndexFieldsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "FieldNames": {"shape": "FieldNameList", "flattened": false} - }, - "flattened": false - }, - "DescribeIndexFieldsResponse": { - "type": "structure", - "members": { - "IndexFields": {"shape": "IndexFieldStatusList", "flattened": false} - }, - "flattened": false - }, - "DescribeRankExpressionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "RankNames": {"shape": "FieldNameList", "flattened": false} - }, - "flattened": false - }, - "DescribeRankExpressionsResponse": { - "type": "structure", - "members": { - "RankExpressions": { - "shape": "RankExpressionStatusList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeServiceAccessPoliciesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DescribeServiceAccessPoliciesResponse": { - "type": "structure", - "members": { - "AccessPolicies": {"shape": "AccessPoliciesStatus", "flattened": false} - }, - "flattened": false - }, - "DescribeStemmingOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DescribeStemmingOptionsResponse": { - "type": "structure", - "members": { - "Stems": {"shape": "StemmingOptionsStatus", "flattened": false} - }, - "flattened": false - }, - "DescribeStopwordOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DescribeStopwordOptionsResponse": { - "type": "structure", - "members": { - "Stopwords": {"shape": "StopwordOptionsStatus", "flattened": false} - }, - "flattened": false - }, - "DescribeSynonymOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DescribeSynonymOptionsResponse": { - "type": "structure", - "members": { - "Synonyms": {"shape": "SynonymOptionsStatus", "flattened": false} - }, - "flattened": false - }, - "DisabledOperationException": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DocumentCount": {"type": "long", "flattened": false}, - "DomainId": {"type": "string", "flattened": false}, - "DomainName": {"type": "string", "flattened": false}, - "DomainNameList": { - "type": "list", - "member": {"shape": "DomainName"}, - "flattened": false - }, - "DomainStatus": { - "type": "structure", - "members": { - "DomainId": {"shape": "DomainId", "flattened": false}, - "DomainName": {"shape": "DomainName", "flattened": false}, - "Created": {"shape": "Boolean", "flattened": false}, - "Deleted": {"shape": "Boolean", "flattened": false}, - "NumSearchableDocs": {"shape": "DocumentCount", "flattened": false}, - "DocService": {"shape": "ServiceEndpoint", "flattened": false}, - "SearchService": {"shape": "ServiceEndpoint", "flattened": false}, - "RequiresIndexDocuments": {"shape": "Boolean", "flattened": false}, - "Processing": {"shape": "Boolean", "flattened": false}, - "SearchInstanceType": {"shape": "SearchInstanceType", "flattened": false}, - "SearchPartitionCount": {"shape": "PartitionCount", "flattened": false}, - "SearchInstanceCount": {"shape": "InstanceCount", "flattened": false} - }, - "flattened": false - }, - "DomainStatusList": { - "type": "list", - "member": {"shape": "DomainStatus"}, - "flattened": false - }, - "ErrorCode": {"type": "string", "flattened": false}, - "ErrorMessage": {"type": "string", "flattened": false}, - "FieldName": {"type": "string", "flattened": false}, - "FieldNameList": { - "type": "list", - "member": {"shape": "FieldName"}, - "flattened": false - }, - "FieldValue": {"type": "string", "flattened": false}, - "IndexDocumentsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "IndexDocumentsResponse": { - "type": "structure", - "members": { - "FieldNames": {"shape": "FieldNameList", "flattened": false} - }, - "flattened": false - }, - "IndexField": { - "type": "structure", - "members": { - "IndexFieldName": {"shape": "FieldName", "flattened": false}, - "IndexFieldType": {"shape": "IndexFieldType", "flattened": false}, - "UIntOptions": {"shape": "UIntOptions", "flattened": false}, - "LiteralOptions": {"shape": "LiteralOptions", "flattened": false}, - "TextOptions": {"shape": "TextOptions", "flattened": false}, - "SourceAttributes": {"shape": "SourceAttributeList", "flattened": false} - }, - "flattened": false - }, - "IndexFieldStatus": { - "type": "structure", - "members": { - "Options": {"shape": "IndexField", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "IndexFieldStatusList": { - "type": "list", - "member": {"shape": "IndexFieldStatus"}, - "flattened": false - }, - "IndexFieldType": {"type": "string", "flattened": false}, - "InstanceCount": {"type": "integer", "flattened": false}, - "InternalException": {"type": "structure", "members": {}, "flattened": false}, - "InvalidTypeException": { - "type": "structure", - "members": {}, - "flattened": false - }, - "Language": {"type": "string", "flattened": false}, - "LimitExceededException": { - "type": "structure", - "members": {}, - "flattened": false - }, - "LiteralOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "ResultEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "MultiAZ": {"type": "boolean", "flattened": false}, - "NamedRankExpression": { - "type": "structure", - "members": { - "RankName": {"shape": "FieldName", "flattened": false}, - "RankExpression": {"shape": "RankExpression", "flattened": false} - }, - "flattened": false - }, - "OptionState": {"type": "string", "flattened": false}, - "OptionStatus": { - "type": "structure", - "members": { - "CreationDate": {"shape": "UpdateTimestamp", "flattened": false}, - "UpdateDate": {"shape": "UpdateTimestamp", "flattened": false}, - "UpdateVersion": {"shape": "UIntValue", "flattened": false}, - "State": {"shape": "OptionState", "flattened": false}, - "PendingDeletion": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "PartitionCount": {"type": "integer", "flattened": false}, - "PolicyDocument": {"type": "string", "flattened": false}, - "RankExpression": {"type": "string", "flattened": false}, - "RankExpressionStatus": { - "type": "structure", - "members": { - "Options": {"shape": "NamedRankExpression", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "RankExpressionStatusList": { - "type": "list", - "member": {"shape": "RankExpressionStatus"}, - "flattened": false - }, - "ResourceNotFoundException": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SearchInstanceType": {"type": "string", "flattened": false}, - "ServiceEndpoint": { - "type": "structure", - "members": { - "Arn": {"shape": "Arn", "flattened": false}, - "Endpoint": {"shape": "ServiceUrl", "flattened": false} - }, - "flattened": false - }, - "ServiceUrl": {"type": "string", "flattened": false}, - "SourceAttribute": { - "type": "structure", - "members": { - "SourceDataFunction": {"shape": "SourceDataFunction", "flattened": false}, - "SourceDataCopy": {"shape": "SourceData", "flattened": false}, - "SourceDataTrimTitle": { - "shape": "SourceDataTrimTitle", - "flattened": false - }, - "SourceDataMap": {"shape": "SourceDataMap", "flattened": false} - }, - "flattened": false - }, - "SourceAttributeList": { - "type": "list", - "member": {"shape": "SourceAttribute"}, - "flattened": false - }, - "SourceData": { - "type": "structure", - "members": { - "SourceName": {"shape": "FieldName", "flattened": false}, - "DefaultValue": {"shape": "FieldValue", "flattened": false} - }, - "flattened": false - }, - "SourceDataFunction": {"type": "string", "flattened": false}, - "SourceDataMap": { - "type": "structure", - "members": { - "SourceName": {"shape": "FieldName", "flattened": false}, - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "Cases": {"shape": "StringCaseMap", "flattened": false} - }, - "flattened": false - }, - "SourceDataTrimTitle": { - "type": "structure", - "members": { - "SourceName": {"shape": "FieldName", "flattened": false}, - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "Separator": {"shape": "String", "flattened": false}, - "Language": {"shape": "Language", "flattened": false} - }, - "flattened": false - }, - "StemmingOptionsStatus": { - "type": "structure", - "members": { - "Options": {"shape": "StemsDocument", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "StemsDocument": {"type": "string", "flattened": false}, - "StopwordOptionsStatus": { - "type": "structure", - "members": { - "Options": {"shape": "StopwordsDocument", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "StopwordsDocument": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false}, - "StringCaseMap": { - "type": "map", - "key": {"shape": "FieldValue"}, - "value": {"shape": "FieldValue"}, - "flattened": false - }, - "SynonymOptionsStatus": { - "type": "structure", - "members": { - "Options": {"shape": "SynonymsDocument", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "SynonymsDocument": {"type": "string", "flattened": false}, - "TextOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "ResultEnabled": {"shape": "Boolean", "flattened": false}, - "TextProcessor": {"shape": "FieldName", "flattened": false} - }, - "flattened": false - }, - "UIntOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "UIntValue", "flattened": false} - }, - "flattened": false - }, - "UIntValue": {"type": "integer", "flattened": false}, - "UpdateAvailabilityOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "UpdateAvailabilityOptionsResponse": { - "type": "structure", - "members": { - "AvailabilityOptions": { - "shape": "AvailabilityOptionsStatus", - "flattened": false - } - }, - "flattened": false - }, - "UpdateDefaultSearchFieldRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "DefaultSearchField": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UpdateDefaultSearchFieldResponse": { - "type": "structure", - "members": { - "DefaultSearchField": { - "shape": "DefaultSearchFieldStatus", - "flattened": false - } - }, - "flattened": false - }, - "UpdateServiceAccessPoliciesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "AccessPolicies": {"shape": "PolicyDocument", "flattened": false} - }, - "flattened": false - }, - "UpdateServiceAccessPoliciesResponse": { - "type": "structure", - "members": { - "AccessPolicies": {"shape": "AccessPoliciesStatus", "flattened": false} - }, - "flattened": false - }, - "UpdateStemmingOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Stems": {"shape": "StemsDocument", "flattened": false} - }, - "flattened": false - }, - "UpdateStemmingOptionsResponse": { - "type": "structure", - "members": { - "Stems": {"shape": "StemmingOptionsStatus", "flattened": false} - }, - "flattened": false - }, - "UpdateStopwordOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Stopwords": {"shape": "StopwordsDocument", "flattened": false} - }, - "flattened": false - }, - "UpdateStopwordOptionsResponse": { - "type": "structure", - "members": { - "Stopwords": {"shape": "StopwordOptionsStatus", "flattened": false} - }, - "flattened": false - }, - "UpdateSynonymOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Synonyms": {"shape": "SynonymsDocument", "flattened": false} - }, - "flattened": false - }, - "UpdateSynonymOptionsResponse": { - "type": "structure", - "members": { - "Synonyms": {"shape": "SynonymOptionsStatus", "flattened": false} - }, - "flattened": false - }, - "UpdateTimestamp": {"type": "timestamp", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart b/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart index 2419ea1d1..4c3dbf33d 100644 --- a/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart +++ b/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2013_01_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// You use the Amazon CloudSearch configuration service to create, configure, @@ -26,7 +25,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// submitted via HTTP GET or POST with a query parameter named Action. class CloudSearch { final _s.QueryProtocol _protocol; - final Map shapes; CloudSearch({ required String region, @@ -34,7 +32,7 @@ class CloudSearch { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'cloudsearch', @@ -43,9 +41,7 @@ class CloudSearch { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -67,8 +63,9 @@ class CloudSearch { Future buildSuggesters({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'BuildSuggesters', @@ -76,8 +73,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BuildSuggestersRequest'], - shapes: shapes, resultWrapper: 'BuildSuggestersResult', ); return BuildSuggestersResponse.fromXml($result); @@ -101,8 +96,9 @@ class CloudSearch { Future createDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'CreateDomain', @@ -110,8 +106,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDomainRequest'], - shapes: shapes, resultWrapper: 'CreateDomainResult', ); return CreateDomainResponse.fromXml($result); @@ -134,9 +128,11 @@ class CloudSearch { required AnalysisScheme analysisScheme, required String domainName, }) async { - final $request = {}; - $request['AnalysisScheme'] = analysisScheme; - $request['DomainName'] = domainName; + final $request = { + for (var e1 in analysisScheme.toQueryMap().entries) + 'AnalysisScheme.${e1.key}': e1.value, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DefineAnalysisScheme', @@ -144,8 +140,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineAnalysisSchemeRequest'], - shapes: shapes, resultWrapper: 'DefineAnalysisSchemeResult', ); return DefineAnalysisSchemeResponse.fromXml($result); @@ -169,9 +163,11 @@ class CloudSearch { required String domainName, required Expression expression, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Expression'] = expression; + final $request = { + 'DomainName': domainName, + for (var e1 in expression.toQueryMap().entries) + 'Expression.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineExpression', @@ -179,8 +175,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineExpressionRequest'], - shapes: shapes, resultWrapper: 'DefineExpressionResult', ); return DefineExpressionResponse.fromXml($result); @@ -211,9 +205,11 @@ class CloudSearch { required String domainName, required IndexField indexField, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexField'] = indexField; + final $request = { + 'DomainName': domainName, + for (var e1 in indexField.toQueryMap().entries) + 'IndexField.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineIndexField', @@ -221,8 +217,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DefineIndexFieldResult', ); return DefineIndexFieldResponse.fromXml($result); @@ -247,9 +241,11 @@ class CloudSearch { required String domainName, required Suggester suggester, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Suggester'] = suggester; + final $request = { + 'DomainName': domainName, + for (var e1 in suggester.toQueryMap().entries) + 'Suggester.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineSuggester', @@ -257,8 +253,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineSuggesterRequest'], - shapes: shapes, resultWrapper: 'DefineSuggesterResult', ); return DefineSuggesterResponse.fromXml($result); @@ -281,9 +275,10 @@ class CloudSearch { required String analysisSchemeName, required String domainName, }) async { - final $request = {}; - $request['AnalysisSchemeName'] = analysisSchemeName; - $request['DomainName'] = domainName; + final $request = { + 'AnalysisSchemeName': analysisSchemeName, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DeleteAnalysisScheme', @@ -291,8 +286,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAnalysisSchemeRequest'], - shapes: shapes, resultWrapper: 'DeleteAnalysisSchemeResult', ); return DeleteAnalysisSchemeResponse.fromXml($result); @@ -312,8 +305,9 @@ class CloudSearch { Future deleteDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DeleteDomain', @@ -321,8 +315,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDomainRequest'], - shapes: shapes, resultWrapper: 'DeleteDomainResult', ); return DeleteDomainResponse.fromXml($result); @@ -346,9 +338,10 @@ class CloudSearch { required String domainName, required String expressionName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ExpressionName'] = expressionName; + final $request = { + 'DomainName': domainName, + 'ExpressionName': expressionName, + }; final $result = await _protocol.send( $request, action: 'DeleteExpression', @@ -356,8 +349,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteExpressionRequest'], - shapes: shapes, resultWrapper: 'DeleteExpressionResult', ); return DeleteExpressionResponse.fromXml($result); @@ -382,9 +373,10 @@ class CloudSearch { required String domainName, required String indexFieldName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexFieldName'] = indexFieldName; + final $request = { + 'DomainName': domainName, + 'IndexFieldName': indexFieldName, + }; final $result = await _protocol.send( $request, action: 'DeleteIndexField', @@ -392,8 +384,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DeleteIndexFieldResult', ); return DeleteIndexFieldResponse.fromXml($result); @@ -416,9 +406,10 @@ class CloudSearch { required String domainName, required String suggesterName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['SuggesterName'] = suggesterName; + final $request = { + 'DomainName': domainName, + 'SuggesterName': suggesterName, + }; final $result = await _protocol.send( $request, action: 'DeleteSuggester', @@ -426,8 +417,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSuggesterRequest'], - shapes: shapes, resultWrapper: 'DeleteSuggesterResult', ); return DeleteSuggesterResponse.fromXml($result); @@ -463,10 +452,16 @@ class CloudSearch { List? analysisSchemeNames, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - analysisSchemeNames?.also((arg) => $request['AnalysisSchemeNames'] = arg); - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (analysisSchemeNames != null) + if (analysisSchemeNames.isEmpty) + 'AnalysisSchemeNames': '' + else + for (var i1 = 0; i1 < analysisSchemeNames.length; i1++) + 'AnalysisSchemeNames.member.${i1 + 1}': analysisSchemeNames[i1], + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAnalysisSchemes', @@ -474,8 +469,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAnalysisSchemesRequest'], - shapes: shapes, resultWrapper: 'DescribeAnalysisSchemesResult', ); return DescribeAnalysisSchemesResponse.fromXml($result); @@ -507,9 +500,10 @@ class CloudSearch { required String domainName, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAvailabilityOptions', @@ -517,8 +511,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeAvailabilityOptionsResult', ); return DescribeAvailabilityOptionsResponse.fromXml($result); @@ -547,9 +539,10 @@ class CloudSearch { required String domainName, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDomainEndpointOptions', @@ -557,8 +550,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDomainEndpointOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeDomainEndpointOptionsResult', ); return DescribeDomainEndpointOptionsResponse.fromXml($result); @@ -582,8 +573,14 @@ class CloudSearch { Future describeDomains({ List? domainNames, }) async { - final $request = {}; - domainNames?.also((arg) => $request['DomainNames'] = arg); + final $request = { + if (domainNames != null) + if (domainNames.isEmpty) + 'DomainNames': '' + else + for (var i1 = 0; i1 < domainNames.length; i1++) + 'DomainNames.member.${i1 + 1}': domainNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeDomains', @@ -591,8 +588,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDomainsRequest'], - shapes: shapes, resultWrapper: 'DescribeDomainsResult', ); return DescribeDomainsResponse.fromXml($result); @@ -627,10 +622,16 @@ class CloudSearch { bool? deployed, List? expressionNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); - expressionNames?.also((arg) => $request['ExpressionNames'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + if (expressionNames != null) + if (expressionNames.isEmpty) + 'ExpressionNames': '' + else + for (var i1 = 0; i1 < expressionNames.length; i1++) + 'ExpressionNames.member.${i1 + 1}': expressionNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeExpressions', @@ -638,8 +639,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeExpressionsRequest'], - shapes: shapes, resultWrapper: 'DescribeExpressionsResult', ); return DescribeExpressionsResponse.fromXml($result); @@ -674,10 +673,16 @@ class CloudSearch { bool? deployed, List? fieldNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); - fieldNames?.also((arg) => $request['FieldNames'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + if (fieldNames != null) + if (fieldNames.isEmpty) + 'FieldNames': '' + else + for (var i1 = 0; i1 < fieldNames.length; i1++) + 'FieldNames.member.${i1 + 1}': fieldNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeIndexFields', @@ -685,8 +690,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeIndexFieldsRequest'], - shapes: shapes, resultWrapper: 'DescribeIndexFieldsResult', ); return DescribeIndexFieldsResponse.fromXml($result); @@ -705,8 +708,9 @@ class CloudSearch { Future describeScalingParameters({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeScalingParameters', @@ -714,8 +718,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScalingParametersRequest'], - shapes: shapes, resultWrapper: 'DescribeScalingParametersResult', ); return DescribeScalingParametersResponse.fromXml($result); @@ -745,9 +747,10 @@ class CloudSearch { required String domainName, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeServiceAccessPolicies', @@ -755,8 +758,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'DescribeServiceAccessPoliciesResult', ); return DescribeServiceAccessPoliciesResponse.fromXml($result); @@ -791,10 +792,16 @@ class CloudSearch { bool? deployed, List? suggesterNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); - suggesterNames?.also((arg) => $request['SuggesterNames'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + if (suggesterNames != null) + if (suggesterNames.isEmpty) + 'SuggesterNames': '' + else + for (var i1 = 0; i1 < suggesterNames.length; i1++) + 'SuggesterNames.member.${i1 + 1}': suggesterNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeSuggesters', @@ -802,8 +809,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSuggestersRequest'], - shapes: shapes, resultWrapper: 'DescribeSuggestersResult', ); return DescribeSuggestersResponse.fromXml($result); @@ -820,8 +825,9 @@ class CloudSearch { Future indexDocuments({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'IndexDocuments', @@ -829,8 +835,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IndexDocumentsRequest'], - shapes: shapes, resultWrapper: 'IndexDocumentsResult', ); return IndexDocumentsResponse.fromXml($result); @@ -840,7 +844,7 @@ class CloudSearch { /// /// May throw [BaseException]. Future listDomainNames() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListDomainNames', @@ -848,7 +852,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'ListDomainNamesResult', ); return ListDomainNamesResponse.fromXml($result); @@ -880,9 +883,10 @@ class CloudSearch { required String domainName, required bool multiAZ, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['MultiAZ'] = multiAZ; + final $request = { + 'DomainName': domainName, + 'MultiAZ': multiAZ.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateAvailabilityOptions', @@ -890,8 +894,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateAvailabilityOptionsResult', ); return UpdateAvailabilityOptionsResponse.fromXml($result); @@ -923,9 +925,11 @@ class CloudSearch { required DomainEndpointOptions domainEndpointOptions, required String domainName, }) async { - final $request = {}; - $request['DomainEndpointOptions'] = domainEndpointOptions; - $request['DomainName'] = domainName; + final $request = { + for (var e1 in domainEndpointOptions.toQueryMap().entries) + 'DomainEndpointOptions.${e1.key}': e1.value, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateDomainEndpointOptions', @@ -933,8 +937,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateDomainEndpointOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateDomainEndpointOptionsResult', ); return UpdateDomainEndpointOptionsResponse.fromXml($result); @@ -960,9 +962,11 @@ class CloudSearch { required String domainName, required ScalingParameters scalingParameters, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ScalingParameters'] = scalingParameters; + final $request = { + 'DomainName': domainName, + for (var e1 in scalingParameters.toQueryMap().entries) + 'ScalingParameters.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'UpdateScalingParameters', @@ -970,8 +974,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateScalingParametersRequest'], - shapes: shapes, resultWrapper: 'UpdateScalingParametersResult', ); return UpdateScalingParametersResponse.fromXml($result); @@ -996,9 +998,10 @@ class CloudSearch { required String accessPolicies, required String domainName, }) async { - final $request = {}; - $request['AccessPolicies'] = accessPolicies; - $request['DomainName'] = domainName; + final $request = { + 'AccessPolicies': accessPolicies, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateServiceAccessPolicies', @@ -1006,8 +1009,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'UpdateServiceAccessPoliciesResult', ); return UpdateServiceAccessPoliciesResponse.fromXml($result); @@ -1159,6 +1160,23 @@ class AnalysisOptions { if (synonyms != null) 'Synonyms': synonyms, }; } + + Map toQueryMap() { + final algorithmicStemming = this.algorithmicStemming; + final japaneseTokenizationDictionary = this.japaneseTokenizationDictionary; + final stemmingDictionary = this.stemmingDictionary; + final stopwords = this.stopwords; + final synonyms = this.synonyms; + return { + if (algorithmicStemming != null) + 'AlgorithmicStemming': algorithmicStemming.toValue(), + if (japaneseTokenizationDictionary != null) + 'JapaneseTokenizationDictionary': japaneseTokenizationDictionary, + if (stemmingDictionary != null) 'StemmingDictionary': stemmingDictionary, + if (stopwords != null) 'Stopwords': stopwords, + if (synonyms != null) 'Synonyms': synonyms, + }; + } } /// Configuration information for an analysis scheme. Each analysis scheme has a @@ -1199,6 +1217,19 @@ class AnalysisScheme { if (analysisOptions != null) 'AnalysisOptions': analysisOptions, }; } + + Map toQueryMap() { + final analysisSchemeLanguage = this.analysisSchemeLanguage; + final analysisSchemeName = this.analysisSchemeName; + final analysisOptions = this.analysisOptions; + return { + 'AnalysisSchemeLanguage': analysisSchemeLanguage.toValue(), + 'AnalysisSchemeName': analysisSchemeName, + if (analysisOptions != null) + for (var e1 in analysisOptions.toQueryMap().entries) + 'AnalysisOptions.${e1.key}': e1.value, + }; + } } /// An IETF RFC @@ -1546,6 +1577,21 @@ class DateArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for a date field. Dates and times are specified in UTC (Coordinated @@ -1604,6 +1650,23 @@ class DateOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// The result of a DefineAnalysisScheme request. Contains @@ -2097,6 +2160,17 @@ class DocumentSuggesterOptions { if (sortExpression != null) 'SortExpression': sortExpression, }; } + + Map toQueryMap() { + final sourceField = this.sourceField; + final fuzzyMatching = this.fuzzyMatching; + final sortExpression = this.sortExpression; + return { + 'SourceField': sourceField, + if (fuzzyMatching != null) 'FuzzyMatching': fuzzyMatching.toValue(), + if (sortExpression != null) 'SortExpression': sortExpression, + }; + } } /// The domain's endpoint options. @@ -2129,6 +2203,16 @@ class DomainEndpointOptions { 'TLSSecurityPolicy': tLSSecurityPolicy.toValue(), }; } + + Map toQueryMap() { + final enforceHTTPS = this.enforceHTTPS; + final tLSSecurityPolicy = this.tLSSecurityPolicy; + return { + if (enforceHTTPS != null) 'EnforceHTTPS': enforceHTTPS.toString(), + if (tLSSecurityPolicy != null) + 'TLSSecurityPolicy': tLSSecurityPolicy.toValue(), + }; + } } /// The configuration and status of the domain's endpoint options. @@ -2327,6 +2411,21 @@ class DoubleArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for a double-precision 64-bit floating point field. Present if @@ -2388,6 +2487,23 @@ class DoubleOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// A named expression that can be evaluated at search time. Can be used to sort @@ -2416,6 +2532,15 @@ class Expression { 'ExpressionValue': expressionValue, }; } + + Map toQueryMap() { + final expressionName = this.expressionName; + final expressionValue = this.expressionValue; + return { + 'ExpressionName': expressionName, + 'ExpressionValue': expressionValue, + }; + } } /// The value of an Expression and its current status. @@ -2585,6 +2710,59 @@ class IndexField { if (textOptions != null) 'TextOptions': textOptions, }; } + + Map toQueryMap() { + final indexFieldName = this.indexFieldName; + final indexFieldType = this.indexFieldType; + final dateArrayOptions = this.dateArrayOptions; + final dateOptions = this.dateOptions; + final doubleArrayOptions = this.doubleArrayOptions; + final doubleOptions = this.doubleOptions; + final intArrayOptions = this.intArrayOptions; + final intOptions = this.intOptions; + final latLonOptions = this.latLonOptions; + final literalArrayOptions = this.literalArrayOptions; + final literalOptions = this.literalOptions; + final textArrayOptions = this.textArrayOptions; + final textOptions = this.textOptions; + return { + 'IndexFieldName': indexFieldName, + 'IndexFieldType': indexFieldType.toValue(), + if (dateArrayOptions != null) + for (var e1 in dateArrayOptions.toQueryMap().entries) + 'DateArrayOptions.${e1.key}': e1.value, + if (dateOptions != null) + for (var e1 in dateOptions.toQueryMap().entries) + 'DateOptions.${e1.key}': e1.value, + if (doubleArrayOptions != null) + for (var e1 in doubleArrayOptions.toQueryMap().entries) + 'DoubleArrayOptions.${e1.key}': e1.value, + if (doubleOptions != null) + for (var e1 in doubleOptions.toQueryMap().entries) + 'DoubleOptions.${e1.key}': e1.value, + if (intArrayOptions != null) + for (var e1 in intArrayOptions.toQueryMap().entries) + 'IntArrayOptions.${e1.key}': e1.value, + if (intOptions != null) + for (var e1 in intOptions.toQueryMap().entries) + 'IntOptions.${e1.key}': e1.value, + if (latLonOptions != null) + for (var e1 in latLonOptions.toQueryMap().entries) + 'LatLonOptions.${e1.key}': e1.value, + if (literalArrayOptions != null) + for (var e1 in literalArrayOptions.toQueryMap().entries) + 'LiteralArrayOptions.${e1.key}': e1.value, + if (literalOptions != null) + for (var e1 in literalOptions.toQueryMap().entries) + 'LiteralOptions.${e1.key}': e1.value, + if (textArrayOptions != null) + for (var e1 in textArrayOptions.toQueryMap().entries) + 'TextArrayOptions.${e1.key}': e1.value, + if (textOptions != null) + for (var e1 in textOptions.toQueryMap().entries) + 'TextOptions.${e1.key}': e1.value, + }; + } } /// The value of an IndexField and its current status. @@ -2741,6 +2919,21 @@ class IntArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for a 64-bit signed integer field. Present if @@ -2802,6 +2995,23 @@ class IntOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// Options for a latlon field. A latlon field contains a location stored as a @@ -2860,6 +3070,23 @@ class LatLonOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } class Limits { @@ -2970,6 +3197,21 @@ class LiteralArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for literal field. Present if IndexFieldType specifies @@ -3027,6 +3269,23 @@ class LiteralOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// The state of processing a change to an option. One of: @@ -3291,6 +3550,20 @@ class ScalingParameters { 'DesiredReplicationCount': desiredReplicationCount, }; } + + Map toQueryMap() { + final desiredInstanceType = this.desiredInstanceType; + final desiredPartitionCount = this.desiredPartitionCount; + final desiredReplicationCount = this.desiredReplicationCount; + return { + if (desiredInstanceType != null) + 'DesiredInstanceType': desiredInstanceType.toValue(), + if (desiredPartitionCount != null) + 'DesiredPartitionCount': desiredPartitionCount.toString(), + if (desiredReplicationCount != null) + 'DesiredReplicationCount': desiredReplicationCount.toString(), + }; + } } /// The status and configuration of a search domain's scaling parameters. @@ -3368,6 +3641,16 @@ class Suggester { 'SuggesterName': suggesterName, }; } + + Map toQueryMap() { + final documentSuggesterOptions = this.documentSuggesterOptions; + final suggesterName = this.suggesterName; + return { + for (var e1 in documentSuggesterOptions.toQueryMap().entries) + 'DocumentSuggesterOptions.${e1.key}': e1.value, + 'SuggesterName': suggesterName, + }; + } } enum SuggesterFuzzyMatching { @@ -3509,6 +3792,22 @@ class TextArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final analysisScheme = this.analysisScheme; + final defaultValue = this.defaultValue; + final highlightEnabled = this.highlightEnabled; + final returnEnabled = this.returnEnabled; + final sourceFields = this.sourceFields; + return { + if (analysisScheme != null) 'AnalysisScheme': analysisScheme, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (highlightEnabled != null) + 'HighlightEnabled': highlightEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for text field. Present if IndexFieldType specifies the @@ -3566,6 +3865,24 @@ class TextOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final analysisScheme = this.analysisScheme; + final defaultValue = this.defaultValue; + final highlightEnabled = this.highlightEnabled; + final returnEnabled = this.returnEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (analysisScheme != null) 'AnalysisScheme': analysisScheme, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (highlightEnabled != null) + 'HighlightEnabled': highlightEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// The result of a UpdateAvailabilityOptions request. Contains the diff --git a/aws_client/lib/src/generated/cloud_search/v2013_01_01.meta.dart b/aws_client/lib/src/generated/cloud_search/v2013_01_01.meta.dart deleted file mode 100644 index 3f8923b8b..000000000 --- a/aws_client/lib/src/generated/cloud_search/v2013_01_01.meta.dart +++ /dev/null @@ -1,828 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "APIVersion": {"type": "string", "flattened": false}, - "ARN": {"type": "string", "flattened": false}, - "AccessPoliciesStatus": { - "type": "structure", - "members": { - "Options": {"shape": "PolicyDocument", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "AlgorithmicStemming": {"type": "string", "flattened": false}, - "AnalysisOptions": { - "type": "structure", - "members": { - "Synonyms": {"shape": "String", "flattened": false}, - "Stopwords": {"shape": "String", "flattened": false}, - "StemmingDictionary": {"shape": "String", "flattened": false}, - "JapaneseTokenizationDictionary": {"shape": "String", "flattened": false}, - "AlgorithmicStemming": { - "shape": "AlgorithmicStemming", - "flattened": false - } - }, - "flattened": false - }, - "AnalysisScheme": { - "type": "structure", - "members": { - "AnalysisSchemeName": {"shape": "StandardName", "flattened": false}, - "AnalysisSchemeLanguage": { - "shape": "AnalysisSchemeLanguage", - "flattened": false - }, - "AnalysisOptions": {"shape": "AnalysisOptions", "flattened": false} - }, - "flattened": false - }, - "AnalysisSchemeLanguage": {"type": "string", "flattened": false}, - "AnalysisSchemeStatus": { - "type": "structure", - "members": { - "Options": {"shape": "AnalysisScheme", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "AnalysisSchemeStatusList": { - "type": "list", - "member": {"shape": "AnalysisSchemeStatus"}, - "flattened": false - }, - "AvailabilityOptionsStatus": { - "type": "structure", - "members": { - "Options": {"shape": "MultiAZ", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BuildSuggestersRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "BuildSuggestersResponse": { - "type": "structure", - "members": { - "FieldNames": {"shape": "FieldNameList", "flattened": false} - }, - "flattened": false - }, - "CreateDomainRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "CreateDomainResponse": { - "type": "structure", - "members": { - "DomainStatus": {"shape": "DomainStatus", "flattened": false} - }, - "flattened": false - }, - "DateArrayOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SourceFields": {"shape": "FieldNameCommaList", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DateOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SourceField": {"shape": "FieldName", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false}, - "SortEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DefineAnalysisSchemeRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "AnalysisScheme": {"shape": "AnalysisScheme", "flattened": false} - }, - "flattened": false - }, - "DefineAnalysisSchemeResponse": { - "type": "structure", - "members": { - "AnalysisScheme": {"shape": "AnalysisSchemeStatus", "flattened": false} - }, - "flattened": false - }, - "DefineExpressionRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Expression": {"shape": "Expression", "flattened": false} - }, - "flattened": false - }, - "DefineExpressionResponse": { - "type": "structure", - "members": { - "Expression": {"shape": "ExpressionStatus", "flattened": false} - }, - "flattened": false - }, - "DefineIndexFieldRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "IndexField": {"shape": "IndexField", "flattened": false} - }, - "flattened": false - }, - "DefineIndexFieldResponse": { - "type": "structure", - "members": { - "IndexField": {"shape": "IndexFieldStatus", "flattened": false} - }, - "flattened": false - }, - "DefineSuggesterRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Suggester": {"shape": "Suggester", "flattened": false} - }, - "flattened": false - }, - "DefineSuggesterResponse": { - "type": "structure", - "members": { - "Suggester": {"shape": "SuggesterStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteAnalysisSchemeRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "AnalysisSchemeName": {"shape": "StandardName", "flattened": false} - }, - "flattened": false - }, - "DeleteAnalysisSchemeResponse": { - "type": "structure", - "members": { - "AnalysisScheme": {"shape": "AnalysisSchemeStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteDomainRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DeleteDomainResponse": { - "type": "structure", - "members": { - "DomainStatus": {"shape": "DomainStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteExpressionRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "ExpressionName": {"shape": "StandardName", "flattened": false} - }, - "flattened": false - }, - "DeleteExpressionResponse": { - "type": "structure", - "members": { - "Expression": {"shape": "ExpressionStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteIndexFieldRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "IndexFieldName": {"shape": "DynamicFieldName", "flattened": false} - }, - "flattened": false - }, - "DeleteIndexFieldResponse": { - "type": "structure", - "members": { - "IndexField": {"shape": "IndexFieldStatus", "flattened": false} - }, - "flattened": false - }, - "DeleteSuggesterRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "SuggesterName": {"shape": "StandardName", "flattened": false} - }, - "flattened": false - }, - "DeleteSuggesterResponse": { - "type": "structure", - "members": { - "Suggester": {"shape": "SuggesterStatus", "flattened": false} - }, - "flattened": false - }, - "DescribeAnalysisSchemesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "AnalysisSchemeNames": {"shape": "StandardNameList", "flattened": false}, - "Deployed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeAnalysisSchemesResponse": { - "type": "structure", - "members": { - "AnalysisSchemes": { - "shape": "AnalysisSchemeStatusList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeAvailabilityOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Deployed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeAvailabilityOptionsResponse": { - "type": "structure", - "members": { - "AvailabilityOptions": { - "shape": "AvailabilityOptionsStatus", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDomainEndpointOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Deployed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeDomainEndpointOptionsResponse": { - "type": "structure", - "members": { - "DomainEndpointOptions": { - "shape": "DomainEndpointOptionsStatus", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDomainsRequest": { - "type": "structure", - "members": { - "DomainNames": {"shape": "DomainNameList", "flattened": false} - }, - "flattened": false - }, - "DescribeDomainsResponse": { - "type": "structure", - "members": { - "DomainStatusList": {"shape": "DomainStatusList", "flattened": false} - }, - "flattened": false - }, - "DescribeExpressionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "ExpressionNames": {"shape": "StandardNameList", "flattened": false}, - "Deployed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeExpressionsResponse": { - "type": "structure", - "members": { - "Expressions": {"shape": "ExpressionStatusList", "flattened": false} - }, - "flattened": false - }, - "DescribeIndexFieldsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "FieldNames": {"shape": "DynamicFieldNameList", "flattened": false}, - "Deployed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeIndexFieldsResponse": { - "type": "structure", - "members": { - "IndexFields": {"shape": "IndexFieldStatusList", "flattened": false} - }, - "flattened": false - }, - "DescribeScalingParametersRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "DescribeScalingParametersResponse": { - "type": "structure", - "members": { - "ScalingParameters": { - "shape": "ScalingParametersStatus", - "flattened": false - } - }, - "flattened": false - }, - "DescribeServiceAccessPoliciesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "Deployed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeServiceAccessPoliciesResponse": { - "type": "structure", - "members": { - "AccessPolicies": {"shape": "AccessPoliciesStatus", "flattened": false} - }, - "flattened": false - }, - "DescribeSuggestersRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "SuggesterNames": {"shape": "StandardNameList", "flattened": false}, - "Deployed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeSuggestersResponse": { - "type": "structure", - "members": { - "Suggesters": {"shape": "SuggesterStatusList", "flattened": false} - }, - "flattened": false - }, - "DocumentSuggesterOptions": { - "type": "structure", - "members": { - "SourceField": {"shape": "FieldName", "flattened": false}, - "FuzzyMatching": {"shape": "SuggesterFuzzyMatching", "flattened": false}, - "SortExpression": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DomainEndpointOptions": { - "type": "structure", - "members": { - "EnforceHTTPS": {"shape": "Boolean", "flattened": false}, - "TLSSecurityPolicy": {"shape": "TLSSecurityPolicy", "flattened": false} - }, - "flattened": false - }, - "DomainEndpointOptionsStatus": { - "type": "structure", - "members": { - "Options": {"shape": "DomainEndpointOptions", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "DomainId": {"type": "string", "flattened": false}, - "DomainName": {"type": "string", "flattened": false}, - "DomainNameList": { - "type": "list", - "member": {"shape": "DomainName"}, - "flattened": false - }, - "DomainNameMap": { - "type": "map", - "key": {"shape": "DomainName"}, - "value": {"shape": "APIVersion"}, - "flattened": false - }, - "DomainStatus": { - "type": "structure", - "members": { - "DomainId": {"shape": "DomainId", "flattened": false}, - "DomainName": {"shape": "DomainName", "flattened": false}, - "ARN": {"shape": "ARN", "flattened": false}, - "Created": {"shape": "Boolean", "flattened": false}, - "Deleted": {"shape": "Boolean", "flattened": false}, - "DocService": {"shape": "ServiceEndpoint", "flattened": false}, - "SearchService": {"shape": "ServiceEndpoint", "flattened": false}, - "RequiresIndexDocuments": {"shape": "Boolean", "flattened": false}, - "Processing": {"shape": "Boolean", "flattened": false}, - "SearchInstanceType": {"shape": "SearchInstanceType", "flattened": false}, - "SearchPartitionCount": {"shape": "PartitionCount", "flattened": false}, - "SearchInstanceCount": {"shape": "InstanceCount", "flattened": false}, - "Limits": {"shape": "Limits", "flattened": false} - }, - "flattened": false - }, - "DomainStatusList": { - "type": "list", - "member": {"shape": "DomainStatus"}, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "DoubleArrayOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "Double", "flattened": false}, - "SourceFields": {"shape": "FieldNameCommaList", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DoubleOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "Double", "flattened": false}, - "SourceField": {"shape": "FieldName", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false}, - "SortEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DynamicFieldName": {"type": "string", "flattened": false}, - "DynamicFieldNameList": { - "type": "list", - "member": {"shape": "DynamicFieldName"}, - "flattened": false - }, - "Expression": { - "type": "structure", - "members": { - "ExpressionName": {"shape": "StandardName", "flattened": false}, - "ExpressionValue": {"shape": "ExpressionValue", "flattened": false} - }, - "flattened": false - }, - "ExpressionStatus": { - "type": "structure", - "members": { - "Options": {"shape": "Expression", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "ExpressionStatusList": { - "type": "list", - "member": {"shape": "ExpressionStatus"}, - "flattened": false - }, - "ExpressionValue": {"type": "string", "flattened": false}, - "FieldName": {"type": "string", "flattened": false}, - "FieldNameCommaList": {"type": "string", "flattened": false}, - "FieldNameList": { - "type": "list", - "member": {"shape": "FieldName"}, - "flattened": false - }, - "FieldValue": {"type": "string", "flattened": false}, - "IndexDocumentsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false} - }, - "flattened": false - }, - "IndexDocumentsResponse": { - "type": "structure", - "members": { - "FieldNames": {"shape": "FieldNameList", "flattened": false} - }, - "flattened": false - }, - "IndexField": { - "type": "structure", - "members": { - "IndexFieldName": {"shape": "DynamicFieldName", "flattened": false}, - "IndexFieldType": {"shape": "IndexFieldType", "flattened": false}, - "IntOptions": {"shape": "IntOptions", "flattened": false}, - "DoubleOptions": {"shape": "DoubleOptions", "flattened": false}, - "LiteralOptions": {"shape": "LiteralOptions", "flattened": false}, - "TextOptions": {"shape": "TextOptions", "flattened": false}, - "DateOptions": {"shape": "DateOptions", "flattened": false}, - "LatLonOptions": {"shape": "LatLonOptions", "flattened": false}, - "IntArrayOptions": {"shape": "IntArrayOptions", "flattened": false}, - "DoubleArrayOptions": {"shape": "DoubleArrayOptions", "flattened": false}, - "LiteralArrayOptions": { - "shape": "LiteralArrayOptions", - "flattened": false - }, - "TextArrayOptions": {"shape": "TextArrayOptions", "flattened": false}, - "DateArrayOptions": {"shape": "DateArrayOptions", "flattened": false} - }, - "flattened": false - }, - "IndexFieldStatus": { - "type": "structure", - "members": { - "Options": {"shape": "IndexField", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "IndexFieldStatusList": { - "type": "list", - "member": {"shape": "IndexFieldStatus"}, - "flattened": false - }, - "IndexFieldType": {"type": "string", "flattened": false}, - "InstanceCount": {"type": "integer", "flattened": false}, - "IntArrayOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "Long", "flattened": false}, - "SourceFields": {"shape": "FieldNameCommaList", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "IntOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "Long", "flattened": false}, - "SourceField": {"shape": "FieldName", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false}, - "SortEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "LatLonOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SourceField": {"shape": "FieldName", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false}, - "SortEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "Limits": { - "type": "structure", - "members": { - "MaximumReplicationCount": { - "shape": "MaximumReplicationCount", - "flattened": false - }, - "MaximumPartitionCount": { - "shape": "MaximumPartitionCount", - "flattened": false - } - }, - "flattened": false - }, - "ListDomainNamesResponse": { - "type": "structure", - "members": { - "DomainNames": {"shape": "DomainNameMap", "flattened": false} - }, - "flattened": false - }, - "LiteralArrayOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SourceFields": {"shape": "FieldNameCommaList", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "LiteralOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SourceField": {"shape": "FieldName", "flattened": false}, - "FacetEnabled": {"shape": "Boolean", "flattened": false}, - "SearchEnabled": {"shape": "Boolean", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false}, - "SortEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "Long": {"type": "long", "flattened": false}, - "MaximumPartitionCount": {"type": "integer", "flattened": false}, - "MaximumReplicationCount": {"type": "integer", "flattened": false}, - "MultiAZ": {"type": "boolean", "flattened": false}, - "OptionState": {"type": "string", "flattened": false}, - "OptionStatus": { - "type": "structure", - "members": { - "CreationDate": {"shape": "UpdateTimestamp", "flattened": false}, - "UpdateDate": {"shape": "UpdateTimestamp", "flattened": false}, - "UpdateVersion": {"shape": "UIntValue", "flattened": false}, - "State": {"shape": "OptionState", "flattened": false}, - "PendingDeletion": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "PartitionCount": {"type": "integer", "flattened": false}, - "PartitionInstanceType": {"type": "string", "flattened": false}, - "PolicyDocument": {"type": "string", "flattened": false}, - "ScalingParameters": { - "type": "structure", - "members": { - "DesiredInstanceType": { - "shape": "PartitionInstanceType", - "flattened": false - }, - "DesiredReplicationCount": {"shape": "UIntValue", "flattened": false}, - "DesiredPartitionCount": {"shape": "UIntValue", "flattened": false} - }, - "flattened": false - }, - "ScalingParametersStatus": { - "type": "structure", - "members": { - "Options": {"shape": "ScalingParameters", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "SearchInstanceType": {"type": "string", "flattened": false}, - "ServiceEndpoint": { - "type": "structure", - "members": { - "Endpoint": {"shape": "ServiceUrl", "flattened": false} - }, - "flattened": false - }, - "ServiceUrl": {"type": "string", "flattened": false}, - "StandardName": {"type": "string", "flattened": false}, - "StandardNameList": { - "type": "list", - "member": {"shape": "StandardName"}, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "Suggester": { - "type": "structure", - "members": { - "SuggesterName": {"shape": "StandardName", "flattened": false}, - "DocumentSuggesterOptions": { - "shape": "DocumentSuggesterOptions", - "flattened": false - } - }, - "flattened": false - }, - "SuggesterFuzzyMatching": {"type": "string", "flattened": false}, - "SuggesterStatus": { - "type": "structure", - "members": { - "Options": {"shape": "Suggester", "flattened": false}, - "Status": {"shape": "OptionStatus", "flattened": false} - }, - "flattened": false - }, - "SuggesterStatusList": { - "type": "list", - "member": {"shape": "SuggesterStatus"}, - "flattened": false - }, - "TLSSecurityPolicy": {"type": "string", "flattened": false}, - "TextArrayOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SourceFields": {"shape": "FieldNameCommaList", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false}, - "HighlightEnabled": {"shape": "Boolean", "flattened": false}, - "AnalysisScheme": {"shape": "Word", "flattened": false} - }, - "flattened": false - }, - "TextOptions": { - "type": "structure", - "members": { - "DefaultValue": {"shape": "FieldValue", "flattened": false}, - "SourceField": {"shape": "FieldName", "flattened": false}, - "ReturnEnabled": {"shape": "Boolean", "flattened": false}, - "SortEnabled": {"shape": "Boolean", "flattened": false}, - "HighlightEnabled": {"shape": "Boolean", "flattened": false}, - "AnalysisScheme": {"shape": "Word", "flattened": false} - }, - "flattened": false - }, - "UIntValue": {"type": "integer", "flattened": false}, - "UpdateAvailabilityOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "UpdateAvailabilityOptionsResponse": { - "type": "structure", - "members": { - "AvailabilityOptions": { - "shape": "AvailabilityOptionsStatus", - "flattened": false - } - }, - "flattened": false - }, - "UpdateDomainEndpointOptionsRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "DomainEndpointOptions": { - "shape": "DomainEndpointOptions", - "flattened": false - } - }, - "flattened": false - }, - "UpdateDomainEndpointOptionsResponse": { - "type": "structure", - "members": { - "DomainEndpointOptions": { - "shape": "DomainEndpointOptionsStatus", - "flattened": false - } - }, - "flattened": false - }, - "UpdateScalingParametersRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "ScalingParameters": {"shape": "ScalingParameters", "flattened": false} - }, - "flattened": false - }, - "UpdateScalingParametersResponse": { - "type": "structure", - "members": { - "ScalingParameters": { - "shape": "ScalingParametersStatus", - "flattened": false - } - }, - "flattened": false - }, - "UpdateServiceAccessPoliciesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "DomainName", "flattened": false}, - "AccessPolicies": {"shape": "PolicyDocument", "flattened": false} - }, - "flattened": false - }, - "UpdateServiceAccessPoliciesResponse": { - "type": "structure", - "members": { - "AccessPolicies": {"shape": "AccessPoliciesStatus", "flattened": false} - }, - "flattened": false - }, - "UpdateTimestamp": {"type": "timestamp", "flattened": false}, - "Word": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart b/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart index 9e64a8754..89ed2bbe4 100644 --- a/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart +++ b/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2010_08_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) @@ -38,7 +37,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// and operational health. class CloudWatch { final _s.QueryProtocol _protocol; - final Map shapes; CloudWatch({ required String region, @@ -46,7 +44,7 @@ class CloudWatch { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'monitoring', @@ -55,9 +53,7 @@ class CloudWatch { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -103,8 +99,13 @@ class CloudWatch { Future deleteAlarms({ required List alarmNames, }) async { - final $request = {}; - $request['AlarmNames'] = alarmNames; + final $request = { + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + }; await _protocol.send( $request, action: 'DeleteAlarms', @@ -112,8 +113,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAlarmsInput'], - shapes: shapes, ); } @@ -202,15 +201,24 @@ class CloudWatch { SingleMetricAnomalyDetector? singleMetricAnomalyDetector, String? stat, }) async { - final $request = {}; - dimensions?.also((arg) => $request['Dimensions'] = arg); - metricMathAnomalyDetector - ?.also((arg) => $request['MetricMathAnomalyDetector'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - singleMetricAnomalyDetector - ?.also((arg) => $request['SingleMetricAnomalyDetector'] = arg); - stat?.also((arg) => $request['Stat'] = arg); + final $request = { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricMathAnomalyDetector != null) + for (var e1 in metricMathAnomalyDetector.toQueryMap().entries) + 'MetricMathAnomalyDetector.${e1.key}': e1.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (singleMetricAnomalyDetector != null) + for (var e1 in singleMetricAnomalyDetector.toQueryMap().entries) + 'SingleMetricAnomalyDetector.${e1.key}': e1.value, + if (stat != null) 'Stat': stat, + }; await _protocol.send( $request, action: 'DeleteAnomalyDetector', @@ -218,8 +226,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAnomalyDetectorInput'], - shapes: shapes, resultWrapper: 'DeleteAnomalyDetectorResult', ); } @@ -237,8 +243,13 @@ class CloudWatch { Future deleteDashboards({ required List dashboardNames, }) async { - final $request = {}; - $request['DashboardNames'] = dashboardNames; + final $request = { + if (dashboardNames.isEmpty) + 'DashboardNames': '' + else + for (var i1 = 0; i1 < dashboardNames.length; i1++) + 'DashboardNames.member.${i1 + 1}': dashboardNames[i1], + }; await _protocol.send( $request, action: 'DeleteDashboards', @@ -246,8 +257,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDashboardsInput'], - shapes: shapes, resultWrapper: 'DeleteDashboardsResult', ); } @@ -268,8 +277,13 @@ class CloudWatch { Future deleteInsightRules({ required List ruleNames, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + }; final $result = await _protocol.send( $request, action: 'DeleteInsightRules', @@ -277,8 +291,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteInsightRulesInput'], - shapes: shapes, resultWrapper: 'DeleteInsightRulesResult', ); return DeleteInsightRulesOutput.fromXml($result); @@ -295,8 +307,9 @@ class CloudWatch { Future deleteMetricStream({ required String name, }) async { - final $request = {}; - $request['Name'] = name; + final $request = { + 'Name': name, + }; await _protocol.send( $request, action: 'DeleteMetricStream', @@ -304,8 +317,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteMetricStreamInput'], - shapes: shapes, resultWrapper: 'DeleteMetricStreamResult', ); } @@ -371,16 +382,21 @@ class CloudWatch { 1, 100, ); - final $request = {}; - alarmName?.also((arg) => $request['AlarmName'] = arg); - alarmTypes?.also( - (arg) => $request['AlarmTypes'] = arg.map((e) => e.toValue()).toList()); - endDate?.also((arg) => $request['EndDate'] = _s.iso8601ToJson(arg)); - historyItemType?.also((arg) => $request['HistoryItemType'] = arg.toValue()); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - scanBy?.also((arg) => $request['ScanBy'] = arg.toValue()); - startDate?.also((arg) => $request['StartDate'] = _s.iso8601ToJson(arg)); + final $request = { + if (alarmName != null) 'AlarmName': alarmName, + if (alarmTypes != null) + if (alarmTypes.isEmpty) + 'AlarmTypes': '' + else + for (var i1 = 0; i1 < alarmTypes.length; i1++) + 'AlarmTypes.member.${i1 + 1}': alarmTypes[i1].toValue(), + if (endDate != null) 'EndDate': _s.iso8601ToJson(endDate), + if (historyItemType != null) 'HistoryItemType': historyItemType.toValue(), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (scanBy != null) 'ScanBy': scanBy.toValue(), + if (startDate != null) 'StartDate': _s.iso8601ToJson(startDate), + }; final $result = await _protocol.send( $request, action: 'DescribeAlarmHistory', @@ -388,8 +404,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAlarmHistoryInput'], - shapes: shapes, resultWrapper: 'DescribeAlarmHistoryResult', ); return DescribeAlarmHistoryOutput.fromXml($result); @@ -500,17 +514,28 @@ class CloudWatch { 1, 100, ); - final $request = {}; - actionPrefix?.also((arg) => $request['ActionPrefix'] = arg); - alarmNamePrefix?.also((arg) => $request['AlarmNamePrefix'] = arg); - alarmNames?.also((arg) => $request['AlarmNames'] = arg); - alarmTypes?.also( - (arg) => $request['AlarmTypes'] = arg.map((e) => e.toValue()).toList()); - childrenOfAlarmName?.also((arg) => $request['ChildrenOfAlarmName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - parentsOfAlarmName?.also((arg) => $request['ParentsOfAlarmName'] = arg); - stateValue?.also((arg) => $request['StateValue'] = arg.toValue()); + final $request = { + if (actionPrefix != null) 'ActionPrefix': actionPrefix, + if (alarmNamePrefix != null) 'AlarmNamePrefix': alarmNamePrefix, + if (alarmNames != null) + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + if (alarmTypes != null) + if (alarmTypes.isEmpty) + 'AlarmTypes': '' + else + for (var i1 = 0; i1 < alarmTypes.length; i1++) + 'AlarmTypes.member.${i1 + 1}': alarmTypes[i1].toValue(), + if (childrenOfAlarmName != null) + 'ChildrenOfAlarmName': childrenOfAlarmName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (parentsOfAlarmName != null) 'ParentsOfAlarmName': parentsOfAlarmName, + if (stateValue != null) 'StateValue': stateValue.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeAlarms', @@ -518,8 +543,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAlarmsInput'], - shapes: shapes, resultWrapper: 'DescribeAlarmsResult', ); return DescribeAlarmsOutput.fromXml($result); @@ -572,14 +595,21 @@ class CloudWatch { 1, 1152921504606846976, ); - final $request = {}; - $request['MetricName'] = metricName; - $request['Namespace'] = namespace; - dimensions?.also((arg) => $request['Dimensions'] = arg); - extendedStatistic?.also((arg) => $request['ExtendedStatistic'] = arg); - period?.also((arg) => $request['Period'] = arg); - statistic?.also((arg) => $request['Statistic'] = arg.toValue()); - unit?.also((arg) => $request['Unit'] = arg.toValue()); + final $request = { + 'MetricName': metricName, + 'Namespace': namespace, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (extendedStatistic != null) 'ExtendedStatistic': extendedStatistic, + if (period != null) 'Period': period.toString(), + if (statistic != null) 'Statistic': statistic.toValue(), + if (unit != null) 'Unit': unit.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeAlarmsForMetric', @@ -587,8 +617,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAlarmsForMetricInput'], - shapes: shapes, resultWrapper: 'DescribeAlarmsForMetricResult', ); return DescribeAlarmsForMetricOutput.fromXml($result); @@ -652,14 +680,26 @@ class CloudWatch { 1, 1152921504606846976, ); - final $request = {}; - anomalyDetectorTypes?.also((arg) => $request['AnomalyDetectorTypes'] = - arg.map((e) => e.toValue()).toList()); - dimensions?.also((arg) => $request['Dimensions'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (anomalyDetectorTypes != null) + if (anomalyDetectorTypes.isEmpty) + 'AnomalyDetectorTypes': '' + else + for (var i1 = 0; i1 < anomalyDetectorTypes.length; i1++) + 'AnomalyDetectorTypes.member.${i1 + 1}': + anomalyDetectorTypes[i1].toValue(), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAnomalyDetectors', @@ -667,8 +707,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAnomalyDetectorsInput'], - shapes: shapes, resultWrapper: 'DescribeAnomalyDetectorsResult', ); return DescribeAnomalyDetectorsOutput.fromXml($result); @@ -699,9 +737,10 @@ class CloudWatch { 1, 500, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeInsightRules', @@ -709,8 +748,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInsightRulesInput'], - shapes: shapes, resultWrapper: 'DescribeInsightRulesResult', ); return DescribeInsightRulesOutput.fromXml($result); @@ -724,8 +761,13 @@ class CloudWatch { Future disableAlarmActions({ required List alarmNames, }) async { - final $request = {}; - $request['AlarmNames'] = alarmNames; + final $request = { + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + }; await _protocol.send( $request, action: 'DisableAlarmActions', @@ -733,8 +775,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableAlarmActionsInput'], - shapes: shapes, ); } @@ -751,8 +791,13 @@ class CloudWatch { Future disableInsightRules({ required List ruleNames, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + }; final $result = await _protocol.send( $request, action: 'DisableInsightRules', @@ -760,8 +805,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableInsightRulesInput'], - shapes: shapes, resultWrapper: 'DisableInsightRulesResult', ); return DisableInsightRulesOutput.fromXml($result); @@ -774,8 +817,13 @@ class CloudWatch { Future enableAlarmActions({ required List alarmNames, }) async { - final $request = {}; - $request['AlarmNames'] = alarmNames; + final $request = { + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + }; await _protocol.send( $request, action: 'EnableAlarmActions', @@ -783,8 +831,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableAlarmActionsInput'], - shapes: shapes, ); } @@ -802,8 +848,13 @@ class CloudWatch { Future enableInsightRules({ required List ruleNames, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + }; final $result = await _protocol.send( $request, action: 'EnableInsightRules', @@ -811,8 +862,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableInsightRulesInput'], - shapes: shapes, resultWrapper: 'EnableInsightRulesResult', ); return EnableInsightRulesOutput.fromXml($result); @@ -834,8 +883,9 @@ class CloudWatch { Future getDashboard({ required String dashboardName, }) async { - final $request = {}; - $request['DashboardName'] = dashboardName; + final $request = { + 'DashboardName': dashboardName, + }; final $result = await _protocol.send( $request, action: 'GetDashboard', @@ -843,8 +893,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetDashboardInput'], - shapes: shapes, resultWrapper: 'GetDashboardResult', ); return GetDashboardOutput.fromXml($result); @@ -979,14 +1027,21 @@ class CloudWatch { 1152921504606846976, isRequired: true, ); - final $request = {}; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['Period'] = period; - $request['RuleName'] = ruleName; - $request['StartTime'] = _s.iso8601ToJson(startTime); - maxContributorCount?.also((arg) => $request['MaxContributorCount'] = arg); - metrics?.also((arg) => $request['Metrics'] = arg); - orderBy?.also((arg) => $request['OrderBy'] = arg); + final $request = { + 'EndTime': _s.iso8601ToJson(endTime), + 'Period': period.toString(), + 'RuleName': ruleName, + 'StartTime': _s.iso8601ToJson(startTime), + if (maxContributorCount != null) + 'MaxContributorCount': maxContributorCount.toString(), + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + 'Metrics.member.${i1 + 1}': metrics[i1], + if (orderBy != null) 'OrderBy': orderBy, + }; final $result = await _protocol.send( $request, action: 'GetInsightRuleReport', @@ -994,8 +1049,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetInsightRuleReportInput'], - shapes: shapes, resultWrapper: 'GetInsightRuleReportResult', ); return GetInsightRuleReportOutput.fromXml($result); @@ -1169,14 +1222,22 @@ class CloudWatch { String? nextToken, ScanBy? scanBy, }) async { - final $request = {}; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['MetricDataQueries'] = metricDataQueries; - $request['StartTime'] = _s.iso8601ToJson(startTime); - labelOptions?.also((arg) => $request['LabelOptions'] = arg); - maxDatapoints?.also((arg) => $request['MaxDatapoints'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - scanBy?.also((arg) => $request['ScanBy'] = arg.toValue()); + final $request = { + 'EndTime': _s.iso8601ToJson(endTime), + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + 'StartTime': _s.iso8601ToJson(startTime), + if (labelOptions != null) + for (var e1 in labelOptions.toQueryMap().entries) + 'LabelOptions.${e1.key}': e1.value, + if (maxDatapoints != null) 'MaxDatapoints': maxDatapoints.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (scanBy != null) 'ScanBy': scanBy.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetMetricData', @@ -1184,8 +1245,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricDataInput'], - shapes: shapes, resultWrapper: 'GetMetricDataResult', ); return GetMetricDataOutput.fromXml($result); @@ -1392,17 +1451,33 @@ class CloudWatch { 1152921504606846976, isRequired: true, ); - final $request = {}; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['MetricName'] = metricName; - $request['Namespace'] = namespace; - $request['Period'] = period; - $request['StartTime'] = _s.iso8601ToJson(startTime); - dimensions?.also((arg) => $request['Dimensions'] = arg); - extendedStatistics?.also((arg) => $request['ExtendedStatistics'] = arg); - statistics?.also( - (arg) => $request['Statistics'] = arg.map((e) => e.toValue()).toList()); - unit?.also((arg) => $request['Unit'] = arg.toValue()); + final $request = { + 'EndTime': _s.iso8601ToJson(endTime), + 'MetricName': metricName, + 'Namespace': namespace, + 'Period': period.toString(), + 'StartTime': _s.iso8601ToJson(startTime), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (extendedStatistics != null) + if (extendedStatistics.isEmpty) + 'ExtendedStatistics': '' + else + for (var i1 = 0; i1 < extendedStatistics.length; i1++) + 'ExtendedStatistics.member.${i1 + 1}': extendedStatistics[i1], + if (statistics != null) + if (statistics.isEmpty) + 'Statistics': '' + else + for (var i1 = 0; i1 < statistics.length; i1++) + 'Statistics.member.${i1 + 1}': statistics[i1].toValue(), + if (unit != null) 'Unit': unit.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetMetricStatistics', @@ -1410,8 +1485,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricStatisticsInput'], - shapes: shapes, resultWrapper: 'GetMetricStatisticsResult', ); return GetMetricStatisticsOutput.fromXml($result); @@ -1430,8 +1503,9 @@ class CloudWatch { Future getMetricStream({ required String name, }) async { - final $request = {}; - $request['Name'] = name; + final $request = { + 'Name': name, + }; final $result = await _protocol.send( $request, action: 'GetMetricStream', @@ -1439,8 +1513,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricStreamInput'], - shapes: shapes, resultWrapper: 'GetMetricStreamResult', ); return GetMetricStreamOutput.fromXml($result); @@ -1521,9 +1593,10 @@ class CloudWatch { required String metricWidget, String? outputFormat, }) async { - final $request = {}; - $request['MetricWidget'] = metricWidget; - outputFormat?.also((arg) => $request['OutputFormat'] = arg); + final $request = { + 'MetricWidget': metricWidget, + if (outputFormat != null) 'OutputFormat': outputFormat, + }; final $result = await _protocol.send( $request, action: 'GetMetricWidgetImage', @@ -1531,8 +1604,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricWidgetImageInput'], - shapes: shapes, resultWrapper: 'GetMetricWidgetImageResult', ); return GetMetricWidgetImageOutput.fromXml($result); @@ -1564,9 +1635,11 @@ class CloudWatch { String? dashboardNamePrefix, String? nextToken, }) async { - final $request = {}; - dashboardNamePrefix?.also((arg) => $request['DashboardNamePrefix'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (dashboardNamePrefix != null) + 'DashboardNamePrefix': dashboardNamePrefix, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListDashboards', @@ -1574,8 +1647,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListDashboardsInput'], - shapes: shapes, resultWrapper: 'ListDashboardsResult', ); return ListDashboardsOutput.fromXml($result); @@ -1611,10 +1682,11 @@ class CloudWatch { 1, 500, ); - final $request = {}; - $request['ResourceARN'] = resourceARN; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'ResourceARN': resourceARN, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListManagedInsightRules', @@ -1622,8 +1694,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListManagedInsightRulesInput'], - shapes: shapes, resultWrapper: 'ListManagedInsightRulesResult', ); return ListManagedInsightRulesOutput.fromXml($result); @@ -1652,9 +1722,10 @@ class CloudWatch { 1, 500, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListMetricStreams', @@ -1662,8 +1733,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMetricStreamsInput'], - shapes: shapes, resultWrapper: 'ListMetricStreamsResult', ); return ListMetricStreamsOutput.fromXml($result); @@ -1747,15 +1816,22 @@ class CloudWatch { String? owningAccount, RecentlyActive? recentlyActive, }) async { - final $request = {}; - dimensions?.also((arg) => $request['Dimensions'] = arg); - includeLinkedAccounts - ?.also((arg) => $request['IncludeLinkedAccounts'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - owningAccount?.also((arg) => $request['OwningAccount'] = arg); - recentlyActive?.also((arg) => $request['RecentlyActive'] = arg.toValue()); + final $request = { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (includeLinkedAccounts != null) + 'IncludeLinkedAccounts': includeLinkedAccounts.toString(), + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (nextToken != null) 'NextToken': nextToken, + if (owningAccount != null) 'OwningAccount': owningAccount, + if (recentlyActive != null) 'RecentlyActive': recentlyActive.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListMetrics', @@ -1763,8 +1839,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMetricsInput'], - shapes: shapes, resultWrapper: 'ListMetricsResult', ); return ListMetricsOutput.fromXml($result); @@ -1795,8 +1869,9 @@ class CloudWatch { Future listTagsForResource({ required String resourceARN, }) async { - final $request = {}; - $request['ResourceARN'] = resourceARN; + final $request = { + 'ResourceARN': resourceARN, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1804,8 +1879,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceInput'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return ListTagsForResourceOutput.fromXml($result); @@ -1917,18 +1990,30 @@ class CloudWatch { SingleMetricAnomalyDetector? singleMetricAnomalyDetector, String? stat, }) async { - final $request = {}; - configuration?.also((arg) => $request['Configuration'] = arg); - dimensions?.also((arg) => $request['Dimensions'] = arg); - metricCharacteristics - ?.also((arg) => $request['MetricCharacteristics'] = arg); - metricMathAnomalyDetector - ?.also((arg) => $request['MetricMathAnomalyDetector'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - singleMetricAnomalyDetector - ?.also((arg) => $request['SingleMetricAnomalyDetector'] = arg); - stat?.also((arg) => $request['Stat'] = arg); + final $request = { + if (configuration != null) + for (var e1 in configuration.toQueryMap().entries) + 'Configuration.${e1.key}': e1.value, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricCharacteristics != null) + for (var e1 in metricCharacteristics.toQueryMap().entries) + 'MetricCharacteristics.${e1.key}': e1.value, + if (metricMathAnomalyDetector != null) + for (var e1 in metricMathAnomalyDetector.toQueryMap().entries) + 'MetricMathAnomalyDetector.${e1.key}': e1.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (singleMetricAnomalyDetector != null) + for (var e1 in singleMetricAnomalyDetector.toQueryMap().entries) + 'SingleMetricAnomalyDetector.${e1.key}': e1.value, + if (stat != null) 'Stat': stat, + }; await _protocol.send( $request, action: 'PutAnomalyDetector', @@ -1936,8 +2021,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutAnomalyDetectorInput'], - shapes: shapes, resultWrapper: 'PutAnomalyDetectorResult', ); } @@ -2243,21 +2326,44 @@ class CloudWatch { List? oKActions, List? tags, }) async { - final $request = {}; - $request['AlarmName'] = alarmName; - $request['AlarmRule'] = alarmRule; - actionsEnabled?.also((arg) => $request['ActionsEnabled'] = arg); - actionsSuppressor?.also((arg) => $request['ActionsSuppressor'] = arg); - actionsSuppressorExtensionPeriod - ?.also((arg) => $request['ActionsSuppressorExtensionPeriod'] = arg); - actionsSuppressorWaitPeriod - ?.also((arg) => $request['ActionsSuppressorWaitPeriod'] = arg); - alarmActions?.also((arg) => $request['AlarmActions'] = arg); - alarmDescription?.also((arg) => $request['AlarmDescription'] = arg); - insufficientDataActions - ?.also((arg) => $request['InsufficientDataActions'] = arg); - oKActions?.also((arg) => $request['OKActions'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'AlarmName': alarmName, + 'AlarmRule': alarmRule, + if (actionsEnabled != null) 'ActionsEnabled': actionsEnabled.toString(), + if (actionsSuppressor != null) 'ActionsSuppressor': actionsSuppressor, + if (actionsSuppressorExtensionPeriod != null) + 'ActionsSuppressorExtensionPeriod': + actionsSuppressorExtensionPeriod.toString(), + if (actionsSuppressorWaitPeriod != null) + 'ActionsSuppressorWaitPeriod': actionsSuppressorWaitPeriod.toString(), + if (alarmActions != null) + if (alarmActions.isEmpty) + 'AlarmActions': '' + else + for (var i1 = 0; i1 < alarmActions.length; i1++) + 'AlarmActions.member.${i1 + 1}': alarmActions[i1], + if (alarmDescription != null) 'AlarmDescription': alarmDescription, + if (insufficientDataActions != null) + if (insufficientDataActions.isEmpty) + 'InsufficientDataActions': '' + else + for (var i1 = 0; i1 < insufficientDataActions.length; i1++) + 'InsufficientDataActions.member.${i1 + 1}': + insufficientDataActions[i1], + if (oKActions != null) + if (oKActions.isEmpty) + 'OKActions': '' + else + for (var i1 = 0; i1 < oKActions.length; i1++) + 'OKActions.member.${i1 + 1}': oKActions[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'PutCompositeAlarm', @@ -2265,8 +2371,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutCompositeAlarmInput'], - shapes: shapes, ); } @@ -2313,9 +2417,10 @@ class CloudWatch { required String dashboardBody, required String dashboardName, }) async { - final $request = {}; - $request['DashboardBody'] = dashboardBody; - $request['DashboardName'] = dashboardName; + final $request = { + 'DashboardBody': dashboardBody, + 'DashboardName': dashboardName, + }; final $result = await _protocol.send( $request, action: 'PutDashboard', @@ -2323,8 +2428,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutDashboardInput'], - shapes: shapes, resultWrapper: 'PutDashboardResult', ); return PutDashboardOutput.fromXml($result); @@ -2378,11 +2481,18 @@ class CloudWatch { String? ruleState, List? tags, }) async { - final $request = {}; - $request['RuleDefinition'] = ruleDefinition; - $request['RuleName'] = ruleName; - ruleState?.also((arg) => $request['RuleState'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'RuleDefinition': ruleDefinition, + 'RuleName': ruleName, + if (ruleState != null) 'RuleState': ruleState, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'PutInsightRule', @@ -2390,8 +2500,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutInsightRuleInput'], - shapes: shapes, resultWrapper: 'PutInsightRuleResult', ); } @@ -2414,8 +2522,14 @@ class CloudWatch { Future putManagedInsightRules({ required List managedRules, }) async { - final $request = {}; - $request['ManagedRules'] = managedRules; + final $request = { + if (managedRules.isEmpty) + 'ManagedRules': '' + else + for (var i1 = 0; i1 < managedRules.length; i1++) + for (var e3 in managedRules[i1].toQueryMap().entries) + 'ManagedRules.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PutManagedInsightRules', @@ -2423,8 +2537,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutManagedInsightRulesInput'], - shapes: shapes, resultWrapper: 'PutManagedInsightRulesResult', ); return PutManagedInsightRulesOutput.fromXml($result); @@ -3039,31 +3151,66 @@ class CloudWatch { 1, 1152921504606846976, ); - final $request = {}; - $request['AlarmName'] = alarmName; - $request['ComparisonOperator'] = comparisonOperator.toValue(); - $request['EvaluationPeriods'] = evaluationPeriods; - actionsEnabled?.also((arg) => $request['ActionsEnabled'] = arg); - alarmActions?.also((arg) => $request['AlarmActions'] = arg); - alarmDescription?.also((arg) => $request['AlarmDescription'] = arg); - datapointsToAlarm?.also((arg) => $request['DatapointsToAlarm'] = arg); - dimensions?.also((arg) => $request['Dimensions'] = arg); - evaluateLowSampleCountPercentile - ?.also((arg) => $request['EvaluateLowSampleCountPercentile'] = arg); - extendedStatistic?.also((arg) => $request['ExtendedStatistic'] = arg); - insufficientDataActions - ?.also((arg) => $request['InsufficientDataActions'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - metrics?.also((arg) => $request['Metrics'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - oKActions?.also((arg) => $request['OKActions'] = arg); - period?.also((arg) => $request['Period'] = arg); - statistic?.also((arg) => $request['Statistic'] = arg.toValue()); - tags?.also((arg) => $request['Tags'] = arg); - threshold?.also((arg) => $request['Threshold'] = arg); - thresholdMetricId?.also((arg) => $request['ThresholdMetricId'] = arg); - treatMissingData?.also((arg) => $request['TreatMissingData'] = arg); - unit?.also((arg) => $request['Unit'] = arg.toValue()); + final $request = { + 'AlarmName': alarmName, + 'ComparisonOperator': comparisonOperator.toValue(), + 'EvaluationPeriods': evaluationPeriods.toString(), + if (actionsEnabled != null) 'ActionsEnabled': actionsEnabled.toString(), + if (alarmActions != null) + if (alarmActions.isEmpty) + 'AlarmActions': '' + else + for (var i1 = 0; i1 < alarmActions.length; i1++) + 'AlarmActions.member.${i1 + 1}': alarmActions[i1], + if (alarmDescription != null) 'AlarmDescription': alarmDescription, + if (datapointsToAlarm != null) + 'DatapointsToAlarm': datapointsToAlarm.toString(), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (evaluateLowSampleCountPercentile != null) + 'EvaluateLowSampleCountPercentile': evaluateLowSampleCountPercentile, + if (extendedStatistic != null) 'ExtendedStatistic': extendedStatistic, + if (insufficientDataActions != null) + if (insufficientDataActions.isEmpty) + 'InsufficientDataActions': '' + else + for (var i1 = 0; i1 < insufficientDataActions.length; i1++) + 'InsufficientDataActions.member.${i1 + 1}': + insufficientDataActions[i1], + if (metricName != null) 'MetricName': metricName, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + for (var e3 in metrics[i1].toQueryMap().entries) + 'Metrics.member.${i1 + 1}.${e3.key}': e3.value, + if (namespace != null) 'Namespace': namespace, + if (oKActions != null) + if (oKActions.isEmpty) + 'OKActions': '' + else + for (var i1 = 0; i1 < oKActions.length; i1++) + 'OKActions.member.${i1 + 1}': oKActions[i1], + if (period != null) 'Period': period.toString(), + if (statistic != null) 'Statistic': statistic.toValue(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (threshold != null) 'Threshold': threshold.toString(), + if (thresholdMetricId != null) 'ThresholdMetricId': thresholdMetricId, + if (treatMissingData != null) 'TreatMissingData': treatMissingData, + if (unit != null) 'Unit': unit.toValue(), + }; await _protocol.send( $request, action: 'PutMetricAlarm', @@ -3071,8 +3218,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutMetricAlarmInput'], - shapes: shapes, ); } @@ -3157,9 +3302,15 @@ class CloudWatch { required List metricData, required String namespace, }) async { - final $request = {}; - $request['MetricData'] = metricData; - $request['Namespace'] = namespace; + final $request = { + if (metricData.isEmpty) + 'MetricData': '' + else + for (var i1 = 0; i1 < metricData.length; i1++) + for (var e3 in metricData[i1].toQueryMap().entries) + 'MetricData.member.${i1 + 1}.${e3.key}': e3.value, + 'Namespace': namespace, + }; await _protocol.send( $request, action: 'PutMetricData', @@ -3167,8 +3318,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutMetricDataInput'], - shapes: shapes, ); } @@ -3325,18 +3474,42 @@ class CloudWatch { List? statisticsConfigurations, List? tags, }) async { - final $request = {}; - $request['FirehoseArn'] = firehoseArn; - $request['Name'] = name; - $request['OutputFormat'] = outputFormat.toValue(); - $request['RoleArn'] = roleArn; - excludeFilters?.also((arg) => $request['ExcludeFilters'] = arg); - includeFilters?.also((arg) => $request['IncludeFilters'] = arg); - includeLinkedAccountsMetrics - ?.also((arg) => $request['IncludeLinkedAccountsMetrics'] = arg); - statisticsConfigurations - ?.also((arg) => $request['StatisticsConfigurations'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'FirehoseArn': firehoseArn, + 'Name': name, + 'OutputFormat': outputFormat.toValue(), + 'RoleArn': roleArn, + if (excludeFilters != null) + if (excludeFilters.isEmpty) + 'ExcludeFilters': '' + else + for (var i1 = 0; i1 < excludeFilters.length; i1++) + for (var e3 in excludeFilters[i1].toQueryMap().entries) + 'ExcludeFilters.member.${i1 + 1}.${e3.key}': e3.value, + if (includeFilters != null) + if (includeFilters.isEmpty) + 'IncludeFilters': '' + else + for (var i1 = 0; i1 < includeFilters.length; i1++) + for (var e3 in includeFilters[i1].toQueryMap().entries) + 'IncludeFilters.member.${i1 + 1}.${e3.key}': e3.value, + if (includeLinkedAccountsMetrics != null) + 'IncludeLinkedAccountsMetrics': includeLinkedAccountsMetrics.toString(), + if (statisticsConfigurations != null) + if (statisticsConfigurations.isEmpty) + 'StatisticsConfigurations': '' + else + for (var i1 = 0; i1 < statisticsConfigurations.length; i1++) + for (var e3 in statisticsConfigurations[i1].toQueryMap().entries) + 'StatisticsConfigurations.member.${i1 + 1}.${e3.key}': e3.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PutMetricStream', @@ -3344,8 +3517,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutMetricStreamInput'], - shapes: shapes, resultWrapper: 'PutMetricStreamResult', ); return PutMetricStreamOutput.fromXml($result); @@ -3396,11 +3567,12 @@ class CloudWatch { required StateValue stateValue, String? stateReasonData, }) async { - final $request = {}; - $request['AlarmName'] = alarmName; - $request['StateReason'] = stateReason; - $request['StateValue'] = stateValue.toValue(); - stateReasonData?.also((arg) => $request['StateReasonData'] = arg); + final $request = { + 'AlarmName': alarmName, + 'StateReason': stateReason, + 'StateValue': stateValue.toValue(), + if (stateReasonData != null) 'StateReasonData': stateReasonData, + }; await _protocol.send( $request, action: 'SetAlarmState', @@ -3408,8 +3580,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetAlarmStateInput'], - shapes: shapes, ); } @@ -3428,8 +3598,13 @@ class CloudWatch { Future startMetricStreams({ required List names, }) async { - final $request = {}; - $request['Names'] = names; + final $request = { + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + }; await _protocol.send( $request, action: 'StartMetricStreams', @@ -3437,8 +3612,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartMetricStreamsInput'], - shapes: shapes, resultWrapper: 'StartMetricStreamsResult', ); } @@ -3458,8 +3631,13 @@ class CloudWatch { Future stopMetricStreams({ required List names, }) async { - final $request = {}; - $request['Names'] = names; + final $request = { + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + }; await _protocol.send( $request, action: 'StopMetricStreams', @@ -3467,8 +3645,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopMetricStreamsInput'], - shapes: shapes, resultWrapper: 'StopMetricStreamsResult', ); } @@ -3519,9 +3695,15 @@ class CloudWatch { required String resourceARN, required List tags, }) async { - final $request = {}; - $request['ResourceARN'] = resourceARN; - $request['Tags'] = tags; + final $request = { + 'ResourceARN': resourceARN, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagResource', @@ -3529,8 +3711,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagResourceInput'], - shapes: shapes, resultWrapper: 'TagResourceResult', ); } @@ -3564,9 +3744,14 @@ class CloudWatch { required String resourceARN, required List tagKeys, }) async { - final $request = {}; - $request['ResourceARN'] = resourceARN; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceARN': resourceARN, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagResource', @@ -3574,8 +3759,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagResourceInput'], - shapes: shapes, resultWrapper: 'UntagResourceResult', ); } @@ -3843,6 +4026,21 @@ class AnomalyDetectorConfiguration { if (metricTimezone != null) 'MetricTimezone': metricTimezone, }; } + + Map toQueryMap() { + final excludedTimeRanges = this.excludedTimeRanges; + final metricTimezone = this.metricTimezone; + return { + if (excludedTimeRanges != null) + if (excludedTimeRanges.isEmpty) + 'ExcludedTimeRanges': '' + else + for (var i1 = 0; i1 < excludedTimeRanges.length; i1++) + for (var e3 in excludedTimeRanges[i1].toQueryMap().entries) + 'ExcludedTimeRanges.member.${i1 + 1}.${e3.key}': e3.value, + if (metricTimezone != null) 'MetricTimezone': metricTimezone, + }; + } } enum AnomalyDetectorStateValue { @@ -4573,6 +4771,15 @@ class Dimension { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } /// Represents filters for a dimension. @@ -4596,6 +4803,15 @@ class DimensionFilter { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + if (value != null) 'Value': value, + }; + } } class DisableInsightRulesOutput { @@ -5321,6 +5537,13 @@ class LabelOptions { if (timezone != null) 'Timezone': timezone, }; } + + Map toQueryMap() { + final timezone = this.timezone; + return { + if (timezone != null) 'Timezone': timezone, + }; + } } class ListDashboardsOutput { @@ -5521,6 +5744,23 @@ class ManagedRule { if (tags != null) 'Tags': tags, }; } + + Map toQueryMap() { + final resourceARN = this.resourceARN; + final templateName = this.templateName; + final tags = this.tags; + return { + 'ResourceARN': resourceARN, + 'TemplateName': templateName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Contains information about managed Contributor Insights rules, as returned @@ -5666,6 +5906,23 @@ class Metric { if (namespace != null) 'Namespace': namespace, }; } + + Map toQueryMap() { + final dimensions = this.dimensions; + final metricName = this.metricName; + final namespace = this.namespace; + return { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + }; + } } /// The details about a metric alarm. @@ -5971,6 +6228,13 @@ class MetricCharacteristics { if (periodicSpikes != null) 'PeriodicSpikes': periodicSpikes, }; } + + Map toQueryMap() { + final periodicSpikes = this.periodicSpikes; + return { + if (periodicSpikes != null) 'PeriodicSpikes': periodicSpikes.toString(), + }; + } } /// This structure is used in both GetMetricData and @@ -6120,6 +6384,27 @@ class MetricDataQuery { if (returnData != null) 'ReturnData': returnData, }; } + + Map toQueryMap() { + final id = this.id; + final accountId = this.accountId; + final expression = this.expression; + final label = this.label; + final metricStat = this.metricStat; + final period = this.period; + final returnData = this.returnData; + return { + 'Id': id, + if (accountId != null) 'AccountId': accountId, + if (expression != null) 'Expression': expression, + if (label != null) 'Label': label, + if (metricStat != null) + for (var e1 in metricStat.toQueryMap().entries) + 'MetricStat.${e1.key}': e1.value, + if (period != null) 'Period': period.toString(), + if (returnData != null) 'ReturnData': returnData.toString(), + }; + } } /// A GetMetricData call returns an array of @@ -6299,6 +6584,48 @@ class MetricDatum { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final metricName = this.metricName; + final counts = this.counts; + final dimensions = this.dimensions; + final statisticValues = this.statisticValues; + final storageResolution = this.storageResolution; + final timestamp = this.timestamp; + final unit = this.unit; + final value = this.value; + final values = this.values; + return { + 'MetricName': metricName, + if (counts != null) + if (counts.isEmpty) + 'Counts': '' + else + for (var i1 = 0; i1 < counts.length; i1++) + 'Counts.member.${i1 + 1}': counts[i1].toString(), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (statisticValues != null) + for (var e1 in statisticValues.toQueryMap().entries) + 'StatisticValues.${e1.key}': e1.value, + if (storageResolution != null) + 'StorageResolution': storageResolution.toString(), + if (timestamp != null) 'Timestamp': _s.iso8601ToJson(timestamp), + if (unit != null) 'Unit': unit.toValue(), + if (value != null) 'Value': value.toString(), + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1].toString(), + }; + } } /// Indicates the CloudWatch math expression that provides the time series the @@ -6335,6 +6662,19 @@ class MetricMathAnomalyDetector { if (metricDataQueries != null) 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries != null) + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// This structure defines the metric to be returned, along with the statistics, @@ -6414,6 +6754,19 @@ class MetricStat { if (unit != null) 'Unit': unit.toValue(), }; } + + Map toQueryMap() { + final metric = this.metric; + final period = this.period; + final stat = this.stat; + final unit = this.unit; + return { + for (var e1 in metric.toQueryMap().entries) 'Metric.${e1.key}': e1.value, + 'Period': period.toString(), + 'Stat': stat, + if (unit != null) 'Unit': unit.toValue(), + }; + } } /// This structure contains the configuration information about one metric @@ -6535,6 +6888,20 @@ class MetricStreamFilter { if (namespace != null) 'Namespace': namespace, }; } + + Map toQueryMap() { + final metricNames = this.metricNames; + final namespace = this.namespace; + return { + if (metricNames != null) + if (metricNames.isEmpty) + 'MetricNames': '' + else + for (var i1 = 0; i1 < metricNames.length; i1++) + 'MetricNames.member.${i1 + 1}': metricNames[i1], + if (namespace != null) 'Namespace': namespace, + }; + } } enum MetricStreamOutputFormat { @@ -6627,6 +6994,24 @@ class MetricStreamStatisticsConfiguration { 'IncludeMetrics': includeMetrics, }; } + + Map toQueryMap() { + final additionalStatistics = this.additionalStatistics; + final includeMetrics = this.includeMetrics; + return { + if (additionalStatistics.isEmpty) + 'AdditionalStatistics': '' + else + for (var i1 = 0; i1 < additionalStatistics.length; i1++) + 'AdditionalStatistics.member.${i1 + 1}': additionalStatistics[i1], + if (includeMetrics.isEmpty) + 'IncludeMetrics': '' + else + for (var i1 = 0; i1 < includeMetrics.length; i1++) + for (var e3 in includeMetrics[i1].toQueryMap().entries) + 'IncludeMetrics.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// This object contains the information for one metric that is to be streamed @@ -6657,6 +7042,15 @@ class MetricStreamStatisticsMetric { 'Namespace': namespace, }; } + + Map toQueryMap() { + final metricName = this.metricName; + final namespace = this.namespace; + return { + 'MetricName': metricName, + 'Namespace': namespace, + }; + } } /// This array is empty if the API operation was successful for all the rules @@ -6840,6 +7234,15 @@ class Range { 'StartTime': iso8601ToJson(startTime), }; } + + Map toQueryMap() { + final endTime = this.endTime; + final startTime = this.startTime; + return { + 'EndTime': _s.iso8601ToJson(endTime), + 'StartTime': _s.iso8601ToJson(startTime), + }; + } } enum RecentlyActive { @@ -6947,6 +7350,27 @@ class SingleMetricAnomalyDetector { if (stat != null) 'Stat': stat, }; } + + Map toQueryMap() { + final accountId = this.accountId; + final dimensions = this.dimensions; + final metricName = this.metricName; + final namespace = this.namespace; + final stat = this.stat; + return { + if (accountId != null) 'AccountId': accountId, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (stat != null) 'Stat': stat, + }; + } } enum StandardUnit { @@ -7224,6 +7648,19 @@ class StatisticSet { 'Sum': sum, }; } + + Map toQueryMap() { + final maximum = this.maximum; + final minimum = this.minimum; + final sampleCount = this.sampleCount; + final sum = this.sum; + return { + 'Maximum': maximum.toString(), + 'Minimum': minimum.toString(), + 'SampleCount': sampleCount.toString(), + 'Sum': sum.toString(), + }; + } } enum StatusCode { @@ -7305,6 +7742,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } class TagResourceOutput { diff --git a/aws_client/lib/src/generated/cloud_watch/v2010_08_01.meta.dart b/aws_client/lib/src/generated/cloud_watch/v2010_08_01.meta.dart deleted file mode 100644 index 1bcb255ef..000000000 --- a/aws_client/lib/src/generated/cloud_watch/v2010_08_01.meta.dart +++ /dev/null @@ -1,1470 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AccountId": {"type": "string", "flattened": false}, - "ActionPrefix": {"type": "string", "flattened": false}, - "ActionsEnabled": {"type": "boolean", "flattened": false}, - "ActionsSuppressedBy": {"type": "string", "flattened": false}, - "ActionsSuppressedReason": {"type": "string", "flattened": false}, - "AlarmArn": {"type": "string", "flattened": false}, - "AlarmDescription": {"type": "string", "flattened": false}, - "AlarmHistoryItem": { - "type": "structure", - "members": { - "AlarmName": {"shape": "AlarmName", "flattened": false}, - "AlarmType": {"shape": "AlarmType", "flattened": false}, - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "HistoryItemType": {"shape": "HistoryItemType", "flattened": false}, - "HistorySummary": {"shape": "HistorySummary", "flattened": false}, - "HistoryData": {"shape": "HistoryData", "flattened": false} - }, - "flattened": false - }, - "AlarmHistoryItems": { - "type": "list", - "member": {"shape": "AlarmHistoryItem"}, - "flattened": false - }, - "AlarmName": {"type": "string", "flattened": false}, - "AlarmNamePrefix": {"type": "string", "flattened": false}, - "AlarmNames": { - "type": "list", - "member": {"shape": "AlarmName"}, - "flattened": false - }, - "AlarmRule": {"type": "string", "flattened": false}, - "AlarmType": {"type": "string", "flattened": false}, - "AlarmTypes": { - "type": "list", - "member": {"shape": "AlarmType"}, - "flattened": false - }, - "AmazonResourceName": {"type": "string", "flattened": false}, - "AnomalyDetector": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Stat": {"shape": "AnomalyDetectorMetricStat", "flattened": false}, - "Configuration": { - "shape": "AnomalyDetectorConfiguration", - "flattened": false - }, - "StateValue": {"shape": "AnomalyDetectorStateValue", "flattened": false}, - "MetricCharacteristics": { - "shape": "MetricCharacteristics", - "flattened": false - }, - "SingleMetricAnomalyDetector": { - "shape": "SingleMetricAnomalyDetector", - "flattened": false - }, - "MetricMathAnomalyDetector": { - "shape": "MetricMathAnomalyDetector", - "flattened": false - } - }, - "flattened": false - }, - "AnomalyDetectorConfiguration": { - "type": "structure", - "members": { - "ExcludedTimeRanges": { - "shape": "AnomalyDetectorExcludedTimeRanges", - "flattened": false - }, - "MetricTimezone": { - "shape": "AnomalyDetectorMetricTimezone", - "flattened": false - } - }, - "flattened": false - }, - "AnomalyDetectorExcludedTimeRanges": { - "type": "list", - "member": {"shape": "Range"}, - "flattened": false - }, - "AnomalyDetectorMetricStat": {"type": "string", "flattened": false}, - "AnomalyDetectorMetricTimezone": {"type": "string", "flattened": false}, - "AnomalyDetectorStateValue": {"type": "string", "flattened": false}, - "AnomalyDetectorType": {"type": "string", "flattened": false}, - "AnomalyDetectorTypes": { - "type": "list", - "member": {"shape": "AnomalyDetectorType"}, - "flattened": false - }, - "AnomalyDetectors": { - "type": "list", - "member": {"shape": "AnomalyDetector"}, - "flattened": false - }, - "BatchFailures": { - "type": "list", - "member": {"shape": "PartialFailure"}, - "flattened": false - }, - "ComparisonOperator": {"type": "string", "flattened": false}, - "CompositeAlarm": { - "type": "structure", - "members": { - "ActionsEnabled": {"shape": "ActionsEnabled", "flattened": false}, - "AlarmActions": {"shape": "ResourceList", "flattened": false}, - "AlarmArn": {"shape": "AlarmArn", "flattened": false}, - "AlarmConfigurationUpdatedTimestamp": { - "shape": "Timestamp", - "flattened": false - }, - "AlarmDescription": {"shape": "AlarmDescription", "flattened": false}, - "AlarmName": {"shape": "AlarmName", "flattened": false}, - "AlarmRule": {"shape": "AlarmRule", "flattened": false}, - "InsufficientDataActions": {"shape": "ResourceList", "flattened": false}, - "OKActions": {"shape": "ResourceList", "flattened": false}, - "StateReason": {"shape": "StateReason", "flattened": false}, - "StateReasonData": {"shape": "StateReasonData", "flattened": false}, - "StateUpdatedTimestamp": {"shape": "Timestamp", "flattened": false}, - "StateValue": {"shape": "StateValue", "flattened": false}, - "StateTransitionedTimestamp": {"shape": "Timestamp", "flattened": false}, - "ActionsSuppressedBy": { - "shape": "ActionsSuppressedBy", - "flattened": false - }, - "ActionsSuppressedReason": { - "shape": "ActionsSuppressedReason", - "flattened": false - }, - "ActionsSuppressor": {"shape": "AlarmArn", "flattened": false}, - "ActionsSuppressorWaitPeriod": { - "shape": "SuppressorPeriod", - "flattened": false - }, - "ActionsSuppressorExtensionPeriod": { - "shape": "SuppressorPeriod", - "flattened": false - } - }, - "flattened": false - }, - "CompositeAlarms": { - "type": "list", - "member": {"shape": "CompositeAlarm"}, - "flattened": false - }, - "Counts": { - "type": "list", - "member": {"shape": "DatapointValue"}, - "flattened": false - }, - "DashboardArn": {"type": "string", "flattened": false}, - "DashboardBody": {"type": "string", "flattened": false}, - "DashboardEntries": { - "type": "list", - "member": {"shape": "DashboardEntry"}, - "flattened": false - }, - "DashboardEntry": { - "type": "structure", - "members": { - "DashboardName": {"shape": "DashboardName", "flattened": false}, - "DashboardArn": {"shape": "DashboardArn", "flattened": false}, - "LastModified": {"shape": "LastModified", "flattened": false}, - "Size": {"shape": "Size", "flattened": false} - }, - "flattened": false - }, - "DashboardName": {"type": "string", "flattened": false}, - "DashboardNamePrefix": {"type": "string", "flattened": false}, - "DashboardNames": { - "type": "list", - "member": {"shape": "DashboardName"}, - "flattened": false - }, - "DashboardValidationMessage": { - "type": "structure", - "members": { - "DataPath": {"shape": "DataPath", "flattened": false}, - "Message": {"shape": "Message", "flattened": false} - }, - "flattened": false - }, - "DashboardValidationMessages": { - "type": "list", - "member": {"shape": "DashboardValidationMessage"}, - "flattened": false - }, - "DataPath": {"type": "string", "flattened": false}, - "Datapoint": { - "type": "structure", - "members": { - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "SampleCount": {"shape": "DatapointValue", "flattened": false}, - "Average": {"shape": "DatapointValue", "flattened": false}, - "Sum": {"shape": "DatapointValue", "flattened": false}, - "Minimum": {"shape": "DatapointValue", "flattened": false}, - "Maximum": {"shape": "DatapointValue", "flattened": false}, - "Unit": {"shape": "StandardUnit", "flattened": false}, - "ExtendedStatistics": {"shape": "DatapointValueMap", "flattened": false} - }, - "flattened": false - }, - "DatapointValue": {"type": "double", "flattened": false}, - "DatapointValueMap": { - "type": "map", - "key": {"shape": "ExtendedStatistic"}, - "value": {"shape": "DatapointValue"}, - "flattened": false - }, - "DatapointValues": { - "type": "list", - "member": {"shape": "DatapointValue"}, - "flattened": false - }, - "Datapoints": { - "type": "list", - "member": {"shape": "Datapoint"}, - "flattened": false - }, - "DatapointsToAlarm": {"type": "integer", "flattened": false}, - "DeleteAlarmsInput": { - "type": "structure", - "members": { - "AlarmNames": {"shape": "AlarmNames", "flattened": false} - }, - "flattened": false - }, - "DeleteAnomalyDetectorInput": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Stat": {"shape": "AnomalyDetectorMetricStat", "flattened": false}, - "SingleMetricAnomalyDetector": { - "shape": "SingleMetricAnomalyDetector", - "flattened": false - }, - "MetricMathAnomalyDetector": { - "shape": "MetricMathAnomalyDetector", - "flattened": false - } - }, - "flattened": false - }, - "DeleteAnomalyDetectorOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteDashboardsInput": { - "type": "structure", - "members": { - "DashboardNames": {"shape": "DashboardNames", "flattened": false} - }, - "flattened": false - }, - "DeleteDashboardsOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteInsightRulesInput": { - "type": "structure", - "members": { - "RuleNames": {"shape": "InsightRuleNames", "flattened": false} - }, - "flattened": false - }, - "DeleteInsightRulesOutput": { - "type": "structure", - "members": { - "Failures": {"shape": "BatchFailures", "flattened": false} - }, - "flattened": false - }, - "DeleteMetricStreamInput": { - "type": "structure", - "members": { - "Name": {"shape": "MetricStreamName", "flattened": false} - }, - "flattened": false - }, - "DeleteMetricStreamOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DescribeAlarmHistoryInput": { - "type": "structure", - "members": { - "AlarmName": {"shape": "AlarmName", "flattened": false}, - "AlarmTypes": {"shape": "AlarmTypes", "flattened": false}, - "HistoryItemType": {"shape": "HistoryItemType", "flattened": false}, - "StartDate": {"shape": "Timestamp", "flattened": false}, - "EndDate": {"shape": "Timestamp", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "ScanBy": {"shape": "ScanBy", "flattened": false} - }, - "flattened": false - }, - "DescribeAlarmHistoryOutput": { - "type": "structure", - "members": { - "AlarmHistoryItems": {"shape": "AlarmHistoryItems", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeAlarmsForMetricInput": { - "type": "structure", - "members": { - "MetricName": {"shape": "MetricName", "flattened": false}, - "Namespace": {"shape": "Namespace", "flattened": false}, - "Statistic": {"shape": "Statistic", "flattened": false}, - "ExtendedStatistic": {"shape": "ExtendedStatistic", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Period": {"shape": "Period", "flattened": false}, - "Unit": {"shape": "StandardUnit", "flattened": false} - }, - "flattened": false - }, - "DescribeAlarmsForMetricOutput": { - "type": "structure", - "members": { - "MetricAlarms": {"shape": "MetricAlarms", "flattened": false} - }, - "flattened": false - }, - "DescribeAlarmsInput": { - "type": "structure", - "members": { - "AlarmNames": {"shape": "AlarmNames", "flattened": false}, - "AlarmNamePrefix": {"shape": "AlarmNamePrefix", "flattened": false}, - "AlarmTypes": {"shape": "AlarmTypes", "flattened": false}, - "ChildrenOfAlarmName": {"shape": "AlarmName", "flattened": false}, - "ParentsOfAlarmName": {"shape": "AlarmName", "flattened": false}, - "StateValue": {"shape": "StateValue", "flattened": false}, - "ActionPrefix": {"shape": "ActionPrefix", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeAlarmsOutput": { - "type": "structure", - "members": { - "CompositeAlarms": {"shape": "CompositeAlarms", "flattened": false}, - "MetricAlarms": {"shape": "MetricAlarms", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeAnomalyDetectorsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxReturnedResultsCount", "flattened": false}, - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "AnomalyDetectorTypes": { - "shape": "AnomalyDetectorTypes", - "flattened": false - } - }, - "flattened": false - }, - "DescribeAnomalyDetectorsOutput": { - "type": "structure", - "members": { - "AnomalyDetectors": {"shape": "AnomalyDetectors", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeInsightRulesInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "InsightRuleMaxResults", "flattened": false} - }, - "flattened": false - }, - "DescribeInsightRulesOutput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "InsightRules": {"shape": "InsightRules", "flattened": false} - }, - "flattened": false - }, - "Dimension": { - "type": "structure", - "members": { - "Name": {"shape": "DimensionName", "flattened": false}, - "Value": {"shape": "DimensionValue", "flattened": false} - }, - "flattened": false - }, - "DimensionFilter": { - "type": "structure", - "members": { - "Name": {"shape": "DimensionName", "flattened": false}, - "Value": {"shape": "DimensionValue", "flattened": false} - }, - "flattened": false - }, - "DimensionFilters": { - "type": "list", - "member": {"shape": "DimensionFilter"}, - "flattened": false - }, - "DimensionName": {"type": "string", "flattened": false}, - "DimensionValue": {"type": "string", "flattened": false}, - "Dimensions": { - "type": "list", - "member": {"shape": "Dimension"}, - "flattened": false - }, - "DisableAlarmActionsInput": { - "type": "structure", - "members": { - "AlarmNames": {"shape": "AlarmNames", "flattened": false} - }, - "flattened": false - }, - "DisableInsightRulesInput": { - "type": "structure", - "members": { - "RuleNames": {"shape": "InsightRuleNames", "flattened": false} - }, - "flattened": false - }, - "DisableInsightRulesOutput": { - "type": "structure", - "members": { - "Failures": {"shape": "BatchFailures", "flattened": false} - }, - "flattened": false - }, - "EnableAlarmActionsInput": { - "type": "structure", - "members": { - "AlarmNames": {"shape": "AlarmNames", "flattened": false} - }, - "flattened": false - }, - "EnableInsightRulesInput": { - "type": "structure", - "members": { - "RuleNames": {"shape": "InsightRuleNames", "flattened": false} - }, - "flattened": false - }, - "EnableInsightRulesOutput": { - "type": "structure", - "members": { - "Failures": {"shape": "BatchFailures", "flattened": false} - }, - "flattened": false - }, - "EvaluateLowSampleCountPercentile": {"type": "string", "flattened": false}, - "EvaluationPeriods": {"type": "integer", "flattened": false}, - "EvaluationState": {"type": "string", "flattened": false}, - "ExceptionType": {"type": "string", "flattened": false}, - "ExtendedStatistic": {"type": "string", "flattened": false}, - "ExtendedStatistics": { - "type": "list", - "member": {"shape": "ExtendedStatistic"}, - "flattened": false - }, - "FailureCode": {"type": "string", "flattened": false}, - "FailureDescription": {"type": "string", "flattened": false}, - "FailureResource": {"type": "string", "flattened": false}, - "GetDashboardInput": { - "type": "structure", - "members": { - "DashboardName": {"shape": "DashboardName", "flattened": false} - }, - "flattened": false - }, - "GetDashboardOutput": { - "type": "structure", - "members": { - "DashboardArn": {"shape": "DashboardArn", "flattened": false}, - "DashboardBody": {"shape": "DashboardBody", "flattened": false}, - "DashboardName": {"shape": "DashboardName", "flattened": false} - }, - "flattened": false - }, - "GetInsightRuleReportInput": { - "type": "structure", - "members": { - "RuleName": {"shape": "InsightRuleName", "flattened": false}, - "StartTime": {"shape": "Timestamp", "flattened": false}, - "EndTime": {"shape": "Timestamp", "flattened": false}, - "Period": {"shape": "Period", "flattened": false}, - "MaxContributorCount": { - "shape": "InsightRuleUnboundInteger", - "flattened": false - }, - "Metrics": {"shape": "InsightRuleMetricList", "flattened": false}, - "OrderBy": {"shape": "InsightRuleOrderBy", "flattened": false} - }, - "flattened": false - }, - "GetInsightRuleReportOutput": { - "type": "structure", - "members": { - "KeyLabels": { - "shape": "InsightRuleContributorKeyLabels", - "flattened": false - }, - "AggregationStatistic": { - "shape": "InsightRuleAggregationStatistic", - "flattened": false - }, - "AggregateValue": { - "shape": "InsightRuleUnboundDouble", - "flattened": false - }, - "ApproximateUniqueCount": { - "shape": "InsightRuleUnboundLong", - "flattened": false - }, - "Contributors": {"shape": "InsightRuleContributors", "flattened": false}, - "MetricDatapoints": { - "shape": "InsightRuleMetricDatapoints", - "flattened": false - } - }, - "flattened": false - }, - "GetMetricDataInput": { - "type": "structure", - "members": { - "MetricDataQueries": {"shape": "MetricDataQueries", "flattened": false}, - "StartTime": {"shape": "Timestamp", "flattened": false}, - "EndTime": {"shape": "Timestamp", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "ScanBy": {"shape": "ScanBy", "flattened": false}, - "MaxDatapoints": { - "shape": "GetMetricDataMaxDatapoints", - "flattened": false - }, - "LabelOptions": {"shape": "LabelOptions", "flattened": false} - }, - "flattened": false - }, - "GetMetricDataLabelTimezone": {"type": "string", "flattened": false}, - "GetMetricDataMaxDatapoints": {"type": "integer", "flattened": false}, - "GetMetricDataOutput": { - "type": "structure", - "members": { - "MetricDataResults": {"shape": "MetricDataResults", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "Messages": {"shape": "MetricDataResultMessages", "flattened": false} - }, - "flattened": false - }, - "GetMetricStatisticsInput": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "StartTime": {"shape": "Timestamp", "flattened": false}, - "EndTime": {"shape": "Timestamp", "flattened": false}, - "Period": {"shape": "Period", "flattened": false}, - "Statistics": {"shape": "Statistics", "flattened": false}, - "ExtendedStatistics": {"shape": "ExtendedStatistics", "flattened": false}, - "Unit": {"shape": "StandardUnit", "flattened": false} - }, - "flattened": false - }, - "GetMetricStatisticsOutput": { - "type": "structure", - "members": { - "Label": {"shape": "MetricLabel", "flattened": false}, - "Datapoints": {"shape": "Datapoints", "flattened": false} - }, - "flattened": false - }, - "GetMetricStreamInput": { - "type": "structure", - "members": { - "Name": {"shape": "MetricStreamName", "flattened": false} - }, - "flattened": false - }, - "GetMetricStreamOutput": { - "type": "structure", - "members": { - "Arn": {"shape": "AmazonResourceName", "flattened": false}, - "Name": {"shape": "MetricStreamName", "flattened": false}, - "IncludeFilters": {"shape": "MetricStreamFilters", "flattened": false}, - "ExcludeFilters": {"shape": "MetricStreamFilters", "flattened": false}, - "FirehoseArn": {"shape": "AmazonResourceName", "flattened": false}, - "RoleArn": {"shape": "AmazonResourceName", "flattened": false}, - "State": {"shape": "MetricStreamState", "flattened": false}, - "CreationDate": {"shape": "Timestamp", "flattened": false}, - "LastUpdateDate": {"shape": "Timestamp", "flattened": false}, - "OutputFormat": {"shape": "MetricStreamOutputFormat", "flattened": false}, - "StatisticsConfigurations": { - "shape": "MetricStreamStatisticsConfigurations", - "flattened": false - }, - "IncludeLinkedAccountsMetrics": { - "shape": "IncludeLinkedAccountsMetrics", - "flattened": false - } - }, - "flattened": false - }, - "GetMetricWidgetImageInput": { - "type": "structure", - "members": { - "MetricWidget": {"shape": "MetricWidget", "flattened": false}, - "OutputFormat": {"shape": "OutputFormat", "flattened": false} - }, - "flattened": false - }, - "GetMetricWidgetImageOutput": { - "type": "structure", - "members": { - "MetricWidgetImage": {"shape": "MetricWidgetImage", "flattened": false} - }, - "flattened": false - }, - "HistoryData": {"type": "string", "flattened": false}, - "HistoryItemType": {"type": "string", "flattened": false}, - "HistorySummary": {"type": "string", "flattened": false}, - "IncludeLinkedAccounts": {"type": "boolean", "flattened": false}, - "IncludeLinkedAccountsMetrics": {"type": "boolean", "flattened": false}, - "InsightRule": { - "type": "structure", - "members": { - "Name": {"shape": "InsightRuleName", "flattened": false}, - "State": {"shape": "InsightRuleState", "flattened": false}, - "Schema": {"shape": "InsightRuleSchema", "flattened": false}, - "Definition": {"shape": "InsightRuleDefinition", "flattened": false}, - "ManagedRule": {"shape": "InsightRuleIsManaged", "flattened": false} - }, - "flattened": false - }, - "InsightRuleAggregationStatistic": {"type": "string", "flattened": false}, - "InsightRuleContributor": { - "type": "structure", - "members": { - "Keys": {"shape": "InsightRuleContributorKeys", "flattened": false}, - "ApproximateAggregateValue": { - "shape": "InsightRuleUnboundDouble", - "flattened": false - }, - "Datapoints": { - "shape": "InsightRuleContributorDatapoints", - "flattened": false - } - }, - "flattened": false - }, - "InsightRuleContributorDatapoint": { - "type": "structure", - "members": { - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "ApproximateValue": { - "shape": "InsightRuleUnboundDouble", - "flattened": false - } - }, - "flattened": false - }, - "InsightRuleContributorDatapoints": { - "type": "list", - "member": {"shape": "InsightRuleContributorDatapoint"}, - "flattened": false - }, - "InsightRuleContributorKey": {"type": "string", "flattened": false}, - "InsightRuleContributorKeyLabel": {"type": "string", "flattened": false}, - "InsightRuleContributorKeyLabels": { - "type": "list", - "member": {"shape": "InsightRuleContributorKeyLabel"}, - "flattened": false - }, - "InsightRuleContributorKeys": { - "type": "list", - "member": {"shape": "InsightRuleContributorKey"}, - "flattened": false - }, - "InsightRuleContributors": { - "type": "list", - "member": {"shape": "InsightRuleContributor"}, - "flattened": false - }, - "InsightRuleDefinition": {"type": "string", "flattened": false}, - "InsightRuleIsManaged": {"type": "boolean", "flattened": false}, - "InsightRuleMaxResults": {"type": "integer", "flattened": false}, - "InsightRuleMetricDatapoint": { - "type": "structure", - "members": { - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "UniqueContributors": { - "shape": "InsightRuleUnboundDouble", - "flattened": false - }, - "MaxContributorValue": { - "shape": "InsightRuleUnboundDouble", - "flattened": false - }, - "SampleCount": {"shape": "InsightRuleUnboundDouble", "flattened": false}, - "Average": {"shape": "InsightRuleUnboundDouble", "flattened": false}, - "Sum": {"shape": "InsightRuleUnboundDouble", "flattened": false}, - "Minimum": {"shape": "InsightRuleUnboundDouble", "flattened": false}, - "Maximum": {"shape": "InsightRuleUnboundDouble", "flattened": false} - }, - "flattened": false - }, - "InsightRuleMetricDatapoints": { - "type": "list", - "member": {"shape": "InsightRuleMetricDatapoint"}, - "flattened": false - }, - "InsightRuleMetricList": { - "type": "list", - "member": {"shape": "InsightRuleMetricName"}, - "flattened": false - }, - "InsightRuleMetricName": {"type": "string", "flattened": false}, - "InsightRuleName": {"type": "string", "flattened": false}, - "InsightRuleNames": { - "type": "list", - "member": {"shape": "InsightRuleName"}, - "flattened": false - }, - "InsightRuleOrderBy": {"type": "string", "flattened": false}, - "InsightRuleSchema": {"type": "string", "flattened": false}, - "InsightRuleState": {"type": "string", "flattened": false}, - "InsightRuleUnboundDouble": {"type": "double", "flattened": false}, - "InsightRuleUnboundInteger": {"type": "integer", "flattened": false}, - "InsightRuleUnboundLong": {"type": "long", "flattened": false}, - "InsightRules": { - "type": "list", - "member": {"shape": "InsightRule"}, - "flattened": false - }, - "LabelOptions": { - "type": "structure", - "members": { - "Timezone": {"shape": "GetMetricDataLabelTimezone", "flattened": false} - }, - "flattened": false - }, - "LastModified": {"type": "timestamp", "flattened": false}, - "ListDashboardsInput": { - "type": "structure", - "members": { - "DashboardNamePrefix": { - "shape": "DashboardNamePrefix", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListDashboardsOutput": { - "type": "structure", - "members": { - "DashboardEntries": {"shape": "DashboardEntries", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListManagedInsightRulesInput": { - "type": "structure", - "members": { - "ResourceARN": {"shape": "AmazonResourceName", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "InsightRuleMaxResults", "flattened": false} - }, - "flattened": false - }, - "ListManagedInsightRulesOutput": { - "type": "structure", - "members": { - "ManagedRules": {"shape": "ManagedRuleDescriptions", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListMetricStreamsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "ListMetricStreamsMaxResults", "flattened": false} - }, - "flattened": false - }, - "ListMetricStreamsMaxResults": {"type": "integer", "flattened": false}, - "ListMetricStreamsOutput": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "Entries": {"shape": "MetricStreamEntries", "flattened": false} - }, - "flattened": false - }, - "ListMetricsInput": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "DimensionFilters", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "RecentlyActive": {"shape": "RecentlyActive", "flattened": false}, - "IncludeLinkedAccounts": { - "shape": "IncludeLinkedAccounts", - "flattened": false - }, - "OwningAccount": {"shape": "AccountId", "flattened": false} - }, - "flattened": false - }, - "ListMetricsOutput": { - "type": "structure", - "members": { - "Metrics": {"shape": "Metrics", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "OwningAccounts": {"shape": "OwningAccounts", "flattened": false} - }, - "flattened": false - }, - "ListTagsForResourceInput": { - "type": "structure", - "members": { - "ResourceARN": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "ListTagsForResourceOutput": { - "type": "structure", - "members": { - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ManagedRule": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "ResourceARN": {"shape": "AmazonResourceName", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ManagedRuleDescription": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "ResourceARN": {"shape": "AmazonResourceName", "flattened": false}, - "RuleState": {"shape": "ManagedRuleState", "flattened": false} - }, - "flattened": false - }, - "ManagedRuleDescriptions": { - "type": "list", - "member": {"shape": "ManagedRuleDescription"}, - "flattened": false - }, - "ManagedRuleState": { - "type": "structure", - "members": { - "RuleName": {"shape": "InsightRuleName", "flattened": false}, - "State": {"shape": "InsightRuleState", "flattened": false} - }, - "flattened": false - }, - "ManagedRules": { - "type": "list", - "member": {"shape": "ManagedRule"}, - "flattened": false - }, - "MaxRecords": {"type": "integer", "flattened": false}, - "MaxReturnedResultsCount": {"type": "integer", "flattened": false}, - "Message": {"type": "string", "flattened": false}, - "MessageData": { - "type": "structure", - "members": { - "Code": {"shape": "MessageDataCode", "flattened": false}, - "Value": {"shape": "MessageDataValue", "flattened": false} - }, - "flattened": false - }, - "MessageDataCode": {"type": "string", "flattened": false}, - "MessageDataValue": {"type": "string", "flattened": false}, - "Metric": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false} - }, - "flattened": false - }, - "MetricAlarm": { - "type": "structure", - "members": { - "AlarmName": {"shape": "AlarmName", "flattened": false}, - "AlarmArn": {"shape": "AlarmArn", "flattened": false}, - "AlarmDescription": {"shape": "AlarmDescription", "flattened": false}, - "AlarmConfigurationUpdatedTimestamp": { - "shape": "Timestamp", - "flattened": false - }, - "ActionsEnabled": {"shape": "ActionsEnabled", "flattened": false}, - "OKActions": {"shape": "ResourceList", "flattened": false}, - "AlarmActions": {"shape": "ResourceList", "flattened": false}, - "InsufficientDataActions": {"shape": "ResourceList", "flattened": false}, - "StateValue": {"shape": "StateValue", "flattened": false}, - "StateReason": {"shape": "StateReason", "flattened": false}, - "StateReasonData": {"shape": "StateReasonData", "flattened": false}, - "StateUpdatedTimestamp": {"shape": "Timestamp", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Namespace": {"shape": "Namespace", "flattened": false}, - "Statistic": {"shape": "Statistic", "flattened": false}, - "ExtendedStatistic": {"shape": "ExtendedStatistic", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Period": {"shape": "Period", "flattened": false}, - "Unit": {"shape": "StandardUnit", "flattened": false}, - "EvaluationPeriods": {"shape": "EvaluationPeriods", "flattened": false}, - "DatapointsToAlarm": {"shape": "DatapointsToAlarm", "flattened": false}, - "Threshold": {"shape": "Threshold", "flattened": false}, - "ComparisonOperator": {"shape": "ComparisonOperator", "flattened": false}, - "TreatMissingData": {"shape": "TreatMissingData", "flattened": false}, - "EvaluateLowSampleCountPercentile": { - "shape": "EvaluateLowSampleCountPercentile", - "flattened": false - }, - "Metrics": {"shape": "MetricDataQueries", "flattened": false}, - "ThresholdMetricId": {"shape": "MetricId", "flattened": false}, - "EvaluationState": {"shape": "EvaluationState", "flattened": false}, - "StateTransitionedTimestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "MetricAlarms": { - "type": "list", - "member": {"shape": "MetricAlarm"}, - "flattened": false - }, - "MetricCharacteristics": { - "type": "structure", - "members": { - "PeriodicSpikes": {"shape": "PeriodicSpikes", "flattened": false} - }, - "flattened": false - }, - "MetricData": { - "type": "list", - "member": {"shape": "MetricDatum"}, - "flattened": false - }, - "MetricDataQueries": { - "type": "list", - "member": {"shape": "MetricDataQuery"}, - "flattened": false - }, - "MetricDataQuery": { - "type": "structure", - "members": { - "Id": {"shape": "MetricId", "flattened": false}, - "MetricStat": {"shape": "MetricStat", "flattened": false}, - "Expression": {"shape": "MetricExpression", "flattened": false}, - "Label": {"shape": "MetricLabel", "flattened": false}, - "ReturnData": {"shape": "ReturnData", "flattened": false}, - "Period": {"shape": "Period", "flattened": false}, - "AccountId": {"shape": "AccountId", "flattened": false} - }, - "flattened": false - }, - "MetricDataResult": { - "type": "structure", - "members": { - "Id": {"shape": "MetricId", "flattened": false}, - "Label": {"shape": "MetricLabel", "flattened": false}, - "Timestamps": {"shape": "Timestamps", "flattened": false}, - "Values": {"shape": "DatapointValues", "flattened": false}, - "StatusCode": {"shape": "StatusCode", "flattened": false}, - "Messages": {"shape": "MetricDataResultMessages", "flattened": false} - }, - "flattened": false - }, - "MetricDataResultMessages": { - "type": "list", - "member": {"shape": "MessageData"}, - "flattened": false - }, - "MetricDataResults": { - "type": "list", - "member": {"shape": "MetricDataResult"}, - "flattened": false - }, - "MetricDatum": { - "type": "structure", - "members": { - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "Value": {"shape": "DatapointValue", "flattened": false}, - "StatisticValues": {"shape": "StatisticSet", "flattened": false}, - "Values": {"shape": "Values", "flattened": false}, - "Counts": {"shape": "Counts", "flattened": false}, - "Unit": {"shape": "StandardUnit", "flattened": false}, - "StorageResolution": {"shape": "StorageResolution", "flattened": false} - }, - "flattened": false - }, - "MetricExpression": {"type": "string", "flattened": false}, - "MetricId": {"type": "string", "flattened": false}, - "MetricLabel": {"type": "string", "flattened": false}, - "MetricMathAnomalyDetector": { - "type": "structure", - "members": { - "MetricDataQueries": {"shape": "MetricDataQueries", "flattened": false} - }, - "flattened": false - }, - "MetricName": {"type": "string", "flattened": false}, - "MetricStat": { - "type": "structure", - "members": { - "Metric": {"shape": "Metric", "flattened": false}, - "Period": {"shape": "Period", "flattened": false}, - "Stat": {"shape": "Stat", "flattened": false}, - "Unit": {"shape": "StandardUnit", "flattened": false} - }, - "flattened": false - }, - "MetricStreamEntries": { - "type": "list", - "member": {"shape": "MetricStreamEntry"}, - "flattened": false - }, - "MetricStreamEntry": { - "type": "structure", - "members": { - "Arn": {"shape": "AmazonResourceName", "flattened": false}, - "CreationDate": {"shape": "Timestamp", "flattened": false}, - "LastUpdateDate": {"shape": "Timestamp", "flattened": false}, - "Name": {"shape": "MetricStreamName", "flattened": false}, - "FirehoseArn": {"shape": "AmazonResourceName", "flattened": false}, - "State": {"shape": "MetricStreamState", "flattened": false}, - "OutputFormat": {"shape": "MetricStreamOutputFormat", "flattened": false} - }, - "flattened": false - }, - "MetricStreamFilter": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricNames": { - "shape": "MetricStreamFilterMetricNames", - "flattened": false - } - }, - "flattened": false - }, - "MetricStreamFilterMetricNames": { - "type": "list", - "member": {"shape": "MetricName"}, - "flattened": false - }, - "MetricStreamFilters": { - "type": "list", - "member": {"shape": "MetricStreamFilter"}, - "flattened": false - }, - "MetricStreamName": {"type": "string", "flattened": false}, - "MetricStreamNames": { - "type": "list", - "member": {"shape": "MetricStreamName"}, - "flattened": false - }, - "MetricStreamOutputFormat": {"type": "string", "flattened": false}, - "MetricStreamState": {"type": "string", "flattened": false}, - "MetricStreamStatistic": {"type": "string", "flattened": false}, - "MetricStreamStatisticsAdditionalStatistics": { - "type": "list", - "member": {"shape": "MetricStreamStatistic"}, - "flattened": false - }, - "MetricStreamStatisticsConfiguration": { - "type": "structure", - "members": { - "IncludeMetrics": { - "shape": "MetricStreamStatisticsIncludeMetrics", - "flattened": false - }, - "AdditionalStatistics": { - "shape": "MetricStreamStatisticsAdditionalStatistics", - "flattened": false - } - }, - "flattened": false - }, - "MetricStreamStatisticsConfigurations": { - "type": "list", - "member": {"shape": "MetricStreamStatisticsConfiguration"}, - "flattened": false - }, - "MetricStreamStatisticsIncludeMetrics": { - "type": "list", - "member": {"shape": "MetricStreamStatisticsMetric"}, - "flattened": false - }, - "MetricStreamStatisticsMetric": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false} - }, - "flattened": false - }, - "MetricWidget": {"type": "string", "flattened": false}, - "MetricWidgetImage": {"type": "blob", "flattened": false}, - "Metrics": { - "type": "list", - "member": {"shape": "Metric"}, - "flattened": false - }, - "Namespace": {"type": "string", "flattened": false}, - "NextToken": {"type": "string", "flattened": false}, - "OutputFormat": {"type": "string", "flattened": false}, - "OwningAccounts": { - "type": "list", - "member": {"shape": "AccountId"}, - "flattened": false - }, - "PartialFailure": { - "type": "structure", - "members": { - "FailureResource": {"shape": "FailureResource", "flattened": false}, - "ExceptionType": {"shape": "ExceptionType", "flattened": false}, - "FailureCode": {"shape": "FailureCode", "flattened": false}, - "FailureDescription": {"shape": "FailureDescription", "flattened": false} - }, - "flattened": false - }, - "Period": {"type": "integer", "flattened": false}, - "PeriodicSpikes": {"type": "boolean", "flattened": false}, - "PutAnomalyDetectorInput": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Stat": {"shape": "AnomalyDetectorMetricStat", "flattened": false}, - "Configuration": { - "shape": "AnomalyDetectorConfiguration", - "flattened": false - }, - "MetricCharacteristics": { - "shape": "MetricCharacteristics", - "flattened": false - }, - "SingleMetricAnomalyDetector": { - "shape": "SingleMetricAnomalyDetector", - "flattened": false - }, - "MetricMathAnomalyDetector": { - "shape": "MetricMathAnomalyDetector", - "flattened": false - } - }, - "flattened": false - }, - "PutAnomalyDetectorOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "PutCompositeAlarmInput": { - "type": "structure", - "members": { - "ActionsEnabled": {"shape": "ActionsEnabled", "flattened": false}, - "AlarmActions": {"shape": "ResourceList", "flattened": false}, - "AlarmDescription": {"shape": "AlarmDescription", "flattened": false}, - "AlarmName": {"shape": "AlarmName", "flattened": false}, - "AlarmRule": {"shape": "AlarmRule", "flattened": false}, - "InsufficientDataActions": {"shape": "ResourceList", "flattened": false}, - "OKActions": {"shape": "ResourceList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "ActionsSuppressor": {"shape": "AlarmArn", "flattened": false}, - "ActionsSuppressorWaitPeriod": { - "shape": "SuppressorPeriod", - "flattened": false - }, - "ActionsSuppressorExtensionPeriod": { - "shape": "SuppressorPeriod", - "flattened": false - } - }, - "flattened": false - }, - "PutDashboardInput": { - "type": "structure", - "members": { - "DashboardName": {"shape": "DashboardName", "flattened": false}, - "DashboardBody": {"shape": "DashboardBody", "flattened": false} - }, - "flattened": false - }, - "PutDashboardOutput": { - "type": "structure", - "members": { - "DashboardValidationMessages": { - "shape": "DashboardValidationMessages", - "flattened": false - } - }, - "flattened": false - }, - "PutInsightRuleInput": { - "type": "structure", - "members": { - "RuleName": {"shape": "InsightRuleName", "flattened": false}, - "RuleState": {"shape": "InsightRuleState", "flattened": false}, - "RuleDefinition": {"shape": "InsightRuleDefinition", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "PutInsightRuleOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "PutManagedInsightRulesInput": { - "type": "structure", - "members": { - "ManagedRules": {"shape": "ManagedRules", "flattened": false} - }, - "flattened": false - }, - "PutManagedInsightRulesOutput": { - "type": "structure", - "members": { - "Failures": {"shape": "BatchFailures", "flattened": false} - }, - "flattened": false - }, - "PutMetricAlarmInput": { - "type": "structure", - "members": { - "AlarmName": {"shape": "AlarmName", "flattened": false}, - "AlarmDescription": {"shape": "AlarmDescription", "flattened": false}, - "ActionsEnabled": {"shape": "ActionsEnabled", "flattened": false}, - "OKActions": {"shape": "ResourceList", "flattened": false}, - "AlarmActions": {"shape": "ResourceList", "flattened": false}, - "InsufficientDataActions": {"shape": "ResourceList", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Namespace": {"shape": "Namespace", "flattened": false}, - "Statistic": {"shape": "Statistic", "flattened": false}, - "ExtendedStatistic": {"shape": "ExtendedStatistic", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Period": {"shape": "Period", "flattened": false}, - "Unit": {"shape": "StandardUnit", "flattened": false}, - "EvaluationPeriods": {"shape": "EvaluationPeriods", "flattened": false}, - "DatapointsToAlarm": {"shape": "DatapointsToAlarm", "flattened": false}, - "Threshold": {"shape": "Threshold", "flattened": false}, - "ComparisonOperator": {"shape": "ComparisonOperator", "flattened": false}, - "TreatMissingData": {"shape": "TreatMissingData", "flattened": false}, - "EvaluateLowSampleCountPercentile": { - "shape": "EvaluateLowSampleCountPercentile", - "flattened": false - }, - "Metrics": {"shape": "MetricDataQueries", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "ThresholdMetricId": {"shape": "MetricId", "flattened": false} - }, - "flattened": false - }, - "PutMetricDataInput": { - "type": "structure", - "members": { - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricData": {"shape": "MetricData", "flattened": false} - }, - "flattened": false - }, - "PutMetricStreamInput": { - "type": "structure", - "members": { - "Name": {"shape": "MetricStreamName", "flattened": false}, - "IncludeFilters": {"shape": "MetricStreamFilters", "flattened": false}, - "ExcludeFilters": {"shape": "MetricStreamFilters", "flattened": false}, - "FirehoseArn": {"shape": "AmazonResourceName", "flattened": false}, - "RoleArn": {"shape": "AmazonResourceName", "flattened": false}, - "OutputFormat": {"shape": "MetricStreamOutputFormat", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StatisticsConfigurations": { - "shape": "MetricStreamStatisticsConfigurations", - "flattened": false - }, - "IncludeLinkedAccountsMetrics": { - "shape": "IncludeLinkedAccountsMetrics", - "flattened": false - } - }, - "flattened": false - }, - "PutMetricStreamOutput": { - "type": "structure", - "members": { - "Arn": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "Range": { - "type": "structure", - "members": { - "StartTime": {"shape": "Timestamp", "flattened": false}, - "EndTime": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "RecentlyActive": {"type": "string", "flattened": false}, - "ResourceList": { - "type": "list", - "member": {"shape": "ResourceName"}, - "flattened": false - }, - "ResourceName": {"type": "string", "flattened": false}, - "ReturnData": {"type": "boolean", "flattened": false}, - "ScanBy": {"type": "string", "flattened": false}, - "SetAlarmStateInput": { - "type": "structure", - "members": { - "AlarmName": {"shape": "AlarmName", "flattened": false}, - "StateValue": {"shape": "StateValue", "flattened": false}, - "StateReason": {"shape": "StateReason", "flattened": false}, - "StateReasonData": {"shape": "StateReasonData", "flattened": false} - }, - "flattened": false - }, - "SingleMetricAnomalyDetector": { - "type": "structure", - "members": { - "AccountId": {"shape": "AccountId", "flattened": false}, - "Namespace": {"shape": "Namespace", "flattened": false}, - "MetricName": {"shape": "MetricName", "flattened": false}, - "Dimensions": {"shape": "Dimensions", "flattened": false}, - "Stat": {"shape": "AnomalyDetectorMetricStat", "flattened": false} - }, - "flattened": false - }, - "Size": {"type": "long", "flattened": false}, - "StandardUnit": {"type": "string", "flattened": false}, - "StartMetricStreamsInput": { - "type": "structure", - "members": { - "Names": {"shape": "MetricStreamNames", "flattened": false} - }, - "flattened": false - }, - "StartMetricStreamsOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "Stat": {"type": "string", "flattened": false}, - "StateReason": {"type": "string", "flattened": false}, - "StateReasonData": {"type": "string", "flattened": false}, - "StateValue": {"type": "string", "flattened": false}, - "Statistic": {"type": "string", "flattened": false}, - "StatisticSet": { - "type": "structure", - "members": { - "SampleCount": {"shape": "DatapointValue", "flattened": false}, - "Sum": {"shape": "DatapointValue", "flattened": false}, - "Minimum": {"shape": "DatapointValue", "flattened": false}, - "Maximum": {"shape": "DatapointValue", "flattened": false} - }, - "flattened": false - }, - "Statistics": { - "type": "list", - "member": {"shape": "Statistic"}, - "flattened": false - }, - "StatusCode": {"type": "string", "flattened": false}, - "StopMetricStreamsInput": { - "type": "structure", - "members": { - "Names": {"shape": "MetricStreamNames", "flattened": false} - }, - "flattened": false - }, - "StopMetricStreamsOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "StorageResolution": {"type": "integer", "flattened": false}, - "SuppressorPeriod": {"type": "integer", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false} - }, - "flattened": false - }, - "TagKey": {"type": "string", "flattened": false}, - "TagKeyList": { - "type": "list", - "member": {"shape": "TagKey"}, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TagResourceInput": { - "type": "structure", - "members": { - "ResourceARN": {"shape": "AmazonResourceName", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "TagResourceOutput": {"type": "structure", "members": {}, "flattened": false}, - "TagValue": {"type": "string", "flattened": false}, - "TemplateName": {"type": "string", "flattened": false}, - "Threshold": {"type": "double", "flattened": false}, - "Timestamp": {"type": "timestamp", "flattened": false}, - "Timestamps": { - "type": "list", - "member": {"shape": "Timestamp"}, - "flattened": false - }, - "TreatMissingData": {"type": "string", "flattened": false}, - "UntagResourceInput": { - "type": "structure", - "members": { - "ResourceARN": {"shape": "AmazonResourceName", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false} - }, - "flattened": false - }, - "UntagResourceOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "Values": { - "type": "list", - "member": {"shape": "DatapointValue"}, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/doc_db/v2014_10_31.dart b/aws_client/lib/src/generated/doc_db/v2014_10_31.dart index 5e939e41a..77bdbc232 100644 --- a/aws_client/lib/src/generated/doc_db/v2014_10_31.dart +++ b/aws_client/lib/src/generated/doc_db/v2014_10_31.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2014_10_31.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon DocumentDB is a fast, reliable, and fully managed database service. @@ -27,7 +26,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// use with MongoDB. class DocDB { final _s.QueryProtocol _protocol; - final Map shapes; DocDB({ required String region, @@ -35,7 +33,7 @@ class DocDB { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -45,9 +43,7 @@ class DocDB { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -93,9 +89,10 @@ class DocDB { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -103,8 +100,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -129,9 +124,15 @@ class DocDB { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -139,8 +140,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -184,10 +183,11 @@ class DocDB { required String optInType, required String resourceIdentifier, }) async { - final $request = {}; - $request['ApplyAction'] = applyAction; - $request['OptInType'] = optInType; - $request['ResourceIdentifier'] = resourceIdentifier; + final $request = { + 'ApplyAction': applyAction, + 'OptInType': optInType, + 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'ApplyPendingMaintenanceAction', @@ -195,8 +195,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyPendingMaintenanceActionMessage'], - shapes: shapes, resultWrapper: 'ApplyPendingMaintenanceActionResult', ); return ApplyPendingMaintenanceActionResult.fromXml($result); @@ -262,14 +260,21 @@ class DocDB { required String targetDBClusterParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterParameterGroupIdentifier'] = - sourceDBClusterParameterGroupIdentifier; - $request['TargetDBClusterParameterGroupDescription'] = - targetDBClusterParameterGroupDescription; - $request['TargetDBClusterParameterGroupIdentifier'] = - targetDBClusterParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterParameterGroupIdentifier': + sourceDBClusterParameterGroupIdentifier, + 'TargetDBClusterParameterGroupDescription': + targetDBClusterParameterGroupDescription, + 'TargetDBClusterParameterGroupIdentifier': + targetDBClusterParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterParameterGroup', @@ -277,8 +282,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterParameterGroupResult', ); return CopyDBClusterParameterGroupResult.fromXml($result); @@ -425,15 +428,20 @@ class DocDB { String? preSignedUrl, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterSnapshotIdentifier'] = - sourceDBClusterSnapshotIdentifier; - $request['TargetDBClusterSnapshotIdentifier'] = - targetDBClusterSnapshotIdentifier; - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterSnapshotIdentifier': sourceDBClusterSnapshotIdentifier, + 'TargetDBClusterSnapshotIdentifier': targetDBClusterSnapshotIdentifier, + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterSnapshot', @@ -441,8 +449,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterSnapshotResult', ); return CopyDBClusterSnapshotResult.fromXml($result); @@ -682,34 +688,60 @@ class DocDB { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBCluster', @@ -717,8 +749,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterResult', ); return CreateDBClusterResult.fromXml($result); @@ -776,11 +806,18 @@ class DocDB { required String description, List? tags, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterParameterGroup', @@ -788,8 +825,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterParameterGroupResult', ); return CreateDBClusterParameterGroupResult.fromXml($result); @@ -842,10 +877,17 @@ class DocDB { required String dBClusterSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterSnapshot', @@ -853,8 +895,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterSnapshotResult', ); return CreateDBClusterSnapshotResult.fromXml($result); @@ -995,25 +1035,33 @@ class DocDB { int? promotionTier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -1021,8 +1069,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -1059,11 +1105,22 @@ class DocDB { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -1071,8 +1128,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -1183,14 +1238,31 @@ class DocDB { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -1198,8 +1270,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -1258,15 +1328,18 @@ class DocDB { String? sourceDBClusterIdentifier, bool? storageEncrypted, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateGlobalCluster', @@ -1274,8 +1347,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalClusterResult', ); return CreateGlobalClusterResult.fromXml($result); @@ -1341,11 +1412,13 @@ class DocDB { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBCluster', @@ -1353,8 +1426,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterResult', ); return DeleteDBClusterResult.fromXml($result); @@ -1385,8 +1456,9 @@ class DocDB { Future deleteDBClusterParameterGroup({ required String dBClusterParameterGroupName, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBClusterParameterGroup', @@ -1394,8 +1466,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -1417,8 +1487,9 @@ class DocDB { Future deleteDBClusterSnapshot({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterSnapshot', @@ -1426,8 +1497,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterSnapshotResult', ); return DeleteDBClusterSnapshotResult.fromXml($result); @@ -1455,8 +1524,9 @@ class DocDB { Future deleteDBInstance({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -1464,8 +1534,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -1495,8 +1563,9 @@ class DocDB { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -1504,8 +1573,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -1520,8 +1587,9 @@ class DocDB { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -1529,8 +1597,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -1550,8 +1616,9 @@ class DocDB { Future deleteGlobalCluster({ required String globalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalCluster', @@ -1559,8 +1626,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalClusterResult', ); return DeleteGlobalClusterResult.fromXml($result); @@ -1618,12 +1683,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - certificateIdentifier - ?.also((arg) => $request['CertificateIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (certificateIdentifier != null) + 'CertificateIdentifier': certificateIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCertificates', @@ -1631,8 +1703,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCertificatesMessage'], - shapes: shapes, resultWrapper: 'DescribeCertificatesResult', ); return CertificateMessage.fromXml($result); @@ -1679,12 +1749,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameterGroups', @@ -1692,8 +1769,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParameterGroupsResult', ); return DBClusterParameterGroupsMessage.fromXml($result); @@ -1746,12 +1821,19 @@ class DocDB { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameters', @@ -1759,8 +1841,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParametersResult', ); return DBClusterParameterGroupDetails.fromXml($result); @@ -1786,8 +1866,9 @@ class DocDB { describeDBClusterSnapshotAttributes({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshotAttributes', @@ -1795,8 +1876,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotAttributesResult', ); return DescribeDBClusterSnapshotAttributesResult.fromXml($result); @@ -1913,16 +1992,24 @@ class DocDB { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshots', @@ -1930,8 +2017,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotsResult', ); return DBClusterSnapshotMessage.fromXml($result); @@ -1992,11 +2077,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusters', @@ -2004,8 +2097,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClustersResult', ); return DBClusterMessage.fromXml($result); @@ -2075,19 +2166,26 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - listSupportedTimezones - ?.also((arg) => $request['ListSupportedTimezones'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (listSupportedTimezones != null) + 'ListSupportedTimezones': listSupportedTimezones.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -2095,8 +2193,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -2160,11 +2256,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -2172,8 +2276,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -2211,11 +2313,18 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -2223,8 +2332,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -2261,11 +2368,18 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultClusterParameters', @@ -2273,8 +2387,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultClusterParametersResult', ); return DescribeEngineDefaultClusterParametersResult.fromXml($result); @@ -2295,9 +2407,16 @@ class DocDB { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -2305,8 +2424,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -2350,11 +2467,18 @@ class DocDB { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -2362,8 +2486,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -2460,16 +2582,28 @@ class DocDB { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -2477,8 +2611,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -2521,12 +2653,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalClusters', @@ -2534,8 +2673,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalClustersResult', ); return GlobalClustersMessage.fromXml($result); @@ -2589,15 +2726,22 @@ class DocDB { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -2605,8 +2749,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -2659,11 +2801,18 @@ class DocDB { int? maxRecords, String? resourceIdentifier, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribePendingMaintenanceActions', @@ -2671,8 +2820,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePendingMaintenanceActionsMessage'], - shapes: shapes, resultWrapper: 'DescribePendingMaintenanceActionsResult', ); return PendingMaintenanceActionsMessage.fromXml($result); @@ -2713,10 +2860,12 @@ class DocDB { String? dBClusterIdentifier, String? targetDBInstanceIdentifier, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - targetDBInstanceIdentifier - ?.also((arg) => $request['TargetDBInstanceIdentifier'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (targetDBInstanceIdentifier != null) + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverDBCluster', @@ -2724,8 +2873,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverDBClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverDBClusterResult', ); return FailoverDBClusterResult.fromXml($result); @@ -2747,9 +2894,16 @@ class DocDB { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -2757,8 +2911,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -2961,29 +3113,39 @@ class DocDB { String? storageType, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - newDBClusterIdentifier - ?.also((arg) => $request['NewDBClusterIdentifier'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (newDBClusterIdentifier != null) + 'NewDBClusterIdentifier': newDBClusterIdentifier, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (storageType != null) 'StorageType': storageType, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBCluster', @@ -2991,8 +3153,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterResult', ); return ModifyDBClusterResult.fromXml($result); @@ -3029,9 +3189,15 @@ class DocDB { required String dBClusterParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterParameterGroup', @@ -3039,8 +3205,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -3107,11 +3271,22 @@ class DocDB { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterSnapshotAttribute', @@ -3119,8 +3294,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterSnapshotAttributeResult', ); return ModifyDBClusterSnapshotAttributeResult.fromXml($result); @@ -3288,26 +3461,29 @@ class DocDB { String? preferredMaintenanceWindow, int? promotionTier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - certificateRotationRestart - ?.also((arg) => $request['CertificateRotationRestart'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (certificateRotationRestart != null) + 'CertificateRotationRestart': certificateRotationRestart.toString(), + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -3315,8 +3491,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -3351,11 +3525,16 @@ class DocDB { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -3363,8 +3542,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -3409,12 +3586,18 @@ class DocDB { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -3422,8 +3605,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -3475,11 +3656,13 @@ class DocDB { bool? deletionProtection, String? newGlobalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - newGlobalClusterIdentifier - ?.also((arg) => $request['NewGlobalClusterIdentifier'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (newGlobalClusterIdentifier != null) + 'NewGlobalClusterIdentifier': newGlobalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalCluster', @@ -3487,8 +3670,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalClusterResult', ); return ModifyGlobalClusterResult.fromXml($result); @@ -3527,9 +3708,10 @@ class DocDB { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -3537,8 +3719,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -3566,9 +3746,10 @@ class DocDB { required String dbClusterIdentifier, required String globalClusterIdentifier, }) async { - final $request = {}; - $request['DbClusterIdentifier'] = dbClusterIdentifier; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'DbClusterIdentifier': dbClusterIdentifier, + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RemoveFromGlobalCluster', @@ -3576,8 +3757,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveFromGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'RemoveFromGlobalClusterResult', ); return RemoveFromGlobalClusterResult.fromXml($result); @@ -3601,9 +3780,10 @@ class DocDB { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -3611,8 +3791,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -3634,9 +3812,14 @@ class DocDB { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -3644,8 +3827,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -3681,10 +3862,18 @@ class DocDB { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBClusterParameterGroup', @@ -3692,8 +3881,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -3869,23 +4056,48 @@ class DocDB { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['SnapshotIdentifier'] = snapshotIdentifier; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - port?.also((arg) => $request['Port'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'SnapshotIdentifier': snapshotIdentifier, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (port != null) 'Port': port.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromSnapshot', @@ -3893,8 +4105,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromSnapshotResult', ); return RestoreDBClusterFromSnapshotResult.fromXml($result); @@ -4094,23 +4304,42 @@ class DocDB { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['SourceDBClusterIdentifier'] = sourceDBClusterIdentifier; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - port?.also((arg) => $request['Port'] = arg); - restoreToTime - ?.also((arg) => $request['RestoreToTime'] = _s.iso8601ToJson(arg)); - restoreType?.also((arg) => $request['RestoreType'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (port != null) 'Port': port.toString(), + if (restoreToTime != null) + 'RestoreToTime': _s.iso8601ToJson(restoreToTime), + if (restoreType != null) 'RestoreType': restoreType, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterToPointInTime', @@ -4118,8 +4347,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterToPointInTimeResult', ); return RestoreDBClusterToPointInTimeResult.fromXml($result); @@ -4140,8 +4367,9 @@ class DocDB { Future startDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBCluster', @@ -4149,8 +4377,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBClusterMessage'], - shapes: shapes, resultWrapper: 'StartDBClusterResult', ); return StartDBClusterResult.fromXml($result); @@ -4172,8 +4398,9 @@ class DocDB { Future stopDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBCluster', @@ -4181,8 +4408,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBClusterMessage'], - shapes: shapes, resultWrapper: 'StopDBClusterResult', ); return StopDBClusterResult.fromXml($result); @@ -4236,9 +4461,10 @@ class DocDB { required String globalClusterIdentifier, required String targetDbClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'SwitchoverGlobalCluster', @@ -4246,8 +4472,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'SwitchoverGlobalClusterResult', ); return SwitchoverGlobalClusterResult.fromXml($result); @@ -4515,6 +4739,25 @@ class CloudwatchLogsExportConfiguration { if (enableLogTypes != null) 'EnableLogTypes': enableLogTypes, }; } + + Map toQueryMap() { + final disableLogTypes = this.disableLogTypes; + final enableLogTypes = this.enableLogTypes; + return { + if (disableLogTypes != null) + if (disableLogTypes.isEmpty) + 'DisableLogTypes': '' + else + for (var i1 = 0; i1 < disableLogTypes.length; i1++) + 'DisableLogTypes.member.${i1 + 1}': disableLogTypes[i1], + if (enableLogTypes != null) + if (enableLogTypes.isEmpty) + 'EnableLogTypes': '' + else + for (var i1 = 0; i1 < enableLogTypes.length; i1++) + 'EnableLogTypes.member.${i1 + 1}': enableLogTypes[i1], + }; + } } class CopyDBClusterParameterGroupResult { @@ -6805,6 +7048,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } /// A data type representing an Amazon DocumentDB global cluster. @@ -7302,6 +7558,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } /// A list of the log types whose configuration is still pending. These log @@ -7907,6 +8189,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Represents the output of ListTagsForResource. diff --git a/aws_client/lib/src/generated/doc_db/v2014_10_31.meta.dart b/aws_client/lib/src/generated/doc_db/v2014_10_31.meta.dart deleted file mode 100644 index 8ace51a8a..000000000 --- a/aws_client/lib/src/generated/doc_db/v2014_10_31.meta.dart +++ /dev/null @@ -1,1755 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AddSourceIdentifierToSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ApplyMethod": {"type": "string", "flattened": false}, - "ApplyPendingMaintenanceActionMessage": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "ApplyAction": {"shape": "String", "flattened": false}, - "OptInType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ApplyPendingMaintenanceActionResult": { - "type": "structure", - "members": { - "ResourcePendingMaintenanceActions": { - "shape": "ResourcePendingMaintenanceActions", - "flattened": false - } - }, - "flattened": false - }, - "AttributeValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "AttributeValue"}, - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "AvailabilityZones": { - "type": "list", - "member": {"shape": "String", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CACertificateIdentifiersList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "Certificate": { - "type": "structure", - "members": { - "CertificateIdentifier": {"shape": "String", "flattened": false}, - "CertificateType": {"shape": "String", "flattened": false}, - "Thumbprint": {"shape": "String", "flattened": false}, - "ValidFrom": {"shape": "TStamp", "flattened": false}, - "ValidTill": {"shape": "TStamp", "flattened": false}, - "CertificateArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CertificateDetails": { - "type": "structure", - "members": { - "CAIdentifier": {"shape": "String", "flattened": false}, - "ValidTill": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "CertificateList": { - "type": "list", - "member": {"shape": "Certificate", "locationName": "Certificate"}, - "flattened": false - }, - "CertificateMessage": { - "type": "structure", - "members": { - "Certificates": {"shape": "CertificateList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CloudwatchLogsExportConfiguration": { - "type": "structure", - "members": { - "EnableLogTypes": {"shape": "LogTypeList", "flattened": false}, - "DisableLogTypes": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "SourceDBClusterParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterParameterGroupDescription": { - "shape": "String", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterParameterGroupResult": { - "type": "structure", - "members": { - "DBClusterParameterGroup": { - "shape": "DBClusterParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CopyDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBClusterSnapshotIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterSnapshotIdentifier": { - "shape": "String", - "flattened": false - }, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "CopyTags": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterMessage": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterParameterGroupResult": { - "type": "structure", - "members": { - "DBClusterParameterGroup": { - "shape": "DBClusterParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CreateDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "SourceDBClusterIdentifier": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "DBCluster": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterParameterGroup": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "String", "flattened": false}, - "EarliestRestorableTime": {"shape": "TStamp", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false}, - "ReaderEndpoint": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "ReplicationSourceIdentifier": {"shape": "String", "flattened": false}, - "ReadReplicaIdentifiers": { - "shape": "ReadReplicaIdentifierList", - "flattened": false - }, - "DBClusterMembers": {"shape": "DBClusterMemberList", "flattened": false}, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "HostedZoneId": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DbClusterResourceId": {"shape": "String", "flattened": false}, - "DBClusterArn": {"shape": "String", "flattened": false}, - "AssociatedRoles": {"shape": "DBClusterRoles", "flattened": false}, - "CloneGroupId": {"shape": "String", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "EnabledCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "Boolean", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterList": { - "type": "list", - "member": {"shape": "DBCluster", "locationName": "DBCluster"}, - "flattened": false - }, - "DBClusterMember": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "IsClusterWriter": {"shape": "Boolean", "flattened": false}, - "DBClusterParameterGroupStatus": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DBClusterMemberList": { - "type": "list", - "member": {"shape": "DBClusterMember", "locationName": "DBClusterMember"}, - "flattened": false - }, - "DBClusterMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusters": {"shape": "DBClusterList", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroup": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "DBClusterParameterGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupList": { - "type": "list", - "member": { - "shape": "DBClusterParameterGroup", - "locationName": "DBClusterParameterGroup" - }, - "flattened": false - }, - "DBClusterParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterParameterGroups": { - "shape": "DBClusterParameterGroupList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterRole": { - "type": "structure", - "members": { - "RoleArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterRoles": { - "type": "list", - "member": {"shape": "DBClusterRole", "locationName": "DBClusterRole"}, - "flattened": false - }, - "DBClusterSnapshot": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "Integer", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DBClusterSnapshotArn": {"shape": "String", "flattened": false}, - "SourceDBClusterSnapshotArn": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterSnapshotAttribute": { - "type": "structure", - "members": { - "AttributeName": {"shape": "String", "flattened": false}, - "AttributeValues": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "DBClusterSnapshotAttributeList": { - "type": "list", - "member": { - "shape": "DBClusterSnapshotAttribute", - "locationName": "DBClusterSnapshotAttribute" - }, - "flattened": false - }, - "DBClusterSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterSnapshotAttributes": { - "shape": "DBClusterSnapshotAttributeList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterSnapshotList": { - "type": "list", - "member": { - "shape": "DBClusterSnapshot", - "locationName": "DBClusterSnapshot" - }, - "flattened": false - }, - "DBClusterSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterSnapshots": { - "shape": "DBClusterSnapshotList", - "flattened": false - } - }, - "flattened": false - }, - "DBEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "DBEngineDescription": {"shape": "String", "flattened": false}, - "DBEngineVersionDescription": {"shape": "String", "flattened": false}, - "ValidUpgradeTarget": { - "shape": "ValidUpgradeTargetList", - "flattened": false - }, - "ExportableLogTypes": {"shape": "LogTypeList", "flattened": false}, - "SupportsLogExportsToCloudwatchLogs": { - "shape": "Boolean", - "flattened": false - }, - "SupportedCACertificateIdentifiers": { - "shape": "CACertificateIdentifiersList", - "flattened": false - }, - "SupportsCertificateRotationWithoutRestart": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "DBEngineVersionList": { - "type": "list", - "member": {"shape": "DBEngineVersion", "locationName": "DBEngineVersion"}, - "flattened": false - }, - "DBEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBEngineVersions": {"shape": "DBEngineVersionList", "flattened": false} - }, - "flattened": false - }, - "DBInstance": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DBInstanceStatus": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "Integer", "flattened": false}, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false}, - "StatusInfos": {"shape": "DBInstanceStatusInfoList", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceArn": {"shape": "String", "flattened": false}, - "EnabledCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "CertificateDetails": {"shape": "CertificateDetails", "flattened": false}, - "PerformanceInsightsEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceList": { - "type": "list", - "member": {"shape": "DBInstance", "locationName": "DBInstance"}, - "flattened": false - }, - "DBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstances": {"shape": "DBInstanceList", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfo": { - "type": "structure", - "members": { - "StatusType": {"shape": "String", "flattened": false}, - "Normal": {"shape": "Boolean", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfoList": { - "type": "list", - "member": { - "shape": "DBInstanceStatusInfo", - "locationName": "DBInstanceStatusInfo" - }, - "flattened": false - }, - "DBSubnetGroup": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false}, - "DBSubnetGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSubnetGroups": {"shape": "DBSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroups": { - "type": "list", - "member": {"shape": "DBSubnetGroup", "locationName": "DBSubnetGroup"}, - "flattened": false - }, - "DeleteDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "DeleteGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - } - }, - "flattened": false - }, - "DeleteGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "DescribeCertificatesMessage": { - "type": "structure", - "members": { - "CertificateIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterParametersMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterSnapshotAttributesMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBClusterSnapshotAttributesResult": { - "shape": "DBClusterSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBClusterSnapshotsMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "IncludeShared": {"shape": "Boolean", "flattened": false}, - "IncludePublic": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClustersMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false}, - "ListSupportedCharacterSets": { - "shape": "BooleanOptional", - "flattened": false - }, - "ListSupportedTimezones": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeDBInstancesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSubnetGroupsMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultClusterParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultClusterParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeGlobalClustersMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Vpc": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribePendingMaintenanceActionsMessage": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "HostedZoneId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false}, - "SourceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Enabled": {"shape": "Boolean", "flattened": false}, - "EventSubscriptionArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "FailoverDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "FailoverDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "Filter": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Values": {"shape": "FilterValueList", "flattened": false} - }, - "flattened": false - }, - "FilterList": { - "type": "list", - "member": {"shape": "Filter", "locationName": "Filter"}, - "flattened": false - }, - "FilterValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "Value"}, - "flattened": false - }, - "GlobalCluster": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "GlobalClusterResourceId": {"shape": "String", "flattened": false}, - "GlobalClusterArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "GlobalClusterMembers": { - "shape": "GlobalClusterMemberList", - "flattened": false - } - }, - "flattened": false - }, - "GlobalClusterIdentifier": {"type": "string", "flattened": false}, - "GlobalClusterList": { - "type": "list", - "member": {"shape": "GlobalCluster", "locationName": "GlobalClusterMember"}, - "flattened": false - }, - "GlobalClusterMember": { - "type": "structure", - "members": { - "DBClusterArn": {"shape": "String", "flattened": false}, - "Readers": {"shape": "ReadersArnList", "flattened": false}, - "IsWriter": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "GlobalClusterMemberList": { - "type": "list", - "member": { - "shape": "GlobalClusterMember", - "locationName": "GlobalClusterMember" - }, - "flattened": false - }, - "GlobalClustersMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "GlobalClusters": {"shape": "GlobalClusterList", "flattened": false} - }, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "LogTypeList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ModifyDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "NewDBClusterIdentifier": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "CloudwatchLogsExportConfiguration": { - "shape": "CloudwatchLogsExportConfiguration", - "flattened": false - }, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterSnapshotAttributeMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "AttributeName": {"shape": "String", "flattened": false}, - "ValuesToAdd": {"shape": "AttributeValueList", "flattened": false}, - "ValuesToRemove": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterSnapshotAttributeResult": { - "type": "structure", - "members": { - "DBClusterSnapshotAttributesResult": { - "shape": "DBClusterSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "ModifyDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "NewDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "CertificateRotationRestart": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "ModifyDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "NewGlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOption": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZones": { - "shape": "AvailabilityZoneList", - "flattened": false - }, - "Vpc": {"shape": "Boolean", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOptionsList": { - "type": "list", - "member": { - "shape": "OrderableDBInstanceOption", - "locationName": "OrderableDBInstanceOption" - }, - "flattened": false - }, - "OrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "OrderableDBInstanceOptions": { - "shape": "OrderableDBInstanceOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ApplyMethod": {"shape": "ApplyMethod", "flattened": false} - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PendingCloudwatchLogsExports": { - "type": "structure", - "members": { - "LogTypesToEnable": {"shape": "LogTypeList", "flattened": false}, - "LogTypesToDisable": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "PendingMaintenanceAction": { - "type": "structure", - "members": { - "Action": {"shape": "String", "flattened": false}, - "AutoAppliedAfterDate": {"shape": "TStamp", "flattened": false}, - "ForcedApplyDate": {"shape": "TStamp", "flattened": false}, - "OptInStatus": {"shape": "String", "flattened": false}, - "CurrentApplyDate": {"shape": "TStamp", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PendingMaintenanceActionDetails": { - "type": "list", - "member": { - "shape": "PendingMaintenanceAction", - "locationName": "PendingMaintenanceAction" - }, - "flattened": false - }, - "PendingMaintenanceActions": { - "type": "list", - "member": { - "shape": "ResourcePendingMaintenanceActions", - "locationName": "ResourcePendingMaintenanceActions" - }, - "flattened": false - }, - "PendingMaintenanceActionsMessage": { - "type": "structure", - "members": { - "PendingMaintenanceActions": { - "shape": "PendingMaintenanceActions", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PendingCloudwatchLogsExports": { - "shape": "PendingCloudwatchLogsExports", - "flattened": false - } - }, - "flattened": false - }, - "ReadReplicaIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "ReadReplicaIdentifier"}, - "flattened": false - }, - "ReadersArnList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "RebootDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "ForceFailover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RemoveFromGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "DbClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveFromGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ResetDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ResourcePendingMaintenanceActions": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "PendingMaintenanceActionDetails": { - "shape": "PendingMaintenanceActionDetails", - "flattened": false - } - }, - "flattened": false - }, - "RestoreDBClusterFromSnapshotMessage": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterFromSnapshotResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterToPointInTimeMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RestoreType": {"shape": "String", "flattened": false}, - "SourceDBClusterIdentifier": {"shape": "String", "flattened": false}, - "RestoreToTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterToPointInTimeResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "StartDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StartDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "StopDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StopDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SwitchoverGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "TargetDbClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SwitchoverGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "UpgradeTarget": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "AutoUpgrade": {"shape": "Boolean", "flattened": false}, - "IsMajorVersionUpgrade": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ValidUpgradeTargetList": { - "type": "list", - "member": {"shape": "UpgradeTarget", "locationName": "UpgradeTarget"}, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroupMembership" - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart b/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart index 50362bda6..bb72df2e9 100644 --- a/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart +++ b/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart @@ -17,14 +17,12 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2015_02_02.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon ElastiCache is a web service that makes it easier to set up, operate, /// and scale a distributed cache in the cloud. class ElastiCache { final _s.QueryProtocol _protocol; - final Map shapes; ElastiCache({ required String region, @@ -32,7 +30,7 @@ class ElastiCache { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticache', @@ -41,9 +39,7 @@ class ElastiCache { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -109,9 +105,15 @@ class ElastiCache { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'AddTagsToResource', @@ -119,8 +121,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, resultWrapper: 'AddTagsToResourceResult', ); return TagListMessage.fromXml($result); @@ -157,10 +157,11 @@ class ElastiCache { required String eC2SecurityGroupName, required String eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; - $request['EC2SecurityGroupName'] = eC2SecurityGroupName; - $request['EC2SecurityGroupOwnerId'] = eC2SecurityGroupOwnerId; + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + 'EC2SecurityGroupName': eC2SecurityGroupName, + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeCacheSecurityGroupIngress', @@ -168,8 +169,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeCacheSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeCacheSecurityGroupIngressResult', ); return AuthorizeCacheSecurityGroupIngressResult.fromXml($result); @@ -196,10 +195,21 @@ class ElastiCache { List? cacheClusterIds, List? replicationGroupIds, }) async { - final $request = {}; - $request['ServiceUpdateName'] = serviceUpdateName; - cacheClusterIds?.also((arg) => $request['CacheClusterIds'] = arg); - replicationGroupIds?.also((arg) => $request['ReplicationGroupIds'] = arg); + final $request = { + 'ServiceUpdateName': serviceUpdateName, + if (cacheClusterIds != null) + if (cacheClusterIds.isEmpty) + 'CacheClusterIds': '' + else + for (var i1 = 0; i1 < cacheClusterIds.length; i1++) + 'CacheClusterIds.member.${i1 + 1}': cacheClusterIds[i1], + if (replicationGroupIds != null) + if (replicationGroupIds.isEmpty) + 'ReplicationGroupIds': '' + else + for (var i1 = 0; i1 < replicationGroupIds.length; i1++) + 'ReplicationGroupIds.member.${i1 + 1}': replicationGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'BatchApplyUpdateAction', @@ -207,8 +217,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchApplyUpdateActionMessage'], - shapes: shapes, resultWrapper: 'BatchApplyUpdateActionResult', ); return UpdateActionResultsMessage.fromXml($result); @@ -235,10 +243,21 @@ class ElastiCache { List? cacheClusterIds, List? replicationGroupIds, }) async { - final $request = {}; - $request['ServiceUpdateName'] = serviceUpdateName; - cacheClusterIds?.also((arg) => $request['CacheClusterIds'] = arg); - replicationGroupIds?.also((arg) => $request['ReplicationGroupIds'] = arg); + final $request = { + 'ServiceUpdateName': serviceUpdateName, + if (cacheClusterIds != null) + if (cacheClusterIds.isEmpty) + 'CacheClusterIds': '' + else + for (var i1 = 0; i1 < cacheClusterIds.length; i1++) + 'CacheClusterIds.member.${i1 + 1}': cacheClusterIds[i1], + if (replicationGroupIds != null) + if (replicationGroupIds.isEmpty) + 'ReplicationGroupIds': '' + else + for (var i1 = 0; i1 < replicationGroupIds.length; i1++) + 'ReplicationGroupIds.member.${i1 + 1}': replicationGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'BatchStopUpdateAction', @@ -246,8 +265,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchStopUpdateActionMessage'], - shapes: shapes, resultWrapper: 'BatchStopUpdateActionResult', ); return UpdateActionResultsMessage.fromXml($result); @@ -270,9 +287,10 @@ class ElastiCache { required String replicationGroupId, bool? force, }) async { - final $request = {}; - $request['ReplicationGroupId'] = replicationGroupId; - force?.also((arg) => $request['Force'] = arg); + final $request = { + 'ReplicationGroupId': replicationGroupId, + if (force != null) 'Force': force.toString(), + }; final $result = await _protocol.send( $request, action: 'CompleteMigration', @@ -280,8 +298,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CompleteMigrationMessage'], - shapes: shapes, resultWrapper: 'CompleteMigrationResult', ); return CompleteMigrationResponse.fromXml($result); @@ -319,13 +335,18 @@ class ElastiCache { String? kmsKeyId, List? tags, }) async { - final $request = {}; - $request['SourceServerlessCacheSnapshotName'] = - sourceServerlessCacheSnapshotName; - $request['TargetServerlessCacheSnapshotName'] = - targetServerlessCacheSnapshotName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceServerlessCacheSnapshotName': sourceServerlessCacheSnapshotName, + 'TargetServerlessCacheSnapshotName': targetServerlessCacheSnapshotName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyServerlessCacheSnapshot', @@ -333,8 +354,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'CopyServerlessCacheSnapshotResult', ); return CopyServerlessCacheSnapshotResponse.fromXml($result); @@ -475,12 +494,19 @@ class ElastiCache { List? tags, String? targetBucket, }) async { - final $request = {}; - $request['SourceSnapshotName'] = sourceSnapshotName; - $request['TargetSnapshotName'] = targetSnapshotName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetBucket?.also((arg) => $request['TargetBucket'] = arg); + final $request = { + 'SourceSnapshotName': sourceSnapshotName, + 'TargetSnapshotName': targetSnapshotName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetBucket != null) 'TargetBucket': targetBucket, + }; final $result = await _protocol.send( $request, action: 'CopySnapshot', @@ -488,8 +514,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopySnapshotMessage'], - shapes: shapes, resultWrapper: 'CopySnapshotResult', ); return CopySnapshotResult.fromXml($result); @@ -941,46 +965,88 @@ class ElastiCache { List? tags, bool? transitEncryptionEnabled, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - aZMode?.also((arg) => $request['AZMode'] = arg.toValue()); - authToken?.also((arg) => $request['AuthToken'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - cacheSubnetGroupName?.also((arg) => $request['CacheSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg.toValue()); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - numCacheNodes?.also((arg) => $request['NumCacheNodes'] = arg); - outpostMode?.also((arg) => $request['OutpostMode'] = arg.toValue()); - port?.also((arg) => $request['Port'] = arg); - preferredAvailabilityZone - ?.also((arg) => $request['PreferredAvailabilityZone'] = arg); - preferredAvailabilityZones - ?.also((arg) => $request['PreferredAvailabilityZones'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - preferredOutpostArn?.also((arg) => $request['PreferredOutpostArn'] = arg); - preferredOutpostArns?.also((arg) => $request['PreferredOutpostArns'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotArns?.also((arg) => $request['SnapshotArns'] = arg); - snapshotName?.also((arg) => $request['SnapshotName'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - transitEncryptionEnabled - ?.also((arg) => $request['TransitEncryptionEnabled'] = arg); + final $request = { + 'CacheClusterId': cacheClusterId, + if (aZMode != null) 'AZMode': aZMode.toValue(), + if (authToken != null) 'AuthToken': authToken, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (cacheSubnetGroupName != null) + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (networkType != null) 'NetworkType': networkType.toValue(), + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (numCacheNodes != null) 'NumCacheNodes': numCacheNodes.toString(), + if (outpostMode != null) 'OutpostMode': outpostMode.toValue(), + if (port != null) 'Port': port.toString(), + if (preferredAvailabilityZone != null) + 'PreferredAvailabilityZone': preferredAvailabilityZone, + if (preferredAvailabilityZones != null) + if (preferredAvailabilityZones.isEmpty) + 'PreferredAvailabilityZones': '' + else + for (var i1 = 0; i1 < preferredAvailabilityZones.length; i1++) + 'PreferredAvailabilityZones.PreferredAvailabilityZone.${i1 + 1}': + preferredAvailabilityZones[i1], + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (preferredOutpostArn != null) + 'PreferredOutpostArn': preferredOutpostArn, + if (preferredOutpostArns != null) + if (preferredOutpostArns.isEmpty) + 'PreferredOutpostArns': '' + else + for (var i1 = 0; i1 < preferredOutpostArns.length; i1++) + 'PreferredOutpostArns.PreferredOutpostArn.${i1 + 1}': + preferredOutpostArns[i1], + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotArns != null) + if (snapshotArns.isEmpty) + 'SnapshotArns': '' + else + for (var i1 = 0; i1 < snapshotArns.length; i1++) + 'SnapshotArns.SnapshotArn.${i1 + 1}': snapshotArns[i1], + if (snapshotName != null) 'SnapshotName': snapshotName, + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (transitEncryptionEnabled != null) + 'TransitEncryptionEnabled': transitEncryptionEnabled.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateCacheCluster', @@ -988,8 +1054,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheClusterMessage'], - shapes: shapes, resultWrapper: 'CreateCacheClusterResult', ); return CreateCacheClusterResult.fromXml($result); @@ -1049,11 +1113,18 @@ class ElastiCache { required String description, List? tags, }) async { - final $request = {}; - $request['CacheParameterGroupFamily'] = cacheParameterGroupFamily; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CacheParameterGroupFamily': cacheParameterGroupFamily, + 'CacheParameterGroupName': cacheParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateCacheParameterGroup', @@ -1061,8 +1132,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateCacheParameterGroupResult', ); return CreateCacheParameterGroupResult.fromXml($result); @@ -1103,10 +1172,17 @@ class ElastiCache { required String description, List? tags, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateCacheSecurityGroup', @@ -1114,8 +1190,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateCacheSecurityGroupResult', ); return CreateCacheSecurityGroupResult.fromXml($result); @@ -1157,11 +1231,22 @@ class ElastiCache { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['CacheSubnetGroupDescription'] = cacheSubnetGroupDescription; - $request['CacheSubnetGroupName'] = cacheSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CacheSubnetGroupDescription': cacheSubnetGroupDescription, + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateCacheSubnetGroup', @@ -1169,8 +1254,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateCacheSubnetGroupResult', ); return CreateCacheSubnetGroupResult.fromXml($result); @@ -1227,11 +1310,12 @@ class ElastiCache { required String primaryReplicationGroupId, String? globalReplicationGroupDescription, }) async { - final $request = {}; - $request['GlobalReplicationGroupIdSuffix'] = globalReplicationGroupIdSuffix; - $request['PrimaryReplicationGroupId'] = primaryReplicationGroupId; - globalReplicationGroupDescription - ?.also((arg) => $request['GlobalReplicationGroupDescription'] = arg); + final $request = { + 'GlobalReplicationGroupIdSuffix': globalReplicationGroupIdSuffix, + 'PrimaryReplicationGroupId': primaryReplicationGroupId, + if (globalReplicationGroupDescription != null) + 'GlobalReplicationGroupDescription': globalReplicationGroupDescription, + }; final $result = await _protocol.send( $request, action: 'CreateGlobalReplicationGroup', @@ -1239,8 +1323,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalReplicationGroupResult', ); return CreateGlobalReplicationGroupResult.fromXml($result); @@ -1876,60 +1958,109 @@ class ElastiCache { TransitEncryptionMode? transitEncryptionMode, List? userGroupIds, }) async { - final $request = {}; - $request['ReplicationGroupDescription'] = replicationGroupDescription; - $request['ReplicationGroupId'] = replicationGroupId; - atRestEncryptionEnabled - ?.also((arg) => $request['AtRestEncryptionEnabled'] = arg); - authToken?.also((arg) => $request['AuthToken'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - automaticFailoverEnabled - ?.also((arg) => $request['AutomaticFailoverEnabled'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - cacheSubnetGroupName?.also((arg) => $request['CacheSubnetGroupName'] = arg); - clusterMode?.also((arg) => $request['ClusterMode'] = arg.toValue()); - dataTieringEnabled?.also((arg) => $request['DataTieringEnabled'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalReplicationGroupId - ?.also((arg) => $request['GlobalReplicationGroupId'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - multiAZEnabled?.also((arg) => $request['MultiAZEnabled'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg.toValue()); - nodeGroupConfiguration - ?.also((arg) => $request['NodeGroupConfiguration'] = arg); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - numCacheClusters?.also((arg) => $request['NumCacheClusters'] = arg); - numNodeGroups?.also((arg) => $request['NumNodeGroups'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredCacheClusterAZs - ?.also((arg) => $request['PreferredCacheClusterAZs'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - primaryClusterId?.also((arg) => $request['PrimaryClusterId'] = arg); - replicasPerNodeGroup?.also((arg) => $request['ReplicasPerNodeGroup'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - serverlessCacheSnapshotName - ?.also((arg) => $request['ServerlessCacheSnapshotName'] = arg); - snapshotArns?.also((arg) => $request['SnapshotArns'] = arg); - snapshotName?.also((arg) => $request['SnapshotName'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - transitEncryptionEnabled - ?.also((arg) => $request['TransitEncryptionEnabled'] = arg); - transitEncryptionMode - ?.also((arg) => $request['TransitEncryptionMode'] = arg.toValue()); - userGroupIds?.also((arg) => $request['UserGroupIds'] = arg); + final $request = { + 'ReplicationGroupDescription': replicationGroupDescription, + 'ReplicationGroupId': replicationGroupId, + if (atRestEncryptionEnabled != null) + 'AtRestEncryptionEnabled': atRestEncryptionEnabled.toString(), + if (authToken != null) 'AuthToken': authToken, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (automaticFailoverEnabled != null) + 'AutomaticFailoverEnabled': automaticFailoverEnabled.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (cacheSubnetGroupName != null) + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (clusterMode != null) 'ClusterMode': clusterMode.toValue(), + if (dataTieringEnabled != null) + 'DataTieringEnabled': dataTieringEnabled.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalReplicationGroupId != null) + 'GlobalReplicationGroupId': globalReplicationGroupId, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (multiAZEnabled != null) 'MultiAZEnabled': multiAZEnabled.toString(), + if (networkType != null) 'NetworkType': networkType.toValue(), + if (nodeGroupConfiguration != null) + if (nodeGroupConfiguration.isEmpty) + 'NodeGroupConfiguration': '' + else + for (var i1 = 0; i1 < nodeGroupConfiguration.length; i1++) + for (var e3 in nodeGroupConfiguration[i1].toQueryMap().entries) + 'NodeGroupConfiguration.NodeGroupConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (numCacheClusters != null) + 'NumCacheClusters': numCacheClusters.toString(), + if (numNodeGroups != null) 'NumNodeGroups': numNodeGroups.toString(), + if (port != null) 'Port': port.toString(), + if (preferredCacheClusterAZs != null) + if (preferredCacheClusterAZs.isEmpty) + 'PreferredCacheClusterAZs': '' + else + for (var i1 = 0; i1 < preferredCacheClusterAZs.length; i1++) + 'PreferredCacheClusterAZs.AvailabilityZone.${i1 + 1}': + preferredCacheClusterAZs[i1], + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (primaryClusterId != null) 'PrimaryClusterId': primaryClusterId, + if (replicasPerNodeGroup != null) + 'ReplicasPerNodeGroup': replicasPerNodeGroup.toString(), + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (serverlessCacheSnapshotName != null) + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + if (snapshotArns != null) + if (snapshotArns.isEmpty) + 'SnapshotArns': '' + else + for (var i1 = 0; i1 < snapshotArns.length; i1++) + 'SnapshotArns.SnapshotArn.${i1 + 1}': snapshotArns[i1], + if (snapshotName != null) 'SnapshotName': snapshotName, + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (transitEncryptionEnabled != null) + 'TransitEncryptionEnabled': transitEncryptionEnabled.toString(), + if (transitEncryptionMode != null) + 'TransitEncryptionMode': transitEncryptionMode.toValue(), + if (userGroupIds != null) + if (userGroupIds.isEmpty) + 'UserGroupIds': '' + else + for (var i1 = 0; i1 < userGroupIds.length; i1++) + 'UserGroupIds.member.${i1 + 1}': userGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateReplicationGroup', @@ -1937,8 +2068,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'CreateReplicationGroupResult', ); return CreateReplicationGroupResult.fromXml($result); @@ -2031,22 +2160,46 @@ class ElastiCache { List? tags, String? userGroupId, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['ServerlessCacheName'] = serverlessCacheName; - cacheUsageLimits?.also((arg) => $request['CacheUsageLimits'] = arg); - dailySnapshotTime?.also((arg) => $request['DailySnapshotTime'] = arg); - description?.also((arg) => $request['Description'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotArnsToRestore - ?.also((arg) => $request['SnapshotArnsToRestore'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - subnetIds?.also((arg) => $request['SubnetIds'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - userGroupId?.also((arg) => $request['UserGroupId'] = arg); + final $request = { + 'Engine': engine, + 'ServerlessCacheName': serverlessCacheName, + if (cacheUsageLimits != null) + for (var e1 in cacheUsageLimits.toQueryMap().entries) + 'CacheUsageLimits.${e1.key}': e1.value, + if (dailySnapshotTime != null) 'DailySnapshotTime': dailySnapshotTime, + if (description != null) 'Description': description, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotArnsToRestore != null) + if (snapshotArnsToRestore.isEmpty) + 'SnapshotArnsToRestore': '' + else + for (var i1 = 0; i1 < snapshotArnsToRestore.length; i1++) + 'SnapshotArnsToRestore.SnapshotArn.${i1 + 1}': + snapshotArnsToRestore[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (subnetIds != null) + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetId.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (userGroupId != null) 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'CreateServerlessCache', @@ -2054,8 +2207,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServerlessCacheRequest'], - shapes: shapes, resultWrapper: 'CreateServerlessCacheResult', ); return CreateServerlessCacheResponse.fromXml($result); @@ -2094,11 +2245,18 @@ class ElastiCache { String? kmsKeyId, List? tags, }) async { - final $request = {}; - $request['ServerlessCacheName'] = serverlessCacheName; - $request['ServerlessCacheSnapshotName'] = serverlessCacheSnapshotName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ServerlessCacheName': serverlessCacheName, + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateServerlessCacheSnapshot', @@ -2106,8 +2264,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'CreateServerlessCacheSnapshotResult', ); return CreateServerlessCacheSnapshotResponse.fromXml($result); @@ -2154,12 +2310,19 @@ class ElastiCache { String? replicationGroupId, List? tags, }) async { - final $request = {}; - $request['SnapshotName'] = snapshotName; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnapshotName': snapshotName, + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSnapshot', @@ -2167,8 +2330,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateSnapshotResult', ); return CreateSnapshotResult.fromXml($result); @@ -2222,15 +2383,30 @@ class ElastiCache { List? passwords, List? tags, }) async { - final $request = {}; - $request['AccessString'] = accessString; - $request['Engine'] = engine; - $request['UserId'] = userId; - $request['UserName'] = userName; - authenticationMode?.also((arg) => $request['AuthenticationMode'] = arg); - noPasswordRequired?.also((arg) => $request['NoPasswordRequired'] = arg); - passwords?.also((arg) => $request['Passwords'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'AccessString': accessString, + 'Engine': engine, + 'UserId': userId, + 'UserName': userName, + if (authenticationMode != null) + for (var e1 in authenticationMode.toQueryMap().entries) + 'AuthenticationMode.${e1.key}': e1.value, + if (noPasswordRequired != null) + 'NoPasswordRequired': noPasswordRequired.toString(), + if (passwords != null) + if (passwords.isEmpty) + 'Passwords': '' + else + for (var i1 = 0; i1 < passwords.length; i1++) + 'Passwords.member.${i1 + 1}': passwords[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateUser', @@ -2238,8 +2414,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUserMessage'], - shapes: shapes, resultWrapper: 'CreateUserResult', ); return User.fromXml($result); @@ -2278,11 +2452,23 @@ class ElastiCache { List? tags, List? userIds, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['UserGroupId'] = userGroupId; - tags?.also((arg) => $request['Tags'] = arg); - userIds?.also((arg) => $request['UserIds'] = arg); + final $request = { + 'Engine': engine, + 'UserGroupId': userGroupId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (userIds != null) + if (userIds.isEmpty) + 'UserIds': '' + else + for (var i1 = 0; i1 < userIds.length; i1++) + 'UserIds.member.${i1 + 1}': userIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateUserGroup', @@ -2290,8 +2476,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUserGroupMessage'], - shapes: shapes, resultWrapper: 'CreateUserGroupResult', ); return UserGroup.fromXml($result); @@ -2336,14 +2520,25 @@ class ElastiCache { List? globalNodeGroupsToRemove, List? globalNodeGroupsToRetain, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['NodeGroupCount'] = nodeGroupCount; - globalNodeGroupsToRemove - ?.also((arg) => $request['GlobalNodeGroupsToRemove'] = arg); - globalNodeGroupsToRetain - ?.also((arg) => $request['GlobalNodeGroupsToRetain'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'NodeGroupCount': nodeGroupCount.toString(), + if (globalNodeGroupsToRemove != null) + if (globalNodeGroupsToRemove.isEmpty) + 'GlobalNodeGroupsToRemove': '' + else + for (var i1 = 0; i1 < globalNodeGroupsToRemove.length; i1++) + 'GlobalNodeGroupsToRemove.GlobalNodeGroupId.${i1 + 1}': + globalNodeGroupsToRemove[i1], + if (globalNodeGroupsToRetain != null) + if (globalNodeGroupsToRetain.isEmpty) + 'GlobalNodeGroupsToRetain': '' + else + for (var i1 = 0; i1 < globalNodeGroupsToRetain.length; i1++) + 'GlobalNodeGroupsToRetain.GlobalNodeGroupId.${i1 + 1}': + globalNodeGroupsToRetain[i1], + }; final $result = await _protocol.send( $request, action: 'DecreaseNodeGroupsInGlobalReplicationGroup', @@ -2351,8 +2546,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DecreaseNodeGroupsInGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DecreaseNodeGroupsInGlobalReplicationGroupResult', ); return DecreaseNodeGroupsInGlobalReplicationGroupResult.fromXml($result); @@ -2429,12 +2622,26 @@ class ElastiCache { List? replicaConfiguration, List? replicasToRemove, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['ReplicationGroupId'] = replicationGroupId; - newReplicaCount?.also((arg) => $request['NewReplicaCount'] = arg); - replicaConfiguration?.also((arg) => $request['ReplicaConfiguration'] = arg); - replicasToRemove?.also((arg) => $request['ReplicasToRemove'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'ReplicationGroupId': replicationGroupId, + if (newReplicaCount != null) + 'NewReplicaCount': newReplicaCount.toString(), + if (replicaConfiguration != null) + if (replicaConfiguration.isEmpty) + 'ReplicaConfiguration': '' + else + for (var i1 = 0; i1 < replicaConfiguration.length; i1++) + for (var e3 in replicaConfiguration[i1].toQueryMap().entries) + 'ReplicaConfiguration.ConfigureShard.${i1 + 1}.${e3.key}': + e3.value, + if (replicasToRemove != null) + if (replicasToRemove.isEmpty) + 'ReplicasToRemove': '' + else + for (var i1 = 0; i1 < replicasToRemove.length; i1++) + 'ReplicasToRemove.member.${i1 + 1}': replicasToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'DecreaseReplicaCount', @@ -2442,8 +2649,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DecreaseReplicaCountMessage'], - shapes: shapes, resultWrapper: 'DecreaseReplicaCountResult', ); return DecreaseReplicaCountResult.fromXml($result); @@ -2501,10 +2706,11 @@ class ElastiCache { required String cacheClusterId, String? finalSnapshotIdentifier, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - finalSnapshotIdentifier - ?.also((arg) => $request['FinalSnapshotIdentifier'] = arg); + final $request = { + 'CacheClusterId': cacheClusterId, + if (finalSnapshotIdentifier != null) + 'FinalSnapshotIdentifier': finalSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteCacheCluster', @@ -2512,8 +2718,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteCacheClusterResult', ); return DeleteCacheClusterResult.fromXml($result); @@ -2537,8 +2741,9 @@ class ElastiCache { Future deleteCacheParameterGroup({ required String cacheParameterGroupName, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteCacheParameterGroup', @@ -2546,8 +2751,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheParameterGroupMessage'], - shapes: shapes, ); } @@ -2570,8 +2773,9 @@ class ElastiCache { Future deleteCacheSecurityGroup({ required String cacheSecurityGroupName, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteCacheSecurityGroup', @@ -2579,8 +2783,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheSecurityGroupMessage'], - shapes: shapes, ); } @@ -2601,8 +2803,9 @@ class ElastiCache { Future deleteCacheSubnetGroup({ required String cacheSubnetGroupName, }) async { - final $request = {}; - $request['CacheSubnetGroupName'] = cacheSubnetGroupName; + final $request = { + 'CacheSubnetGroupName': cacheSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteCacheSubnetGroup', @@ -2610,8 +2813,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheSubnetGroupMessage'], - shapes: shapes, ); } @@ -2653,9 +2854,10 @@ class ElastiCache { required String globalReplicationGroupId, required bool retainPrimaryReplicationGroup, }) async { - final $request = {}; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['RetainPrimaryReplicationGroup'] = retainPrimaryReplicationGroup; + final $request = { + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'RetainPrimaryReplicationGroup': retainPrimaryReplicationGroup.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalReplicationGroup', @@ -2663,8 +2865,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalReplicationGroupResult', ); return DeleteGlobalReplicationGroupResult.fromXml($result); @@ -2709,11 +2909,13 @@ class ElastiCache { String? finalSnapshotIdentifier, bool? retainPrimaryCluster, }) async { - final $request = {}; - $request['ReplicationGroupId'] = replicationGroupId; - finalSnapshotIdentifier - ?.also((arg) => $request['FinalSnapshotIdentifier'] = arg); - retainPrimaryCluster?.also((arg) => $request['RetainPrimaryCluster'] = arg); + final $request = { + 'ReplicationGroupId': replicationGroupId, + if (finalSnapshotIdentifier != null) + 'FinalSnapshotIdentifier': finalSnapshotIdentifier, + if (retainPrimaryCluster != null) + 'RetainPrimaryCluster': retainPrimaryCluster.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteReplicationGroup', @@ -2721,8 +2923,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteReplicationGroupResult', ); return DeleteReplicationGroupResult.fromXml($result); @@ -2749,9 +2949,10 @@ class ElastiCache { required String serverlessCacheName, String? finalSnapshotName, }) async { - final $request = {}; - $request['ServerlessCacheName'] = serverlessCacheName; - finalSnapshotName?.also((arg) => $request['FinalSnapshotName'] = arg); + final $request = { + 'ServerlessCacheName': serverlessCacheName, + if (finalSnapshotName != null) 'FinalSnapshotName': finalSnapshotName, + }; final $result = await _protocol.send( $request, action: 'DeleteServerlessCache', @@ -2759,8 +2960,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServerlessCacheRequest'], - shapes: shapes, resultWrapper: 'DeleteServerlessCacheResult', ); return DeleteServerlessCacheResponse.fromXml($result); @@ -2778,8 +2977,9 @@ class ElastiCache { Future deleteServerlessCacheSnapshot({ required String serverlessCacheSnapshotName, }) async { - final $request = {}; - $request['ServerlessCacheSnapshotName'] = serverlessCacheSnapshotName; + final $request = { + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + }; final $result = await _protocol.send( $request, action: 'DeleteServerlessCacheSnapshot', @@ -2787,8 +2987,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'DeleteServerlessCacheSnapshotResult', ); return DeleteServerlessCacheSnapshotResponse.fromXml($result); @@ -2811,8 +3009,9 @@ class ElastiCache { Future deleteSnapshot({ required String snapshotName, }) async { - final $request = {}; - $request['SnapshotName'] = snapshotName; + final $request = { + 'SnapshotName': snapshotName, + }; final $result = await _protocol.send( $request, action: 'DeleteSnapshot', @@ -2820,8 +3019,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteSnapshotResult', ); return DeleteSnapshotResult.fromXml($result); @@ -2844,8 +3041,9 @@ class ElastiCache { Future deleteUser({ required String userId, }) async { - final $request = {}; - $request['UserId'] = userId; + final $request = { + 'UserId': userId, + }; final $result = await _protocol.send( $request, action: 'DeleteUser', @@ -2853,8 +3051,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserMessage'], - shapes: shapes, resultWrapper: 'DeleteUserResult', ); return User.fromXml($result); @@ -2876,8 +3072,9 @@ class ElastiCache { Future deleteUserGroup({ required String userGroupId, }) async { - final $request = {}; - $request['UserGroupId'] = userGroupId; + final $request = { + 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'DeleteUserGroup', @@ -2885,8 +3082,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteUserGroupResult', ); return UserGroup.fromXml($result); @@ -2957,13 +3152,16 @@ class ElastiCache { bool? showCacheClustersNotInReplicationGroups, bool? showCacheNodeInfo, }) async { - final $request = {}; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - showCacheClustersNotInReplicationGroups?.also( - (arg) => $request['ShowCacheClustersNotInReplicationGroups'] = arg); - showCacheNodeInfo?.also((arg) => $request['ShowCacheNodeInfo'] = arg); + final $request = { + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (showCacheClustersNotInReplicationGroups != null) + 'ShowCacheClustersNotInReplicationGroups': + showCacheClustersNotInReplicationGroups.toString(), + if (showCacheNodeInfo != null) + 'ShowCacheNodeInfo': showCacheNodeInfo.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheClusters', @@ -2971,8 +3169,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheClustersResult', ); return CacheClusterMessage.fromXml($result); @@ -3038,14 +3234,15 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheParameterGroupFamily - ?.also((arg) => $request['CacheParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheParameterGroupFamily != null) + 'CacheParameterGroupFamily': cacheParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheEngineVersions', @@ -3053,8 +3250,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheEngineVersionsResult', ); return CacheEngineVersionMessage.fromXml($result); @@ -3090,11 +3285,12 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheParameterGroups', @@ -3102,8 +3298,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheParameterGroupsResult', ); return CacheParameterGroupsMessage.fromXml($result); @@ -3145,11 +3339,12 @@ class ElastiCache { int? maxRecords, String? source, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeCacheParameters', @@ -3157,8 +3352,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheParametersResult', ); return CacheParameterGroupDetails.fromXml($result); @@ -3194,11 +3387,12 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheSecurityGroupName - ?.also((arg) => $request['CacheSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheSecurityGroupName != null) + 'CacheSecurityGroupName': cacheSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheSecurityGroups', @@ -3206,8 +3400,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheSecurityGroupsResult', ); return CacheSecurityGroupMessage.fromXml($result); @@ -3242,10 +3434,12 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheSubnetGroupName?.also((arg) => $request['CacheSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheSubnetGroupName != null) + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheSubnetGroups', @@ -3253,8 +3447,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheSubnetGroupsResult', ); return CacheSubnetGroupMessage.fromXml($result); @@ -3294,10 +3486,11 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['CacheParameterGroupFamily'] = cacheParameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'CacheParameterGroupFamily': cacheParameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -3305,8 +3498,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -3369,14 +3560,15 @@ class ElastiCache { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -3384,8 +3576,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -3421,12 +3611,13 @@ class ElastiCache { int? maxRecords, bool? showMemberInfo, }) async { - final $request = {}; - globalReplicationGroupId - ?.also((arg) => $request['GlobalReplicationGroupId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - showMemberInfo?.also((arg) => $request['ShowMemberInfo'] = arg); + final $request = { + if (globalReplicationGroupId != null) + 'GlobalReplicationGroupId': globalReplicationGroupId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (showMemberInfo != null) 'ShowMemberInfo': showMemberInfo.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalReplicationGroups', @@ -3434,8 +3625,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalReplicationGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalReplicationGroupsResult', ); return DescribeGlobalReplicationGroupsResult.fromXml($result); @@ -3478,10 +3667,11 @@ class ElastiCache { int? maxRecords, String? replicationGroupId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'DescribeReplicationGroups', @@ -3489,8 +3679,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReplicationGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeReplicationGroupsResult', ); return ReplicationGroupMessage.fromXml($result); @@ -3697,16 +3885,18 @@ class ElastiCache { String? reservedCacheNodeId, String? reservedCacheNodesOfferingId, }) async { - final $request = {}; - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedCacheNodeId?.also((arg) => $request['ReservedCacheNodeId'] = arg); - reservedCacheNodesOfferingId - ?.also((arg) => $request['ReservedCacheNodesOfferingId'] = arg); + final $request = { + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedCacheNodeId != null) + 'ReservedCacheNodeId': reservedCacheNodeId, + if (reservedCacheNodesOfferingId != null) + 'ReservedCacheNodesOfferingId': reservedCacheNodesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedCacheNodes', @@ -3714,8 +3904,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedCacheNodesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedCacheNodesResult', ); return ReservedCacheNodeMessage.fromXml($result); @@ -3919,15 +4107,16 @@ class ElastiCache { String? productDescription, String? reservedCacheNodesOfferingId, }) async { - final $request = {}; - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedCacheNodesOfferingId - ?.also((arg) => $request['ReservedCacheNodesOfferingId'] = arg); + final $request = { + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedCacheNodesOfferingId != null) + 'ReservedCacheNodesOfferingId': reservedCacheNodesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedCacheNodesOfferings', @@ -3935,8 +4124,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedCacheNodesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedCacheNodesOfferingsResult', ); return ReservedCacheNodesOfferingMessage.fromXml($result); @@ -3983,13 +4170,15 @@ class ElastiCache { String? serverlessCacheSnapshotName, String? snapshotType, }) async { - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - serverlessCacheName?.also((arg) => $request['ServerlessCacheName'] = arg); - serverlessCacheSnapshotName - ?.also((arg) => $request['ServerlessCacheSnapshotName'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (serverlessCacheName != null) + 'ServerlessCacheName': serverlessCacheName, + if (serverlessCacheSnapshotName != null) + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeServerlessCacheSnapshots', @@ -3997,8 +4186,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServerlessCacheSnapshotsRequest'], - shapes: shapes, resultWrapper: 'DescribeServerlessCacheSnapshotsResult', ); return DescribeServerlessCacheSnapshotsResponse.fromXml($result); @@ -4032,10 +4219,12 @@ class ElastiCache { String? nextToken, String? serverlessCacheName, }) async { - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - serverlessCacheName?.also((arg) => $request['ServerlessCacheName'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (serverlessCacheName != null) + 'ServerlessCacheName': serverlessCacheName, + }; final $result = await _protocol.send( $request, action: 'DescribeServerlessCaches', @@ -4043,8 +4232,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServerlessCachesRequest'], - shapes: shapes, resultWrapper: 'DescribeServerlessCachesResult', ); return DescribeServerlessCachesResponse.fromXml($result); @@ -4076,12 +4263,18 @@ class ElastiCache { String? serviceUpdateName, List? serviceUpdateStatus, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - serviceUpdateName?.also((arg) => $request['ServiceUpdateName'] = arg); - serviceUpdateStatus?.also((arg) => - $request['ServiceUpdateStatus'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (serviceUpdateName != null) 'ServiceUpdateName': serviceUpdateName, + if (serviceUpdateStatus != null) + if (serviceUpdateStatus.isEmpty) + 'ServiceUpdateStatus': '' + else + for (var i1 = 0; i1 < serviceUpdateStatus.length; i1++) + 'ServiceUpdateStatus.member.${i1 + 1}': + serviceUpdateStatus[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeServiceUpdates', @@ -4089,8 +4282,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServiceUpdatesMessage'], - shapes: shapes, resultWrapper: 'DescribeServiceUpdatesResult', ); return ServiceUpdatesMessage.fromXml($result); @@ -4155,14 +4346,16 @@ class ElastiCache { String? snapshotName, String? snapshotSource, }) async { - final $request = {}; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); - showNodeGroupConfig?.also((arg) => $request['ShowNodeGroupConfig'] = arg); - snapshotName?.also((arg) => $request['SnapshotName'] = arg); - snapshotSource?.also((arg) => $request['SnapshotSource'] = arg); + final $request = { + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + if (showNodeGroupConfig != null) + 'ShowNodeGroupConfig': showNodeGroupConfig.toString(), + if (snapshotName != null) 'SnapshotName': snapshotName, + if (snapshotSource != null) 'SnapshotSource': snapshotSource, + }; final $result = await _protocol.send( $request, action: 'DescribeSnapshots', @@ -4170,8 +4363,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeSnapshotsResult', ); return DescribeSnapshotsListMessage.fromXml($result); @@ -4228,21 +4419,43 @@ class ElastiCache { bool? showNodeLevelUpdateStatus, List? updateActionStatus, }) async { - final $request = {}; - cacheClusterIds?.also((arg) => $request['CacheClusterIds'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - replicationGroupIds?.also((arg) => $request['ReplicationGroupIds'] = arg); - serviceUpdateName?.also((arg) => $request['ServiceUpdateName'] = arg); - serviceUpdateStatus?.also((arg) => - $request['ServiceUpdateStatus'] = arg.map((e) => e.toValue()).toList()); - serviceUpdateTimeRange - ?.also((arg) => $request['ServiceUpdateTimeRange'] = arg); - showNodeLevelUpdateStatus - ?.also((arg) => $request['ShowNodeLevelUpdateStatus'] = arg); - updateActionStatus?.also((arg) => - $request['UpdateActionStatus'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (cacheClusterIds != null) + if (cacheClusterIds.isEmpty) + 'CacheClusterIds': '' + else + for (var i1 = 0; i1 < cacheClusterIds.length; i1++) + 'CacheClusterIds.member.${i1 + 1}': cacheClusterIds[i1], + if (engine != null) 'Engine': engine, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (replicationGroupIds != null) + if (replicationGroupIds.isEmpty) + 'ReplicationGroupIds': '' + else + for (var i1 = 0; i1 < replicationGroupIds.length; i1++) + 'ReplicationGroupIds.member.${i1 + 1}': replicationGroupIds[i1], + if (serviceUpdateName != null) 'ServiceUpdateName': serviceUpdateName, + if (serviceUpdateStatus != null) + if (serviceUpdateStatus.isEmpty) + 'ServiceUpdateStatus': '' + else + for (var i1 = 0; i1 < serviceUpdateStatus.length; i1++) + 'ServiceUpdateStatus.member.${i1 + 1}': + serviceUpdateStatus[i1].toValue(), + if (serviceUpdateTimeRange != null) + for (var e1 in serviceUpdateTimeRange.toQueryMap().entries) + 'ServiceUpdateTimeRange.${e1.key}': e1.value, + if (showNodeLevelUpdateStatus != null) + 'ShowNodeLevelUpdateStatus': showNodeLevelUpdateStatus.toString(), + if (updateActionStatus != null) + if (updateActionStatus.isEmpty) + 'UpdateActionStatus': '' + else + for (var i1 = 0; i1 < updateActionStatus.length; i1++) + 'UpdateActionStatus.member.${i1 + 1}': + updateActionStatus[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeUpdateActions', @@ -4250,8 +4463,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUpdateActionsMessage'], - shapes: shapes, resultWrapper: 'DescribeUpdateActionsResult', ); return UpdateActionsMessage.fromXml($result); @@ -4281,10 +4492,11 @@ class ElastiCache { int? maxRecords, String? userGroupId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - userGroupId?.also((arg) => $request['UserGroupId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (userGroupId != null) 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'DescribeUserGroups', @@ -4292,8 +4504,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUserGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeUserGroupsResult', ); return DescribeUserGroupsResult.fromXml($result); @@ -4331,12 +4541,19 @@ class ElastiCache { int? maxRecords, String? userId, }) async { - final $request = {}; - engine?.also((arg) => $request['Engine'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - userId?.also((arg) => $request['UserId'] = arg); + final $request = { + if (engine != null) 'Engine': engine, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (userId != null) 'UserId': userId, + }; final $result = await _protocol.send( $request, action: 'DescribeUsers', @@ -4344,8 +4561,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUsersMessage'], - shapes: shapes, resultWrapper: 'DescribeUsersResult', ); return DescribeUsersResult.fromXml($result); @@ -4377,10 +4592,11 @@ class ElastiCache { required String replicationGroupId, required String replicationGroupRegion, }) async { - final $request = {}; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['ReplicationGroupId'] = replicationGroupId; - $request['ReplicationGroupRegion'] = replicationGroupRegion; + final $request = { + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'ReplicationGroupId': replicationGroupId, + 'ReplicationGroupRegion': replicationGroupRegion, + }; final $result = await _protocol.send( $request, action: 'DisassociateGlobalReplicationGroup', @@ -4388,8 +4604,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisassociateGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DisassociateGlobalReplicationGroupResult', ); return DisassociateGlobalReplicationGroupResult.fromXml($result); @@ -4415,9 +4629,10 @@ class ElastiCache { required String s3BucketName, required String serverlessCacheSnapshotName, }) async { - final $request = {}; - $request['S3BucketName'] = s3BucketName; - $request['ServerlessCacheSnapshotName'] = serverlessCacheSnapshotName; + final $request = { + 'S3BucketName': s3BucketName, + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + }; final $result = await _protocol.send( $request, action: 'ExportServerlessCacheSnapshot', @@ -4425,8 +4640,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExportServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'ExportServerlessCacheSnapshotResult', ); return ExportServerlessCacheSnapshotResponse.fromXml($result); @@ -4453,10 +4666,11 @@ class ElastiCache { required String primaryRegion, required String primaryReplicationGroupId, }) async { - final $request = {}; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['PrimaryRegion'] = primaryRegion; - $request['PrimaryReplicationGroupId'] = primaryReplicationGroupId; + final $request = { + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'PrimaryRegion': primaryRegion, + 'PrimaryReplicationGroupId': primaryReplicationGroupId, + }; final $result = await _protocol.send( $request, action: 'FailoverGlobalReplicationGroup', @@ -4464,8 +4678,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'FailoverGlobalReplicationGroupResult', ); return FailoverGlobalReplicationGroupResult.fromXml($result); @@ -4498,12 +4710,19 @@ class ElastiCache { required int nodeGroupCount, List? regionalConfigurations, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['NodeGroupCount'] = nodeGroupCount; - regionalConfigurations - ?.also((arg) => $request['RegionalConfigurations'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'NodeGroupCount': nodeGroupCount.toString(), + if (regionalConfigurations != null) + if (regionalConfigurations.isEmpty) + 'RegionalConfigurations': '' + else + for (var i1 = 0; i1 < regionalConfigurations.length; i1++) + for (var e3 in regionalConfigurations[i1].toQueryMap().entries) + 'RegionalConfigurations.RegionalConfiguration.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'IncreaseNodeGroupsInGlobalReplicationGroup', @@ -4511,8 +4730,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IncreaseNodeGroupsInGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'IncreaseNodeGroupsInGlobalReplicationGroupResult', ); return IncreaseNodeGroupsInGlobalReplicationGroupResult.fromXml($result); @@ -4563,11 +4780,20 @@ class ElastiCache { int? newReplicaCount, List? replicaConfiguration, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['ReplicationGroupId'] = replicationGroupId; - newReplicaCount?.also((arg) => $request['NewReplicaCount'] = arg); - replicaConfiguration?.also((arg) => $request['ReplicaConfiguration'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'ReplicationGroupId': replicationGroupId, + if (newReplicaCount != null) + 'NewReplicaCount': newReplicaCount.toString(), + if (replicaConfiguration != null) + if (replicaConfiguration.isEmpty) + 'ReplicaConfiguration': '' + else + for (var i1 = 0; i1 < replicaConfiguration.length; i1++) + for (var e3 in replicaConfiguration[i1].toQueryMap().entries) + 'ReplicaConfiguration.ConfigureShard.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'IncreaseReplicaCount', @@ -4575,8 +4801,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IncreaseReplicaCountMessage'], - shapes: shapes, resultWrapper: 'IncreaseReplicaCountResult', ); return IncreaseReplicaCountResult.fromXml($result); @@ -4618,9 +4842,10 @@ class ElastiCache { String? cacheClusterId, String? replicationGroupId, }) async { - final $request = {}; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); + final $request = { + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'ListAllowedNodeTypeModifications', @@ -4628,8 +4853,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAllowedNodeTypeModificationsMessage'], - shapes: shapes, resultWrapper: 'ListAllowedNodeTypeModificationsResult', ); return AllowedNodeTypeModificationsMessage.fromXml($result); @@ -4676,8 +4899,9 @@ class ElastiCache { Future listTagsForResource({ required String resourceName, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; + final $request = { + 'ResourceName': resourceName, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -4685,8 +4909,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -5076,36 +5298,67 @@ class ElastiCache { int? snapshotRetentionLimit, String? snapshotWindow, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - aZMode?.also((arg) => $request['AZMode'] = arg.toValue()); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - authToken?.also((arg) => $request['AuthToken'] = arg); - authTokenUpdateStrategy - ?.also((arg) => $request['AuthTokenUpdateStrategy'] = arg.toValue()); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - cacheNodeIdsToRemove?.also((arg) => $request['CacheNodeIdsToRemove'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - newAvailabilityZones?.also((arg) => $request['NewAvailabilityZones'] = arg); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - notificationTopicStatus - ?.also((arg) => $request['NotificationTopicStatus'] = arg); - numCacheNodes?.also((arg) => $request['NumCacheNodes'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); + final $request = { + 'CacheClusterId': cacheClusterId, + if (aZMode != null) 'AZMode': aZMode.toValue(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (authToken != null) 'AuthToken': authToken, + if (authTokenUpdateStrategy != null) + 'AuthTokenUpdateStrategy': authTokenUpdateStrategy.toValue(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (cacheNodeIdsToRemove != null) + if (cacheNodeIdsToRemove.isEmpty) + 'CacheNodeIdsToRemove': '' + else + for (var i1 = 0; i1 < cacheNodeIdsToRemove.length; i1++) + 'CacheNodeIdsToRemove.CacheNodeId.${i1 + 1}': + cacheNodeIdsToRemove[i1], + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (newAvailabilityZones != null) + if (newAvailabilityZones.isEmpty) + 'NewAvailabilityZones': '' + else + for (var i1 = 0; i1 < newAvailabilityZones.length; i1++) + 'NewAvailabilityZones.PreferredAvailabilityZone.${i1 + 1}': + newAvailabilityZones[i1], + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (notificationTopicStatus != null) + 'NotificationTopicStatus': notificationTopicStatus, + if (numCacheNodes != null) 'NumCacheNodes': numCacheNodes.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + }; final $result = await _protocol.send( $request, action: 'ModifyCacheCluster', @@ -5113,8 +5366,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCacheClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyCacheClusterResult', ); return ModifyCacheClusterResult.fromXml($result); @@ -5141,9 +5392,16 @@ class ElastiCache { required String cacheParameterGroupName, required List parameterNameValues, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - $request['ParameterNameValues'] = parameterNameValues; + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + if (parameterNameValues.isEmpty) + 'ParameterNameValues': '' + else + for (var i1 = 0; i1 < parameterNameValues.length; i1++) + for (var e3 in parameterNameValues[i1].toQueryMap().entries) + 'ParameterNameValues.ParameterNameValue.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyCacheParameterGroup', @@ -5151,8 +5409,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCacheParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyCacheParameterGroupResult', ); return CacheParameterGroupNameMessage.fromXml($result); @@ -5185,11 +5441,17 @@ class ElastiCache { String? cacheSubnetGroupDescription, List? subnetIds, }) async { - final $request = {}; - $request['CacheSubnetGroupName'] = cacheSubnetGroupName; - cacheSubnetGroupDescription - ?.also((arg) => $request['CacheSubnetGroupDescription'] = arg); - subnetIds?.also((arg) => $request['SubnetIds'] = arg); + final $request = { + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (cacheSubnetGroupDescription != null) + 'CacheSubnetGroupDescription': cacheSubnetGroupDescription, + if (subnetIds != null) + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyCacheSubnetGroup', @@ -5197,8 +5459,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCacheSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyCacheSubnetGroupResult', ); return ModifyCacheSubnetGroupResult.fromXml($result); @@ -5246,17 +5506,18 @@ class ElastiCache { String? engineVersion, String? globalReplicationGroupDescription, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - automaticFailoverEnabled - ?.also((arg) => $request['AutomaticFailoverEnabled'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalReplicationGroupDescription - ?.also((arg) => $request['GlobalReplicationGroupDescription'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + if (automaticFailoverEnabled != null) + 'AutomaticFailoverEnabled': automaticFailoverEnabled.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalReplicationGroupDescription != null) + 'GlobalReplicationGroupDescription': globalReplicationGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalReplicationGroup', @@ -5264,8 +5525,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalReplicationGroupResult', ); return ModifyGlobalReplicationGroupResult.fromXml($result); @@ -5576,49 +5835,79 @@ class ElastiCache { List? userGroupIdsToAdd, List? userGroupIdsToRemove, }) async { - final $request = {}; - $request['ReplicationGroupId'] = replicationGroupId; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - authToken?.also((arg) => $request['AuthToken'] = arg); - authTokenUpdateStrategy - ?.also((arg) => $request['AuthTokenUpdateStrategy'] = arg.toValue()); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - automaticFailoverEnabled - ?.also((arg) => $request['AutomaticFailoverEnabled'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - clusterMode?.also((arg) => $request['ClusterMode'] = arg.toValue()); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - multiAZEnabled?.also((arg) => $request['MultiAZEnabled'] = arg); - nodeGroupId?.also((arg) => $request['NodeGroupId'] = arg); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - notificationTopicStatus - ?.also((arg) => $request['NotificationTopicStatus'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - primaryClusterId?.also((arg) => $request['PrimaryClusterId'] = arg); - removeUserGroups?.also((arg) => $request['RemoveUserGroups'] = arg); - replicationGroupDescription - ?.also((arg) => $request['ReplicationGroupDescription'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); - snapshottingClusterId - ?.also((arg) => $request['SnapshottingClusterId'] = arg); - transitEncryptionEnabled - ?.also((arg) => $request['TransitEncryptionEnabled'] = arg); - transitEncryptionMode - ?.also((arg) => $request['TransitEncryptionMode'] = arg.toValue()); - userGroupIdsToAdd?.also((arg) => $request['UserGroupIdsToAdd'] = arg); - userGroupIdsToRemove?.also((arg) => $request['UserGroupIdsToRemove'] = arg); + final $request = { + 'ReplicationGroupId': replicationGroupId, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (authToken != null) 'AuthToken': authToken, + if (authTokenUpdateStrategy != null) + 'AuthTokenUpdateStrategy': authTokenUpdateStrategy.toValue(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (automaticFailoverEnabled != null) + 'AutomaticFailoverEnabled': automaticFailoverEnabled.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (clusterMode != null) 'ClusterMode': clusterMode.toValue(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (multiAZEnabled != null) 'MultiAZEnabled': multiAZEnabled.toString(), + if (nodeGroupId != null) 'NodeGroupId': nodeGroupId, + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (notificationTopicStatus != null) + 'NotificationTopicStatus': notificationTopicStatus, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (primaryClusterId != null) 'PrimaryClusterId': primaryClusterId, + if (removeUserGroups != null) + 'RemoveUserGroups': removeUserGroups.toString(), + if (replicationGroupDescription != null) + 'ReplicationGroupDescription': replicationGroupDescription, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + if (snapshottingClusterId != null) + 'SnapshottingClusterId': snapshottingClusterId, + if (transitEncryptionEnabled != null) + 'TransitEncryptionEnabled': transitEncryptionEnabled.toString(), + if (transitEncryptionMode != null) + 'TransitEncryptionMode': transitEncryptionMode.toValue(), + if (userGroupIdsToAdd != null) + if (userGroupIdsToAdd.isEmpty) + 'UserGroupIdsToAdd': '' + else + for (var i1 = 0; i1 < userGroupIdsToAdd.length; i1++) + 'UserGroupIdsToAdd.member.${i1 + 1}': userGroupIdsToAdd[i1], + if (userGroupIdsToRemove != null) + if (userGroupIdsToRemove.isEmpty) + 'UserGroupIdsToRemove': '' + else + for (var i1 = 0; i1 < userGroupIdsToRemove.length; i1++) + 'UserGroupIdsToRemove.member.${i1 + 1}': userGroupIdsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyReplicationGroup', @@ -5626,8 +5915,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyReplicationGroupResult', ); return ModifyReplicationGroupResult.fromXml($result); @@ -5700,14 +5987,33 @@ class ElastiCache { List? nodeGroupsToRetain, List? reshardingConfiguration, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['NodeGroupCount'] = nodeGroupCount; - $request['ReplicationGroupId'] = replicationGroupId; - nodeGroupsToRemove?.also((arg) => $request['NodeGroupsToRemove'] = arg); - nodeGroupsToRetain?.also((arg) => $request['NodeGroupsToRetain'] = arg); - reshardingConfiguration - ?.also((arg) => $request['ReshardingConfiguration'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'NodeGroupCount': nodeGroupCount.toString(), + 'ReplicationGroupId': replicationGroupId, + if (nodeGroupsToRemove != null) + if (nodeGroupsToRemove.isEmpty) + 'NodeGroupsToRemove': '' + else + for (var i1 = 0; i1 < nodeGroupsToRemove.length; i1++) + 'NodeGroupsToRemove.NodeGroupToRemove.${i1 + 1}': + nodeGroupsToRemove[i1], + if (nodeGroupsToRetain != null) + if (nodeGroupsToRetain.isEmpty) + 'NodeGroupsToRetain': '' + else + for (var i1 = 0; i1 < nodeGroupsToRetain.length; i1++) + 'NodeGroupsToRetain.NodeGroupToRetain.${i1 + 1}': + nodeGroupsToRetain[i1], + if (reshardingConfiguration != null) + if (reshardingConfiguration.isEmpty) + 'ReshardingConfiguration': '' + else + for (var i1 = 0; i1 < reshardingConfiguration.length; i1++) + for (var e3 in reshardingConfiguration[i1].toQueryMap().entries) + 'ReshardingConfiguration.ReshardingConfiguration.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyReplicationGroupShardConfiguration', @@ -5715,8 +6021,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyReplicationGroupShardConfigurationMessage'], - shapes: shapes, resultWrapper: 'ModifyReplicationGroupShardConfigurationResult', ); return ModifyReplicationGroupShardConfigurationResult.fromXml($result); @@ -5780,16 +6084,25 @@ class ElastiCache { int? snapshotRetentionLimit, String? userGroupId, }) async { - final $request = {}; - $request['ServerlessCacheName'] = serverlessCacheName; - cacheUsageLimits?.also((arg) => $request['CacheUsageLimits'] = arg); - dailySnapshotTime?.also((arg) => $request['DailySnapshotTime'] = arg); - description?.also((arg) => $request['Description'] = arg); - removeUserGroup?.also((arg) => $request['RemoveUserGroup'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - userGroupId?.also((arg) => $request['UserGroupId'] = arg); + final $request = { + 'ServerlessCacheName': serverlessCacheName, + if (cacheUsageLimits != null) + for (var e1 in cacheUsageLimits.toQueryMap().entries) + 'CacheUsageLimits.${e1.key}': e1.value, + if (dailySnapshotTime != null) 'DailySnapshotTime': dailySnapshotTime, + if (description != null) 'Description': description, + if (removeUserGroup != null) + 'RemoveUserGroup': removeUserGroup.toString(), + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (userGroupId != null) 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'ModifyServerlessCache', @@ -5797,8 +6110,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyServerlessCacheRequest'], - shapes: shapes, resultWrapper: 'ModifyServerlessCacheResult', ); return ModifyServerlessCacheResponse.fromXml($result); @@ -5837,13 +6148,22 @@ class ElastiCache { bool? noPasswordRequired, List? passwords, }) async { - final $request = {}; - $request['UserId'] = userId; - accessString?.also((arg) => $request['AccessString'] = arg); - appendAccessString?.also((arg) => $request['AppendAccessString'] = arg); - authenticationMode?.also((arg) => $request['AuthenticationMode'] = arg); - noPasswordRequired?.also((arg) => $request['NoPasswordRequired'] = arg); - passwords?.also((arg) => $request['Passwords'] = arg); + final $request = { + 'UserId': userId, + if (accessString != null) 'AccessString': accessString, + if (appendAccessString != null) 'AppendAccessString': appendAccessString, + if (authenticationMode != null) + for (var e1 in authenticationMode.toQueryMap().entries) + 'AuthenticationMode.${e1.key}': e1.value, + if (noPasswordRequired != null) + 'NoPasswordRequired': noPasswordRequired.toString(), + if (passwords != null) + if (passwords.isEmpty) + 'Passwords': '' + else + for (var i1 = 0; i1 < passwords.length; i1++) + 'Passwords.member.${i1 + 1}': passwords[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyUser', @@ -5851,8 +6171,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyUserMessage'], - shapes: shapes, resultWrapper: 'ModifyUserResult', ); return User.fromXml($result); @@ -5882,10 +6200,21 @@ class ElastiCache { List? userIdsToAdd, List? userIdsToRemove, }) async { - final $request = {}; - $request['UserGroupId'] = userGroupId; - userIdsToAdd?.also((arg) => $request['UserIdsToAdd'] = arg); - userIdsToRemove?.also((arg) => $request['UserIdsToRemove'] = arg); + final $request = { + 'UserGroupId': userGroupId, + if (userIdsToAdd != null) + if (userIdsToAdd.isEmpty) + 'UserIdsToAdd': '' + else + for (var i1 = 0; i1 < userIdsToAdd.length; i1++) + 'UserIdsToAdd.member.${i1 + 1}': userIdsToAdd[i1], + if (userIdsToRemove != null) + if (userIdsToRemove.isEmpty) + 'UserIdsToRemove': '' + else + for (var i1 = 0; i1 < userIdsToRemove.length; i1++) + 'UserIdsToRemove.member.${i1 + 1}': userIdsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyUserGroup', @@ -5893,8 +6222,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyUserGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyUserGroupResult', ); return UserGroup.fromXml($result); @@ -5944,11 +6271,19 @@ class ElastiCache { String? reservedCacheNodeId, List? tags, }) async { - final $request = {}; - $request['ReservedCacheNodesOfferingId'] = reservedCacheNodesOfferingId; - cacheNodeCount?.also((arg) => $request['CacheNodeCount'] = arg); - reservedCacheNodeId?.also((arg) => $request['ReservedCacheNodeId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedCacheNodesOfferingId': reservedCacheNodesOfferingId, + if (cacheNodeCount != null) 'CacheNodeCount': cacheNodeCount.toString(), + if (reservedCacheNodeId != null) + 'ReservedCacheNodeId': reservedCacheNodeId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedCacheNodesOffering', @@ -5956,8 +6291,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedCacheNodesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedCacheNodesOfferingResult', ); return PurchaseReservedCacheNodesOfferingResult.fromXml($result); @@ -5980,9 +6313,10 @@ class ElastiCache { required bool applyImmediately, required String globalReplicationGroupId, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + }; final $result = await _protocol.send( $request, action: 'RebalanceSlotsInGlobalReplicationGroup', @@ -5990,8 +6324,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebalanceSlotsInGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'RebalanceSlotsInGlobalReplicationGroupResult', ); return RebalanceSlotsInGlobalReplicationGroupResult.fromXml($result); @@ -6031,9 +6363,15 @@ class ElastiCache { required String cacheClusterId, required List cacheNodeIdsToReboot, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - $request['CacheNodeIdsToReboot'] = cacheNodeIdsToReboot; + final $request = { + 'CacheClusterId': cacheClusterId, + if (cacheNodeIdsToReboot.isEmpty) + 'CacheNodeIdsToReboot': '' + else + for (var i1 = 0; i1 < cacheNodeIdsToReboot.length; i1++) + 'CacheNodeIdsToReboot.CacheNodeId.${i1 + 1}': + cacheNodeIdsToReboot[i1], + }; final $result = await _protocol.send( $request, action: 'RebootCacheCluster', @@ -6041,8 +6379,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootCacheClusterMessage'], - shapes: shapes, resultWrapper: 'RebootCacheClusterResult', ); return RebootCacheClusterResult.fromXml($result); @@ -6092,9 +6428,14 @@ class ElastiCache { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; final $result = await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -6102,8 +6443,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, resultWrapper: 'RemoveTagsFromResourceResult', ); return TagListMessage.fromXml($result); @@ -6143,10 +6482,19 @@ class ElastiCache { List? parameterNameValues, bool? resetAllParameters, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - parameterNameValues?.also((arg) => $request['ParameterNameValues'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + if (parameterNameValues != null) + if (parameterNameValues.isEmpty) + 'ParameterNameValues': '' + else + for (var i1 = 0; i1 < parameterNameValues.length; i1++) + for (var e3 in parameterNameValues[i1].toQueryMap().entries) + 'ParameterNameValues.ParameterNameValue.${i1 + 1}.${e3.key}': + e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetCacheParameterGroup', @@ -6154,8 +6502,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetCacheParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetCacheParameterGroupResult', ); return CacheParameterGroupNameMessage.fromXml($result); @@ -6187,10 +6533,11 @@ class ElastiCache { required String eC2SecurityGroupName, required String eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; - $request['EC2SecurityGroupName'] = eC2SecurityGroupName; - $request['EC2SecurityGroupOwnerId'] = eC2SecurityGroupOwnerId; + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + 'EC2SecurityGroupName': eC2SecurityGroupName, + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeCacheSecurityGroupIngress', @@ -6198,8 +6545,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeCacheSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeCacheSecurityGroupIngressResult', ); return RevokeCacheSecurityGroupIngressResult.fromXml($result); @@ -6222,9 +6567,15 @@ class ElastiCache { required List customerNodeEndpointList, required String replicationGroupId, }) async { - final $request = {}; - $request['CustomerNodeEndpointList'] = customerNodeEndpointList; - $request['ReplicationGroupId'] = replicationGroupId; + final $request = { + if (customerNodeEndpointList.isEmpty) + 'CustomerNodeEndpointList': '' + else + for (var i1 = 0; i1 < customerNodeEndpointList.length; i1++) + for (var e3 in customerNodeEndpointList[i1].toQueryMap().entries) + 'CustomerNodeEndpointList.member.${i1 + 1}.${e3.key}': e3.value, + 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'StartMigration', @@ -6232,8 +6583,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartMigrationMessage'], - shapes: shapes, resultWrapper: 'StartMigrationResult', ); return StartMigrationResponse.fromXml($result); @@ -6335,9 +6684,10 @@ class ElastiCache { required String nodeGroupId, required String replicationGroupId, }) async { - final $request = {}; - $request['NodeGroupId'] = nodeGroupId; - $request['ReplicationGroupId'] = replicationGroupId; + final $request = { + 'NodeGroupId': nodeGroupId, + 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'TestFailover', @@ -6345,8 +6695,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestFailoverMessage'], - shapes: shapes, resultWrapper: 'TestFailoverResult', ); return TestFailoverResult.fromXml($result); @@ -6369,9 +6717,15 @@ class ElastiCache { required List customerNodeEndpointList, required String replicationGroupId, }) async { - final $request = {}; - $request['CustomerNodeEndpointList'] = customerNodeEndpointList; - $request['ReplicationGroupId'] = replicationGroupId; + final $request = { + if (customerNodeEndpointList.isEmpty) + 'CustomerNodeEndpointList': '' + else + for (var i1 = 0; i1 < customerNodeEndpointList.length; i1++) + for (var e3 in customerNodeEndpointList[i1].toQueryMap().entries) + 'CustomerNodeEndpointList.member.${i1 + 1}.${e3.key}': e3.value, + 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'TestMigration', @@ -6379,8 +6733,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestMigrationMessage'], - shapes: shapes, resultWrapper: 'TestMigrationResult', ); return TestMigrationResponse.fromXml($result); @@ -6574,6 +6926,20 @@ class AuthenticationMode { if (type != null) 'Type': type.toValue(), }; } + + Map toQueryMap() { + final passwords = this.passwords; + final type = this.type; + return { + if (passwords != null) + if (passwords.isEmpty) + 'Passwords': '' + else + for (var i1 = 0; i1 < passwords.length; i1++) + 'Passwords.member.${i1 + 1}': passwords[i1], + if (type != null) 'Type': type.toValue(), + }; + } } enum AuthenticationType { @@ -8285,6 +8651,19 @@ class CacheUsageLimits { if (eCPUPerSecond != null) 'ECPUPerSecond': eCPUPerSecond, }; } + + Map toQueryMap() { + final dataStorage = this.dataStorage; + final eCPUPerSecond = this.eCPUPerSecond; + return { + if (dataStorage != null) + for (var e1 in dataStorage.toQueryMap().entries) + 'DataStorage.${e1.key}': e1.value, + if (eCPUPerSecond != null) + for (var e1 in eCPUPerSecond.toQueryMap().entries) + 'ECPUPerSecond.${e1.key}': e1.value, + }; + } } enum ChangeType { @@ -8335,6 +8714,13 @@ class CloudWatchLogsDestinationDetails { if (logGroup != null) 'LogGroup': logGroup, }; } + + Map toQueryMap() { + final logGroup = this.logGroup; + return { + if (logGroup != null) 'LogGroup': logGroup, + }; + } } enum ClusterMode { @@ -8461,6 +8847,31 @@ class ConfigureShard { 'PreferredOutpostArns': preferredOutpostArns, }; } + + Map toQueryMap() { + final newReplicaCount = this.newReplicaCount; + final nodeGroupId = this.nodeGroupId; + final preferredAvailabilityZones = this.preferredAvailabilityZones; + final preferredOutpostArns = this.preferredOutpostArns; + return { + 'NewReplicaCount': newReplicaCount.toString(), + 'NodeGroupId': nodeGroupId, + if (preferredAvailabilityZones != null) + if (preferredAvailabilityZones.isEmpty) + 'PreferredAvailabilityZone': '' + else + for (var i1 = 0; i1 < preferredAvailabilityZones.length; i1++) + 'PreferredAvailabilityZone.PreferredAvailabilityZone.${i1 + 1}': + preferredAvailabilityZones[i1], + if (preferredOutpostArns != null) + if (preferredOutpostArns.isEmpty) + 'PreferredOutpostArn': '' + else + for (var i1 = 0; i1 < preferredOutpostArns.length; i1++) + 'PreferredOutpostArn.PreferredOutpostArn.${i1 + 1}': + preferredOutpostArns[i1], + }; + } } class CopyServerlessCacheSnapshotResponse { @@ -8730,6 +9141,15 @@ class CustomerNodeEndpoint { if (port != null) 'Port': port, }; } + + Map toQueryMap() { + final address = this.address; + final port = this.port; + return { + if (address != null) 'Address': address, + if (port != null) 'Port': port.toString(), + }; + } } /// The data storage limit. @@ -8766,6 +9186,17 @@ class DataStorage { if (minimum != null) 'Minimum': minimum, }; } + + Map toQueryMap() { + final unit = this.unit; + final maximum = this.maximum; + final minimum = this.minimum; + return { + 'Unit': unit.toValue(), + if (maximum != null) 'Maximum': maximum.toString(), + if (minimum != null) 'Minimum': minimum.toString(), + }; + } } enum DataStorageUnit { @@ -9263,6 +9694,19 @@ class DestinationDetails { 'KinesisFirehoseDetails': kinesisFirehoseDetails, }; } + + Map toQueryMap() { + final cloudWatchLogsDetails = this.cloudWatchLogsDetails; + final kinesisFirehoseDetails = this.kinesisFirehoseDetails; + return { + if (cloudWatchLogsDetails != null) + for (var e1 in cloudWatchLogsDetails.toQueryMap().entries) + 'CloudWatchLogsDetails.${e1.key}': e1.value, + if (kinesisFirehoseDetails != null) + for (var e1 in kinesisFirehoseDetails.toQueryMap().entries) + 'KinesisFirehoseDetails.${e1.key}': e1.value, + }; + } } enum DestinationType { @@ -9386,6 +9830,15 @@ class ECPUPerSecond { if (minimum != null) 'Minimum': minimum, }; } + + Map toQueryMap() { + final maximum = this.maximum; + final minimum = this.minimum; + return { + if (maximum != null) 'Maximum': maximum.toString(), + if (minimum != null) 'Minimum': minimum.toString(), + }; + } } /// Represents the information required for client programs to connect to a @@ -9627,6 +10080,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Indicates the slot configuration and global identifier for a slice group. @@ -10025,6 +10491,13 @@ class KinesisFirehoseDestinationDetails { if (deliveryStream != null) 'DeliveryStream': deliveryStream, }; } + + Map toQueryMap() { + final deliveryStream = this.deliveryStream; + return { + if (deliveryStream != null) 'DeliveryStream': deliveryStream, + }; + } } /// Returns the destination, format and type of the logs. @@ -10137,6 +10610,23 @@ class LogDeliveryConfigurationRequest { if (logType != null) 'LogType': logType.toValue(), }; } + + Map toQueryMap() { + final destinationDetails = this.destinationDetails; + final destinationType = this.destinationType; + final enabled = this.enabled; + final logFormat = this.logFormat; + final logType = this.logType; + return { + if (destinationDetails != null) + for (var e1 in destinationDetails.toQueryMap().entries) + 'DestinationDetails.${e1.key}': e1.value, + if (destinationType != null) 'DestinationType': destinationType.toValue(), + if (enabled != null) 'Enabled': enabled.toString(), + if (logFormat != null) 'LogFormat': logFormat.toValue(), + if (logType != null) 'LogType': logType.toValue(), + }; + } } enum LogDeliveryConfigurationStatus { @@ -10589,6 +11079,37 @@ class NodeGroupConfiguration { if (slots != null) 'Slots': slots, }; } + + Map toQueryMap() { + final nodeGroupId = this.nodeGroupId; + final primaryAvailabilityZone = this.primaryAvailabilityZone; + final primaryOutpostArn = this.primaryOutpostArn; + final replicaAvailabilityZones = this.replicaAvailabilityZones; + final replicaCount = this.replicaCount; + final replicaOutpostArns = this.replicaOutpostArns; + final slots = this.slots; + return { + if (nodeGroupId != null) 'NodeGroupId': nodeGroupId, + if (primaryAvailabilityZone != null) + 'PrimaryAvailabilityZone': primaryAvailabilityZone, + if (primaryOutpostArn != null) 'PrimaryOutpostArn': primaryOutpostArn, + if (replicaAvailabilityZones != null) + if (replicaAvailabilityZones.isEmpty) + 'AvailabilityZone': '' + else + for (var i1 = 0; i1 < replicaAvailabilityZones.length; i1++) + 'AvailabilityZone.AvailabilityZone.${i1 + 1}': + replicaAvailabilityZones[i1], + if (replicaCount != null) 'ReplicaCount': replicaCount.toString(), + if (replicaOutpostArns != null) + if (replicaOutpostArns.isEmpty) + 'OutpostArn': '' + else + for (var i1 = 0; i1 < replicaOutpostArns.length; i1++) + 'OutpostArn.OutpostArn.${i1 + 1}': replicaOutpostArns[i1], + if (slots != null) 'Slots': slots, + }; + } } /// Represents a single node within a node group (shard). @@ -11103,6 +11624,15 @@ class ParameterNameValue { if (parameterValue != null) 'ParameterValue': parameterValue, }; } + + Map toQueryMap() { + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + return { + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + }; + } } enum PendingAutomaticFailoverStatus { @@ -11454,6 +11984,23 @@ class RegionalConfiguration { 'ReshardingConfiguration': reshardingConfiguration, }; } + + Map toQueryMap() { + final replicationGroupId = this.replicationGroupId; + final replicationGroupRegion = this.replicationGroupRegion; + final reshardingConfiguration = this.reshardingConfiguration; + return { + 'ReplicationGroupId': replicationGroupId, + 'ReplicationGroupRegion': replicationGroupRegion, + if (reshardingConfiguration.isEmpty) + 'ReshardingConfiguration': '' + else + for (var i1 = 0; i1 < reshardingConfiguration.length; i1++) + for (var e3 in reshardingConfiguration[i1].toQueryMap().entries) + 'ReshardingConfiguration.ReshardingConfiguration.${i1 + 1}.${e3.key}': + e3.value, + }; + } } /// Contains all of the attributes of a specific Redis replication group. @@ -12519,6 +13066,21 @@ class ReshardingConfiguration { 'PreferredAvailabilityZones': preferredAvailabilityZones, }; } + + Map toQueryMap() { + final nodeGroupId = this.nodeGroupId; + final preferredAvailabilityZones = this.preferredAvailabilityZones; + return { + if (nodeGroupId != null) 'NodeGroupId': nodeGroupId, + if (preferredAvailabilityZones != null) + if (preferredAvailabilityZones.isEmpty) + 'AvailabilityZone': '' + else + for (var i1 = 0; i1 < preferredAvailabilityZones.length; i1++) + 'AvailabilityZone.AvailabilityZone.${i1 + 1}': + preferredAvailabilityZones[i1], + }; + } } /// The status of an online resharding operation. @@ -13821,6 +14383,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Represents the output from the AddTagsToResource, @@ -13915,6 +14486,15 @@ class TimeRangeFilter { if (startTime != null) 'StartTime': iso8601ToJson(startTime), }; } + + Map toQueryMap() { + final endTime = this.endTime; + final startTime = this.startTime; + return { + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; + } } enum TransitEncryptionMode { diff --git a/aws_client/lib/src/generated/elasti_cache/v2015_02_02.meta.dart b/aws_client/lib/src/generated/elasti_cache/v2015_02_02.meta.dart deleted file mode 100644 index 48a00fbea..000000000 --- a/aws_client/lib/src/generated/elasti_cache/v2015_02_02.meta.dart +++ /dev/null @@ -1,3075 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AZMode": {"type": "string", "flattened": false}, - "AccessString": {"type": "string", "flattened": false}, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "AllowedNodeGroupId": {"type": "string", "flattened": false}, - "AllowedNodeTypeModificationsMessage": { - "type": "structure", - "members": { - "ScaleUpModifications": {"shape": "NodeTypeList", "flattened": false}, - "ScaleDownModifications": {"shape": "NodeTypeList", "flattened": false} - }, - "flattened": false - }, - "AuthTokenUpdateStatus": {"type": "string", "flattened": false}, - "AuthTokenUpdateStrategyType": {"type": "string", "flattened": false}, - "Authentication": { - "type": "structure", - "members": { - "Type": {"shape": "AuthenticationType", "flattened": false}, - "PasswordCount": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "AuthenticationMode": { - "type": "structure", - "members": { - "Type": {"shape": "InputAuthenticationType", "flattened": false}, - "Passwords": {"shape": "PasswordListInput", "flattened": false} - }, - "flattened": false - }, - "AuthenticationType": {"type": "string", "flattened": false}, - "AuthorizeCacheSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "CacheSecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeCacheSecurityGroupIngressResult": { - "type": "structure", - "members": { - "CacheSecurityGroup": {"shape": "CacheSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "AutomaticFailoverStatus": {"type": "string", "flattened": false}, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZonesList": { - "type": "list", - "member": {"shape": "String", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "BatchApplyUpdateActionMessage": { - "type": "structure", - "members": { - "ReplicationGroupIds": { - "shape": "ReplicationGroupIdList", - "flattened": false - }, - "CacheClusterIds": {"shape": "CacheClusterIdList", "flattened": false}, - "ServiceUpdateName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "BatchStopUpdateActionMessage": { - "type": "structure", - "members": { - "ReplicationGroupIds": { - "shape": "ReplicationGroupIdList", - "flattened": false - }, - "CacheClusterIds": {"shape": "CacheClusterIdList", "flattened": false}, - "ServiceUpdateName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CacheCluster": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "ConfigurationEndpoint": {"shape": "Endpoint", "flattened": false}, - "ClientDownloadLandingPage": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "CacheClusterStatus": {"shape": "String", "flattened": false}, - "NumCacheNodes": {"shape": "IntegerOptional", "flattened": false}, - "PreferredAvailabilityZone": {"shape": "String", "flattened": false}, - "PreferredOutpostArn": {"shape": "String", "flattened": false}, - "CacheClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "NotificationConfiguration": { - "shape": "NotificationConfiguration", - "flattened": false - }, - "CacheSecurityGroups": { - "shape": "CacheSecurityGroupMembershipList", - "flattened": false - }, - "CacheParameterGroup": { - "shape": "CacheParameterGroupStatus", - "flattened": false - }, - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "CacheNodes": {"shape": "CacheNodeList", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "SecurityGroups": { - "shape": "SecurityGroupMembershipList", - "flattened": false - }, - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotWindow": {"shape": "String", "flattened": false}, - "AuthTokenEnabled": {"shape": "BooleanOptional", "flattened": false}, - "AuthTokenLastModifiedDate": {"shape": "TStamp", "flattened": false}, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "AtRestEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "ARN": {"shape": "String", "flattened": false}, - "ReplicationGroupLogDeliveryEnabled": { - "shape": "Boolean", - "flattened": false - }, - "LogDeliveryConfigurations": { - "shape": "LogDeliveryConfigurationList", - "flattened": false - }, - "NetworkType": {"shape": "NetworkType", "flattened": false}, - "IpDiscovery": {"shape": "IpDiscovery", "flattened": false}, - "TransitEncryptionMode": { - "shape": "TransitEncryptionMode", - "flattened": false - } - }, - "flattened": false - }, - "CacheClusterIdList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "CacheClusterList": { - "type": "list", - "member": {"shape": "CacheCluster", "locationName": "CacheCluster"}, - "flattened": false - }, - "CacheClusterMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "CacheClusters": {"shape": "CacheClusterList", "flattened": false} - }, - "flattened": false - }, - "CacheEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "CacheParameterGroupFamily": {"shape": "String", "flattened": false}, - "CacheEngineDescription": {"shape": "String", "flattened": false}, - "CacheEngineVersionDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CacheEngineVersionList": { - "type": "list", - "member": { - "shape": "CacheEngineVersion", - "locationName": "CacheEngineVersion" - }, - "flattened": false - }, - "CacheEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "CacheEngineVersions": { - "shape": "CacheEngineVersionList", - "flattened": false - } - }, - "flattened": false - }, - "CacheNode": { - "type": "structure", - "members": { - "CacheNodeId": {"shape": "String", "flattened": false}, - "CacheNodeStatus": {"shape": "String", "flattened": false}, - "CacheNodeCreateTime": {"shape": "TStamp", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "ParameterGroupStatus": {"shape": "String", "flattened": false}, - "SourceCacheNodeId": {"shape": "String", "flattened": false}, - "CustomerAvailabilityZone": {"shape": "String", "flattened": false}, - "CustomerOutpostArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CacheNodeIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "CacheNodeId"}, - "flattened": false - }, - "CacheNodeList": { - "type": "list", - "member": {"shape": "CacheNode", "locationName": "CacheNode"}, - "flattened": false - }, - "CacheNodeTypeSpecificParameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "CacheNodeTypeSpecificValues": { - "shape": "CacheNodeTypeSpecificValueList", - "flattened": false - }, - "ChangeType": {"shape": "ChangeType", "flattened": false} - }, - "flattened": false - }, - "CacheNodeTypeSpecificParametersList": { - "type": "list", - "member": { - "shape": "CacheNodeTypeSpecificParameter", - "locationName": "CacheNodeTypeSpecificParameter" - }, - "flattened": false - }, - "CacheNodeTypeSpecificValue": { - "type": "structure", - "members": { - "CacheNodeType": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CacheNodeTypeSpecificValueList": { - "type": "list", - "member": { - "shape": "CacheNodeTypeSpecificValue", - "locationName": "CacheNodeTypeSpecificValue" - }, - "flattened": false - }, - "CacheNodeUpdateStatus": { - "type": "structure", - "members": { - "CacheNodeId": {"shape": "String", "flattened": false}, - "NodeUpdateStatus": {"shape": "NodeUpdateStatus", "flattened": false}, - "NodeDeletionDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateStartDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateEndDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateInitiatedBy": { - "shape": "NodeUpdateInitiatedBy", - "flattened": false - }, - "NodeUpdateInitiatedDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateStatusModifiedDate": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "CacheNodeUpdateStatusList": { - "type": "list", - "member": { - "shape": "CacheNodeUpdateStatus", - "locationName": "CacheNodeUpdateStatus" - }, - "flattened": false - }, - "CacheParameterGroup": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "CacheParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "IsGlobal": {"shape": "Boolean", "flattened": false}, - "ARN": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CacheParameterGroupDetails": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false}, - "CacheNodeTypeSpecificParameters": { - "shape": "CacheNodeTypeSpecificParametersList", - "flattened": false - } - }, - "flattened": false - }, - "CacheParameterGroupList": { - "type": "list", - "member": { - "shape": "CacheParameterGroup", - "locationName": "CacheParameterGroup" - }, - "flattened": false - }, - "CacheParameterGroupNameMessage": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CacheParameterGroupStatus": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false}, - "CacheNodeIdsToReboot": {"shape": "CacheNodeIdsList", "flattened": false} - }, - "flattened": false - }, - "CacheParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "CacheParameterGroups": { - "shape": "CacheParameterGroupList", - "flattened": false - } - }, - "flattened": false - }, - "CacheSecurityGroup": { - "type": "structure", - "members": { - "OwnerId": {"shape": "String", "flattened": false}, - "CacheSecurityGroupName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "EC2SecurityGroups": { - "shape": "EC2SecurityGroupList", - "flattened": false - }, - "ARN": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CacheSecurityGroupMembership": { - "type": "structure", - "members": { - "CacheSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CacheSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "CacheSecurityGroupMembership", - "locationName": "CacheSecurityGroup" - }, - "flattened": false - }, - "CacheSecurityGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "CacheSecurityGroups": { - "shape": "CacheSecurityGroups", - "flattened": false - } - }, - "flattened": false - }, - "CacheSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "CacheSecurityGroupName"}, - "flattened": false - }, - "CacheSecurityGroups": { - "type": "list", - "member": { - "shape": "CacheSecurityGroup", - "locationName": "CacheSecurityGroup" - }, - "flattened": false - }, - "CacheSubnetGroup": { - "type": "structure", - "members": { - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "CacheSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false}, - "ARN": {"shape": "String", "flattened": false}, - "SupportedNetworkTypes": {"shape": "NetworkTypeList", "flattened": false} - }, - "flattened": false - }, - "CacheSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "CacheSubnetGroups": {"shape": "CacheSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "CacheSubnetGroups": { - "type": "list", - "member": {"shape": "CacheSubnetGroup", "locationName": "CacheSubnetGroup"}, - "flattened": false - }, - "CacheUsageLimits": { - "type": "structure", - "members": { - "DataStorage": {"shape": "DataStorage", "flattened": false}, - "ECPUPerSecond": {"shape": "ECPUPerSecond", "flattened": false} - }, - "flattened": false - }, - "ChangeType": {"type": "string", "flattened": false}, - "CloudWatchLogsDestinationDetails": { - "type": "structure", - "members": { - "LogGroup": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "ClusterId"}, - "flattened": false - }, - "ClusterMode": {"type": "string", "flattened": false}, - "CompleteMigrationMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "Force": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "CompleteMigrationResponse": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "ConfigureShard": { - "type": "structure", - "members": { - "NodeGroupId": {"shape": "AllowedNodeGroupId", "flattened": false}, - "NewReplicaCount": {"shape": "Integer", "flattened": false}, - "PreferredAvailabilityZones": { - "shape": "PreferredAvailabilityZoneList", - "flattened": false - }, - "PreferredOutpostArns": { - "shape": "PreferredOutpostArnList", - "flattened": false - } - }, - "flattened": false - }, - "CopyServerlessCacheSnapshotRequest": { - "type": "structure", - "members": { - "SourceServerlessCacheSnapshotName": { - "shape": "String", - "flattened": false - }, - "TargetServerlessCacheSnapshotName": { - "shape": "String", - "flattened": false - }, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyServerlessCacheSnapshotResponse": { - "type": "structure", - "members": { - "ServerlessCacheSnapshot": { - "shape": "ServerlessCacheSnapshot", - "flattened": false - } - }, - "flattened": false - }, - "CopySnapshotMessage": { - "type": "structure", - "members": { - "SourceSnapshotName": {"shape": "String", "flattened": false}, - "TargetSnapshotName": {"shape": "String", "flattened": false}, - "TargetBucket": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopySnapshotResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "CreateCacheClusterMessage": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "AZMode": {"shape": "AZMode", "flattened": false}, - "PreferredAvailabilityZone": {"shape": "String", "flattened": false}, - "PreferredAvailabilityZones": { - "shape": "PreferredAvailabilityZoneList", - "flattened": false - }, - "NumCacheNodes": {"shape": "IntegerOptional", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "CacheSecurityGroupNames": { - "shape": "CacheSecurityGroupNameList", - "flattened": false - }, - "SecurityGroupIds": {"shape": "SecurityGroupIdsList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "SnapshotArns": {"shape": "SnapshotArnsList", "flattened": false}, - "SnapshotName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "NotificationTopicArn": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotWindow": {"shape": "String", "flattened": false}, - "AuthToken": {"shape": "String", "flattened": false}, - "OutpostMode": {"shape": "OutpostMode", "flattened": false}, - "PreferredOutpostArn": {"shape": "String", "flattened": false}, - "PreferredOutpostArns": { - "shape": "PreferredOutpostArnList", - "flattened": false - }, - "LogDeliveryConfigurations": { - "shape": "LogDeliveryConfigurationRequestList", - "flattened": false - }, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "NetworkType": {"shape": "NetworkType", "flattened": false}, - "IpDiscovery": {"shape": "IpDiscovery", "flattened": false} - }, - "flattened": false - }, - "CreateCacheClusterResult": { - "type": "structure", - "members": { - "CacheCluster": {"shape": "CacheCluster", "flattened": false} - }, - "flattened": false - }, - "CreateCacheParameterGroupMessage": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "CacheParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateCacheParameterGroupResult": { - "type": "structure", - "members": { - "CacheParameterGroup": { - "shape": "CacheParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CreateCacheSecurityGroupMessage": { - "type": "structure", - "members": { - "CacheSecurityGroupName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateCacheSecurityGroupResult": { - "type": "structure", - "members": { - "CacheSecurityGroup": {"shape": "CacheSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "CreateCacheSubnetGroupMessage": { - "type": "structure", - "members": { - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "CacheSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateCacheSubnetGroupResult": { - "type": "structure", - "members": { - "CacheSubnetGroup": {"shape": "CacheSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupIdSuffix": {"shape": "String", "flattened": false}, - "GlobalReplicationGroupDescription": { - "shape": "String", - "flattened": false - }, - "PrimaryReplicationGroupId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "CreateReplicationGroupMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "ReplicationGroupDescription": {"shape": "String", "flattened": false}, - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "PrimaryClusterId": {"shape": "String", "flattened": false}, - "AutomaticFailoverEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "MultiAZEnabled": {"shape": "BooleanOptional", "flattened": false}, - "NumCacheClusters": {"shape": "IntegerOptional", "flattened": false}, - "PreferredCacheClusterAZs": { - "shape": "AvailabilityZonesList", - "flattened": false - }, - "NumNodeGroups": {"shape": "IntegerOptional", "flattened": false}, - "ReplicasPerNodeGroup": {"shape": "IntegerOptional", "flattened": false}, - "NodeGroupConfiguration": { - "shape": "NodeGroupConfigurationList", - "flattened": false - }, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "CacheSecurityGroupNames": { - "shape": "CacheSecurityGroupNameList", - "flattened": false - }, - "SecurityGroupIds": {"shape": "SecurityGroupIdsList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "SnapshotArns": {"shape": "SnapshotArnsList", "flattened": false}, - "SnapshotName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "NotificationTopicArn": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotWindow": {"shape": "String", "flattened": false}, - "AuthToken": {"shape": "String", "flattened": false}, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "AtRestEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "KmsKeyId": {"shape": "String", "flattened": false}, - "UserGroupIds": {"shape": "UserGroupIdListInput", "flattened": false}, - "LogDeliveryConfigurations": { - "shape": "LogDeliveryConfigurationRequestList", - "flattened": false - }, - "DataTieringEnabled": {"shape": "BooleanOptional", "flattened": false}, - "NetworkType": {"shape": "NetworkType", "flattened": false}, - "IpDiscovery": {"shape": "IpDiscovery", "flattened": false}, - "TransitEncryptionMode": { - "shape": "TransitEncryptionMode", - "flattened": false - }, - "ClusterMode": {"shape": "ClusterMode", "flattened": false}, - "ServerlessCacheSnapshotName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateReplicationGroupResult": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "CreateServerlessCacheRequest": { - "type": "structure", - "members": { - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "CacheUsageLimits": {"shape": "CacheUsageLimits", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "SecurityGroupIds": {"shape": "SecurityGroupIdsList", "flattened": false}, - "SnapshotArnsToRestore": { - "shape": "SnapshotArnsList", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "UserGroupId": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdsList", "flattened": false}, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "DailySnapshotTime": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateServerlessCacheResponse": { - "type": "structure", - "members": { - "ServerlessCache": {"shape": "ServerlessCache", "flattened": false} - }, - "flattened": false - }, - "CreateServerlessCacheSnapshotRequest": { - "type": "structure", - "members": { - "ServerlessCacheSnapshotName": {"shape": "String", "flattened": false}, - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateServerlessCacheSnapshotResponse": { - "type": "structure", - "members": { - "ServerlessCacheSnapshot": { - "shape": "ServerlessCacheSnapshot", - "flattened": false - } - }, - "flattened": false - }, - "CreateSnapshotMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "CacheClusterId": {"shape": "String", "flattened": false}, - "SnapshotName": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateSnapshotResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "CreateUserGroupMessage": { - "type": "structure", - "members": { - "UserGroupId": {"shape": "String", "flattened": false}, - "Engine": {"shape": "EngineType", "flattened": false}, - "UserIds": {"shape": "UserIdListInput", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateUserMessage": { - "type": "structure", - "members": { - "UserId": {"shape": "UserId", "flattened": false}, - "UserName": {"shape": "UserName", "flattened": false}, - "Engine": {"shape": "EngineType", "flattened": false}, - "Passwords": {"shape": "PasswordListInput", "flattened": false}, - "AccessString": {"shape": "AccessString", "flattened": false}, - "NoPasswordRequired": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "AuthenticationMode": {"shape": "AuthenticationMode", "flattened": false} - }, - "flattened": false - }, - "CustomerNodeEndpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "CustomerNodeEndpointList": { - "type": "list", - "member": {"shape": "CustomerNodeEndpoint"}, - "flattened": false - }, - "DataStorage": { - "type": "structure", - "members": { - "Maximum": {"shape": "IntegerOptional", "flattened": false}, - "Minimum": {"shape": "IntegerOptional", "flattened": false}, - "Unit": {"shape": "DataStorageUnit", "flattened": false} - }, - "flattened": false - }, - "DataStorageUnit": {"type": "string", "flattened": false}, - "DataTieringStatus": {"type": "string", "flattened": false}, - "DecreaseNodeGroupsInGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "NodeGroupCount": {"shape": "Integer", "flattened": false}, - "GlobalNodeGroupsToRemove": { - "shape": "GlobalNodeGroupIdList", - "flattened": false - }, - "GlobalNodeGroupsToRetain": { - "shape": "GlobalNodeGroupIdList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DecreaseNodeGroupsInGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "DecreaseReplicaCountMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "NewReplicaCount": {"shape": "IntegerOptional", "flattened": false}, - "ReplicaConfiguration": { - "shape": "ReplicaConfigurationList", - "flattened": false - }, - "ReplicasToRemove": {"shape": "RemoveReplicasList", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DecreaseReplicaCountResult": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "DeleteCacheClusterMessage": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "FinalSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteCacheClusterResult": { - "type": "structure", - "members": { - "CacheCluster": {"shape": "CacheCluster", "flattened": false} - }, - "flattened": false - }, - "DeleteCacheParameterGroupMessage": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteCacheSecurityGroupMessage": { - "type": "structure", - "members": { - "CacheSecurityGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteCacheSubnetGroupMessage": { - "type": "structure", - "members": { - "CacheSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "RetainPrimaryReplicationGroup": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DeleteGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "DeleteReplicationGroupMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "RetainPrimaryCluster": {"shape": "BooleanOptional", "flattened": false}, - "FinalSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteReplicationGroupResult": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "DeleteServerlessCacheRequest": { - "type": "structure", - "members": { - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "FinalSnapshotName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteServerlessCacheResponse": { - "type": "structure", - "members": { - "ServerlessCache": {"shape": "ServerlessCache", "flattened": false} - }, - "flattened": false - }, - "DeleteServerlessCacheSnapshotRequest": { - "type": "structure", - "members": { - "ServerlessCacheSnapshotName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteServerlessCacheSnapshotResponse": { - "type": "structure", - "members": { - "ServerlessCacheSnapshot": { - "shape": "ServerlessCacheSnapshot", - "flattened": false - } - }, - "flattened": false - }, - "DeleteSnapshotMessage": { - "type": "structure", - "members": { - "SnapshotName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteSnapshotResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteUserGroupMessage": { - "type": "structure", - "members": { - "UserGroupId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteUserMessage": { - "type": "structure", - "members": { - "UserId": {"shape": "UserId", "flattened": false} - }, - "flattened": false - }, - "DescribeCacheClustersMessage": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "ShowCacheNodeInfo": {"shape": "BooleanOptional", "flattened": false}, - "ShowCacheClustersNotInReplicationGroups": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "DescribeCacheEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "CacheParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeCacheParameterGroupsMessage": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeCacheParametersMessage": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeCacheSecurityGroupsMessage": { - "type": "structure", - "members": { - "CacheSecurityGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeCacheSubnetGroupsMessage": { - "type": "structure", - "members": { - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersMessage": { - "type": "structure", - "members": { - "CacheParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeGlobalReplicationGroupsMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "ShowMemberInfo": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeGlobalReplicationGroupsResult": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "GlobalReplicationGroups": { - "shape": "GlobalReplicationGroupList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeReplicationGroupsMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedCacheNodesMessage": { - "type": "structure", - "members": { - "ReservedCacheNodeId": {"shape": "String", "flattened": false}, - "ReservedCacheNodesOfferingId": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedCacheNodesOfferingsMessage": { - "type": "structure", - "members": { - "ReservedCacheNodesOfferingId": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeServerlessCacheSnapshotsRequest": { - "type": "structure", - "members": { - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "ServerlessCacheSnapshotName": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false}, - "MaxResults": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeServerlessCacheSnapshotsResponse": { - "type": "structure", - "members": { - "NextToken": {"shape": "String", "flattened": false}, - "ServerlessCacheSnapshots": { - "shape": "ServerlessCacheSnapshotList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeServerlessCachesRequest": { - "type": "structure", - "members": { - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "MaxResults": {"shape": "IntegerOptional", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeServerlessCachesResponse": { - "type": "structure", - "members": { - "NextToken": {"shape": "String", "flattened": false}, - "ServerlessCaches": {"shape": "ServerlessCacheList", "flattened": false} - }, - "flattened": false - }, - "DescribeServiceUpdatesMessage": { - "type": "structure", - "members": { - "ServiceUpdateName": {"shape": "String", "flattened": false}, - "ServiceUpdateStatus": { - "shape": "ServiceUpdateStatusList", - "flattened": false - }, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeSnapshotsListMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Snapshots": {"shape": "SnapshotList", "flattened": false} - }, - "flattened": false - }, - "DescribeSnapshotsMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "CacheClusterId": {"shape": "String", "flattened": false}, - "SnapshotName": {"shape": "String", "flattened": false}, - "SnapshotSource": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "ShowNodeGroupConfig": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeUpdateActionsMessage": { - "type": "structure", - "members": { - "ServiceUpdateName": {"shape": "String", "flattened": false}, - "ReplicationGroupIds": { - "shape": "ReplicationGroupIdList", - "flattened": false - }, - "CacheClusterIds": {"shape": "CacheClusterIdList", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "ServiceUpdateStatus": { - "shape": "ServiceUpdateStatusList", - "flattened": false - }, - "ServiceUpdateTimeRange": { - "shape": "TimeRangeFilter", - "flattened": false - }, - "UpdateActionStatus": { - "shape": "UpdateActionStatusList", - "flattened": false - }, - "ShowNodeLevelUpdateStatus": { - "shape": "BooleanOptional", - "flattened": false - }, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeUserGroupsMessage": { - "type": "structure", - "members": { - "UserGroupId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeUserGroupsResult": { - "type": "structure", - "members": { - "UserGroups": {"shape": "UserGroupList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeUsersMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "EngineType", "flattened": false}, - "UserId": {"shape": "UserId", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeUsersResult": { - "type": "structure", - "members": { - "Users": {"shape": "UserList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DestinationDetails": { - "type": "structure", - "members": { - "CloudWatchLogsDetails": { - "shape": "CloudWatchLogsDestinationDetails", - "flattened": false - }, - "KinesisFirehoseDetails": { - "shape": "KinesisFirehoseDestinationDetails", - "flattened": false - } - }, - "flattened": false - }, - "DestinationType": {"type": "string", "flattened": false}, - "DisassociateGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "ReplicationGroupRegion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DisassociateGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "EC2SecurityGroup": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroupList": { - "type": "list", - "member": {"shape": "EC2SecurityGroup", "locationName": "EC2SecurityGroup"}, - "flattened": false - }, - "ECPUPerSecond": { - "type": "structure", - "members": { - "Maximum": {"shape": "IntegerOptional", "flattened": false}, - "Minimum": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "CacheParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false}, - "CacheNodeTypeSpecificParameters": { - "shape": "CacheNodeTypeSpecificParametersList", - "flattened": false - } - }, - "flattened": false - }, - "EngineType": {"type": "string", "flattened": false}, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "ExportServerlessCacheSnapshotRequest": { - "type": "structure", - "members": { - "ServerlessCacheSnapshotName": {"shape": "String", "flattened": false}, - "S3BucketName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ExportServerlessCacheSnapshotResponse": { - "type": "structure", - "members": { - "ServerlessCacheSnapshot": { - "shape": "ServerlessCacheSnapshot", - "flattened": false - } - }, - "flattened": false - }, - "FailoverGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "PrimaryRegion": {"shape": "String", "flattened": false}, - "PrimaryReplicationGroupId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "FailoverGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "Filter": { - "type": "structure", - "members": { - "Name": {"shape": "FilterName", "flattened": false}, - "Values": {"shape": "FilterValueList", "flattened": false} - }, - "flattened": false - }, - "FilterList": { - "type": "list", - "member": {"shape": "Filter"}, - "flattened": false - }, - "FilterName": {"type": "string", "flattened": false}, - "FilterValue": {"type": "string", "flattened": false}, - "FilterValueList": { - "type": "list", - "member": {"shape": "FilterValue"}, - "flattened": false - }, - "GlobalNodeGroup": { - "type": "structure", - "members": { - "GlobalNodeGroupId": {"shape": "String", "flattened": false}, - "Slots": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GlobalNodeGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "GlobalNodeGroupId"}, - "flattened": false - }, - "GlobalNodeGroupList": { - "type": "list", - "member": {"shape": "GlobalNodeGroup", "locationName": "GlobalNodeGroup"}, - "flattened": false - }, - "GlobalReplicationGroup": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "GlobalReplicationGroupDescription": { - "shape": "String", - "flattened": false - }, - "Status": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Members": { - "shape": "GlobalReplicationGroupMemberList", - "flattened": false - }, - "ClusterEnabled": {"shape": "BooleanOptional", "flattened": false}, - "GlobalNodeGroups": {"shape": "GlobalNodeGroupList", "flattened": false}, - "AuthTokenEnabled": {"shape": "BooleanOptional", "flattened": false}, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "AtRestEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "ARN": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GlobalReplicationGroupInfo": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "GlobalReplicationGroupMemberRole": { - "shape": "String", - "flattened": false - } - }, - "flattened": false - }, - "GlobalReplicationGroupList": { - "type": "list", - "member": { - "shape": "GlobalReplicationGroup", - "locationName": "GlobalReplicationGroup" - }, - "flattened": false - }, - "GlobalReplicationGroupMember": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "ReplicationGroupRegion": {"shape": "String", "flattened": false}, - "Role": {"shape": "String", "flattened": false}, - "AutomaticFailover": { - "shape": "AutomaticFailoverStatus", - "flattened": false - }, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GlobalReplicationGroupMemberList": { - "type": "list", - "member": { - "shape": "GlobalReplicationGroupMember", - "locationName": "GlobalReplicationGroupMember" - }, - "flattened": false - }, - "IncreaseNodeGroupsInGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "NodeGroupCount": {"shape": "Integer", "flattened": false}, - "RegionalConfigurations": { - "shape": "RegionalConfigurationList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "IncreaseNodeGroupsInGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "IncreaseReplicaCountMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "NewReplicaCount": {"shape": "IntegerOptional", "flattened": false}, - "ReplicaConfiguration": { - "shape": "ReplicaConfigurationList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "IncreaseReplicaCountResult": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "InputAuthenticationType": {"type": "string", "flattened": false}, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "IpDiscovery": {"type": "string", "flattened": false}, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "KinesisFirehoseDestinationDetails": { - "type": "structure", - "members": { - "DeliveryStream": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListAllowedNodeTypeModificationsMessage": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "ReplicationGroupId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "LogDeliveryConfiguration": { - "type": "structure", - "members": { - "LogType": {"shape": "LogType", "flattened": false}, - "DestinationType": {"shape": "DestinationType", "flattened": false}, - "DestinationDetails": {"shape": "DestinationDetails", "flattened": false}, - "LogFormat": {"shape": "LogFormat", "flattened": false}, - "Status": {"shape": "LogDeliveryConfigurationStatus", "flattened": false}, - "Message": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "LogDeliveryConfigurationList": { - "type": "list", - "member": { - "shape": "LogDeliveryConfiguration", - "locationName": "LogDeliveryConfiguration" - }, - "flattened": false - }, - "LogDeliveryConfigurationRequest": { - "type": "structure", - "members": { - "LogType": {"shape": "LogType", "flattened": false}, - "DestinationType": {"shape": "DestinationType", "flattened": false}, - "DestinationDetails": {"shape": "DestinationDetails", "flattened": false}, - "LogFormat": {"shape": "LogFormat", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "LogDeliveryConfigurationRequestList": { - "type": "list", - "member": { - "shape": "LogDeliveryConfigurationRequest", - "locationName": "LogDeliveryConfigurationRequest" - }, - "flattened": false - }, - "LogDeliveryConfigurationStatus": {"type": "string", "flattened": false}, - "LogFormat": {"type": "string", "flattened": false}, - "LogType": {"type": "string", "flattened": false}, - "ModifyCacheClusterMessage": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "NumCacheNodes": {"shape": "IntegerOptional", "flattened": false}, - "CacheNodeIdsToRemove": {"shape": "CacheNodeIdsList", "flattened": false}, - "AZMode": {"shape": "AZMode", "flattened": false}, - "NewAvailabilityZones": { - "shape": "PreferredAvailabilityZoneList", - "flattened": false - }, - "CacheSecurityGroupNames": { - "shape": "CacheSecurityGroupNameList", - "flattened": false - }, - "SecurityGroupIds": {"shape": "SecurityGroupIdsList", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "NotificationTopicArn": {"shape": "String", "flattened": false}, - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "NotificationTopicStatus": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotWindow": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "AuthToken": {"shape": "String", "flattened": false}, - "AuthTokenUpdateStrategy": { - "shape": "AuthTokenUpdateStrategyType", - "flattened": false - }, - "LogDeliveryConfigurations": { - "shape": "LogDeliveryConfigurationRequestList", - "flattened": false - }, - "IpDiscovery": {"shape": "IpDiscovery", "flattened": false} - }, - "flattened": false - }, - "ModifyCacheClusterResult": { - "type": "structure", - "members": { - "CacheCluster": {"shape": "CacheCluster", "flattened": false} - }, - "flattened": false - }, - "ModifyCacheParameterGroupMessage": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterNameValues": { - "shape": "ParameterNameValueList", - "flattened": false - } - }, - "flattened": false - }, - "ModifyCacheSubnetGroupMessage": { - "type": "structure", - "members": { - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "CacheSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyCacheSubnetGroupResult": { - "type": "structure", - "members": { - "CacheSubnetGroup": {"shape": "CacheSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "GlobalReplicationGroupDescription": { - "shape": "String", - "flattened": false - }, - "AutomaticFailoverEnabled": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "ModifyGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "ModifyReplicationGroupMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "ReplicationGroupDescription": {"shape": "String", "flattened": false}, - "PrimaryClusterId": {"shape": "String", "flattened": false}, - "SnapshottingClusterId": {"shape": "String", "flattened": false}, - "AutomaticFailoverEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "MultiAZEnabled": {"shape": "BooleanOptional", "flattened": false}, - "NodeGroupId": {"shape": "String", "flattened": false}, - "CacheSecurityGroupNames": { - "shape": "CacheSecurityGroupNameList", - "flattened": false - }, - "SecurityGroupIds": {"shape": "SecurityGroupIdsList", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "NotificationTopicArn": {"shape": "String", "flattened": false}, - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "NotificationTopicStatus": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotWindow": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "AuthToken": {"shape": "String", "flattened": false}, - "AuthTokenUpdateStrategy": { - "shape": "AuthTokenUpdateStrategyType", - "flattened": false - }, - "UserGroupIdsToAdd": {"shape": "UserGroupIdList", "flattened": false}, - "UserGroupIdsToRemove": {"shape": "UserGroupIdList", "flattened": false}, - "RemoveUserGroups": {"shape": "BooleanOptional", "flattened": false}, - "LogDeliveryConfigurations": { - "shape": "LogDeliveryConfigurationRequestList", - "flattened": false - }, - "IpDiscovery": {"shape": "IpDiscovery", "flattened": false}, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "TransitEncryptionMode": { - "shape": "TransitEncryptionMode", - "flattened": false - }, - "ClusterMode": {"shape": "ClusterMode", "flattened": false} - }, - "flattened": false - }, - "ModifyReplicationGroupResult": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyReplicationGroupShardConfigurationMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "NodeGroupCount": {"shape": "Integer", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "ReshardingConfiguration": { - "shape": "ReshardingConfigurationList", - "flattened": false - }, - "NodeGroupsToRemove": { - "shape": "NodeGroupsToRemoveList", - "flattened": false - }, - "NodeGroupsToRetain": { - "shape": "NodeGroupsToRetainList", - "flattened": false - } - }, - "flattened": false - }, - "ModifyReplicationGroupShardConfigurationResult": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyServerlessCacheRequest": { - "type": "structure", - "members": { - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "CacheUsageLimits": {"shape": "CacheUsageLimits", "flattened": false}, - "RemoveUserGroup": {"shape": "BooleanOptional", "flattened": false}, - "UserGroupId": {"shape": "String", "flattened": false}, - "SecurityGroupIds": {"shape": "SecurityGroupIdsList", "flattened": false}, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "DailySnapshotTime": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyServerlessCacheResponse": { - "type": "structure", - "members": { - "ServerlessCache": {"shape": "ServerlessCache", "flattened": false} - }, - "flattened": false - }, - "ModifyUserGroupMessage": { - "type": "structure", - "members": { - "UserGroupId": {"shape": "String", "flattened": false}, - "UserIdsToAdd": {"shape": "UserIdListInput", "flattened": false}, - "UserIdsToRemove": {"shape": "UserIdListInput", "flattened": false} - }, - "flattened": false - }, - "ModifyUserMessage": { - "type": "structure", - "members": { - "UserId": {"shape": "UserId", "flattened": false}, - "AccessString": {"shape": "AccessString", "flattened": false}, - "AppendAccessString": {"shape": "AccessString", "flattened": false}, - "Passwords": {"shape": "PasswordListInput", "flattened": false}, - "NoPasswordRequired": {"shape": "BooleanOptional", "flattened": false}, - "AuthenticationMode": {"shape": "AuthenticationMode", "flattened": false} - }, - "flattened": false - }, - "MultiAZStatus": {"type": "string", "flattened": false}, - "NetworkType": {"type": "string", "flattened": false}, - "NetworkTypeList": { - "type": "list", - "member": {"shape": "NetworkType"}, - "flattened": false - }, - "NodeGroup": { - "type": "structure", - "members": { - "NodeGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "PrimaryEndpoint": {"shape": "Endpoint", "flattened": false}, - "ReaderEndpoint": {"shape": "Endpoint", "flattened": false}, - "Slots": {"shape": "String", "flattened": false}, - "NodeGroupMembers": {"shape": "NodeGroupMemberList", "flattened": false} - }, - "flattened": false - }, - "NodeGroupConfiguration": { - "type": "structure", - "members": { - "NodeGroupId": {"shape": "AllowedNodeGroupId", "flattened": false}, - "Slots": {"shape": "String", "flattened": false}, - "ReplicaCount": {"shape": "IntegerOptional", "flattened": false}, - "PrimaryAvailabilityZone": {"shape": "String", "flattened": false}, - "ReplicaAvailabilityZones": { - "shape": "AvailabilityZonesList", - "flattened": false - }, - "PrimaryOutpostArn": {"shape": "String", "flattened": false}, - "ReplicaOutpostArns": {"shape": "OutpostArnsList", "flattened": false} - }, - "flattened": false - }, - "NodeGroupConfigurationList": { - "type": "list", - "member": { - "shape": "NodeGroupConfiguration", - "locationName": "NodeGroupConfiguration" - }, - "flattened": false - }, - "NodeGroupList": { - "type": "list", - "member": {"shape": "NodeGroup", "locationName": "NodeGroup"}, - "flattened": false - }, - "NodeGroupMember": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "CacheNodeId": {"shape": "String", "flattened": false}, - "ReadEndpoint": {"shape": "Endpoint", "flattened": false}, - "PreferredAvailabilityZone": {"shape": "String", "flattened": false}, - "PreferredOutpostArn": {"shape": "String", "flattened": false}, - "CurrentRole": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "NodeGroupMemberList": { - "type": "list", - "member": {"shape": "NodeGroupMember", "locationName": "NodeGroupMember"}, - "flattened": false - }, - "NodeGroupMemberUpdateStatus": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "CacheNodeId": {"shape": "String", "flattened": false}, - "NodeUpdateStatus": {"shape": "NodeUpdateStatus", "flattened": false}, - "NodeDeletionDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateStartDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateEndDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateInitiatedBy": { - "shape": "NodeUpdateInitiatedBy", - "flattened": false - }, - "NodeUpdateInitiatedDate": {"shape": "TStamp", "flattened": false}, - "NodeUpdateStatusModifiedDate": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "NodeGroupMemberUpdateStatusList": { - "type": "list", - "member": { - "shape": "NodeGroupMemberUpdateStatus", - "locationName": "NodeGroupMemberUpdateStatus" - }, - "flattened": false - }, - "NodeGroupUpdateStatus": { - "type": "structure", - "members": { - "NodeGroupId": {"shape": "String", "flattened": false}, - "NodeGroupMemberUpdateStatus": { - "shape": "NodeGroupMemberUpdateStatusList", - "flattened": false - } - }, - "flattened": false - }, - "NodeGroupUpdateStatusList": { - "type": "list", - "member": { - "shape": "NodeGroupUpdateStatus", - "locationName": "NodeGroupUpdateStatus" - }, - "flattened": false - }, - "NodeGroupsToRemoveList": { - "type": "list", - "member": { - "shape": "AllowedNodeGroupId", - "locationName": "NodeGroupToRemove" - }, - "flattened": false - }, - "NodeGroupsToRetainList": { - "type": "list", - "member": { - "shape": "AllowedNodeGroupId", - "locationName": "NodeGroupToRetain" - }, - "flattened": false - }, - "NodeSnapshot": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "NodeGroupId": {"shape": "String", "flattened": false}, - "CacheNodeId": {"shape": "String", "flattened": false}, - "NodeGroupConfiguration": { - "shape": "NodeGroupConfiguration", - "flattened": false - }, - "CacheSize": {"shape": "String", "flattened": false}, - "CacheNodeCreateTime": {"shape": "TStamp", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "NodeSnapshotList": { - "type": "list", - "member": {"shape": "NodeSnapshot", "locationName": "NodeSnapshot"}, - "flattened": false - }, - "NodeTypeList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "NodeUpdateInitiatedBy": {"type": "string", "flattened": false}, - "NodeUpdateStatus": {"type": "string", "flattened": false}, - "NotificationConfiguration": { - "type": "structure", - "members": { - "TopicArn": {"shape": "String", "flattened": false}, - "TopicStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OutpostArnsList": { - "type": "list", - "member": {"shape": "String", "locationName": "OutpostArn"}, - "flattened": false - }, - "OutpostMode": {"type": "string", "flattened": false}, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ChangeType": {"shape": "ChangeType", "flattened": false} - }, - "flattened": false - }, - "ParameterNameValue": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ParameterNameValueList": { - "type": "list", - "member": { - "shape": "ParameterNameValue", - "locationName": "ParameterNameValue" - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PasswordListInput": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "PendingAutomaticFailoverStatus": {"type": "string", "flattened": false}, - "PendingLogDeliveryConfiguration": { - "type": "structure", - "members": { - "LogType": {"shape": "LogType", "flattened": false}, - "DestinationType": {"shape": "DestinationType", "flattened": false}, - "DestinationDetails": {"shape": "DestinationDetails", "flattened": false}, - "LogFormat": {"shape": "LogFormat", "flattened": false} - }, - "flattened": false - }, - "PendingLogDeliveryConfigurationList": { - "type": "list", - "member": {"shape": "PendingLogDeliveryConfiguration"}, - "locationName": "PendingLogDeliveryConfiguration", - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "NumCacheNodes": {"shape": "IntegerOptional", "flattened": false}, - "CacheNodeIdsToRemove": {"shape": "CacheNodeIdsList", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "AuthTokenStatus": {"shape": "AuthTokenUpdateStatus", "flattened": false}, - "LogDeliveryConfigurations": { - "shape": "PendingLogDeliveryConfigurationList", - "flattened": false - }, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "TransitEncryptionMode": { - "shape": "TransitEncryptionMode", - "flattened": false - } - }, - "flattened": false - }, - "PreferredAvailabilityZoneList": { - "type": "list", - "member": {"shape": "String", "locationName": "PreferredAvailabilityZone"}, - "flattened": false - }, - "PreferredOutpostArnList": { - "type": "list", - "member": {"shape": "String", "locationName": "PreferredOutpostArn"}, - "flattened": false - }, - "ProcessedUpdateAction": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "CacheClusterId": {"shape": "String", "flattened": false}, - "ServiceUpdateName": {"shape": "String", "flattened": false}, - "UpdateActionStatus": {"shape": "UpdateActionStatus", "flattened": false} - }, - "flattened": false - }, - "ProcessedUpdateActionList": { - "type": "list", - "member": { - "shape": "ProcessedUpdateAction", - "locationName": "ProcessedUpdateAction" - }, - "flattened": false - }, - "PurchaseReservedCacheNodesOfferingMessage": { - "type": "structure", - "members": { - "ReservedCacheNodesOfferingId": {"shape": "String", "flattened": false}, - "ReservedCacheNodeId": {"shape": "String", "flattened": false}, - "CacheNodeCount": {"shape": "IntegerOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedCacheNodesOfferingResult": { - "type": "structure", - "members": { - "ReservedCacheNode": {"shape": "ReservedCacheNode", "flattened": false} - }, - "flattened": false - }, - "RebalanceSlotsInGlobalReplicationGroupMessage": { - "type": "structure", - "members": { - "GlobalReplicationGroupId": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "RebalanceSlotsInGlobalReplicationGroupResult": { - "type": "structure", - "members": { - "GlobalReplicationGroup": { - "shape": "GlobalReplicationGroup", - "flattened": false - } - }, - "flattened": false - }, - "RebootCacheClusterMessage": { - "type": "structure", - "members": { - "CacheClusterId": {"shape": "String", "flattened": false}, - "CacheNodeIdsToReboot": {"shape": "CacheNodeIdsList", "flattened": false} - }, - "flattened": false - }, - "RebootCacheClusterResult": { - "type": "structure", - "members": { - "CacheCluster": {"shape": "CacheCluster", "flattened": false} - }, - "flattened": false - }, - "RecurringCharge": { - "type": "structure", - "members": { - "RecurringChargeAmount": {"shape": "Double", "flattened": false}, - "RecurringChargeFrequency": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecurringChargeList": { - "type": "list", - "member": {"shape": "RecurringCharge", "locationName": "RecurringCharge"}, - "flattened": false - }, - "RegionalConfiguration": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "ReplicationGroupRegion": {"shape": "String", "flattened": false}, - "ReshardingConfiguration": { - "shape": "ReshardingConfigurationList", - "flattened": false - } - }, - "flattened": false - }, - "RegionalConfigurationList": { - "type": "list", - "member": { - "shape": "RegionalConfiguration", - "locationName": "RegionalConfiguration" - }, - "flattened": false - }, - "RemoveReplicasList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ReplicaConfigurationList": { - "type": "list", - "member": {"shape": "ConfigureShard", "locationName": "ConfigureShard"}, - "flattened": false - }, - "ReplicationGroup": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "GlobalReplicationGroupInfo": { - "shape": "GlobalReplicationGroupInfo", - "flattened": false - }, - "Status": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "ReplicationGroupPendingModifiedValues", - "flattened": false - }, - "MemberClusters": {"shape": "ClusterIdList", "flattened": false}, - "NodeGroups": {"shape": "NodeGroupList", "flattened": false}, - "SnapshottingClusterId": {"shape": "String", "flattened": false}, - "AutomaticFailover": { - "shape": "AutomaticFailoverStatus", - "flattened": false - }, - "MultiAZ": {"shape": "MultiAZStatus", "flattened": false}, - "ConfigurationEndpoint": {"shape": "Endpoint", "flattened": false}, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotWindow": {"shape": "String", "flattened": false}, - "ClusterEnabled": {"shape": "BooleanOptional", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "AuthTokenEnabled": {"shape": "BooleanOptional", "flattened": false}, - "AuthTokenLastModifiedDate": {"shape": "TStamp", "flattened": false}, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "AtRestEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "MemberClustersOutpostArns": { - "shape": "ReplicationGroupOutpostArnList", - "flattened": false - }, - "KmsKeyId": {"shape": "String", "flattened": false}, - "ARN": {"shape": "String", "flattened": false}, - "UserGroupIds": {"shape": "UserGroupIdList", "flattened": false}, - "LogDeliveryConfigurations": { - "shape": "LogDeliveryConfigurationList", - "flattened": false - }, - "ReplicationGroupCreateTime": {"shape": "TStamp", "flattened": false}, - "DataTiering": {"shape": "DataTieringStatus", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "NetworkType": {"shape": "NetworkType", "flattened": false}, - "IpDiscovery": {"shape": "IpDiscovery", "flattened": false}, - "TransitEncryptionMode": { - "shape": "TransitEncryptionMode", - "flattened": false - }, - "ClusterMode": {"shape": "ClusterMode", "flattened": false} - }, - "flattened": false - }, - "ReplicationGroupIdList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ReplicationGroupList": { - "type": "list", - "member": {"shape": "ReplicationGroup", "locationName": "ReplicationGroup"}, - "flattened": false - }, - "ReplicationGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReplicationGroups": {"shape": "ReplicationGroupList", "flattened": false} - }, - "flattened": false - }, - "ReplicationGroupOutpostArnList": { - "type": "list", - "member": {"shape": "String", "locationName": "ReplicationGroupOutpostArn"}, - "flattened": false - }, - "ReplicationGroupPendingModifiedValues": { - "type": "structure", - "members": { - "PrimaryClusterId": {"shape": "String", "flattened": false}, - "AutomaticFailoverStatus": { - "shape": "PendingAutomaticFailoverStatus", - "flattened": false - }, - "Resharding": {"shape": "ReshardingStatus", "flattened": false}, - "AuthTokenStatus": {"shape": "AuthTokenUpdateStatus", "flattened": false}, - "UserGroups": {"shape": "UserGroupsUpdateStatus", "flattened": false}, - "LogDeliveryConfigurations": { - "shape": "PendingLogDeliveryConfigurationList", - "flattened": false - }, - "TransitEncryptionEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "TransitEncryptionMode": { - "shape": "TransitEncryptionMode", - "flattened": false - }, - "ClusterMode": {"shape": "ClusterMode", "flattened": false} - }, - "flattened": false - }, - "ReservedCacheNode": { - "type": "structure", - "members": { - "ReservedCacheNodeId": {"shape": "String", "flattened": false}, - "ReservedCacheNodesOfferingId": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CacheNodeCount": {"shape": "Integer", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "State": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false}, - "ReservationARN": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ReservedCacheNodeList": { - "type": "list", - "member": { - "shape": "ReservedCacheNode", - "locationName": "ReservedCacheNode" - }, - "flattened": false - }, - "ReservedCacheNodeMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedCacheNodes": { - "shape": "ReservedCacheNodeList", - "flattened": false - } - }, - "flattened": false - }, - "ReservedCacheNodesOffering": { - "type": "structure", - "members": { - "ReservedCacheNodesOfferingId": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedCacheNodesOfferingList": { - "type": "list", - "member": { - "shape": "ReservedCacheNodesOffering", - "locationName": "ReservedCacheNodesOffering" - }, - "flattened": false - }, - "ReservedCacheNodesOfferingMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedCacheNodesOfferings": { - "shape": "ReservedCacheNodesOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "ResetCacheParameterGroupMessage": { - "type": "structure", - "members": { - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "ParameterNameValues": { - "shape": "ParameterNameValueList", - "flattened": false - } - }, - "flattened": false - }, - "ReshardingConfiguration": { - "type": "structure", - "members": { - "NodeGroupId": {"shape": "AllowedNodeGroupId", "flattened": false}, - "PreferredAvailabilityZones": { - "shape": "AvailabilityZonesList", - "flattened": false - } - }, - "flattened": false - }, - "ReshardingConfigurationList": { - "type": "list", - "member": { - "shape": "ReshardingConfiguration", - "locationName": "ReshardingConfiguration" - }, - "flattened": false - }, - "ReshardingStatus": { - "type": "structure", - "members": { - "SlotMigration": {"shape": "SlotMigration", "flattened": false} - }, - "flattened": false - }, - "RevokeCacheSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "CacheSecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeCacheSecurityGroupIngressResult": { - "type": "structure", - "members": { - "CacheSecurityGroup": {"shape": "CacheSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "SecurityGroupIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SecurityGroupId"}, - "flattened": false - }, - "SecurityGroupMembership": { - "type": "structure", - "members": { - "SecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SecurityGroupMembershipList": { - "type": "list", - "member": {"shape": "SecurityGroupMembership"}, - "flattened": false - }, - "ServerlessCache": { - "type": "structure", - "members": { - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "CreateTime": {"shape": "TStamp", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "FullEngineVersion": {"shape": "String", "flattened": false}, - "CacheUsageLimits": {"shape": "CacheUsageLimits", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "SecurityGroupIds": {"shape": "SecurityGroupIdsList", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "ReaderEndpoint": {"shape": "Endpoint", "flattened": false}, - "ARN": {"shape": "String", "flattened": false}, - "UserGroupId": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdsList", "flattened": false}, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "DailySnapshotTime": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ServerlessCacheConfiguration": { - "type": "structure", - "members": { - "ServerlessCacheName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ServerlessCacheList": { - "type": "list", - "member": {"shape": "ServerlessCache"}, - "flattened": false - }, - "ServerlessCacheSnapshot": { - "type": "structure", - "members": { - "ServerlessCacheSnapshotName": {"shape": "String", "flattened": false}, - "ARN": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "CreateTime": {"shape": "TStamp", "flattened": false}, - "ExpiryTime": {"shape": "TStamp", "flattened": false}, - "BytesUsedForCache": {"shape": "String", "flattened": false}, - "ServerlessCacheConfiguration": { - "shape": "ServerlessCacheConfiguration", - "flattened": false - } - }, - "flattened": false - }, - "ServerlessCacheSnapshotList": { - "type": "list", - "member": { - "shape": "ServerlessCacheSnapshot", - "locationName": "ServerlessCacheSnapshot" - }, - "flattened": false - }, - "ServiceUpdate": { - "type": "structure", - "members": { - "ServiceUpdateName": {"shape": "String", "flattened": false}, - "ServiceUpdateReleaseDate": {"shape": "TStamp", "flattened": false}, - "ServiceUpdateEndDate": {"shape": "TStamp", "flattened": false}, - "ServiceUpdateSeverity": { - "shape": "ServiceUpdateSeverity", - "flattened": false - }, - "ServiceUpdateRecommendedApplyByDate": { - "shape": "TStamp", - "flattened": false - }, - "ServiceUpdateStatus": { - "shape": "ServiceUpdateStatus", - "flattened": false - }, - "ServiceUpdateDescription": {"shape": "String", "flattened": false}, - "ServiceUpdateType": {"shape": "ServiceUpdateType", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoUpdateAfterRecommendedApplyByDate": { - "shape": "BooleanOptional", - "flattened": false - }, - "EstimatedUpdateTime": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ServiceUpdateList": { - "type": "list", - "member": {"shape": "ServiceUpdate", "locationName": "ServiceUpdate"}, - "flattened": false - }, - "ServiceUpdateSeverity": {"type": "string", "flattened": false}, - "ServiceUpdateStatus": {"type": "string", "flattened": false}, - "ServiceUpdateStatusList": { - "type": "list", - "member": {"shape": "ServiceUpdateStatus"}, - "flattened": false - }, - "ServiceUpdateType": {"type": "string", "flattened": false}, - "ServiceUpdatesMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ServiceUpdates": {"shape": "ServiceUpdateList", "flattened": false} - }, - "flattened": false - }, - "SlaMet": {"type": "string", "flattened": false}, - "SlotMigration": { - "type": "structure", - "members": { - "ProgressPercentage": {"shape": "Double", "flattened": false} - }, - "flattened": false - }, - "Snapshot": { - "type": "structure", - "members": { - "SnapshotName": {"shape": "String", "flattened": false}, - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "ReplicationGroupDescription": {"shape": "String", "flattened": false}, - "CacheClusterId": {"shape": "String", "flattened": false}, - "SnapshotStatus": {"shape": "String", "flattened": false}, - "SnapshotSource": {"shape": "String", "flattened": false}, - "CacheNodeType": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "NumCacheNodes": {"shape": "IntegerOptional", "flattened": false}, - "PreferredAvailabilityZone": {"shape": "String", "flattened": false}, - "PreferredOutpostArn": {"shape": "String", "flattened": false}, - "CacheClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "TopicArn": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "CacheParameterGroupName": {"shape": "String", "flattened": false}, - "CacheSubnetGroupName": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "SnapshotRetentionLimit": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotWindow": {"shape": "String", "flattened": false}, - "NumNodeGroups": {"shape": "IntegerOptional", "flattened": false}, - "AutomaticFailover": { - "shape": "AutomaticFailoverStatus", - "flattened": false - }, - "NodeSnapshots": {"shape": "NodeSnapshotList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "ARN": {"shape": "String", "flattened": false}, - "DataTiering": {"shape": "DataTieringStatus", "flattened": false} - }, - "flattened": false - }, - "SnapshotArnsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SnapshotArn"}, - "flattened": false - }, - "SnapshotList": { - "type": "list", - "member": {"shape": "Snapshot", "locationName": "Snapshot"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "StartMigrationMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "CustomerNodeEndpointList": { - "shape": "CustomerNodeEndpointList", - "flattened": false - } - }, - "flattened": false - }, - "StartMigrationResponse": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetOutpost": {"shape": "SubnetOutpost", "flattened": false}, - "SupportedNetworkTypes": {"shape": "NetworkTypeList", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetId"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SubnetOutpost": { - "type": "structure", - "members": { - "SubnetOutpostArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "TestFailoverMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "NodeGroupId": {"shape": "AllowedNodeGroupId", "flattened": false} - }, - "flattened": false - }, - "TestFailoverResult": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "TestMigrationMessage": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "CustomerNodeEndpointList": { - "shape": "CustomerNodeEndpointList", - "flattened": false - } - }, - "flattened": false - }, - "TestMigrationResponse": { - "type": "structure", - "members": { - "ReplicationGroup": {"shape": "ReplicationGroup", "flattened": false} - }, - "flattened": false - }, - "TimeRangeFilter": { - "type": "structure", - "members": { - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "TransitEncryptionMode": {"type": "string", "flattened": false}, - "UGReplicationGroupIdList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "UGServerlessCacheIdList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "UnprocessedUpdateAction": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "CacheClusterId": {"shape": "String", "flattened": false}, - "ServiceUpdateName": {"shape": "String", "flattened": false}, - "ErrorType": {"shape": "String", "flattened": false}, - "ErrorMessage": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UnprocessedUpdateActionList": { - "type": "list", - "member": { - "shape": "UnprocessedUpdateAction", - "locationName": "UnprocessedUpdateAction" - }, - "flattened": false - }, - "UpdateAction": { - "type": "structure", - "members": { - "ReplicationGroupId": {"shape": "String", "flattened": false}, - "CacheClusterId": {"shape": "String", "flattened": false}, - "ServiceUpdateName": {"shape": "String", "flattened": false}, - "ServiceUpdateReleaseDate": {"shape": "TStamp", "flattened": false}, - "ServiceUpdateSeverity": { - "shape": "ServiceUpdateSeverity", - "flattened": false - }, - "ServiceUpdateStatus": { - "shape": "ServiceUpdateStatus", - "flattened": false - }, - "ServiceUpdateRecommendedApplyByDate": { - "shape": "TStamp", - "flattened": false - }, - "ServiceUpdateType": {"shape": "ServiceUpdateType", "flattened": false}, - "UpdateActionAvailableDate": {"shape": "TStamp", "flattened": false}, - "UpdateActionStatus": {"shape": "UpdateActionStatus", "flattened": false}, - "NodesUpdated": {"shape": "String", "flattened": false}, - "UpdateActionStatusModifiedDate": {"shape": "TStamp", "flattened": false}, - "SlaMet": {"shape": "SlaMet", "flattened": false}, - "NodeGroupUpdateStatus": { - "shape": "NodeGroupUpdateStatusList", - "flattened": false - }, - "CacheNodeUpdateStatus": { - "shape": "CacheNodeUpdateStatusList", - "flattened": false - }, - "EstimatedUpdateTime": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UpdateActionList": { - "type": "list", - "member": {"shape": "UpdateAction", "locationName": "UpdateAction"}, - "flattened": false - }, - "UpdateActionResultsMessage": { - "type": "structure", - "members": { - "ProcessedUpdateActions": { - "shape": "ProcessedUpdateActionList", - "flattened": false - }, - "UnprocessedUpdateActions": { - "shape": "UnprocessedUpdateActionList", - "flattened": false - } - }, - "flattened": false - }, - "UpdateActionStatus": {"type": "string", "flattened": false}, - "UpdateActionStatusList": { - "type": "list", - "member": {"shape": "UpdateActionStatus"}, - "flattened": false - }, - "UpdateActionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "UpdateActions": {"shape": "UpdateActionList", "flattened": false} - }, - "flattened": false - }, - "User": { - "type": "structure", - "members": { - "UserId": {"shape": "String", "flattened": false}, - "UserName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Engine": {"shape": "EngineType", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "AccessString": {"shape": "String", "flattened": false}, - "UserGroupIds": {"shape": "UserGroupIdList", "flattened": false}, - "Authentication": {"shape": "Authentication", "flattened": false}, - "ARN": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UserGroup": { - "type": "structure", - "members": { - "UserGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Engine": {"shape": "EngineType", "flattened": false}, - "UserIds": {"shape": "UserIdList", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "PendingChanges": { - "shape": "UserGroupPendingChanges", - "flattened": false - }, - "ReplicationGroups": { - "shape": "UGReplicationGroupIdList", - "flattened": false - }, - "ServerlessCaches": { - "shape": "UGServerlessCacheIdList", - "flattened": false - }, - "ARN": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UserGroupId": {"type": "string", "flattened": false}, - "UserGroupIdList": { - "type": "list", - "member": {"shape": "UserGroupId"}, - "flattened": false - }, - "UserGroupIdListInput": { - "type": "list", - "member": {"shape": "UserGroupId"}, - "flattened": false - }, - "UserGroupList": { - "type": "list", - "member": {"shape": "UserGroup"}, - "flattened": false - }, - "UserGroupPendingChanges": { - "type": "structure", - "members": { - "UserIdsToRemove": {"shape": "UserIdList", "flattened": false}, - "UserIdsToAdd": {"shape": "UserIdList", "flattened": false} - }, - "flattened": false - }, - "UserGroupsUpdateStatus": { - "type": "structure", - "members": { - "UserGroupIdsToAdd": {"shape": "UserGroupIdList", "flattened": false}, - "UserGroupIdsToRemove": {"shape": "UserGroupIdList", "flattened": false} - }, - "flattened": false - }, - "UserId": {"type": "string", "flattened": false}, - "UserIdList": { - "type": "list", - "member": {"shape": "UserId"}, - "flattened": false - }, - "UserIdListInput": { - "type": "list", - "member": {"shape": "UserId"}, - "flattened": false - }, - "UserList": { - "type": "list", - "member": {"shape": "User"}, - "flattened": false - }, - "UserName": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart b/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart index f9475b7c9..00e7fe59f 100644 --- a/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart +++ b/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2010_12_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// AWS Elastic Beanstalk makes it easy for you to create, deploy, and manage @@ -25,7 +24,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// cloud. class ElasticBeanstalk { final _s.QueryProtocol _protocol; - final Map shapes; ElasticBeanstalk({ required String region, @@ -33,7 +31,7 @@ class ElasticBeanstalk { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticbeanstalk', @@ -42,9 +40,7 @@ class ElasticBeanstalk { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -71,9 +67,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'AbortEnvironmentUpdate', @@ -81,8 +78,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AbortEnvironmentUpdateMessage'], - shapes: shapes, ); } @@ -107,10 +102,11 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - $request['ActionId'] = actionId; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + 'ActionId': actionId, + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'ApplyEnvironmentManagedAction', @@ -118,8 +114,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyEnvironmentManagedActionRequest'], - shapes: shapes, resultWrapper: 'ApplyEnvironmentManagedActionResult', ); return ApplyEnvironmentManagedActionResult.fromXml($result); @@ -144,9 +138,10 @@ class ElasticBeanstalk { required String environmentName, required String operationsRole, }) async { - final $request = {}; - $request['EnvironmentName'] = environmentName; - $request['OperationsRole'] = operationsRole; + final $request = { + 'EnvironmentName': environmentName, + 'OperationsRole': operationsRole, + }; await _protocol.send( $request, action: 'AssociateEnvironmentOperationsRole', @@ -154,8 +149,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssociateEnvironmentOperationsRoleMessage'], - shapes: shapes, ); } @@ -166,8 +159,9 @@ class ElasticBeanstalk { Future checkDNSAvailability({ required String cNAMEPrefix, }) async { - final $request = {}; - $request['CNAMEPrefix'] = cNAMEPrefix; + final $request = { + 'CNAMEPrefix': cNAMEPrefix, + }; final $result = await _protocol.send( $request, action: 'CheckDNSAvailability', @@ -175,8 +169,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CheckDNSAvailabilityMessage'], - shapes: shapes, resultWrapper: 'CheckDNSAvailabilityResult', ); return CheckDNSAvailabilityResultMessage.fromXml($result); @@ -215,10 +207,16 @@ class ElasticBeanstalk { String? groupName, List? versionLabels, }) async { - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - groupName?.also((arg) => $request['GroupName'] = arg); - versionLabels?.also((arg) => $request['VersionLabels'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (groupName != null) 'GroupName': groupName, + if (versionLabels != null) + if (versionLabels.isEmpty) + 'VersionLabels': '' + else + for (var i1 = 0; i1 < versionLabels.length; i1++) + 'VersionLabels.member.${i1 + 1}': versionLabels[i1], + }; final $result = await _protocol.send( $request, action: 'ComposeEnvironments', @@ -226,8 +224,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ComposeEnvironmentsMessage'], - shapes: shapes, resultWrapper: 'ComposeEnvironmentsResult', ); return EnvironmentDescriptionsMessage.fromXml($result); @@ -259,12 +255,20 @@ class ElasticBeanstalk { ApplicationResourceLifecycleConfig? resourceLifecycleConfig, List? tags, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - description?.also((arg) => $request['Description'] = arg); - resourceLifecycleConfig - ?.also((arg) => $request['ResourceLifecycleConfig'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (description != null) 'Description': description, + if (resourceLifecycleConfig != null) + for (var e1 in resourceLifecycleConfig.toQueryMap().entries) + 'ResourceLifecycleConfig.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateApplication', @@ -272,8 +276,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateApplicationMessage'], - shapes: shapes, resultWrapper: 'CreateApplicationResult', ); return ApplicationDescriptionMessage.fromXml($result); @@ -375,18 +377,30 @@ class ElasticBeanstalk { S3Location? sourceBundle, List? tags, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['VersionLabel'] = versionLabel; - autoCreateApplication - ?.also((arg) => $request['AutoCreateApplication'] = arg); - buildConfiguration?.also((arg) => $request['BuildConfiguration'] = arg); - description?.also((arg) => $request['Description'] = arg); - process?.also((arg) => $request['Process'] = arg); - sourceBuildInformation - ?.also((arg) => $request['SourceBuildInformation'] = arg); - sourceBundle?.also((arg) => $request['SourceBundle'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'VersionLabel': versionLabel, + if (autoCreateApplication != null) + 'AutoCreateApplication': autoCreateApplication.toString(), + if (buildConfiguration != null) + for (var e1 in buildConfiguration.toQueryMap().entries) + 'BuildConfiguration.${e1.key}': e1.value, + if (description != null) 'Description': description, + if (process != null) 'Process': process.toString(), + if (sourceBuildInformation != null) + for (var e1 in sourceBuildInformation.toQueryMap().entries) + 'SourceBuildInformation.${e1.key}': e1.value, + if (sourceBundle != null) + for (var e1 in sourceBundle.toQueryMap().entries) + 'SourceBundle.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateApplicationVersion', @@ -394,8 +408,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateApplicationVersionMessage'], - shapes: shapes, resultWrapper: 'CreateApplicationVersionResult', ); return ApplicationVersionDescriptionMessage.fromXml($result); @@ -512,16 +524,31 @@ class ElasticBeanstalk { SourceConfiguration? sourceConfiguration, List? tags, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['TemplateName'] = templateName; - description?.also((arg) => $request['Description'] = arg); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - sourceConfiguration?.also((arg) => $request['SourceConfiguration'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'TemplateName': templateName, + if (description != null) 'Description': description, + if (environmentId != null) 'EnvironmentId': environmentId, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (sourceConfiguration != null) + for (var e1 in sourceConfiguration.toQueryMap().entries) + 'SourceConfiguration.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateConfigurationTemplate', @@ -529,8 +556,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationTemplateMessage'], - shapes: shapes, resultWrapper: 'CreateConfigurationTemplateResult', ); return ConfigurationSettingsDescription.fromXml($result); @@ -655,21 +680,41 @@ class ElasticBeanstalk { EnvironmentTier? tier, String? versionLabel, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - cNAMEPrefix?.also((arg) => $request['CNAMEPrefix'] = arg); - description?.also((arg) => $request['Description'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - groupName?.also((arg) => $request['GroupName'] = arg); - operationsRole?.also((arg) => $request['OperationsRole'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); - tier?.also((arg) => $request['Tier'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (cNAMEPrefix != null) 'CNAMEPrefix': cNAMEPrefix, + if (description != null) 'Description': description, + if (environmentName != null) 'EnvironmentName': environmentName, + if (groupName != null) 'GroupName': groupName, + if (operationsRole != null) 'OperationsRole': operationsRole, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + for (var e3 in optionsToRemove[i1].toQueryMap().entries) + 'OptionsToRemove.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateName != null) 'TemplateName': templateName, + if (tier != null) + for (var e1 in tier.toQueryMap().entries) 'Tier.${e1.key}': e1.value, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'CreateEnvironment', @@ -677,8 +722,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEnvironmentMessage'], - shapes: shapes, resultWrapper: 'CreateEnvironmentResult', ); return EnvironmentDescription.fromXml($result); @@ -719,13 +762,27 @@ class ElasticBeanstalk { List? optionSettings, List? tags, }) async { - final $request = {}; - $request['PlatformDefinitionBundle'] = platformDefinitionBundle; - $request['PlatformName'] = platformName; - $request['PlatformVersion'] = platformVersion; - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + for (var e1 in platformDefinitionBundle.toQueryMap().entries) + 'PlatformDefinitionBundle.${e1.key}': e1.value, + 'PlatformName': platformName, + 'PlatformVersion': platformVersion, + if (environmentName != null) 'EnvironmentName': environmentName, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreatePlatformVersion', @@ -733,8 +790,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePlatformVersionRequest'], - shapes: shapes, resultWrapper: 'CreatePlatformVersionResult', ); return CreatePlatformVersionResult.fromXml($result); @@ -751,7 +806,7 @@ class ElasticBeanstalk { /// May throw [S3SubscriptionRequiredException]. /// May throw [InsufficientPrivilegesException]. Future createStorageLocation() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'CreateStorageLocation', @@ -759,7 +814,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'CreateStorageLocationResult', ); return CreateStorageLocationResultMessage.fromXml($result); @@ -784,9 +838,11 @@ class ElasticBeanstalk { required String applicationName, bool? terminateEnvByForce, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - terminateEnvByForce?.also((arg) => $request['TerminateEnvByForce'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (terminateEnvByForce != null) + 'TerminateEnvByForce': terminateEnvByForce.toString(), + }; await _protocol.send( $request, action: 'DeleteApplication', @@ -794,8 +850,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteApplicationMessage'], - shapes: shapes, ); } @@ -825,10 +879,12 @@ class ElasticBeanstalk { required String versionLabel, bool? deleteSourceBundle, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['VersionLabel'] = versionLabel; - deleteSourceBundle?.also((arg) => $request['DeleteSourceBundle'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'VersionLabel': versionLabel, + if (deleteSourceBundle != null) + 'DeleteSourceBundle': deleteSourceBundle.toString(), + }; await _protocol.send( $request, action: 'DeleteApplicationVersion', @@ -836,8 +892,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteApplicationVersionMessage'], - shapes: shapes, ); } @@ -860,9 +914,10 @@ class ElasticBeanstalk { required String applicationName, required String templateName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['TemplateName'] = templateName; + final $request = { + 'ApplicationName': applicationName, + 'TemplateName': templateName, + }; await _protocol.send( $request, action: 'DeleteConfigurationTemplate', @@ -870,8 +925,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationTemplateMessage'], - shapes: shapes, ); } @@ -894,9 +947,10 @@ class ElasticBeanstalk { required String applicationName, required String environmentName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['EnvironmentName'] = environmentName; + final $request = { + 'ApplicationName': applicationName, + 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'DeleteEnvironmentConfiguration', @@ -904,8 +958,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEnvironmentConfigurationMessage'], - shapes: shapes, ); } @@ -921,8 +973,9 @@ class ElasticBeanstalk { Future deletePlatformVersion({ String? platformArn, }) async { - final $request = {}; - platformArn?.also((arg) => $request['PlatformArn'] = arg); + final $request = { + if (platformArn != null) 'PlatformArn': platformArn, + }; final $result = await _protocol.send( $request, action: 'DeletePlatformVersion', @@ -930,8 +983,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePlatformVersionRequest'], - shapes: shapes, resultWrapper: 'DeletePlatformVersionResult', ); return DeletePlatformVersionResult.fromXml($result); @@ -944,7 +995,7 @@ class ElasticBeanstalk { /// /// May throw [InsufficientPrivilegesException]. Future describeAccountAttributes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAccountAttributes', @@ -952,7 +1003,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAccountAttributesResult', ); return DescribeAccountAttributesResult.fromXml($result); @@ -992,11 +1042,17 @@ class ElasticBeanstalk { 1, 1000, ); - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - versionLabels?.also((arg) => $request['VersionLabels'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (versionLabels != null) + if (versionLabels.isEmpty) + 'VersionLabels': '' + else + for (var i1 = 0; i1 < versionLabels.length; i1++) + 'VersionLabels.member.${i1 + 1}': versionLabels[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeApplicationVersions', @@ -1004,8 +1060,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeApplicationVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeApplicationVersionsResult', ); return ApplicationVersionDescriptionsMessage.fromXml($result); @@ -1019,8 +1073,14 @@ class ElasticBeanstalk { Future describeApplications({ List? applicationNames, }) async { - final $request = {}; - applicationNames?.also((arg) => $request['ApplicationNames'] = arg); + final $request = { + if (applicationNames != null) + if (applicationNames.isEmpty) + 'ApplicationNames': '' + else + for (var i1 = 0; i1 < applicationNames.length; i1++) + 'ApplicationNames.member.${i1 + 1}': applicationNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeApplications', @@ -1028,8 +1088,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeApplicationsMessage'], - shapes: shapes, resultWrapper: 'DescribeApplicationsResult', ); return ApplicationDescriptionsMessage.fromXml($result); @@ -1073,13 +1131,20 @@ class ElasticBeanstalk { String? solutionStackName, String? templateName, }) async { - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - options?.also((arg) => $request['Options'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (environmentName != null) 'EnvironmentName': environmentName, + if (options != null) + if (options.isEmpty) + 'Options': '' + else + for (var i1 = 0; i1 < options.length; i1++) + for (var e3 in options[i1].toQueryMap().entries) + 'Options.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (templateName != null) 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'DescribeConfigurationOptions', @@ -1087,8 +1152,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeConfigurationOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeConfigurationOptionsResult', ); return ConfigurationOptionsDescription.fromXml($result); @@ -1139,10 +1202,11 @@ class ElasticBeanstalk { String? environmentName, String? templateName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (environmentName != null) 'EnvironmentName': environmentName, + if (templateName != null) 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'DescribeConfigurationSettings', @@ -1150,8 +1214,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeConfigurationSettingsMessage'], - shapes: shapes, resultWrapper: 'DescribeConfigurationSettingsResult', ); return ConfigurationSettingsDescriptions.fromXml($result); @@ -1183,11 +1245,16 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - attributeNames?.also((arg) => - $request['AttributeNames'] = arg.map((e) => e.toValue()).toList()); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeNames.member.${i1 + 1}': attributeNames[i1].toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentHealth', @@ -1195,8 +1262,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentHealthRequest'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentHealthResult', ); return DescribeEnvironmentHealthResult.fromXml($result); @@ -1230,11 +1295,12 @@ class ElasticBeanstalk { 1, 100, ); - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentManagedActionHistory', @@ -1242,8 +1308,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentManagedActionHistoryRequest'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentManagedActionHistoryResult', ); return DescribeEnvironmentManagedActionHistoryResult.fromXml($result); @@ -1267,10 +1331,11 @@ class ElasticBeanstalk { String? environmentName, ActionStatus? status, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentManagedActions', @@ -1278,8 +1343,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentManagedActionsRequest'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentManagedActionsResult', ); return DescribeEnvironmentManagedActionsResult.fromXml($result); @@ -1306,9 +1369,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentResources', @@ -1316,8 +1380,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentResourcesMessage'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentResourcesResult', ); return EnvironmentResourceDescriptionsMessage.fromXml($result); @@ -1382,16 +1444,27 @@ class ElasticBeanstalk { 1, 1000, ); - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - environmentIds?.also((arg) => $request['EnvironmentIds'] = arg); - environmentNames?.also((arg) => $request['EnvironmentNames'] = arg); - includeDeleted?.also((arg) => $request['IncludeDeleted'] = arg); - includedDeletedBackTo?.also( - (arg) => $request['IncludedDeletedBackTo'] = _s.iso8601ToJson(arg)); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (environmentIds != null) + if (environmentIds.isEmpty) + 'EnvironmentIds': '' + else + for (var i1 = 0; i1 < environmentIds.length; i1++) + 'EnvironmentIds.member.${i1 + 1}': environmentIds[i1], + if (environmentNames != null) + if (environmentNames.isEmpty) + 'EnvironmentNames': '' + else + for (var i1 = 0; i1 < environmentNames.length; i1++) + 'EnvironmentNames.member.${i1 + 1}': environmentNames[i1], + if (includeDeleted != null) 'IncludeDeleted': includeDeleted.toString(), + if (includedDeletedBackTo != null) + 'IncludedDeletedBackTo': _s.iso8601ToJson(includedDeletedBackTo), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironments', @@ -1399,8 +1472,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentsMessage'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentsResult', ); return EnvironmentDescriptionsMessage.fromXml($result); @@ -1481,19 +1552,20 @@ class ElasticBeanstalk { 1, 1000, ); - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - requestId?.also((arg) => $request['RequestId'] = arg); - severity?.also((arg) => $request['Severity'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - templateName?.also((arg) => $request['TemplateName'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (platformArn != null) 'PlatformArn': platformArn, + if (requestId != null) 'RequestId': requestId, + if (severity != null) 'Severity': severity.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (templateName != null) 'TemplateName': templateName, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -1501,8 +1573,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventDescriptionsMessage.fromXml($result); @@ -1535,12 +1605,17 @@ class ElasticBeanstalk { String? environmentName, String? nextToken, }) async { - final $request = {}; - attributeNames?.also((arg) => - $request['AttributeNames'] = arg.map((e) => e.toValue()).toList()); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeNames.member.${i1 + 1}': attributeNames[i1].toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeInstancesHealth', @@ -1548,8 +1623,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInstancesHealthRequest'], - shapes: shapes, resultWrapper: 'DescribeInstancesHealthResult', ); return DescribeInstancesHealthResult.fromXml($result); @@ -1572,8 +1645,9 @@ class ElasticBeanstalk { Future describePlatformVersion({ String? platformArn, }) async { - final $request = {}; - platformArn?.also((arg) => $request['PlatformArn'] = arg); + final $request = { + if (platformArn != null) 'PlatformArn': platformArn, + }; final $result = await _protocol.send( $request, action: 'DescribePlatformVersion', @@ -1581,8 +1655,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePlatformVersionRequest'], - shapes: shapes, resultWrapper: 'DescribePlatformVersionResult', ); return DescribePlatformVersionResult.fromXml($result); @@ -1603,8 +1675,9 @@ class ElasticBeanstalk { Future disassociateEnvironmentOperationsRole({ required String environmentName, }) async { - final $request = {}; - $request['EnvironmentName'] = environmentName; + final $request = { + 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'DisassociateEnvironmentOperationsRole', @@ -1612,8 +1685,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisassociateEnvironmentOperationsRoleMessage'], - shapes: shapes, ); } @@ -1621,7 +1692,7 @@ class ElasticBeanstalk { /// version first and then in reverse chronological order. Future listAvailableSolutionStacks() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListAvailableSolutionStacks', @@ -1629,7 +1700,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'ListAvailableSolutionStacksResult', ); return ListAvailableSolutionStacksResultMessage.fromXml($result); @@ -1725,10 +1795,17 @@ class ElasticBeanstalk { 1, 1152921504606846976, ); - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPlatformBranches', @@ -1736,8 +1813,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPlatformBranchesRequest'], - shapes: shapes, resultWrapper: 'ListPlatformBranchesResult', ); return ListPlatformBranchesResult.fromXml($result); @@ -1781,10 +1856,17 @@ class ElasticBeanstalk { 1, 1152921504606846976, ); - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPlatformVersions', @@ -1792,8 +1874,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPlatformVersionsRequest'], - shapes: shapes, resultWrapper: 'ListPlatformVersionsResult', ); return ListPlatformVersionsResult.fromXml($result); @@ -1819,8 +1899,9 @@ class ElasticBeanstalk { Future listTagsForResource({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1828,8 +1909,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return ResourceTagsDescriptionMessage.fromXml($result); @@ -1858,9 +1937,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'RebuildEnvironment', @@ -1868,8 +1948,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebuildEnvironmentMessage'], - shapes: shapes, ); } @@ -1922,10 +2000,11 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - $request['InfoType'] = infoType.toValue(); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + 'InfoType': infoType.toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'RequestEnvironmentInfo', @@ -1933,8 +2012,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RequestEnvironmentInfoMessage'], - shapes: shapes, ); } @@ -1958,9 +2035,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'RestartAppServer', @@ -1968,8 +2046,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestartAppServerMessage'], - shapes: shapes, ); } @@ -2011,10 +2087,11 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - $request['InfoType'] = infoType.toValue(); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + 'InfoType': infoType.toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'RetrieveEnvironmentInfo', @@ -2022,8 +2099,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RetrieveEnvironmentInfoMessage'], - shapes: shapes, resultWrapper: 'RetrieveEnvironmentInfoResult', ); return RetrieveEnvironmentInfoResultMessage.fromXml($result); @@ -2070,14 +2145,16 @@ class ElasticBeanstalk { String? sourceEnvironmentId, String? sourceEnvironmentName, }) async { - final $request = {}; - destinationEnvironmentId - ?.also((arg) => $request['DestinationEnvironmentId'] = arg); - destinationEnvironmentName - ?.also((arg) => $request['DestinationEnvironmentName'] = arg); - sourceEnvironmentId?.also((arg) => $request['SourceEnvironmentId'] = arg); - sourceEnvironmentName - ?.also((arg) => $request['SourceEnvironmentName'] = arg); + final $request = { + if (destinationEnvironmentId != null) + 'DestinationEnvironmentId': destinationEnvironmentId, + if (destinationEnvironmentName != null) + 'DestinationEnvironmentName': destinationEnvironmentName, + if (sourceEnvironmentId != null) + 'SourceEnvironmentId': sourceEnvironmentId, + if (sourceEnvironmentName != null) + 'SourceEnvironmentName': sourceEnvironmentName, + }; await _protocol.send( $request, action: 'SwapEnvironmentCNAMEs', @@ -2085,8 +2162,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwapEnvironmentCNAMEsMessage'], - shapes: shapes, ); } @@ -2139,11 +2214,13 @@ class ElasticBeanstalk { bool? forceTerminate, bool? terminateResources, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - forceTerminate?.also((arg) => $request['ForceTerminate'] = arg); - terminateResources?.also((arg) => $request['TerminateResources'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (forceTerminate != null) 'ForceTerminate': forceTerminate.toString(), + if (terminateResources != null) + 'TerminateResources': terminateResources.toString(), + }; final $result = await _protocol.send( $request, action: 'TerminateEnvironment', @@ -2151,8 +2228,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TerminateEnvironmentMessage'], - shapes: shapes, resultWrapper: 'TerminateEnvironmentResult', ); return EnvironmentDescription.fromXml($result); @@ -2179,9 +2254,10 @@ class ElasticBeanstalk { required String applicationName, String? description, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'UpdateApplication', @@ -2189,8 +2265,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateApplicationMessage'], - shapes: shapes, resultWrapper: 'UpdateApplicationResult', ); return ApplicationDescriptionMessage.fromXml($result); @@ -2210,9 +2284,11 @@ class ElasticBeanstalk { required String applicationName, required ApplicationResourceLifecycleConfig resourceLifecycleConfig, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['ResourceLifecycleConfig'] = resourceLifecycleConfig; + final $request = { + 'ApplicationName': applicationName, + for (var e1 in resourceLifecycleConfig.toQueryMap().entries) + 'ResourceLifecycleConfig.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'UpdateApplicationResourceLifecycle', @@ -2220,8 +2296,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateApplicationResourceLifecycleMessage'], - shapes: shapes, resultWrapper: 'UpdateApplicationResourceLifecycleResult', ); return ApplicationResourceLifecycleDescriptionMessage.fromXml($result); @@ -2254,10 +2328,11 @@ class ElasticBeanstalk { required String versionLabel, String? description, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['VersionLabel'] = versionLabel; - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'VersionLabel': versionLabel, + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'UpdateApplicationVersion', @@ -2265,8 +2340,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateApplicationVersionMessage'], - shapes: shapes, resultWrapper: 'UpdateApplicationVersionResult', ); return ApplicationVersionDescriptionMessage.fromXml($result); @@ -2324,12 +2397,25 @@ class ElasticBeanstalk { List? optionSettings, List? optionsToRemove, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['TemplateName'] = templateName; - description?.also((arg) => $request['Description'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'TemplateName': templateName, + if (description != null) 'Description': description, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + for (var e3 in optionsToRemove[i1].toQueryMap().entries) + 'OptionsToRemove.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'UpdateConfigurationTemplate', @@ -2337,8 +2423,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationTemplateMessage'], - shapes: shapes, resultWrapper: 'UpdateConfigurationTemplateResult', ); return ConfigurationSettingsDescription.fromXml($result); @@ -2441,19 +2525,33 @@ class ElasticBeanstalk { EnvironmentTier? tier, String? versionLabel, }) async { - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - description?.also((arg) => $request['Description'] = arg); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - groupName?.also((arg) => $request['GroupName'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); - tier?.also((arg) => $request['Tier'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (description != null) 'Description': description, + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (groupName != null) 'GroupName': groupName, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + for (var e3 in optionsToRemove[i1].toQueryMap().entries) + 'OptionsToRemove.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (templateName != null) 'TemplateName': templateName, + if (tier != null) + for (var e1 in tier.toQueryMap().entries) 'Tier.${e1.key}': e1.value, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'UpdateEnvironment', @@ -2461,8 +2559,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateEnvironmentMessage'], - shapes: shapes, resultWrapper: 'UpdateEnvironmentResult', ); return EnvironmentDescription.fromXml($result); @@ -2520,10 +2616,22 @@ class ElasticBeanstalk { List? tagsToAdd, List? tagsToRemove, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - tagsToAdd?.also((arg) => $request['TagsToAdd'] = arg); - tagsToRemove?.also((arg) => $request['TagsToRemove'] = arg); + final $request = { + 'ResourceArn': resourceArn, + if (tagsToAdd != null) + if (tagsToAdd.isEmpty) + 'TagsToAdd': '' + else + for (var i1 = 0; i1 < tagsToAdd.length; i1++) + for (var e3 in tagsToAdd[i1].toQueryMap().entries) + 'TagsToAdd.member.${i1 + 1}.${e3.key}': e3.value, + if (tagsToRemove != null) + if (tagsToRemove.isEmpty) + 'TagsToRemove': '' + else + for (var i1 = 0; i1 < tagsToRemove.length; i1++) + 'TagsToRemove.member.${i1 + 1}': tagsToRemove[i1], + }; await _protocol.send( $request, action: 'UpdateTagsForResource', @@ -2531,8 +2639,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateTagsForResourceMessage'], - shapes: shapes, ); } @@ -2568,11 +2674,17 @@ class ElasticBeanstalk { String? environmentName, String? templateName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['OptionSettings'] = optionSettings; - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (environmentName != null) 'EnvironmentName': environmentName, + if (templateName != null) 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'ValidateConfigurationSettings', @@ -2580,8 +2692,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ValidateConfigurationSettingsMessage'], - shapes: shapes, resultWrapper: 'ValidateConfigurationSettingsResult', ); return ConfigurationSettingsValidationMessages.fromXml($result); @@ -2914,6 +3024,17 @@ class ApplicationResourceLifecycleConfig { 'VersionLifecycleConfig': versionLifecycleConfig, }; } + + Map toQueryMap() { + final serviceRole = this.serviceRole; + final versionLifecycleConfig = this.versionLifecycleConfig; + return { + if (serviceRole != null) 'ServiceRole': serviceRole, + if (versionLifecycleConfig != null) + for (var e1 in versionLifecycleConfig.toQueryMap().entries) + 'VersionLifecycleConfig.${e1.key}': e1.value, + }; + } } class ApplicationResourceLifecycleDescriptionMessage { @@ -3168,6 +3289,19 @@ class ApplicationVersionLifecycleConfig { if (maxCountRule != null) 'MaxCountRule': maxCountRule, }; } + + Map toQueryMap() { + final maxAgeRule = this.maxAgeRule; + final maxCountRule = this.maxCountRule; + return { + if (maxAgeRule != null) + for (var e1 in maxAgeRule.toQueryMap().entries) + 'MaxAgeRule.${e1.key}': e1.value, + if (maxCountRule != null) + for (var e1 in maxCountRule.toQueryMap().entries) + 'MaxCountRule.${e1.key}': e1.value, + }; + } } enum ApplicationVersionStatus { @@ -3341,6 +3475,22 @@ class BuildConfiguration { if (timeoutInMinutes != null) 'TimeoutInMinutes': timeoutInMinutes, }; } + + Map toQueryMap() { + final codeBuildServiceRole = this.codeBuildServiceRole; + final image = this.image; + final artifactName = this.artifactName; + final computeType = this.computeType; + final timeoutInMinutes = this.timeoutInMinutes; + return { + 'CodeBuildServiceRole': codeBuildServiceRole, + 'Image': image, + if (artifactName != null) 'ArtifactName': artifactName, + if (computeType != null) 'ComputeType': computeType.toValue(), + if (timeoutInMinutes != null) + 'TimeoutInMinutes': timeoutInMinutes.toString(), + }; + } } /// The builder used to build the custom platform. @@ -3767,6 +3917,19 @@ class ConfigurationOptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final namespace = this.namespace; + final optionName = this.optionName; + final resourceName = this.resourceName; + final value = this.value; + return { + if (namespace != null) 'Namespace': namespace, + if (optionName != null) 'OptionName': optionName, + if (resourceName != null) 'ResourceName': resourceName, + if (value != null) 'Value': value, + }; + } } enum ConfigurationOptionValueType { @@ -5194,6 +5357,17 @@ class EnvironmentTier { if (version != null) 'Version': version, }; } + + Map toQueryMap() { + final name = this.name; + final type = this.type; + final version = this.version; + return { + if (name != null) 'Name': name, + if (type != null) 'Type': type, + if (version != null) 'Version': version, + }; + } } /// Describes an event. @@ -6066,6 +6240,18 @@ class MaxAgeRule { if (maxAgeInDays != null) 'MaxAgeInDays': maxAgeInDays, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final deleteSourceFromS3 = this.deleteSourceFromS3; + final maxAgeInDays = this.maxAgeInDays; + return { + 'Enabled': enabled.toString(), + if (deleteSourceFromS3 != null) + 'DeleteSourceFromS3': deleteSourceFromS3.toString(), + if (maxAgeInDays != null) 'MaxAgeInDays': maxAgeInDays.toString(), + }; + } } /// A lifecycle rule that deletes the oldest application version when the @@ -6105,6 +6291,18 @@ class MaxCountRule { if (maxCount != null) 'MaxCount': maxCount, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final deleteSourceFromS3 = this.deleteSourceFromS3; + final maxCount = this.maxCount; + return { + 'Enabled': enabled.toString(), + if (deleteSourceFromS3 != null) + 'DeleteSourceFromS3': deleteSourceFromS3.toString(), + if (maxCount != null) 'MaxCount': maxCount.toString(), + }; + } } /// A regular expression representing a restriction on a string configuration @@ -6165,6 +6363,17 @@ class OptionSpecification { if (resourceName != null) 'ResourceName': resourceName, }; } + + Map toQueryMap() { + final namespace = this.namespace; + final optionName = this.optionName; + final resourceName = this.resourceName; + return { + if (namespace != null) 'Namespace': namespace, + if (optionName != null) 'OptionName': optionName, + if (resourceName != null) 'ResourceName': resourceName, + }; + } } /// Summary information about a platform branch. @@ -6484,6 +6693,22 @@ class PlatformFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final operator = this.operator; + final type = this.type; + final values = this.values; + return { + if (operator != null) 'Operator': operator, + if (type != null) 'Type': type, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// A framework supported by the platform. @@ -6908,6 +7133,15 @@ class S3Location { if (s3Key != null) 'S3Key': s3Key, }; } + + Map toQueryMap() { + final s3Bucket = this.s3Bucket; + final s3Key = this.s3Key; + return { + if (s3Bucket != null) 'S3Bucket': s3Bucket, + if (s3Key != null) 'S3Key': s3Key, + }; + } } /// Describes criteria to restrict a list of results. @@ -6953,6 +7187,22 @@ class SearchFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final attribute = this.attribute; + final operator = this.operator; + final values = this.values; + return { + if (attribute != null) 'Attribute': attribute, + if (operator != null) 'Operator': operator, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Detailed health information about an Amazon EC2 instance in your Elastic @@ -7152,6 +7402,17 @@ class SourceBuildInformation { 'SourceType': sourceType.toValue(), }; } + + Map toQueryMap() { + final sourceLocation = this.sourceLocation; + final sourceRepository = this.sourceRepository; + final sourceType = this.sourceType; + return { + 'SourceLocation': sourceLocation, + 'SourceRepository': sourceRepository.toValue(), + 'SourceType': sourceType.toValue(), + }; + } } /// A specification for an environment configuration. @@ -7175,6 +7436,15 @@ class SourceConfiguration { if (templateName != null) 'TemplateName': templateName, }; } + + Map toQueryMap() { + final applicationName = this.applicationName; + final templateName = this.templateName; + return { + if (applicationName != null) 'ApplicationName': applicationName, + if (templateName != null) 'TemplateName': templateName, + }; + } } enum SourceRepository { @@ -7346,6 +7616,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Describes a trigger. diff --git a/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.meta.dart b/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.meta.dart deleted file mode 100644 index 3bba96695..000000000 --- a/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.meta.dart +++ /dev/null @@ -1,1823 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "ARN": {"type": "string", "flattened": false}, - "AbortEnvironmentUpdateMessage": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false} - }, - "flattened": false - }, - "AbortableOperationInProgress": {"type": "boolean", "flattened": false}, - "ActionHistoryStatus": {"type": "string", "flattened": false}, - "ActionStatus": {"type": "string", "flattened": false}, - "ActionType": {"type": "string", "flattened": false}, - "ApplicationArn": {"type": "string", "flattened": false}, - "ApplicationDescription": { - "type": "structure", - "members": { - "ApplicationArn": {"shape": "ApplicationArn", "flattened": false}, - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "DateCreated": {"shape": "CreationDate", "flattened": false}, - "DateUpdated": {"shape": "UpdateDate", "flattened": false}, - "Versions": {"shape": "VersionLabelsList", "flattened": false}, - "ConfigurationTemplates": { - "shape": "ConfigurationTemplateNamesList", - "flattened": false - }, - "ResourceLifecycleConfig": { - "shape": "ApplicationResourceLifecycleConfig", - "flattened": false - } - }, - "flattened": false - }, - "ApplicationDescriptionList": { - "type": "list", - "member": {"shape": "ApplicationDescription"}, - "flattened": false - }, - "ApplicationDescriptionMessage": { - "type": "structure", - "members": { - "Application": {"shape": "ApplicationDescription", "flattened": false} - }, - "flattened": false - }, - "ApplicationDescriptionsMessage": { - "type": "structure", - "members": { - "Applications": { - "shape": "ApplicationDescriptionList", - "flattened": false - } - }, - "flattened": false - }, - "ApplicationMetrics": { - "type": "structure", - "members": { - "Duration": {"shape": "NullableInteger", "flattened": false}, - "RequestCount": {"shape": "RequestCount", "flattened": false}, - "StatusCodes": {"shape": "StatusCodes", "flattened": false}, - "Latency": {"shape": "Latency", "flattened": false} - }, - "flattened": false - }, - "ApplicationName": {"type": "string", "flattened": false}, - "ApplicationNamesList": { - "type": "list", - "member": {"shape": "ApplicationName"}, - "flattened": false - }, - "ApplicationResourceLifecycleConfig": { - "type": "structure", - "members": { - "ServiceRole": {"shape": "String", "flattened": false}, - "VersionLifecycleConfig": { - "shape": "ApplicationVersionLifecycleConfig", - "flattened": false - } - }, - "flattened": false - }, - "ApplicationResourceLifecycleDescriptionMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "ResourceLifecycleConfig": { - "shape": "ApplicationResourceLifecycleConfig", - "flattened": false - } - }, - "flattened": false - }, - "ApplicationVersionArn": {"type": "string", "flattened": false}, - "ApplicationVersionDescription": { - "type": "structure", - "members": { - "ApplicationVersionArn": { - "shape": "ApplicationVersionArn", - "flattened": false - }, - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "SourceBuildInformation": { - "shape": "SourceBuildInformation", - "flattened": false - }, - "BuildArn": {"shape": "String", "flattened": false}, - "SourceBundle": {"shape": "S3Location", "flattened": false}, - "DateCreated": {"shape": "CreationDate", "flattened": false}, - "DateUpdated": {"shape": "UpdateDate", "flattened": false}, - "Status": {"shape": "ApplicationVersionStatus", "flattened": false} - }, - "flattened": false - }, - "ApplicationVersionDescriptionList": { - "type": "list", - "member": {"shape": "ApplicationVersionDescription"}, - "flattened": false - }, - "ApplicationVersionDescriptionMessage": { - "type": "structure", - "members": { - "ApplicationVersion": { - "shape": "ApplicationVersionDescription", - "flattened": false - } - }, - "flattened": false - }, - "ApplicationVersionDescriptionsMessage": { - "type": "structure", - "members": { - "ApplicationVersions": { - "shape": "ApplicationVersionDescriptionList", - "flattened": false - }, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "ApplicationVersionLifecycleConfig": { - "type": "structure", - "members": { - "MaxCountRule": {"shape": "MaxCountRule", "flattened": false}, - "MaxAgeRule": {"shape": "MaxAgeRule", "flattened": false} - }, - "flattened": false - }, - "ApplicationVersionProccess": {"type": "boolean", "flattened": false}, - "ApplicationVersionStatus": {"type": "string", "flattened": false}, - "ApplyEnvironmentManagedActionRequest": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "String", "flattened": false}, - "EnvironmentId": {"shape": "String", "flattened": false}, - "ActionId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ApplyEnvironmentManagedActionResult": { - "type": "structure", - "members": { - "ActionId": {"shape": "String", "flattened": false}, - "ActionDescription": {"shape": "String", "flattened": false}, - "ActionType": {"shape": "ActionType", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AssociateEnvironmentOperationsRoleMessage": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "OperationsRole": {"shape": "OperationsRole", "flattened": false} - }, - "flattened": false - }, - "AutoCreateApplication": {"type": "boolean", "flattened": false}, - "AutoScalingGroup": { - "type": "structure", - "members": { - "Name": {"shape": "ResourceId", "flattened": false} - }, - "flattened": false - }, - "AutoScalingGroupList": { - "type": "list", - "member": {"shape": "AutoScalingGroup"}, - "flattened": false - }, - "AvailableSolutionStackDetailsList": { - "type": "list", - "member": {"shape": "SolutionStackDescription"}, - "flattened": false - }, - "AvailableSolutionStackNamesList": { - "type": "list", - "member": {"shape": "SolutionStackName"}, - "flattened": false - }, - "BoxedBoolean": {"type": "boolean", "flattened": false}, - "BoxedInt": {"type": "integer", "flattened": false}, - "BranchName": {"type": "string", "flattened": false}, - "BranchOrder": {"type": "integer", "flattened": false}, - "BuildConfiguration": { - "type": "structure", - "members": { - "ArtifactName": {"shape": "String", "flattened": false}, - "CodeBuildServiceRole": {"shape": "NonEmptyString", "flattened": false}, - "ComputeType": {"shape": "ComputeType", "flattened": false}, - "Image": {"shape": "NonEmptyString", "flattened": false}, - "TimeoutInMinutes": {"shape": "BoxedInt", "flattened": false} - }, - "flattened": false - }, - "Builder": { - "type": "structure", - "members": { - "ARN": {"shape": "ARN", "flattened": false} - }, - "flattened": false - }, - "CPUUtilization": { - "type": "structure", - "members": { - "User": {"shape": "NullableDouble", "flattened": false}, - "Nice": {"shape": "NullableDouble", "flattened": false}, - "System": {"shape": "NullableDouble", "flattened": false}, - "Idle": {"shape": "NullableDouble", "flattened": false}, - "IOWait": {"shape": "NullableDouble", "flattened": false}, - "IRQ": {"shape": "NullableDouble", "flattened": false}, - "SoftIRQ": {"shape": "NullableDouble", "flattened": false}, - "Privileged": {"shape": "NullableDouble", "flattened": false} - }, - "flattened": false - }, - "Cause": {"type": "string", "flattened": false}, - "Causes": { - "type": "list", - "member": {"shape": "Cause"}, - "flattened": false - }, - "CheckDNSAvailabilityMessage": { - "type": "structure", - "members": { - "CNAMEPrefix": {"shape": "DNSCnamePrefix", "flattened": false} - }, - "flattened": false - }, - "CheckDNSAvailabilityResultMessage": { - "type": "structure", - "members": { - "Available": {"shape": "CnameAvailability", "flattened": false}, - "FullyQualifiedCNAME": {"shape": "DNSCname", "flattened": false} - }, - "flattened": false - }, - "CnameAvailability": {"type": "boolean", "flattened": false}, - "ComposeEnvironmentsMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "GroupName": {"shape": "GroupName", "flattened": false}, - "VersionLabels": {"shape": "VersionLabels", "flattened": false} - }, - "flattened": false - }, - "ComputeType": {"type": "string", "flattened": false}, - "ConfigurationDeploymentStatus": {"type": "string", "flattened": false}, - "ConfigurationOptionDefaultValue": {"type": "string", "flattened": false}, - "ConfigurationOptionDescription": { - "type": "structure", - "members": { - "Namespace": {"shape": "OptionNamespace", "flattened": false}, - "Name": {"shape": "ConfigurationOptionName", "flattened": false}, - "DefaultValue": { - "shape": "ConfigurationOptionDefaultValue", - "flattened": false - }, - "ChangeSeverity": { - "shape": "ConfigurationOptionSeverity", - "flattened": false - }, - "UserDefined": {"shape": "UserDefinedOption", "flattened": false}, - "ValueType": { - "shape": "ConfigurationOptionValueType", - "flattened": false - }, - "ValueOptions": { - "shape": "ConfigurationOptionPossibleValues", - "flattened": false - }, - "MinValue": {"shape": "OptionRestrictionMinValue", "flattened": false}, - "MaxValue": {"shape": "OptionRestrictionMaxValue", "flattened": false}, - "MaxLength": {"shape": "OptionRestrictionMaxLength", "flattened": false}, - "Regex": {"shape": "OptionRestrictionRegex", "flattened": false} - }, - "flattened": false - }, - "ConfigurationOptionDescriptionsList": { - "type": "list", - "member": {"shape": "ConfigurationOptionDescription"}, - "flattened": false - }, - "ConfigurationOptionName": {"type": "string", "flattened": false}, - "ConfigurationOptionPossibleValue": {"type": "string", "flattened": false}, - "ConfigurationOptionPossibleValues": { - "type": "list", - "member": {"shape": "ConfigurationOptionPossibleValue"}, - "flattened": false - }, - "ConfigurationOptionSetting": { - "type": "structure", - "members": { - "ResourceName": {"shape": "ResourceName", "flattened": false}, - "Namespace": {"shape": "OptionNamespace", "flattened": false}, - "OptionName": {"shape": "ConfigurationOptionName", "flattened": false}, - "Value": {"shape": "ConfigurationOptionValue", "flattened": false} - }, - "flattened": false - }, - "ConfigurationOptionSettingsList": { - "type": "list", - "member": {"shape": "ConfigurationOptionSetting"}, - "flattened": false - }, - "ConfigurationOptionSeverity": {"type": "string", "flattened": false}, - "ConfigurationOptionValue": {"type": "string", "flattened": false}, - "ConfigurationOptionValueType": {"type": "string", "flattened": false}, - "ConfigurationOptionsDescription": { - "type": "structure", - "members": { - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "Options": { - "shape": "ConfigurationOptionDescriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "ConfigurationSettingsDescription": { - "type": "structure", - "members": { - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "Description": {"shape": "Description", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "DeploymentStatus": { - "shape": "ConfigurationDeploymentStatus", - "flattened": false - }, - "DateCreated": {"shape": "CreationDate", "flattened": false}, - "DateUpdated": {"shape": "UpdateDate", "flattened": false}, - "OptionSettings": { - "shape": "ConfigurationOptionSettingsList", - "flattened": false - } - }, - "flattened": false - }, - "ConfigurationSettingsDescriptionList": { - "type": "list", - "member": {"shape": "ConfigurationSettingsDescription"}, - "flattened": false - }, - "ConfigurationSettingsDescriptions": { - "type": "structure", - "members": { - "ConfigurationSettings": { - "shape": "ConfigurationSettingsDescriptionList", - "flattened": false - } - }, - "flattened": false - }, - "ConfigurationSettingsValidationMessages": { - "type": "structure", - "members": { - "Messages": {"shape": "ValidationMessagesList", "flattened": false} - }, - "flattened": false - }, - "ConfigurationTemplateName": {"type": "string", "flattened": false}, - "ConfigurationTemplateNamesList": { - "type": "list", - "member": {"shape": "ConfigurationTemplateName"}, - "flattened": false - }, - "CreateApplicationMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "ResourceLifecycleConfig": { - "shape": "ApplicationResourceLifecycleConfig", - "flattened": false - }, - "Tags": {"shape": "Tags", "flattened": false} - }, - "flattened": false - }, - "CreateApplicationVersionMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "SourceBuildInformation": { - "shape": "SourceBuildInformation", - "flattened": false - }, - "SourceBundle": {"shape": "S3Location", "flattened": false}, - "BuildConfiguration": {"shape": "BuildConfiguration", "flattened": false}, - "AutoCreateApplication": { - "shape": "AutoCreateApplication", - "flattened": false - }, - "Process": {"shape": "ApplicationVersionProccess", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false} - }, - "flattened": false - }, - "CreateConfigurationTemplateMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "SourceConfiguration": { - "shape": "SourceConfiguration", - "flattened": false - }, - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "OptionSettings": { - "shape": "ConfigurationOptionSettingsList", - "flattened": false - }, - "Tags": {"shape": "Tags", "flattened": false} - }, - "flattened": false - }, - "CreateEnvironmentMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "GroupName": {"shape": "GroupName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "CNAMEPrefix": {"shape": "DNSCnamePrefix", "flattened": false}, - "Tier": {"shape": "EnvironmentTier", "flattened": false}, - "Tags": {"shape": "Tags", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "OptionSettings": { - "shape": "ConfigurationOptionSettingsList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionsSpecifierList", "flattened": false}, - "OperationsRole": {"shape": "OperationsRole", "flattened": false} - }, - "flattened": false - }, - "CreatePlatformVersionRequest": { - "type": "structure", - "members": { - "PlatformName": {"shape": "PlatformName", "flattened": false}, - "PlatformVersion": {"shape": "PlatformVersion", "flattened": false}, - "PlatformDefinitionBundle": {"shape": "S3Location", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "OptionSettings": { - "shape": "ConfigurationOptionSettingsList", - "flattened": false - }, - "Tags": {"shape": "Tags", "flattened": false} - }, - "flattened": false - }, - "CreatePlatformVersionResult": { - "type": "structure", - "members": { - "PlatformSummary": {"shape": "PlatformSummary", "flattened": false}, - "Builder": {"shape": "Builder", "flattened": false} - }, - "flattened": false - }, - "CreateStorageLocationResultMessage": { - "type": "structure", - "members": { - "S3Bucket": {"shape": "S3Bucket", "flattened": false} - }, - "flattened": false - }, - "CreationDate": {"type": "timestamp", "flattened": false}, - "CustomAmi": { - "type": "structure", - "members": { - "VirtualizationType": {"shape": "VirtualizationType", "flattened": false}, - "ImageId": {"shape": "ImageId", "flattened": false} - }, - "flattened": false - }, - "CustomAmiList": { - "type": "list", - "member": {"shape": "CustomAmi"}, - "flattened": false - }, - "DNSCname": {"type": "string", "flattened": false}, - "DNSCnamePrefix": {"type": "string", "flattened": false}, - "DeleteApplicationMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TerminateEnvByForce": {"shape": "TerminateEnvForce", "flattened": false} - }, - "flattened": false - }, - "DeleteApplicationVersionMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "DeleteSourceBundle": {"shape": "DeleteSourceBundle", "flattened": false} - }, - "flattened": false - }, - "DeleteConfigurationTemplateMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": {"shape": "ConfigurationTemplateName", "flattened": false} - }, - "flattened": false - }, - "DeleteEnvironmentConfigurationMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false} - }, - "flattened": false - }, - "DeletePlatformVersionRequest": { - "type": "structure", - "members": { - "PlatformArn": {"shape": "PlatformArn", "flattened": false} - }, - "flattened": false - }, - "DeletePlatformVersionResult": { - "type": "structure", - "members": { - "PlatformSummary": {"shape": "PlatformSummary", "flattened": false} - }, - "flattened": false - }, - "DeleteSourceBundle": {"type": "boolean", "flattened": false}, - "Deployment": { - "type": "structure", - "members": { - "VersionLabel": {"shape": "String", "flattened": false}, - "DeploymentId": {"shape": "NullableLong", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "DeploymentTime": {"shape": "DeploymentTimestamp", "flattened": false} - }, - "flattened": false - }, - "DeploymentTimestamp": {"type": "timestamp", "flattened": false}, - "DescribeAccountAttributesResult": { - "type": "structure", - "members": { - "ResourceQuotas": {"shape": "ResourceQuotas", "flattened": false} - }, - "flattened": false - }, - "DescribeApplicationVersionsMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabels": {"shape": "VersionLabelsList", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "DescribeApplicationsMessage": { - "type": "structure", - "members": { - "ApplicationNames": {"shape": "ApplicationNamesList", "flattened": false} - }, - "flattened": false - }, - "DescribeConfigurationOptionsMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "Options": {"shape": "OptionsSpecifierList", "flattened": false} - }, - "flattened": false - }, - "DescribeConfigurationSettingsMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false} - }, - "flattened": false - }, - "DescribeEnvironmentHealthRequest": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "AttributeNames": { - "shape": "EnvironmentHealthAttributes", - "flattened": false - } - }, - "flattened": false - }, - "DescribeEnvironmentHealthResult": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "HealthStatus": {"shape": "String", "flattened": false}, - "Status": {"shape": "EnvironmentHealth", "flattened": false}, - "Color": {"shape": "String", "flattened": false}, - "Causes": {"shape": "Causes", "flattened": false}, - "ApplicationMetrics": {"shape": "ApplicationMetrics", "flattened": false}, - "InstancesHealth": {"shape": "InstanceHealthSummary", "flattened": false}, - "RefreshedAt": {"shape": "RefreshedAt", "flattened": false} - }, - "flattened": false - }, - "DescribeEnvironmentManagedActionHistoryRequest": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false}, - "MaxItems": {"shape": "ManagedActionHistoryMaxItems", "flattened": false} - }, - "flattened": false - }, - "DescribeEnvironmentManagedActionHistoryResult": { - "type": "structure", - "members": { - "ManagedActionHistoryItems": { - "shape": "ManagedActionHistoryItems", - "flattened": false - }, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEnvironmentManagedActionsRequest": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "String", "flattened": false}, - "EnvironmentId": {"shape": "String", "flattened": false}, - "Status": {"shape": "ActionStatus", "flattened": false} - }, - "flattened": false - }, - "DescribeEnvironmentManagedActionsResult": { - "type": "structure", - "members": { - "ManagedActions": {"shape": "ManagedActions", "flattened": false} - }, - "flattened": false - }, - "DescribeEnvironmentResourcesMessage": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false} - }, - "flattened": false - }, - "DescribeEnvironmentsMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "EnvironmentIds": {"shape": "EnvironmentIdList", "flattened": false}, - "EnvironmentNames": {"shape": "EnvironmentNamesList", "flattened": false}, - "IncludeDeleted": {"shape": "IncludeDeleted", "flattened": false}, - "IncludedDeletedBackTo": { - "shape": "IncludeDeletedBackTo", - "flattened": false - }, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "RequestId": {"shape": "RequestId", "flattened": false}, - "Severity": {"shape": "EventSeverity", "flattened": false}, - "StartTime": {"shape": "TimeFilterStart", "flattened": false}, - "EndTime": {"shape": "TimeFilterEnd", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "DescribeInstancesHealthRequest": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "AttributeNames": { - "shape": "InstancesHealthAttributes", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribeInstancesHealthResult": { - "type": "structure", - "members": { - "InstanceHealthList": {"shape": "InstanceHealthList", "flattened": false}, - "RefreshedAt": {"shape": "RefreshedAt", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "DescribePlatformVersionRequest": { - "type": "structure", - "members": { - "PlatformArn": {"shape": "PlatformArn", "flattened": false} - }, - "flattened": false - }, - "DescribePlatformVersionResult": { - "type": "structure", - "members": { - "PlatformDescription": { - "shape": "PlatformDescription", - "flattened": false - } - }, - "flattened": false - }, - "Description": {"type": "string", "flattened": false}, - "DisassociateEnvironmentOperationsRoleMessage": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false} - }, - "flattened": false - }, - "Ec2InstanceId": {"type": "string", "flattened": false}, - "EndpointURL": {"type": "string", "flattened": false}, - "EnvironmentArn": {"type": "string", "flattened": false}, - "EnvironmentDescription": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "Description": {"shape": "Description", "flattened": false}, - "EndpointURL": {"shape": "EndpointURL", "flattened": false}, - "CNAME": {"shape": "DNSCname", "flattened": false}, - "DateCreated": {"shape": "CreationDate", "flattened": false}, - "DateUpdated": {"shape": "UpdateDate", "flattened": false}, - "Status": {"shape": "EnvironmentStatus", "flattened": false}, - "AbortableOperationInProgress": { - "shape": "AbortableOperationInProgress", - "flattened": false - }, - "Health": {"shape": "EnvironmentHealth", "flattened": false}, - "HealthStatus": {"shape": "EnvironmentHealthStatus", "flattened": false}, - "Resources": { - "shape": "EnvironmentResourcesDescription", - "flattened": false - }, - "Tier": {"shape": "EnvironmentTier", "flattened": false}, - "EnvironmentLinks": {"shape": "EnvironmentLinks", "flattened": false}, - "EnvironmentArn": {"shape": "EnvironmentArn", "flattened": false}, - "OperationsRole": {"shape": "OperationsRole", "flattened": false} - }, - "flattened": false - }, - "EnvironmentDescriptionsList": { - "type": "list", - "member": {"shape": "EnvironmentDescription"}, - "flattened": false - }, - "EnvironmentDescriptionsMessage": { - "type": "structure", - "members": { - "Environments": { - "shape": "EnvironmentDescriptionsList", - "flattened": false - }, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "EnvironmentHealth": {"type": "string", "flattened": false}, - "EnvironmentHealthAttribute": {"type": "string", "flattened": false}, - "EnvironmentHealthAttributes": { - "type": "list", - "member": {"shape": "EnvironmentHealthAttribute"}, - "flattened": false - }, - "EnvironmentHealthStatus": {"type": "string", "flattened": false}, - "EnvironmentId": {"type": "string", "flattened": false}, - "EnvironmentIdList": { - "type": "list", - "member": {"shape": "EnvironmentId"}, - "flattened": false - }, - "EnvironmentInfoDescription": { - "type": "structure", - "members": { - "InfoType": {"shape": "EnvironmentInfoType", "flattened": false}, - "Ec2InstanceId": {"shape": "Ec2InstanceId", "flattened": false}, - "SampleTimestamp": {"shape": "SampleTimestamp", "flattened": false}, - "Message": {"shape": "Message", "flattened": false} - }, - "flattened": false - }, - "EnvironmentInfoDescriptionList": { - "type": "list", - "member": {"shape": "EnvironmentInfoDescription"}, - "flattened": false - }, - "EnvironmentInfoType": {"type": "string", "flattened": false}, - "EnvironmentLink": { - "type": "structure", - "members": { - "LinkName": {"shape": "String", "flattened": false}, - "EnvironmentName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EnvironmentLinks": { - "type": "list", - "member": {"shape": "EnvironmentLink"}, - "flattened": false - }, - "EnvironmentName": {"type": "string", "flattened": false}, - "EnvironmentNamesList": { - "type": "list", - "member": {"shape": "EnvironmentName"}, - "flattened": false - }, - "EnvironmentResourceDescription": { - "type": "structure", - "members": { - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "AutoScalingGroups": { - "shape": "AutoScalingGroupList", - "flattened": false - }, - "Instances": {"shape": "InstanceList", "flattened": false}, - "LaunchConfigurations": { - "shape": "LaunchConfigurationList", - "flattened": false - }, - "LaunchTemplates": {"shape": "LaunchTemplateList", "flattened": false}, - "LoadBalancers": {"shape": "LoadBalancerList", "flattened": false}, - "Triggers": {"shape": "TriggerList", "flattened": false}, - "Queues": {"shape": "QueueList", "flattened": false} - }, - "flattened": false - }, - "EnvironmentResourceDescriptionsMessage": { - "type": "structure", - "members": { - "EnvironmentResources": { - "shape": "EnvironmentResourceDescription", - "flattened": false - } - }, - "flattened": false - }, - "EnvironmentResourcesDescription": { - "type": "structure", - "members": { - "LoadBalancer": {"shape": "LoadBalancerDescription", "flattened": false} - }, - "flattened": false - }, - "EnvironmentStatus": {"type": "string", "flattened": false}, - "EnvironmentTier": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Type": {"shape": "String", "flattened": false}, - "Version": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventDate": {"type": "timestamp", "flattened": false}, - "EventDescription": { - "type": "structure", - "members": { - "EventDate": {"shape": "EventDate", "flattened": false}, - "Message": {"shape": "EventMessage", "flattened": false}, - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "RequestId": {"shape": "RequestId", "flattened": false}, - "Severity": {"shape": "EventSeverity", "flattened": false} - }, - "flattened": false - }, - "EventDescriptionList": { - "type": "list", - "member": {"shape": "EventDescription"}, - "flattened": false - }, - "EventDescriptionsMessage": { - "type": "structure", - "members": { - "Events": {"shape": "EventDescriptionList", "flattened": false}, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "EventMessage": {"type": "string", "flattened": false}, - "EventSeverity": {"type": "string", "flattened": false}, - "FailureType": {"type": "string", "flattened": false}, - "FileTypeExtension": {"type": "string", "flattened": false}, - "ForceTerminate": {"type": "boolean", "flattened": false}, - "GroupName": {"type": "string", "flattened": false}, - "ImageId": {"type": "string", "flattened": false}, - "IncludeDeleted": {"type": "boolean", "flattened": false}, - "IncludeDeletedBackTo": {"type": "timestamp", "flattened": false}, - "Instance": { - "type": "structure", - "members": { - "Id": {"shape": "ResourceId", "flattened": false} - }, - "flattened": false - }, - "InstanceHealthList": { - "type": "list", - "member": {"shape": "SingleInstanceHealth"}, - "flattened": false - }, - "InstanceHealthSummary": { - "type": "structure", - "members": { - "NoData": {"shape": "NullableInteger", "flattened": false}, - "Unknown": {"shape": "NullableInteger", "flattened": false}, - "Pending": {"shape": "NullableInteger", "flattened": false}, - "Ok": {"shape": "NullableInteger", "flattened": false}, - "Info": {"shape": "NullableInteger", "flattened": false}, - "Warning": {"shape": "NullableInteger", "flattened": false}, - "Degraded": {"shape": "NullableInteger", "flattened": false}, - "Severe": {"shape": "NullableInteger", "flattened": false} - }, - "flattened": false - }, - "InstanceId": {"type": "string", "flattened": false}, - "InstanceList": { - "type": "list", - "member": {"shape": "Instance"}, - "flattened": false - }, - "InstancesHealthAttribute": {"type": "string", "flattened": false}, - "InstancesHealthAttributes": { - "type": "list", - "member": {"shape": "InstancesHealthAttribute"}, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "Latency": { - "type": "structure", - "members": { - "P999": {"shape": "NullableDouble", "flattened": false}, - "P99": {"shape": "NullableDouble", "flattened": false}, - "P95": {"shape": "NullableDouble", "flattened": false}, - "P90": {"shape": "NullableDouble", "flattened": false}, - "P85": {"shape": "NullableDouble", "flattened": false}, - "P75": {"shape": "NullableDouble", "flattened": false}, - "P50": {"shape": "NullableDouble", "flattened": false}, - "P10": {"shape": "NullableDouble", "flattened": false} - }, - "flattened": false - }, - "LaunchConfiguration": { - "type": "structure", - "members": { - "Name": {"shape": "ResourceId", "flattened": false} - }, - "flattened": false - }, - "LaunchConfigurationList": { - "type": "list", - "member": {"shape": "LaunchConfiguration"}, - "flattened": false - }, - "LaunchTemplate": { - "type": "structure", - "members": { - "Id": {"shape": "ResourceId", "flattened": false} - }, - "flattened": false - }, - "LaunchTemplateList": { - "type": "list", - "member": {"shape": "LaunchTemplate"}, - "flattened": false - }, - "LaunchedAt": {"type": "timestamp", "flattened": false}, - "ListAvailableSolutionStacksResultMessage": { - "type": "structure", - "members": { - "SolutionStacks": { - "shape": "AvailableSolutionStackNamesList", - "flattened": false - }, - "SolutionStackDetails": { - "shape": "AvailableSolutionStackDetailsList", - "flattened": false - } - }, - "flattened": false - }, - "ListPlatformBranchesRequest": { - "type": "structure", - "members": { - "Filters": {"shape": "SearchFilters", "flattened": false}, - "MaxRecords": {"shape": "PlatformBranchMaxRecords", "flattened": false}, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "ListPlatformBranchesResult": { - "type": "structure", - "members": { - "PlatformBranchSummaryList": { - "shape": "PlatformBranchSummaryList", - "flattened": false - }, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "ListPlatformVersionsRequest": { - "type": "structure", - "members": { - "Filters": {"shape": "PlatformFilters", "flattened": false}, - "MaxRecords": {"shape": "PlatformMaxRecords", "flattened": false}, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "ListPlatformVersionsResult": { - "type": "structure", - "members": { - "PlatformSummaryList": { - "shape": "PlatformSummaryList", - "flattened": false - }, - "NextToken": {"shape": "Token", "flattened": false} - }, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "ResourceArn", "flattened": false} - }, - "flattened": false - }, - "Listener": { - "type": "structure", - "members": { - "Protocol": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "LoadAverage": { - "type": "list", - "member": {"shape": "LoadAverageValue"}, - "flattened": false - }, - "LoadAverageValue": {"type": "double", "flattened": false}, - "LoadBalancer": { - "type": "structure", - "members": { - "Name": {"shape": "ResourceId", "flattened": false} - }, - "flattened": false - }, - "LoadBalancerDescription": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "String", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "Listeners": { - "shape": "LoadBalancerListenersDescription", - "flattened": false - } - }, - "flattened": false - }, - "LoadBalancerList": { - "type": "list", - "member": {"shape": "LoadBalancer"}, - "flattened": false - }, - "LoadBalancerListenersDescription": { - "type": "list", - "member": {"shape": "Listener"}, - "flattened": false - }, - "Maintainer": {"type": "string", "flattened": false}, - "ManagedAction": { - "type": "structure", - "members": { - "ActionId": {"shape": "String", "flattened": false}, - "ActionDescription": {"shape": "String", "flattened": false}, - "ActionType": {"shape": "ActionType", "flattened": false}, - "Status": {"shape": "ActionStatus", "flattened": false}, - "WindowStartTime": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "ManagedActionHistoryItem": { - "type": "structure", - "members": { - "ActionId": {"shape": "String", "flattened": false}, - "ActionType": {"shape": "ActionType", "flattened": false}, - "ActionDescription": {"shape": "String", "flattened": false}, - "FailureType": {"shape": "FailureType", "flattened": false}, - "Status": {"shape": "ActionHistoryStatus", "flattened": false}, - "FailureDescription": {"shape": "String", "flattened": false}, - "ExecutedTime": {"shape": "Timestamp", "flattened": false}, - "FinishedTime": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "ManagedActionHistoryItems": { - "type": "list", - "member": {"shape": "ManagedActionHistoryItem"}, - "flattened": false - }, - "ManagedActionHistoryMaxItems": {"type": "integer", "flattened": false}, - "ManagedActions": { - "type": "list", - "member": {"shape": "ManagedAction"}, - "flattened": false - }, - "MaxAgeRule": { - "type": "structure", - "members": { - "Enabled": {"shape": "BoxedBoolean", "flattened": false}, - "MaxAgeInDays": {"shape": "BoxedInt", "flattened": false}, - "DeleteSourceFromS3": {"shape": "BoxedBoolean", "flattened": false} - }, - "flattened": false - }, - "MaxCountRule": { - "type": "structure", - "members": { - "Enabled": {"shape": "BoxedBoolean", "flattened": false}, - "MaxCount": {"shape": "BoxedInt", "flattened": false}, - "DeleteSourceFromS3": {"shape": "BoxedBoolean", "flattened": false} - }, - "flattened": false - }, - "MaxRecords": {"type": "integer", "flattened": false}, - "Message": {"type": "string", "flattened": false}, - "NextToken": {"type": "string", "flattened": false}, - "NonEmptyString": {"type": "string", "flattened": false}, - "NullableDouble": {"type": "double", "flattened": false}, - "NullableInteger": {"type": "integer", "flattened": false}, - "NullableLong": {"type": "long", "flattened": false}, - "OperatingSystemName": {"type": "string", "flattened": false}, - "OperatingSystemVersion": {"type": "string", "flattened": false}, - "OperationsRole": {"type": "string", "flattened": false}, - "OptionNamespace": {"type": "string", "flattened": false}, - "OptionRestrictionMaxLength": {"type": "integer", "flattened": false}, - "OptionRestrictionMaxValue": {"type": "integer", "flattened": false}, - "OptionRestrictionMinValue": {"type": "integer", "flattened": false}, - "OptionRestrictionRegex": { - "type": "structure", - "members": { - "Pattern": {"shape": "RegexPattern", "flattened": false}, - "Label": {"shape": "RegexLabel", "flattened": false} - }, - "flattened": false - }, - "OptionSpecification": { - "type": "structure", - "members": { - "ResourceName": {"shape": "ResourceName", "flattened": false}, - "Namespace": {"shape": "OptionNamespace", "flattened": false}, - "OptionName": {"shape": "ConfigurationOptionName", "flattened": false} - }, - "flattened": false - }, - "OptionsSpecifierList": { - "type": "list", - "member": {"shape": "OptionSpecification"}, - "flattened": false - }, - "PlatformArn": {"type": "string", "flattened": false}, - "PlatformBranchLifecycleState": {"type": "string", "flattened": false}, - "PlatformBranchMaxRecords": {"type": "integer", "flattened": false}, - "PlatformBranchSummary": { - "type": "structure", - "members": { - "PlatformName": {"shape": "PlatformName", "flattened": false}, - "BranchName": {"shape": "BranchName", "flattened": false}, - "LifecycleState": { - "shape": "PlatformBranchLifecycleState", - "flattened": false - }, - "BranchOrder": {"shape": "BranchOrder", "flattened": false}, - "SupportedTierList": {"shape": "SupportedTierList", "flattened": false} - }, - "flattened": false - }, - "PlatformBranchSummaryList": { - "type": "list", - "member": {"shape": "PlatformBranchSummary"}, - "flattened": false - }, - "PlatformCategory": {"type": "string", "flattened": false}, - "PlatformDescription": { - "type": "structure", - "members": { - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "PlatformOwner": {"shape": "PlatformOwner", "flattened": false}, - "PlatformName": {"shape": "PlatformName", "flattened": false}, - "PlatformVersion": {"shape": "PlatformVersion", "flattened": false}, - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformStatus": {"shape": "PlatformStatus", "flattened": false}, - "DateCreated": {"shape": "CreationDate", "flattened": false}, - "DateUpdated": {"shape": "UpdateDate", "flattened": false}, - "PlatformCategory": {"shape": "PlatformCategory", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Maintainer": {"shape": "Maintainer", "flattened": false}, - "OperatingSystemName": { - "shape": "OperatingSystemName", - "flattened": false - }, - "OperatingSystemVersion": { - "shape": "OperatingSystemVersion", - "flattened": false - }, - "ProgrammingLanguages": { - "shape": "PlatformProgrammingLanguages", - "flattened": false - }, - "Frameworks": {"shape": "PlatformFrameworks", "flattened": false}, - "CustomAmiList": {"shape": "CustomAmiList", "flattened": false}, - "SupportedTierList": {"shape": "SupportedTierList", "flattened": false}, - "SupportedAddonList": {"shape": "SupportedAddonList", "flattened": false}, - "PlatformLifecycleState": { - "shape": "PlatformLifecycleState", - "flattened": false - }, - "PlatformBranchName": {"shape": "BranchName", "flattened": false}, - "PlatformBranchLifecycleState": { - "shape": "PlatformBranchLifecycleState", - "flattened": false - } - }, - "flattened": false - }, - "PlatformFilter": { - "type": "structure", - "members": { - "Type": {"shape": "PlatformFilterType", "flattened": false}, - "Operator": {"shape": "PlatformFilterOperator", "flattened": false}, - "Values": {"shape": "PlatformFilterValueList", "flattened": false} - }, - "flattened": false - }, - "PlatformFilterOperator": {"type": "string", "flattened": false}, - "PlatformFilterType": {"type": "string", "flattened": false}, - "PlatformFilterValue": {"type": "string", "flattened": false}, - "PlatformFilterValueList": { - "type": "list", - "member": {"shape": "PlatformFilterValue"}, - "flattened": false - }, - "PlatformFilters": { - "type": "list", - "member": {"shape": "PlatformFilter"}, - "flattened": false - }, - "PlatformFramework": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Version": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PlatformFrameworks": { - "type": "list", - "member": {"shape": "PlatformFramework"}, - "flattened": false - }, - "PlatformLifecycleState": {"type": "string", "flattened": false}, - "PlatformMaxRecords": {"type": "integer", "flattened": false}, - "PlatformName": {"type": "string", "flattened": false}, - "PlatformOwner": {"type": "string", "flattened": false}, - "PlatformProgrammingLanguage": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Version": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PlatformProgrammingLanguages": { - "type": "list", - "member": {"shape": "PlatformProgrammingLanguage"}, - "flattened": false - }, - "PlatformStatus": {"type": "string", "flattened": false}, - "PlatformSummary": { - "type": "structure", - "members": { - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "PlatformOwner": {"shape": "PlatformOwner", "flattened": false}, - "PlatformStatus": {"shape": "PlatformStatus", "flattened": false}, - "PlatformCategory": {"shape": "PlatformCategory", "flattened": false}, - "OperatingSystemName": { - "shape": "OperatingSystemName", - "flattened": false - }, - "OperatingSystemVersion": { - "shape": "OperatingSystemVersion", - "flattened": false - }, - "SupportedTierList": {"shape": "SupportedTierList", "flattened": false}, - "SupportedAddonList": {"shape": "SupportedAddonList", "flattened": false}, - "PlatformLifecycleState": { - "shape": "PlatformLifecycleState", - "flattened": false - }, - "PlatformVersion": {"shape": "PlatformVersion", "flattened": false}, - "PlatformBranchName": {"shape": "BranchName", "flattened": false}, - "PlatformBranchLifecycleState": { - "shape": "PlatformBranchLifecycleState", - "flattened": false - } - }, - "flattened": false - }, - "PlatformSummaryList": { - "type": "list", - "member": {"shape": "PlatformSummary"}, - "flattened": false - }, - "PlatformVersion": {"type": "string", "flattened": false}, - "Queue": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "URL": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "QueueList": { - "type": "list", - "member": {"shape": "Queue"}, - "flattened": false - }, - "RebuildEnvironmentMessage": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false} - }, - "flattened": false - }, - "RefreshedAt": {"type": "timestamp", "flattened": false}, - "RegexLabel": {"type": "string", "flattened": false}, - "RegexPattern": {"type": "string", "flattened": false}, - "RequestCount": {"type": "integer", "flattened": false}, - "RequestEnvironmentInfoMessage": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "InfoType": {"shape": "EnvironmentInfoType", "flattened": false} - }, - "flattened": false - }, - "RequestId": {"type": "string", "flattened": false}, - "ResourceArn": {"type": "string", "flattened": false}, - "ResourceId": {"type": "string", "flattened": false}, - "ResourceName": {"type": "string", "flattened": false}, - "ResourceQuota": { - "type": "structure", - "members": { - "Maximum": {"shape": "BoxedInt", "flattened": false} - }, - "flattened": false - }, - "ResourceQuotas": { - "type": "structure", - "members": { - "ApplicationQuota": {"shape": "ResourceQuota", "flattened": false}, - "ApplicationVersionQuota": {"shape": "ResourceQuota", "flattened": false}, - "EnvironmentQuota": {"shape": "ResourceQuota", "flattened": false}, - "ConfigurationTemplateQuota": { - "shape": "ResourceQuota", - "flattened": false - }, - "CustomPlatformQuota": {"shape": "ResourceQuota", "flattened": false} - }, - "flattened": false - }, - "ResourceTagsDescriptionMessage": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "ResourceArn", "flattened": false}, - "ResourceTags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "RestartAppServerMessage": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false} - }, - "flattened": false - }, - "RetrieveEnvironmentInfoMessage": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "InfoType": {"shape": "EnvironmentInfoType", "flattened": false} - }, - "flattened": false - }, - "RetrieveEnvironmentInfoResultMessage": { - "type": "structure", - "members": { - "EnvironmentInfo": { - "shape": "EnvironmentInfoDescriptionList", - "flattened": false - } - }, - "flattened": false - }, - "S3Bucket": {"type": "string", "flattened": false}, - "S3Key": {"type": "string", "flattened": false}, - "S3Location": { - "type": "structure", - "members": { - "S3Bucket": {"shape": "S3Bucket", "flattened": false}, - "S3Key": {"shape": "S3Key", "flattened": false} - }, - "flattened": false - }, - "SampleTimestamp": {"type": "timestamp", "flattened": false}, - "SearchFilter": { - "type": "structure", - "members": { - "Attribute": {"shape": "SearchFilterAttribute", "flattened": false}, - "Operator": {"shape": "SearchFilterOperator", "flattened": false}, - "Values": {"shape": "SearchFilterValues", "flattened": false} - }, - "flattened": false - }, - "SearchFilterAttribute": {"type": "string", "flattened": false}, - "SearchFilterOperator": {"type": "string", "flattened": false}, - "SearchFilterValue": {"type": "string", "flattened": false}, - "SearchFilterValues": { - "type": "list", - "member": {"shape": "SearchFilterValue"}, - "flattened": false - }, - "SearchFilters": { - "type": "list", - "member": {"shape": "SearchFilter"}, - "flattened": false - }, - "SingleInstanceHealth": { - "type": "structure", - "members": { - "InstanceId": {"shape": "InstanceId", "flattened": false}, - "HealthStatus": {"shape": "String", "flattened": false}, - "Color": {"shape": "String", "flattened": false}, - "Causes": {"shape": "Causes", "flattened": false}, - "LaunchedAt": {"shape": "LaunchedAt", "flattened": false}, - "ApplicationMetrics": {"shape": "ApplicationMetrics", "flattened": false}, - "System": {"shape": "SystemStatus", "flattened": false}, - "Deployment": {"shape": "Deployment", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "InstanceType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SolutionStackDescription": { - "type": "structure", - "members": { - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PermittedFileTypes": { - "shape": "SolutionStackFileTypeList", - "flattened": false - } - }, - "flattened": false - }, - "SolutionStackFileTypeList": { - "type": "list", - "member": {"shape": "FileTypeExtension"}, - "flattened": false - }, - "SolutionStackName": {"type": "string", "flattened": false}, - "SourceBuildInformation": { - "type": "structure", - "members": { - "SourceType": {"shape": "SourceType", "flattened": false}, - "SourceRepository": {"shape": "SourceRepository", "flattened": false}, - "SourceLocation": {"shape": "SourceLocation", "flattened": false} - }, - "flattened": false - }, - "SourceConfiguration": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": {"shape": "ConfigurationTemplateName", "flattened": false} - }, - "flattened": false - }, - "SourceLocation": {"type": "string", "flattened": false}, - "SourceRepository": {"type": "string", "flattened": false}, - "SourceType": {"type": "string", "flattened": false}, - "StatusCodes": { - "type": "structure", - "members": { - "Status2xx": {"shape": "NullableInteger", "flattened": false}, - "Status3xx": {"shape": "NullableInteger", "flattened": false}, - "Status4xx": {"shape": "NullableInteger", "flattened": false}, - "Status5xx": {"shape": "NullableInteger", "flattened": false} - }, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "SupportedAddon": {"type": "string", "flattened": false}, - "SupportedAddonList": { - "type": "list", - "member": {"shape": "SupportedAddon"}, - "flattened": false - }, - "SupportedTier": {"type": "string", "flattened": false}, - "SupportedTierList": { - "type": "list", - "member": {"shape": "SupportedTier"}, - "flattened": false - }, - "SwapEnvironmentCNAMEsMessage": { - "type": "structure", - "members": { - "SourceEnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "SourceEnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "DestinationEnvironmentId": { - "shape": "EnvironmentId", - "flattened": false - }, - "DestinationEnvironmentName": { - "shape": "EnvironmentName", - "flattened": false - } - }, - "flattened": false - }, - "SystemStatus": { - "type": "structure", - "members": { - "CPUUtilization": {"shape": "CPUUtilization", "flattened": false}, - "LoadAverage": {"shape": "LoadAverage", "flattened": false} - }, - "flattened": false - }, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false} - }, - "flattened": false - }, - "TagKey": {"type": "string", "flattened": false}, - "TagKeyList": { - "type": "list", - "member": {"shape": "TagKey"}, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TagValue": {"type": "string", "flattened": false}, - "Tags": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TerminateEnvForce": {"type": "boolean", "flattened": false}, - "TerminateEnvironmentMessage": { - "type": "structure", - "members": { - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "TerminateResources": { - "shape": "TerminateEnvironmentResources", - "flattened": false - }, - "ForceTerminate": {"shape": "ForceTerminate", "flattened": false} - }, - "flattened": false - }, - "TerminateEnvironmentResources": {"type": "boolean", "flattened": false}, - "TimeFilterEnd": {"type": "timestamp", "flattened": false}, - "TimeFilterStart": {"type": "timestamp", "flattened": false}, - "Timestamp": {"type": "timestamp", "flattened": false}, - "Token": {"type": "string", "flattened": false}, - "Trigger": { - "type": "structure", - "members": { - "Name": {"shape": "ResourceId", "flattened": false} - }, - "flattened": false - }, - "TriggerList": { - "type": "list", - "member": {"shape": "Trigger"}, - "flattened": false - }, - "UpdateApplicationMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false} - }, - "flattened": false - }, - "UpdateApplicationResourceLifecycleMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "ResourceLifecycleConfig": { - "shape": "ApplicationResourceLifecycleConfig", - "flattened": false - } - }, - "flattened": false - }, - "UpdateApplicationVersionMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "Description": {"shape": "Description", "flattened": false} - }, - "flattened": false - }, - "UpdateConfigurationTemplateMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "Description": {"shape": "Description", "flattened": false}, - "OptionSettings": { - "shape": "ConfigurationOptionSettingsList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionsSpecifierList", "flattened": false} - }, - "flattened": false - }, - "UpdateDate": {"type": "timestamp", "flattened": false}, - "UpdateEnvironmentMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "EnvironmentId": {"shape": "EnvironmentId", "flattened": false}, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "GroupName": {"shape": "GroupName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Tier": {"shape": "EnvironmentTier", "flattened": false}, - "VersionLabel": {"shape": "VersionLabel", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "SolutionStackName": {"shape": "SolutionStackName", "flattened": false}, - "PlatformArn": {"shape": "PlatformArn", "flattened": false}, - "OptionSettings": { - "shape": "ConfigurationOptionSettingsList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionsSpecifierList", "flattened": false} - }, - "flattened": false - }, - "UpdateTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "ResourceArn", "flattened": false}, - "TagsToAdd": {"shape": "TagList", "flattened": false}, - "TagsToRemove": {"shape": "TagKeyList", "flattened": false} - }, - "flattened": false - }, - "UserDefinedOption": {"type": "boolean", "flattened": false}, - "ValidateConfigurationSettingsMessage": { - "type": "structure", - "members": { - "ApplicationName": {"shape": "ApplicationName", "flattened": false}, - "TemplateName": { - "shape": "ConfigurationTemplateName", - "flattened": false - }, - "EnvironmentName": {"shape": "EnvironmentName", "flattened": false}, - "OptionSettings": { - "shape": "ConfigurationOptionSettingsList", - "flattened": false - } - }, - "flattened": false - }, - "ValidationMessage": { - "type": "structure", - "members": { - "Message": {"shape": "ValidationMessageString", "flattened": false}, - "Severity": {"shape": "ValidationSeverity", "flattened": false}, - "Namespace": {"shape": "OptionNamespace", "flattened": false}, - "OptionName": {"shape": "ConfigurationOptionName", "flattened": false} - }, - "flattened": false - }, - "ValidationMessageString": {"type": "string", "flattened": false}, - "ValidationMessagesList": { - "type": "list", - "member": {"shape": "ValidationMessage"}, - "flattened": false - }, - "ValidationSeverity": {"type": "string", "flattened": false}, - "VersionLabel": {"type": "string", "flattened": false}, - "VersionLabels": { - "type": "list", - "member": {"shape": "VersionLabel"}, - "flattened": false - }, - "VersionLabelsList": { - "type": "list", - "member": {"shape": "VersionLabel"}, - "flattened": false - }, - "VirtualizationType": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/elastic_load_balancing/v2012_06_01.dart b/aws_client/lib/src/generated/elastic_load_balancing/v2012_06_01.dart index 9c7a22aac..175e70ecf 100644 --- a/aws_client/lib/src/generated/elastic_load_balancing/v2012_06_01.dart +++ b/aws_client/lib/src/generated/elastic_load_balancing/v2012_06_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2012_06_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// A load balancer can distribute incoming traffic across your EC2 instances. @@ -30,7 +29,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// from the load balancer to the instances. class ElasticLoadBalancing { final _s.QueryProtocol _protocol; - final Map shapes; ElasticLoadBalancing({ required String region, @@ -38,7 +36,7 @@ class ElasticLoadBalancing { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticloadbalancing', @@ -47,9 +45,7 @@ class ElasticLoadBalancing { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -84,9 +80,19 @@ class ElasticLoadBalancing { required List loadBalancerNames, required List tags, }) async { - final $request = {}; - $request['LoadBalancerNames'] = loadBalancerNames; - $request['Tags'] = tags; + final $request = { + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTags', @@ -94,8 +100,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsInput'], - shapes: shapes, resultWrapper: 'AddTagsResult', ); } @@ -124,9 +128,14 @@ class ElasticLoadBalancing { required String loadBalancerName, required List securityGroups, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['SecurityGroups'] = securityGroups; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + }; final $result = await _protocol.send( $request, action: 'ApplySecurityGroupsToLoadBalancer', @@ -134,8 +143,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplySecurityGroupsToLoadBalancerInput'], - shapes: shapes, resultWrapper: 'ApplySecurityGroupsToLoadBalancerResult', ); return ApplySecurityGroupsToLoadBalancerOutput.fromXml($result); @@ -165,9 +172,14 @@ class ElasticLoadBalancing { required String loadBalancerName, required List subnets, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['Subnets'] = subnets; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + }; final $result = await _protocol.send( $request, action: 'AttachLoadBalancerToSubnets', @@ -175,8 +187,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachLoadBalancerToSubnetsInput'], - shapes: shapes, resultWrapper: 'AttachLoadBalancerToSubnetsResult', ); return AttachLoadBalancerToSubnetsOutput.fromXml($result); @@ -201,9 +211,11 @@ class ElasticLoadBalancing { required HealthCheck healthCheck, required String loadBalancerName, }) async { - final $request = {}; - $request['HealthCheck'] = healthCheck; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + for (var e1 in healthCheck.toQueryMap().entries) + 'HealthCheck.${e1.key}': e1.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'ConfigureHealthCheck', @@ -211,8 +223,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ConfigureHealthCheckInput'], - shapes: shapes, resultWrapper: 'ConfigureHealthCheckResult', ); return ConfigureHealthCheckOutput.fromXml($result); @@ -256,10 +266,11 @@ class ElasticLoadBalancing { required String loadBalancerName, required String policyName, }) async { - final $request = {}; - $request['CookieName'] = cookieName; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; + final $request = { + 'CookieName': cookieName, + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'CreateAppCookieStickinessPolicy', @@ -267,8 +278,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAppCookieStickinessPolicyInput'], - shapes: shapes, resultWrapper: 'CreateAppCookieStickinessPolicyResult', ); } @@ -317,11 +326,12 @@ class ElasticLoadBalancing { required String policyName, int? cookieExpirationPeriod, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; - cookieExpirationPeriod - ?.also((arg) => $request['CookieExpirationPeriod'] = arg); + final $request = { + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + if (cookieExpirationPeriod != null) + 'CookieExpirationPeriod': cookieExpirationPeriod.toString(), + }; await _protocol.send( $request, action: 'CreateLBCookieStickinessPolicy', @@ -329,8 +339,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLBCookieStickinessPolicyInput'], - shapes: shapes, resultWrapper: 'CreateLBCookieStickinessPolicyResult', ); } @@ -425,14 +433,41 @@ class ElasticLoadBalancing { List? subnets, List? tags, }) async { - final $request = {}; - $request['Listeners'] = listeners; - $request['LoadBalancerName'] = loadBalancerName; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - scheme?.also((arg) => $request['Scheme'] = arg); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); - subnets?.also((arg) => $request['Subnets'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (listeners.isEmpty) + 'Listeners': '' + else + for (var i1 = 0; i1 < listeners.length; i1++) + for (var e3 in listeners[i1].toQueryMap().entries) + 'Listeners.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + if (scheme != null) 'Scheme': scheme, + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (subnets != null) + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateLoadBalancer', @@ -440,8 +475,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAccessPointInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerResult', ); return CreateAccessPointOutput.fromXml($result); @@ -472,9 +505,15 @@ class ElasticLoadBalancing { required List listeners, required String loadBalancerName, }) async { - final $request = {}; - $request['Listeners'] = listeners; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (listeners.isEmpty) + 'Listeners': '' + else + for (var i1 = 0; i1 < listeners.length; i1++) + for (var e3 in listeners[i1].toQueryMap().entries) + 'Listeners.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + }; await _protocol.send( $request, action: 'CreateLoadBalancerListeners', @@ -482,8 +521,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoadBalancerListenerInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerListenersResult', ); } @@ -520,11 +557,18 @@ class ElasticLoadBalancing { required String policyTypeName, List? policyAttributes, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; - $request['PolicyTypeName'] = policyTypeName; - policyAttributes?.also((arg) => $request['PolicyAttributes'] = arg); + final $request = { + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + 'PolicyTypeName': policyTypeName, + if (policyAttributes != null) + if (policyAttributes.isEmpty) + 'PolicyAttributes': '' + else + for (var i1 = 0; i1 < policyAttributes.length; i1++) + for (var e3 in policyAttributes[i1].toQueryMap().entries) + 'PolicyAttributes.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'CreateLoadBalancerPolicy', @@ -532,8 +576,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoadBalancerPolicyInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerPolicyResult', ); } @@ -554,8 +596,9 @@ class ElasticLoadBalancing { Future deleteLoadBalancer({ required String loadBalancerName, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + 'LoadBalancerName': loadBalancerName, + }; await _protocol.send( $request, action: 'DeleteLoadBalancer', @@ -563,8 +606,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAccessPointInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerResult', ); } @@ -582,9 +623,15 @@ class ElasticLoadBalancing { required String loadBalancerName, required List loadBalancerPorts, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['LoadBalancerPorts'] = loadBalancerPorts; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (loadBalancerPorts.isEmpty) + 'LoadBalancerPorts': '' + else + for (var i1 = 0; i1 < loadBalancerPorts.length; i1++) + 'LoadBalancerPorts.member.${i1 + 1}': + loadBalancerPorts[i1].toString(), + }; await _protocol.send( $request, action: 'DeleteLoadBalancerListeners', @@ -592,8 +639,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoadBalancerListenerInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerListenersResult', ); } @@ -613,9 +658,10 @@ class ElasticLoadBalancing { required String loadBalancerName, required String policyName, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; + final $request = { + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'DeleteLoadBalancerPolicy', @@ -623,8 +669,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoadBalancerPolicyInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerPolicyResult', ); } @@ -653,9 +697,15 @@ class ElasticLoadBalancing { required List instances, required String loadBalancerName, }) async { - final $request = {}; - $request['Instances'] = instances; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (instances.isEmpty) + 'Instances': '' + else + for (var i1 = 0; i1 < instances.length; i1++) + for (var e3 in instances[i1].toQueryMap().entries) + 'Instances.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'DeregisterInstancesFromLoadBalancer', @@ -663,8 +713,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterEndPointsInput'], - shapes: shapes, resultWrapper: 'DeregisterInstancesFromLoadBalancerResult', ); return DeregisterEndPointsOutput.fromXml($result); @@ -694,9 +742,10 @@ class ElasticLoadBalancing { 1, 400, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -704,8 +753,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountLimitsInput'], - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsOutput.fromXml($result); @@ -730,9 +777,16 @@ class ElasticLoadBalancing { required String loadBalancerName, List? instances, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - instances?.also((arg) => $request['Instances'] = arg); + final $request = { + 'LoadBalancerName': loadBalancerName, + if (instances != null) + if (instances.isEmpty) + 'Instances': '' + else + for (var i1 = 0; i1 < instances.length; i1++) + for (var e3 in instances[i1].toQueryMap().entries) + 'Instances.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'DescribeInstanceHealth', @@ -740,8 +794,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEndPointStateInput'], - shapes: shapes, resultWrapper: 'DescribeInstanceHealthResult', ); return DescribeEndPointStateOutput.fromXml($result); @@ -757,8 +809,9 @@ class ElasticLoadBalancing { Future describeLoadBalancerAttributes({ required String loadBalancerName, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerAttributes', @@ -766,8 +819,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerAttributesResult', ); return DescribeLoadBalancerAttributesOutput.fromXml($result); @@ -795,9 +846,15 @@ class ElasticLoadBalancing { String? loadBalancerName, List? policyNames, }) async { - final $request = {}; - loadBalancerName?.also((arg) => $request['LoadBalancerName'] = arg); - policyNames?.also((arg) => $request['PolicyNames'] = arg); + final $request = { + if (loadBalancerName != null) 'LoadBalancerName': loadBalancerName, + if (policyNames != null) + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerPolicies', @@ -805,8 +862,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerPoliciesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerPoliciesResult', ); return DescribeLoadBalancerPoliciesOutput.fromXml($result); @@ -834,8 +889,14 @@ class ElasticLoadBalancing { describeLoadBalancerPolicyTypes({ List? policyTypeNames, }) async { - final $request = {}; - policyTypeNames?.also((arg) => $request['PolicyTypeNames'] = arg); + final $request = { + if (policyTypeNames != null) + if (policyTypeNames.isEmpty) + 'PolicyTypeNames': '' + else + for (var i1 = 0; i1 < policyTypeNames.length; i1++) + 'PolicyTypeNames.member.${i1 + 1}': policyTypeNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerPolicyTypes', @@ -843,8 +904,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerPolicyTypesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerPolicyTypesResult', ); return DescribeLoadBalancerPolicyTypesOutput.fromXml($result); @@ -877,10 +936,16 @@ class ElasticLoadBalancing { 1, 400, ); - final $request = {}; - loadBalancerNames?.also((arg) => $request['LoadBalancerNames'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (loadBalancerNames != null) + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancers', @@ -888,8 +953,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccessPointsInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancersResult', ); return DescribeAccessPointsOutput.fromXml($result); @@ -904,8 +967,13 @@ class ElasticLoadBalancing { Future describeTags({ required List loadBalancerNames, }) async { - final $request = {}; - $request['LoadBalancerNames'] = loadBalancerNames; + final $request = { + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -913,8 +981,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsInput'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return DescribeTagsOutput.fromXml($result); @@ -940,9 +1006,14 @@ class ElasticLoadBalancing { required String loadBalancerName, required List subnets, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['Subnets'] = subnets; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + }; final $result = await _protocol.send( $request, action: 'DetachLoadBalancerFromSubnets', @@ -950,8 +1021,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachLoadBalancerFromSubnetsInput'], - shapes: shapes, resultWrapper: 'DetachLoadBalancerFromSubnetsResult', ); return DetachLoadBalancerFromSubnetsOutput.fromXml($result); @@ -988,9 +1057,14 @@ class ElasticLoadBalancing { required List availabilityZones, required String loadBalancerName, }) async { - final $request = {}; - $request['AvailabilityZones'] = availabilityZones; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'DisableAvailabilityZonesForLoadBalancer', @@ -998,8 +1072,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveAvailabilityZonesInput'], - shapes: shapes, resultWrapper: 'DisableAvailabilityZonesForLoadBalancerResult', ); return RemoveAvailabilityZonesOutput.fromXml($result); @@ -1029,9 +1101,14 @@ class ElasticLoadBalancing { required List availabilityZones, required String loadBalancerName, }) async { - final $request = {}; - $request['AvailabilityZones'] = availabilityZones; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'EnableAvailabilityZonesForLoadBalancer', @@ -1039,8 +1116,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddAvailabilityZonesInput'], - shapes: shapes, resultWrapper: 'EnableAvailabilityZonesForLoadBalancerResult', ); return AddAvailabilityZonesOutput.fromXml($result); @@ -1094,9 +1169,11 @@ class ElasticLoadBalancing { required LoadBalancerAttributes loadBalancerAttributes, required String loadBalancerName, }) async { - final $request = {}; - $request['LoadBalancerAttributes'] = loadBalancerAttributes; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + for (var e1 in loadBalancerAttributes.toQueryMap().entries) + 'LoadBalancerAttributes.${e1.key}': e1.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'ModifyLoadBalancerAttributes', @@ -1104,8 +1181,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'ModifyLoadBalancerAttributesResult', ); return ModifyLoadBalancerAttributesOutput.fromXml($result); @@ -1151,9 +1226,15 @@ class ElasticLoadBalancing { required List instances, required String loadBalancerName, }) async { - final $request = {}; - $request['Instances'] = instances; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (instances.isEmpty) + 'Instances': '' + else + for (var i1 = 0; i1 < instances.length; i1++) + for (var e3 in instances[i1].toQueryMap().entries) + 'Instances.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'RegisterInstancesWithLoadBalancer', @@ -1161,8 +1242,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterEndPointsInput'], - shapes: shapes, resultWrapper: 'RegisterInstancesWithLoadBalancerResult', ); return RegisterEndPointsOutput.fromXml($result); @@ -1182,9 +1261,19 @@ class ElasticLoadBalancing { required List loadBalancerNames, required List tags, }) async { - final $request = {}; - $request['LoadBalancerNames'] = loadBalancerNames; - $request['Tags'] = tags; + final $request = { + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'RemoveTags', @@ -1192,8 +1281,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsInput'], - shapes: shapes, resultWrapper: 'RemoveTagsResult', ); } @@ -1226,10 +1313,11 @@ class ElasticLoadBalancing { required int loadBalancerPort, required String sSLCertificateId, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['LoadBalancerPort'] = loadBalancerPort; - $request['SSLCertificateId'] = sSLCertificateId; + final $request = { + 'LoadBalancerName': loadBalancerName, + 'LoadBalancerPort': loadBalancerPort.toString(), + 'SSLCertificateId': sSLCertificateId, + }; await _protocol.send( $request, action: 'SetLoadBalancerListenerSSLCertificate', @@ -1237,8 +1325,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetLoadBalancerListenerSSLCertificateInput'], - shapes: shapes, resultWrapper: 'SetLoadBalancerListenerSSLCertificateResult', ); } @@ -1283,10 +1369,15 @@ class ElasticLoadBalancing { required String loadBalancerName, required List policyNames, }) async { - final $request = {}; - $request['InstancePort'] = instancePort; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyNames'] = policyNames; + final $request = { + 'InstancePort': instancePort.toString(), + 'LoadBalancerName': loadBalancerName, + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; await _protocol.send( $request, action: 'SetLoadBalancerPoliciesForBackendServer', @@ -1294,8 +1385,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetLoadBalancerPoliciesForBackendServerInput'], - shapes: shapes, resultWrapper: 'SetLoadBalancerPoliciesForBackendServerResult', ); } @@ -1334,10 +1423,15 @@ class ElasticLoadBalancing { required int loadBalancerPort, required List policyNames, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['LoadBalancerPort'] = loadBalancerPort; - $request['PolicyNames'] = policyNames; + final $request = { + 'LoadBalancerName': loadBalancerName, + 'LoadBalancerPort': loadBalancerPort.toString(), + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; await _protocol.send( $request, action: 'SetLoadBalancerPoliciesOfListener', @@ -1345,8 +1439,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetLoadBalancerPoliciesOfListenerInput'], - shapes: shapes, resultWrapper: 'SetLoadBalancerPoliciesOfListenerResult', ); } @@ -1398,6 +1490,19 @@ class AccessLog { if (s3BucketPrefix != null) 'S3BucketPrefix': s3BucketPrefix, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final emitInterval = this.emitInterval; + final s3BucketName = this.s3BucketName; + final s3BucketPrefix = this.s3BucketPrefix; + return { + 'Enabled': enabled.toString(), + if (emitInterval != null) 'EmitInterval': emitInterval.toString(), + if (s3BucketName != null) 'S3BucketName': s3BucketName, + if (s3BucketPrefix != null) 'S3BucketPrefix': s3BucketPrefix, + }; + } } /// Contains the output of EnableAvailabilityZonesForLoadBalancer. @@ -1477,6 +1582,15 @@ class AdditionalAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Information about a policy for application-controlled session stickiness. @@ -1639,6 +1753,15 @@ class ConnectionDraining { if (timeout != null) 'Timeout': timeout, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final timeout = this.timeout; + return { + 'Enabled': enabled.toString(), + if (timeout != null) 'Timeout': timeout.toString(), + }; + } } /// Information about the ConnectionSettings attribute. @@ -1662,6 +1785,13 @@ class ConnectionSettings { 'IdleTimeout': idleTimeout, }; } + + Map toQueryMap() { + final idleTimeout = this.idleTimeout; + return { + 'IdleTimeout': idleTimeout.toString(), + }; + } } /// Contains the output for CreateLoadBalancer. @@ -1763,6 +1893,13 @@ class CrossZoneLoadBalancing { 'Enabled': enabled, }; } + + Map toQueryMap() { + final enabled = this.enabled; + return { + 'Enabled': enabled.toString(), + }; + } } /// Contains the output of DeleteLoadBalancer. @@ -2117,6 +2254,21 @@ class HealthCheck { 'UnhealthyThreshold': unhealthyThreshold, }; } + + Map toQueryMap() { + final healthyThreshold = this.healthyThreshold; + final interval = this.interval; + final target = this.target; + final timeout = this.timeout; + final unhealthyThreshold = this.unhealthyThreshold; + return { + 'HealthyThreshold': healthyThreshold.toString(), + 'Interval': interval.toString(), + 'Target': target, + 'Timeout': timeout.toString(), + 'UnhealthyThreshold': unhealthyThreshold.toString(), + }; + } } /// The ID of an EC2 instance. @@ -2139,6 +2291,13 @@ class Instance { if (instanceId != null) 'InstanceId': instanceId, }; } + + Map toQueryMap() { + final instanceId = this.instanceId; + return { + if (instanceId != null) 'InstanceId': instanceId, + }; + } } /// Information about the state of an EC2 instance. @@ -2379,6 +2538,21 @@ class Listener { if (sSLCertificateId != null) 'SSLCertificateId': sSLCertificateId, }; } + + Map toQueryMap() { + final instancePort = this.instancePort; + final loadBalancerPort = this.loadBalancerPort; + final protocol = this.protocol; + final instanceProtocol = this.instanceProtocol; + final sSLCertificateId = this.sSLCertificateId; + return { + 'InstancePort': instancePort.toString(), + 'LoadBalancerPort': loadBalancerPort.toString(), + 'Protocol': protocol, + if (instanceProtocol != null) 'InstanceProtocol': instanceProtocol, + if (sSLCertificateId != null) 'SSLCertificateId': sSLCertificateId, + }; + } } /// The policies enabled for a listener. @@ -2496,6 +2670,35 @@ class LoadBalancerAttributes { 'CrossZoneLoadBalancing': crossZoneLoadBalancing, }; } + + Map toQueryMap() { + final accessLog = this.accessLog; + final additionalAttributes = this.additionalAttributes; + final connectionDraining = this.connectionDraining; + final connectionSettings = this.connectionSettings; + final crossZoneLoadBalancing = this.crossZoneLoadBalancing; + return { + if (accessLog != null) + for (var e1 in accessLog.toQueryMap().entries) + 'AccessLog.${e1.key}': e1.value, + if (additionalAttributes != null) + if (additionalAttributes.isEmpty) + 'AdditionalAttributes': '' + else + for (var i1 = 0; i1 < additionalAttributes.length; i1++) + for (var e3 in additionalAttributes[i1].toQueryMap().entries) + 'AdditionalAttributes.member.${i1 + 1}.${e3.key}': e3.value, + if (connectionDraining != null) + for (var e1 in connectionDraining.toQueryMap().entries) + 'ConnectionDraining.${e1.key}': e1.value, + if (connectionSettings != null) + for (var e1 in connectionSettings.toQueryMap().entries) + 'ConnectionSettings.${e1.key}': e1.value, + if (crossZoneLoadBalancing != null) + for (var e1 in crossZoneLoadBalancing.toQueryMap().entries) + 'CrossZoneLoadBalancing.${e1.key}': e1.value, + }; + } } /// Information about a load balancer. @@ -2770,6 +2973,15 @@ class PolicyAttribute { if (attributeValue != null) 'AttributeValue': attributeValue, }; } + + Map toQueryMap() { + final attributeName = this.attributeName; + final attributeValue = this.attributeValue; + return { + if (attributeName != null) 'AttributeName': attributeName, + if (attributeValue != null) 'AttributeValue': attributeValue, + }; + } } /// Information about a policy attribute. @@ -3114,6 +3326,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + if (value != null) 'Value': value, + }; + } } /// The tags associated with a load balancer. @@ -3161,6 +3382,13 @@ class TagKeyOnly { if (key != null) 'Key': key, }; } + + Map toQueryMap() { + final key = this.key; + return { + if (key != null) 'Key': key, + }; + } } class AccessPointNotFoundException extends _s.GenericAwsException { diff --git a/aws_client/lib/src/generated/elastic_load_balancing/v2012_06_01.meta.dart b/aws_client/lib/src/generated/elastic_load_balancing/v2012_06_01.meta.dart deleted file mode 100644 index b4eddcdcb..000000000 --- a/aws_client/lib/src/generated/elastic_load_balancing/v2012_06_01.meta.dart +++ /dev/null @@ -1,885 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AccessLog": { - "type": "structure", - "members": { - "Enabled": {"shape": "AccessLogEnabled", "flattened": false}, - "S3BucketName": {"shape": "S3BucketName", "flattened": false}, - "EmitInterval": {"shape": "AccessLogInterval", "flattened": false}, - "S3BucketPrefix": {"shape": "AccessLogPrefix", "flattened": false} - }, - "flattened": false - }, - "AccessLogEnabled": {"type": "boolean", "flattened": false}, - "AccessLogInterval": {"type": "integer", "flattened": false}, - "AccessLogPrefix": {"type": "string", "flattened": false}, - "AccessPointName": {"type": "string", "flattened": false}, - "AccessPointPort": {"type": "integer", "flattened": false}, - "AddAvailabilityZonesInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false} - }, - "flattened": false - }, - "AddAvailabilityZonesOutput": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false} - }, - "flattened": false - }, - "AddTagsInput": { - "type": "structure", - "members": { - "LoadBalancerNames": {"shape": "LoadBalancerNames", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "AddTagsOutput": {"type": "structure", "members": {}, "flattened": false}, - "AdditionalAttribute": { - "type": "structure", - "members": { - "Key": {"shape": "AdditionalAttributeKey", "flattened": false}, - "Value": {"shape": "AdditionalAttributeValue", "flattened": false} - }, - "flattened": false - }, - "AdditionalAttributeKey": {"type": "string", "flattened": false}, - "AdditionalAttributeValue": {"type": "string", "flattened": false}, - "AdditionalAttributes": { - "type": "list", - "member": {"shape": "AdditionalAttribute"}, - "flattened": false - }, - "AppCookieStickinessPolicies": { - "type": "list", - "member": {"shape": "AppCookieStickinessPolicy"}, - "flattened": false - }, - "AppCookieStickinessPolicy": { - "type": "structure", - "members": { - "PolicyName": {"shape": "PolicyName", "flattened": false}, - "CookieName": {"shape": "CookieName", "flattened": false} - }, - "flattened": false - }, - "ApplySecurityGroupsToLoadBalancerInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false} - }, - "flattened": false - }, - "ApplySecurityGroupsToLoadBalancerOutput": { - "type": "structure", - "members": { - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false} - }, - "flattened": false - }, - "AttachLoadBalancerToSubnetsInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Subnets": {"shape": "Subnets", "flattened": false} - }, - "flattened": false - }, - "AttachLoadBalancerToSubnetsOutput": { - "type": "structure", - "members": { - "Subnets": {"shape": "Subnets", "flattened": false} - }, - "flattened": false - }, - "AttributeName": {"type": "string", "flattened": false}, - "AttributeType": {"type": "string", "flattened": false}, - "AttributeValue": {"type": "string", "flattened": false}, - "AvailabilityZone": {"type": "string", "flattened": false}, - "AvailabilityZones": { - "type": "list", - "member": {"shape": "AvailabilityZone"}, - "flattened": false - }, - "BackendServerDescription": { - "type": "structure", - "members": { - "InstancePort": {"shape": "InstancePort", "flattened": false}, - "PolicyNames": {"shape": "PolicyNames", "flattened": false} - }, - "flattened": false - }, - "BackendServerDescriptions": { - "type": "list", - "member": {"shape": "BackendServerDescription"}, - "flattened": false - }, - "Cardinality": {"type": "string", "flattened": false}, - "ConfigureHealthCheckInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "HealthCheck": {"shape": "HealthCheck", "flattened": false} - }, - "flattened": false - }, - "ConfigureHealthCheckOutput": { - "type": "structure", - "members": { - "HealthCheck": {"shape": "HealthCheck", "flattened": false} - }, - "flattened": false - }, - "ConnectionDraining": { - "type": "structure", - "members": { - "Enabled": {"shape": "ConnectionDrainingEnabled", "flattened": false}, - "Timeout": {"shape": "ConnectionDrainingTimeout", "flattened": false} - }, - "flattened": false - }, - "ConnectionDrainingEnabled": {"type": "boolean", "flattened": false}, - "ConnectionDrainingTimeout": {"type": "integer", "flattened": false}, - "ConnectionSettings": { - "type": "structure", - "members": { - "IdleTimeout": {"shape": "IdleTimeout", "flattened": false} - }, - "flattened": false - }, - "CookieExpirationPeriod": {"type": "long", "flattened": false}, - "CookieName": {"type": "string", "flattened": false}, - "CreateAccessPointInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Listeners": {"shape": "Listeners", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "Subnets": {"shape": "Subnets", "flattened": false}, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false}, - "Scheme": {"shape": "LoadBalancerScheme", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateAccessPointOutput": { - "type": "structure", - "members": { - "DNSName": {"shape": "DNSName", "flattened": false} - }, - "flattened": false - }, - "CreateAppCookieStickinessPolicyInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "PolicyName": {"shape": "PolicyName", "flattened": false}, - "CookieName": {"shape": "CookieName", "flattened": false} - }, - "flattened": false - }, - "CreateAppCookieStickinessPolicyOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateLBCookieStickinessPolicyInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "PolicyName": {"shape": "PolicyName", "flattened": false}, - "CookieExpirationPeriod": { - "shape": "CookieExpirationPeriod", - "flattened": false - } - }, - "flattened": false - }, - "CreateLBCookieStickinessPolicyOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateLoadBalancerListenerInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Listeners": {"shape": "Listeners", "flattened": false} - }, - "flattened": false - }, - "CreateLoadBalancerListenerOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateLoadBalancerPolicyInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "PolicyName": {"shape": "PolicyName", "flattened": false}, - "PolicyTypeName": {"shape": "PolicyTypeName", "flattened": false}, - "PolicyAttributes": {"shape": "PolicyAttributes", "flattened": false} - }, - "flattened": false - }, - "CreateLoadBalancerPolicyOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreatedTime": {"type": "timestamp", "flattened": false}, - "CrossZoneLoadBalancing": { - "type": "structure", - "members": { - "Enabled": {"shape": "CrossZoneLoadBalancingEnabled", "flattened": false} - }, - "flattened": false - }, - "CrossZoneLoadBalancingEnabled": {"type": "boolean", "flattened": false}, - "DNSName": {"type": "string", "flattened": false}, - "DefaultValue": {"type": "string", "flattened": false}, - "DeleteAccessPointInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false} - }, - "flattened": false - }, - "DeleteAccessPointOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteLoadBalancerListenerInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "LoadBalancerPorts": {"shape": "Ports", "flattened": false} - }, - "flattened": false - }, - "DeleteLoadBalancerListenerOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteLoadBalancerPolicyInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "PolicyName": {"shape": "PolicyName", "flattened": false} - }, - "flattened": false - }, - "DeleteLoadBalancerPolicyOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeregisterEndPointsInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Instances": {"shape": "Instances", "flattened": false} - }, - "flattened": false - }, - "DeregisterEndPointsOutput": { - "type": "structure", - "members": { - "Instances": {"shape": "Instances", "flattened": false} - }, - "flattened": false - }, - "DescribeAccessPointsInput": { - "type": "structure", - "members": { - "LoadBalancerNames": {"shape": "LoadBalancerNames", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeAccessPointsOutput": { - "type": "structure", - "members": { - "LoadBalancerDescriptions": { - "shape": "LoadBalancerDescriptions", - "flattened": false - }, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeAccountLimitsInput": { - "type": "structure", - "members": { - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeAccountLimitsOutput": { - "type": "structure", - "members": { - "Limits": {"shape": "Limits", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeEndPointStateInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Instances": {"shape": "Instances", "flattened": false} - }, - "flattened": false - }, - "DescribeEndPointStateOutput": { - "type": "structure", - "members": { - "InstanceStates": {"shape": "InstanceStates", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerAttributesInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerAttributesOutput": { - "type": "structure", - "members": { - "LoadBalancerAttributes": { - "shape": "LoadBalancerAttributes", - "flattened": false - } - }, - "flattened": false - }, - "DescribeLoadBalancerPoliciesInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "PolicyNames": {"shape": "PolicyNames", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerPoliciesOutput": { - "type": "structure", - "members": { - "PolicyDescriptions": {"shape": "PolicyDescriptions", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerPolicyTypesInput": { - "type": "structure", - "members": { - "PolicyTypeNames": {"shape": "PolicyTypeNames", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerPolicyTypesOutput": { - "type": "structure", - "members": { - "PolicyTypeDescriptions": { - "shape": "PolicyTypeDescriptions", - "flattened": false - } - }, - "flattened": false - }, - "DescribeTagsInput": { - "type": "structure", - "members": { - "LoadBalancerNames": { - "shape": "LoadBalancerNamesMax20", - "flattened": false - } - }, - "flattened": false - }, - "DescribeTagsOutput": { - "type": "structure", - "members": { - "TagDescriptions": {"shape": "TagDescriptions", "flattened": false} - }, - "flattened": false - }, - "Description": {"type": "string", "flattened": false}, - "DetachLoadBalancerFromSubnetsInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Subnets": {"shape": "Subnets", "flattened": false} - }, - "flattened": false - }, - "DetachLoadBalancerFromSubnetsOutput": { - "type": "structure", - "members": { - "Subnets": {"shape": "Subnets", "flattened": false} - }, - "flattened": false - }, - "EndPointPort": {"type": "integer", "flattened": false}, - "HealthCheck": { - "type": "structure", - "members": { - "Target": {"shape": "HealthCheckTarget", "flattened": false}, - "Interval": {"shape": "HealthCheckInterval", "flattened": false}, - "Timeout": {"shape": "HealthCheckTimeout", "flattened": false}, - "UnhealthyThreshold": {"shape": "UnhealthyThreshold", "flattened": false}, - "HealthyThreshold": {"shape": "HealthyThreshold", "flattened": false} - }, - "flattened": false - }, - "HealthCheckInterval": {"type": "integer", "flattened": false}, - "HealthCheckTarget": {"type": "string", "flattened": false}, - "HealthCheckTimeout": {"type": "integer", "flattened": false}, - "HealthyThreshold": {"type": "integer", "flattened": false}, - "IdleTimeout": {"type": "integer", "flattened": false}, - "Instance": { - "type": "structure", - "members": { - "InstanceId": {"shape": "InstanceId", "flattened": false} - }, - "flattened": false - }, - "InstanceId": {"type": "string", "flattened": false}, - "InstancePort": {"type": "integer", "flattened": false}, - "InstanceState": { - "type": "structure", - "members": { - "InstanceId": {"shape": "InstanceId", "flattened": false}, - "State": {"shape": "State", "flattened": false}, - "ReasonCode": {"shape": "ReasonCode", "flattened": false}, - "Description": {"shape": "Description", "flattened": false} - }, - "flattened": false - }, - "InstanceStates": { - "type": "list", - "member": {"shape": "InstanceState"}, - "flattened": false - }, - "Instances": { - "type": "list", - "member": {"shape": "Instance"}, - "flattened": false - }, - "LBCookieStickinessPolicies": { - "type": "list", - "member": {"shape": "LBCookieStickinessPolicy"}, - "flattened": false - }, - "LBCookieStickinessPolicy": { - "type": "structure", - "members": { - "PolicyName": {"shape": "PolicyName", "flattened": false}, - "CookieExpirationPeriod": { - "shape": "CookieExpirationPeriod", - "flattened": false - } - }, - "flattened": false - }, - "Limit": { - "type": "structure", - "members": { - "Name": {"shape": "Name", "flattened": false}, - "Max": {"shape": "Max", "flattened": false} - }, - "flattened": false - }, - "Limits": { - "type": "list", - "member": {"shape": "Limit"}, - "flattened": false - }, - "Listener": { - "type": "structure", - "members": { - "Protocol": {"shape": "Protocol", "flattened": false}, - "LoadBalancerPort": {"shape": "AccessPointPort", "flattened": false}, - "InstanceProtocol": {"shape": "Protocol", "flattened": false}, - "InstancePort": {"shape": "InstancePort", "flattened": false}, - "SSLCertificateId": {"shape": "SSLCertificateId", "flattened": false} - }, - "flattened": false - }, - "ListenerDescription": { - "type": "structure", - "members": { - "Listener": {"shape": "Listener", "flattened": false}, - "PolicyNames": {"shape": "PolicyNames", "flattened": false} - }, - "flattened": false - }, - "ListenerDescriptions": { - "type": "list", - "member": {"shape": "ListenerDescription"}, - "flattened": false - }, - "Listeners": { - "type": "list", - "member": {"shape": "Listener"}, - "flattened": false - }, - "LoadBalancerAttributes": { - "type": "structure", - "members": { - "CrossZoneLoadBalancing": { - "shape": "CrossZoneLoadBalancing", - "flattened": false - }, - "AccessLog": {"shape": "AccessLog", "flattened": false}, - "ConnectionDraining": {"shape": "ConnectionDraining", "flattened": false}, - "ConnectionSettings": {"shape": "ConnectionSettings", "flattened": false}, - "AdditionalAttributes": { - "shape": "AdditionalAttributes", - "flattened": false - } - }, - "flattened": false - }, - "LoadBalancerDescription": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "DNSName": {"shape": "DNSName", "flattened": false}, - "CanonicalHostedZoneName": {"shape": "DNSName", "flattened": false}, - "CanonicalHostedZoneNameID": {"shape": "DNSName", "flattened": false}, - "ListenerDescriptions": { - "shape": "ListenerDescriptions", - "flattened": false - }, - "Policies": {"shape": "Policies", "flattened": false}, - "BackendServerDescriptions": { - "shape": "BackendServerDescriptions", - "flattened": false - }, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "Subnets": {"shape": "Subnets", "flattened": false}, - "VPCId": {"shape": "VPCId", "flattened": false}, - "Instances": {"shape": "Instances", "flattened": false}, - "HealthCheck": {"shape": "HealthCheck", "flattened": false}, - "SourceSecurityGroup": { - "shape": "SourceSecurityGroup", - "flattened": false - }, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false}, - "CreatedTime": {"shape": "CreatedTime", "flattened": false}, - "Scheme": {"shape": "LoadBalancerScheme", "flattened": false} - }, - "flattened": false - }, - "LoadBalancerDescriptions": { - "type": "list", - "member": {"shape": "LoadBalancerDescription"}, - "flattened": false - }, - "LoadBalancerNames": { - "type": "list", - "member": {"shape": "AccessPointName"}, - "flattened": false - }, - "LoadBalancerNamesMax20": { - "type": "list", - "member": {"shape": "AccessPointName"}, - "flattened": false - }, - "LoadBalancerScheme": {"type": "string", "flattened": false}, - "Marker": {"type": "string", "flattened": false}, - "Max": {"type": "string", "flattened": false}, - "ModifyLoadBalancerAttributesInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "LoadBalancerAttributes": { - "shape": "LoadBalancerAttributes", - "flattened": false - } - }, - "flattened": false - }, - "ModifyLoadBalancerAttributesOutput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "LoadBalancerAttributes": { - "shape": "LoadBalancerAttributes", - "flattened": false - } - }, - "flattened": false - }, - "Name": {"type": "string", "flattened": false}, - "PageSize": {"type": "integer", "flattened": false}, - "Policies": { - "type": "structure", - "members": { - "AppCookieStickinessPolicies": { - "shape": "AppCookieStickinessPolicies", - "flattened": false - }, - "LBCookieStickinessPolicies": { - "shape": "LBCookieStickinessPolicies", - "flattened": false - }, - "OtherPolicies": {"shape": "PolicyNames", "flattened": false} - }, - "flattened": false - }, - "PolicyAttribute": { - "type": "structure", - "members": { - "AttributeName": {"shape": "AttributeName", "flattened": false}, - "AttributeValue": {"shape": "AttributeValue", "flattened": false} - }, - "flattened": false - }, - "PolicyAttributeDescription": { - "type": "structure", - "members": { - "AttributeName": {"shape": "AttributeName", "flattened": false}, - "AttributeValue": {"shape": "AttributeValue", "flattened": false} - }, - "flattened": false - }, - "PolicyAttributeDescriptions": { - "type": "list", - "member": {"shape": "PolicyAttributeDescription"}, - "flattened": false - }, - "PolicyAttributeTypeDescription": { - "type": "structure", - "members": { - "AttributeName": {"shape": "AttributeName", "flattened": false}, - "AttributeType": {"shape": "AttributeType", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "DefaultValue": {"shape": "DefaultValue", "flattened": false}, - "Cardinality": {"shape": "Cardinality", "flattened": false} - }, - "flattened": false - }, - "PolicyAttributeTypeDescriptions": { - "type": "list", - "member": {"shape": "PolicyAttributeTypeDescription"}, - "flattened": false - }, - "PolicyAttributes": { - "type": "list", - "member": {"shape": "PolicyAttribute"}, - "flattened": false - }, - "PolicyDescription": { - "type": "structure", - "members": { - "PolicyName": {"shape": "PolicyName", "flattened": false}, - "PolicyTypeName": {"shape": "PolicyTypeName", "flattened": false}, - "PolicyAttributeDescriptions": { - "shape": "PolicyAttributeDescriptions", - "flattened": false - } - }, - "flattened": false - }, - "PolicyDescriptions": { - "type": "list", - "member": {"shape": "PolicyDescription"}, - "flattened": false - }, - "PolicyName": {"type": "string", "flattened": false}, - "PolicyNames": { - "type": "list", - "member": {"shape": "PolicyName"}, - "flattened": false - }, - "PolicyTypeDescription": { - "type": "structure", - "members": { - "PolicyTypeName": {"shape": "PolicyTypeName", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "PolicyAttributeTypeDescriptions": { - "shape": "PolicyAttributeTypeDescriptions", - "flattened": false - } - }, - "flattened": false - }, - "PolicyTypeDescriptions": { - "type": "list", - "member": {"shape": "PolicyTypeDescription"}, - "flattened": false - }, - "PolicyTypeName": {"type": "string", "flattened": false}, - "PolicyTypeNames": { - "type": "list", - "member": {"shape": "PolicyTypeName"}, - "flattened": false - }, - "Ports": { - "type": "list", - "member": {"shape": "AccessPointPort"}, - "flattened": false - }, - "Protocol": {"type": "string", "flattened": false}, - "ReasonCode": {"type": "string", "flattened": false}, - "RegisterEndPointsInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Instances": {"shape": "Instances", "flattened": false} - }, - "flattened": false - }, - "RegisterEndPointsOutput": { - "type": "structure", - "members": { - "Instances": {"shape": "Instances", "flattened": false} - }, - "flattened": false - }, - "RemoveAvailabilityZonesInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false} - }, - "flattened": false - }, - "RemoveAvailabilityZonesOutput": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsInput": { - "type": "structure", - "members": { - "LoadBalancerNames": {"shape": "LoadBalancerNames", "flattened": false}, - "Tags": {"shape": "TagKeyList", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsOutput": {"type": "structure", "members": {}, "flattened": false}, - "S3BucketName": {"type": "string", "flattened": false}, - "SSLCertificateId": {"type": "string", "flattened": false}, - "SecurityGroupId": {"type": "string", "flattened": false}, - "SecurityGroupName": {"type": "string", "flattened": false}, - "SecurityGroupOwnerAlias": {"type": "string", "flattened": false}, - "SecurityGroups": { - "type": "list", - "member": {"shape": "SecurityGroupId"}, - "flattened": false - }, - "SetLoadBalancerListenerSSLCertificateInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "LoadBalancerPort": {"shape": "AccessPointPort", "flattened": false}, - "SSLCertificateId": {"shape": "SSLCertificateId", "flattened": false} - }, - "flattened": false - }, - "SetLoadBalancerListenerSSLCertificateOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetLoadBalancerPoliciesForBackendServerInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "InstancePort": {"shape": "EndPointPort", "flattened": false}, - "PolicyNames": {"shape": "PolicyNames", "flattened": false} - }, - "flattened": false - }, - "SetLoadBalancerPoliciesForBackendServerOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetLoadBalancerPoliciesOfListenerInput": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "LoadBalancerPort": {"shape": "AccessPointPort", "flattened": false}, - "PolicyNames": {"shape": "PolicyNames", "flattened": false} - }, - "flattened": false - }, - "SetLoadBalancerPoliciesOfListenerOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SourceSecurityGroup": { - "type": "structure", - "members": { - "OwnerAlias": {"shape": "SecurityGroupOwnerAlias", "flattened": false}, - "GroupName": {"shape": "SecurityGroupName", "flattened": false} - }, - "flattened": false - }, - "State": {"type": "string", "flattened": false}, - "SubnetId": {"type": "string", "flattened": false}, - "Subnets": { - "type": "list", - "member": {"shape": "SubnetId"}, - "flattened": false - }, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false} - }, - "flattened": false - }, - "TagDescription": { - "type": "structure", - "members": { - "LoadBalancerName": {"shape": "AccessPointName", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "TagDescriptions": { - "type": "list", - "member": {"shape": "TagDescription"}, - "flattened": false - }, - "TagKey": {"type": "string", "flattened": false}, - "TagKeyList": { - "type": "list", - "member": {"shape": "TagKeyOnly"}, - "flattened": false - }, - "TagKeyOnly": { - "type": "structure", - "members": { - "Key": {"shape": "TagKey", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TagValue": {"type": "string", "flattened": false}, - "UnhealthyThreshold": {"type": "integer", "flattened": false}, - "VPCId": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart b/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart index 80c99e931..4d6b2052f 100644 --- a/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart +++ b/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2015_12_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// A load balancer distributes incoming traffic across targets, such as your @@ -32,7 +31,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// health status of the targets. class ElasticLoadBalancingV2 { final _s.QueryProtocol _protocol; - final Map shapes; ElasticLoadBalancingV2({ required String region, @@ -40,7 +38,7 @@ class ElasticLoadBalancingV2 { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticloadbalancing', @@ -49,9 +47,7 @@ class ElasticLoadBalancingV2 { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -89,9 +85,15 @@ class ElasticLoadBalancingV2 { required List certificates, required String listenerArn, }) async { - final $request = {}; - $request['Certificates'] = certificates; - $request['ListenerArn'] = listenerArn; + final $request = { + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + 'ListenerArn': listenerArn, + }; final $result = await _protocol.send( $request, action: 'AddListenerCertificates', @@ -99,8 +101,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddListenerCertificatesInput'], - shapes: shapes, resultWrapper: 'AddListenerCertificatesResult', ); return AddListenerCertificatesOutput.fromXml($result); @@ -130,9 +130,19 @@ class ElasticLoadBalancingV2 { required List resourceArns, required List tags, }) async { - final $request = {}; - $request['ResourceArns'] = resourceArns; - $request['Tags'] = tags; + final $request = { + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTags', @@ -140,8 +150,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsInput'], - shapes: shapes, resultWrapper: 'AddTagsResult', ); } @@ -162,9 +170,16 @@ class ElasticLoadBalancingV2 { required String trustStoreArn, List? revocationContents, }) async { - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; - revocationContents?.also((arg) => $request['RevocationContents'] = arg); + final $request = { + 'TrustStoreArn': trustStoreArn, + if (revocationContents != null) + if (revocationContents.isEmpty) + 'RevocationContents': '' + else + for (var i1 = 0; i1 < revocationContents.length; i1++) + for (var e3 in revocationContents[i1].toQueryMap().entries) + 'RevocationContents.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'AddTrustStoreRevocations', @@ -172,8 +187,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTrustStoreRevocationsInput'], - shapes: shapes, resultWrapper: 'AddTrustStoreRevocationsResult', ); return AddTrustStoreRevocationsOutput.fromXml($result); @@ -306,16 +319,41 @@ class ElasticLoadBalancingV2 { 1, 65535, ); - final $request = {}; - $request['DefaultActions'] = defaultActions; - $request['LoadBalancerArn'] = loadBalancerArn; - alpnPolicy?.also((arg) => $request['AlpnPolicy'] = arg); - certificates?.also((arg) => $request['Certificates'] = arg); - mutualAuthentication?.also((arg) => $request['MutualAuthentication'] = arg); - port?.also((arg) => $request['Port'] = arg); - protocol?.also((arg) => $request['Protocol'] = arg.toValue()); - sslPolicy?.also((arg) => $request['SslPolicy'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (defaultActions.isEmpty) + 'DefaultActions': '' + else + for (var i1 = 0; i1 < defaultActions.length; i1++) + for (var e3 in defaultActions[i1].toQueryMap().entries) + 'DefaultActions.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerArn': loadBalancerArn, + if (alpnPolicy != null) + if (alpnPolicy.isEmpty) + 'AlpnPolicy': '' + else + for (var i1 = 0; i1 < alpnPolicy.length; i1++) + 'AlpnPolicy.member.${i1 + 1}': alpnPolicy[i1], + if (certificates != null) + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + if (mutualAuthentication != null) + for (var e1 in mutualAuthentication.toQueryMap().entries) + 'MutualAuthentication.${e1.key}': e1.value, + if (port != null) 'Port': port.toString(), + if (protocol != null) 'Protocol': protocol.toValue(), + if (sslPolicy != null) 'SslPolicy': sslPolicy, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateListener', @@ -323,8 +361,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateListenerInput'], - shapes: shapes, resultWrapper: 'CreateListenerResult', ); return CreateListenerOutput.fromXml($result); @@ -480,17 +516,40 @@ class ElasticLoadBalancingV2 { List? tags, LoadBalancerTypeEnum? type, }) async { - final $request = {}; - $request['Name'] = name; - customerOwnedIpv4Pool - ?.also((arg) => $request['CustomerOwnedIpv4Pool'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg.toValue()); - scheme?.also((arg) => $request['Scheme'] = arg.toValue()); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); - subnetMappings?.also((arg) => $request['SubnetMappings'] = arg); - subnets?.also((arg) => $request['Subnets'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); + final $request = { + 'Name': name, + if (customerOwnedIpv4Pool != null) + 'CustomerOwnedIpv4Pool': customerOwnedIpv4Pool, + if (ipAddressType != null) 'IpAddressType': ipAddressType.toValue(), + if (scheme != null) 'Scheme': scheme.toValue(), + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (subnetMappings != null) + if (subnetMappings.isEmpty) + 'SubnetMappings': '' + else + for (var i1 = 0; i1 < subnetMappings.length; i1++) + for (var e3 in subnetMappings[i1].toQueryMap().entries) + 'SubnetMappings.member.${i1 + 1}.${e3.key}': e3.value, + if (subnets != null) + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (type != null) 'Type': type.toValue(), + }; final $result = await _protocol.send( $request, action: 'CreateLoadBalancer', @@ -498,8 +557,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoadBalancerInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerResult', ); return CreateLoadBalancerOutput.fromXml($result); @@ -561,12 +618,29 @@ class ElasticLoadBalancingV2 { 50000, isRequired: true, ); - final $request = {}; - $request['Actions'] = actions; - $request['Conditions'] = conditions; - $request['ListenerArn'] = listenerArn; - $request['Priority'] = priority; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (actions.isEmpty) + 'Actions': '' + else + for (var i1 = 0; i1 < actions.length; i1++) + for (var e3 in actions[i1].toQueryMap().entries) + 'Actions.member.${i1 + 1}.${e3.key}': e3.value, + if (conditions.isEmpty) + 'Conditions': '' + else + for (var i1 = 0; i1 < conditions.length; i1++) + for (var e3 in conditions[i1].toQueryMap().entries) + 'Conditions.member.${i1 + 1}.${e3.key}': e3.value, + 'ListenerArn': listenerArn, + 'Priority': priority.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateRule', @@ -574,8 +648,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateRuleInput'], - shapes: shapes, resultWrapper: 'CreateRuleResult', ); return CreateRuleOutput.fromXml($result); @@ -792,29 +864,39 @@ class ElasticLoadBalancingV2 { 2, 10, ); - final $request = {}; - $request['Name'] = name; - healthCheckEnabled?.also((arg) => $request['HealthCheckEnabled'] = arg); - healthCheckIntervalSeconds - ?.also((arg) => $request['HealthCheckIntervalSeconds'] = arg); - healthCheckPath?.also((arg) => $request['HealthCheckPath'] = arg); - healthCheckPort?.also((arg) => $request['HealthCheckPort'] = arg); - healthCheckProtocol - ?.also((arg) => $request['HealthCheckProtocol'] = arg.toValue()); - healthCheckTimeoutSeconds - ?.also((arg) => $request['HealthCheckTimeoutSeconds'] = arg); - healthyThresholdCount - ?.also((arg) => $request['HealthyThresholdCount'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg.toValue()); - matcher?.also((arg) => $request['Matcher'] = arg); - port?.also((arg) => $request['Port'] = arg); - protocol?.also((arg) => $request['Protocol'] = arg.toValue()); - protocolVersion?.also((arg) => $request['ProtocolVersion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetType?.also((arg) => $request['TargetType'] = arg.toValue()); - unhealthyThresholdCount - ?.also((arg) => $request['UnhealthyThresholdCount'] = arg); - vpcId?.also((arg) => $request['VpcId'] = arg); + final $request = { + 'Name': name, + if (healthCheckEnabled != null) + 'HealthCheckEnabled': healthCheckEnabled.toString(), + if (healthCheckIntervalSeconds != null) + 'HealthCheckIntervalSeconds': healthCheckIntervalSeconds.toString(), + if (healthCheckPath != null) 'HealthCheckPath': healthCheckPath, + if (healthCheckPort != null) 'HealthCheckPort': healthCheckPort, + if (healthCheckProtocol != null) + 'HealthCheckProtocol': healthCheckProtocol.toValue(), + if (healthCheckTimeoutSeconds != null) + 'HealthCheckTimeoutSeconds': healthCheckTimeoutSeconds.toString(), + if (healthyThresholdCount != null) + 'HealthyThresholdCount': healthyThresholdCount.toString(), + if (ipAddressType != null) 'IpAddressType': ipAddressType.toValue(), + if (matcher != null) + for (var e1 in matcher.toQueryMap().entries) + 'Matcher.${e1.key}': e1.value, + if (port != null) 'Port': port.toString(), + if (protocol != null) 'Protocol': protocol.toValue(), + if (protocolVersion != null) 'ProtocolVersion': protocolVersion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (targetType != null) 'TargetType': targetType.toValue(), + if (unhealthyThresholdCount != null) + 'UnhealthyThresholdCount': unhealthyThresholdCount.toString(), + if (vpcId != null) 'VpcId': vpcId, + }; final $result = await _protocol.send( $request, action: 'CreateTargetGroup', @@ -822,8 +904,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTargetGroupInput'], - shapes: shapes, resultWrapper: 'CreateTargetGroupResult', ); return CreateTargetGroupOutput.fromXml($result); @@ -862,13 +942,21 @@ class ElasticLoadBalancingV2 { String? caCertificatesBundleS3ObjectVersion, List? tags, }) async { - final $request = {}; - $request['CaCertificatesBundleS3Bucket'] = caCertificatesBundleS3Bucket; - $request['CaCertificatesBundleS3Key'] = caCertificatesBundleS3Key; - $request['Name'] = name; - caCertificatesBundleS3ObjectVersion - ?.also((arg) => $request['CaCertificatesBundleS3ObjectVersion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CaCertificatesBundleS3Bucket': caCertificatesBundleS3Bucket, + 'CaCertificatesBundleS3Key': caCertificatesBundleS3Key, + 'Name': name, + if (caCertificatesBundleS3ObjectVersion != null) + 'CaCertificatesBundleS3ObjectVersion': + caCertificatesBundleS3ObjectVersion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateTrustStore', @@ -876,8 +964,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTrustStoreInput'], - shapes: shapes, resultWrapper: 'CreateTrustStoreResult', ); return CreateTrustStoreOutput.fromXml($result); @@ -896,8 +982,9 @@ class ElasticLoadBalancingV2 { Future deleteListener({ required String listenerArn, }) async { - final $request = {}; - $request['ListenerArn'] = listenerArn; + final $request = { + 'ListenerArn': listenerArn, + }; await _protocol.send( $request, action: 'DeleteListener', @@ -905,8 +992,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteListenerInput'], - shapes: shapes, resultWrapper: 'DeleteListenerResult', ); } @@ -933,8 +1018,9 @@ class ElasticLoadBalancingV2 { Future deleteLoadBalancer({ required String loadBalancerArn, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + 'LoadBalancerArn': loadBalancerArn, + }; await _protocol.send( $request, action: 'DeleteLoadBalancer', @@ -942,8 +1028,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoadBalancerInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerResult', ); } @@ -960,8 +1044,9 @@ class ElasticLoadBalancingV2 { Future deleteRule({ required String ruleArn, }) async { - final $request = {}; - $request['RuleArn'] = ruleArn; + final $request = { + 'RuleArn': ruleArn, + }; await _protocol.send( $request, action: 'DeleteRule', @@ -969,8 +1054,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRuleInput'], - shapes: shapes, resultWrapper: 'DeleteRuleResult', ); } @@ -990,8 +1073,9 @@ class ElasticLoadBalancingV2 { Future deleteTargetGroup({ required String targetGroupArn, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; + final $request = { + 'TargetGroupArn': targetGroupArn, + }; await _protocol.send( $request, action: 'DeleteTargetGroup', @@ -999,8 +1083,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTargetGroupInput'], - shapes: shapes, resultWrapper: 'DeleteTargetGroupResult', ); } @@ -1015,8 +1097,9 @@ class ElasticLoadBalancingV2 { Future deleteTrustStore({ required String trustStoreArn, }) async { - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + 'TrustStoreArn': trustStoreArn, + }; await _protocol.send( $request, action: 'DeleteTrustStore', @@ -1024,8 +1107,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTrustStoreInput'], - shapes: shapes, resultWrapper: 'DeleteTrustStoreResult', ); } @@ -1076,9 +1157,15 @@ class ElasticLoadBalancingV2 { required String targetGroupArn, required List targets, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - $request['Targets'] = targets; + final $request = { + 'TargetGroupArn': targetGroupArn, + if (targets.isEmpty) + 'Targets': '' + else + for (var i1 = 0; i1 < targets.length; i1++) + for (var e3 in targets[i1].toQueryMap().entries) + 'Targets.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'DeregisterTargets', @@ -1086,8 +1173,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterTargetsInput'], - shapes: shapes, resultWrapper: 'DeregisterTargetsResult', ); } @@ -1131,9 +1216,10 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -1141,8 +1227,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountLimitsInput'], - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsOutput.fromXml($result); @@ -1183,10 +1267,11 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - $request['ListenerArn'] = listenerArn; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + 'ListenerArn': listenerArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeListenerCertificates', @@ -1194,8 +1279,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeListenerCertificatesInput'], - shapes: shapes, resultWrapper: 'DescribeListenerCertificatesResult', ); return DescribeListenerCertificatesOutput.fromXml($result); @@ -1234,11 +1317,17 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - listenerArns?.also((arg) => $request['ListenerArns'] = arg); - loadBalancerArn?.also((arg) => $request['LoadBalancerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (listenerArns != null) + if (listenerArns.isEmpty) + 'ListenerArns': '' + else + for (var i1 = 0; i1 < listenerArns.length; i1++) + 'ListenerArns.member.${i1 + 1}': listenerArns[i1], + if (loadBalancerArn != null) 'LoadBalancerArn': loadBalancerArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeListeners', @@ -1246,8 +1335,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeListenersInput'], - shapes: shapes, resultWrapper: 'DescribeListenersResult', ); return DescribeListenersOutput.fromXml($result); @@ -1283,8 +1370,9 @@ class ElasticLoadBalancingV2 { Future describeLoadBalancerAttributes({ required String loadBalancerArn, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + 'LoadBalancerArn': loadBalancerArn, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerAttributes', @@ -1292,8 +1380,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerAttributesResult', ); return DescribeLoadBalancerAttributesOutput.fromXml($result); @@ -1328,11 +1414,22 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - loadBalancerArns?.also((arg) => $request['LoadBalancerArns'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (loadBalancerArns != null) + if (loadBalancerArns.isEmpty) + 'LoadBalancerArns': '' + else + for (var i1 = 0; i1 < loadBalancerArns.length; i1++) + 'LoadBalancerArns.member.${i1 + 1}': loadBalancerArns[i1], + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancers', @@ -1340,8 +1437,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancersInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancersResult', ); return DescribeLoadBalancersOutput.fromXml($result); @@ -1378,11 +1473,17 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - listenerArn?.also((arg) => $request['ListenerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - ruleArns?.also((arg) => $request['RuleArns'] = arg); + final $request = { + if (listenerArn != null) 'ListenerArn': listenerArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + if (ruleArns != null) + if (ruleArns.isEmpty) + 'RuleArns': '' + else + for (var i1 = 0; i1 < ruleArns.length; i1++) + 'RuleArns.member.${i1 + 1}': ruleArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeRules', @@ -1390,8 +1491,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeRulesInput'], - shapes: shapes, resultWrapper: 'DescribeRulesResult', ); return DescribeRulesOutput.fromXml($result); @@ -1432,12 +1531,18 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - loadBalancerType - ?.also((arg) => $request['LoadBalancerType'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (loadBalancerType != null) + 'LoadBalancerType': loadBalancerType.toValue(), + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeSSLPolicies', @@ -1445,8 +1550,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSSLPoliciesInput'], - shapes: shapes, resultWrapper: 'DescribeSSLPoliciesResult', ); return DescribeSSLPoliciesOutput.fromXml($result); @@ -1469,8 +1572,13 @@ class ElasticLoadBalancingV2 { Future describeTags({ required List resourceArns, }) async { - final $request = {}; - $request['ResourceArns'] = resourceArns; + final $request = { + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -1478,8 +1586,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsInput'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return DescribeTagsOutput.fromXml($result); @@ -1514,8 +1620,9 @@ class ElasticLoadBalancingV2 { Future describeTargetGroupAttributes({ required String targetGroupArn, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; + final $request = { + 'TargetGroupArn': targetGroupArn, + }; final $result = await _protocol.send( $request, action: 'DescribeTargetGroupAttributes', @@ -1523,8 +1630,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTargetGroupAttributesInput'], - shapes: shapes, resultWrapper: 'DescribeTargetGroupAttributesResult', ); return DescribeTargetGroupAttributesOutput.fromXml($result); @@ -1567,12 +1672,23 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - loadBalancerArn?.also((arg) => $request['LoadBalancerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - targetGroupArns?.also((arg) => $request['TargetGroupArns'] = arg); + final $request = { + if (loadBalancerArn != null) 'LoadBalancerArn': loadBalancerArn, + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + if (targetGroupArns != null) + if (targetGroupArns.isEmpty) + 'TargetGroupArns': '' + else + for (var i1 = 0; i1 < targetGroupArns.length; i1++) + 'TargetGroupArns.member.${i1 + 1}': targetGroupArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTargetGroups', @@ -1580,8 +1696,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTargetGroupsInput'], - shapes: shapes, resultWrapper: 'DescribeTargetGroupsResult', ); return DescribeTargetGroupsOutput.fromXml($result); @@ -1606,11 +1720,22 @@ class ElasticLoadBalancingV2 { List? include, List? targets, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - include?.also( - (arg) => $request['Include'] = arg.map((e) => e.toValue()).toList()); - targets?.also((arg) => $request['Targets'] = arg); + final $request = { + 'TargetGroupArn': targetGroupArn, + if (include != null) + if (include.isEmpty) + 'Include': '' + else + for (var i1 = 0; i1 < include.length; i1++) + 'Include.member.${i1 + 1}': include[i1].toValue(), + if (targets != null) + if (targets.isEmpty) + 'Targets': '' + else + for (var i1 = 0; i1 < targets.length; i1++) + for (var e3 in targets[i1].toQueryMap().entries) + 'Targets.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'DescribeTargetHealth', @@ -1618,8 +1743,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTargetHealthInput'], - shapes: shapes, resultWrapper: 'DescribeTargetHealthResult', ); return DescribeTargetHealthOutput.fromXml($result); @@ -1649,10 +1772,11 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + 'TrustStoreArn': trustStoreArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeTrustStoreAssociations', @@ -1660,8 +1784,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrustStoreAssociationsInput'], - shapes: shapes, resultWrapper: 'DescribeTrustStoreAssociationsResult', ); return DescribeTrustStoreAssociationsOutput.fromXml($result); @@ -1697,11 +1819,17 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - revocationIds?.also((arg) => $request['RevocationIds'] = arg); + final $request = { + 'TrustStoreArn': trustStoreArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + if (revocationIds != null) + if (revocationIds.isEmpty) + 'RevocationIds': '' + else + for (var i1 = 0; i1 < revocationIds.length; i1++) + 'RevocationIds.member.${i1 + 1}': revocationIds[i1].toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeTrustStoreRevocations', @@ -1709,8 +1837,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrustStoreRevocationsInput'], - shapes: shapes, resultWrapper: 'DescribeTrustStoreRevocationsResult', ); return DescribeTrustStoreRevocationsOutput.fromXml($result); @@ -1745,11 +1871,22 @@ class ElasticLoadBalancingV2 { 1, 400, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - trustStoreArns?.also((arg) => $request['TrustStoreArns'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + if (trustStoreArns != null) + if (trustStoreArns.isEmpty) + 'TrustStoreArns': '' + else + for (var i1 = 0; i1 < trustStoreArns.length; i1++) + 'TrustStoreArns.member.${i1 + 1}': trustStoreArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTrustStores', @@ -1757,8 +1894,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrustStoresInput'], - shapes: shapes, resultWrapper: 'DescribeTrustStoresResult', ); return DescribeTrustStoresOutput.fromXml($result); @@ -1776,8 +1911,9 @@ class ElasticLoadBalancingV2 { getTrustStoreCaCertificatesBundle({ required String trustStoreArn, }) async { - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + 'TrustStoreArn': trustStoreArn, + }; final $result = await _protocol.send( $request, action: 'GetTrustStoreCaCertificatesBundle', @@ -1785,8 +1921,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTrustStoreCaCertificatesBundleInput'], - shapes: shapes, resultWrapper: 'GetTrustStoreCaCertificatesBundleResult', ); return GetTrustStoreCaCertificatesBundleOutput.fromXml($result); @@ -1808,9 +1942,10 @@ class ElasticLoadBalancingV2 { required int revocationId, required String trustStoreArn, }) async { - final $request = {}; - $request['RevocationId'] = revocationId; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + 'RevocationId': revocationId.toString(), + 'TrustStoreArn': trustStoreArn, + }; final $result = await _protocol.send( $request, action: 'GetTrustStoreRevocationContent', @@ -1818,8 +1953,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTrustStoreRevocationContentInput'], - shapes: shapes, resultWrapper: 'GetTrustStoreRevocationContentResult', ); return GetTrustStoreRevocationContentOutput.fromXml($result); @@ -1933,15 +2066,35 @@ class ElasticLoadBalancingV2 { 1, 65535, ); - final $request = {}; - $request['ListenerArn'] = listenerArn; - alpnPolicy?.also((arg) => $request['AlpnPolicy'] = arg); - certificates?.also((arg) => $request['Certificates'] = arg); - defaultActions?.also((arg) => $request['DefaultActions'] = arg); - mutualAuthentication?.also((arg) => $request['MutualAuthentication'] = arg); - port?.also((arg) => $request['Port'] = arg); - protocol?.also((arg) => $request['Protocol'] = arg.toValue()); - sslPolicy?.also((arg) => $request['SslPolicy'] = arg); + final $request = { + 'ListenerArn': listenerArn, + if (alpnPolicy != null) + if (alpnPolicy.isEmpty) + 'AlpnPolicy': '' + else + for (var i1 = 0; i1 < alpnPolicy.length; i1++) + 'AlpnPolicy.member.${i1 + 1}': alpnPolicy[i1], + if (certificates != null) + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + if (defaultActions != null) + if (defaultActions.isEmpty) + 'DefaultActions': '' + else + for (var i1 = 0; i1 < defaultActions.length; i1++) + for (var e3 in defaultActions[i1].toQueryMap().entries) + 'DefaultActions.member.${i1 + 1}.${e3.key}': e3.value, + if (mutualAuthentication != null) + for (var e1 in mutualAuthentication.toQueryMap().entries) + 'MutualAuthentication.${e1.key}': e1.value, + if (port != null) 'Port': port.toString(), + if (protocol != null) 'Protocol': protocol.toValue(), + if (sslPolicy != null) 'SslPolicy': sslPolicy, + }; final $result = await _protocol.send( $request, action: 'ModifyListener', @@ -1949,8 +2102,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyListenerInput'], - shapes: shapes, resultWrapper: 'ModifyListenerResult', ); return ModifyListenerOutput.fromXml($result); @@ -1975,9 +2126,15 @@ class ElasticLoadBalancingV2 { required List attributes, required String loadBalancerArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e3 in attributes[i1].toQueryMap().entries) + 'Attributes.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerArn': loadBalancerArn, + }; final $result = await _protocol.send( $request, action: 'ModifyLoadBalancerAttributes', @@ -1985,8 +2142,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'ModifyLoadBalancerAttributesResult', ); return ModifyLoadBalancerAttributesOutput.fromXml($result); @@ -2024,10 +2179,23 @@ class ElasticLoadBalancingV2 { List? actions, List? conditions, }) async { - final $request = {}; - $request['RuleArn'] = ruleArn; - actions?.also((arg) => $request['Actions'] = arg); - conditions?.also((arg) => $request['Conditions'] = arg); + final $request = { + 'RuleArn': ruleArn, + if (actions != null) + if (actions.isEmpty) + 'Actions': '' + else + for (var i1 = 0; i1 < actions.length; i1++) + for (var e3 in actions[i1].toQueryMap().entries) + 'Actions.member.${i1 + 1}.${e3.key}': e3.value, + if (conditions != null) + if (conditions.isEmpty) + 'Conditions': '' + else + for (var i1 = 0; i1 < conditions.length; i1++) + for (var e3 in conditions[i1].toQueryMap().entries) + 'Conditions.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyRule', @@ -2035,8 +2203,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyRuleInput'], - shapes: shapes, resultWrapper: 'ModifyRuleResult', ); return ModifyRuleOutput.fromXml($result); @@ -2134,22 +2300,26 @@ class ElasticLoadBalancingV2 { 2, 10, ); - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - healthCheckEnabled?.also((arg) => $request['HealthCheckEnabled'] = arg); - healthCheckIntervalSeconds - ?.also((arg) => $request['HealthCheckIntervalSeconds'] = arg); - healthCheckPath?.also((arg) => $request['HealthCheckPath'] = arg); - healthCheckPort?.also((arg) => $request['HealthCheckPort'] = arg); - healthCheckProtocol - ?.also((arg) => $request['HealthCheckProtocol'] = arg.toValue()); - healthCheckTimeoutSeconds - ?.also((arg) => $request['HealthCheckTimeoutSeconds'] = arg); - healthyThresholdCount - ?.also((arg) => $request['HealthyThresholdCount'] = arg); - matcher?.also((arg) => $request['Matcher'] = arg); - unhealthyThresholdCount - ?.also((arg) => $request['UnhealthyThresholdCount'] = arg); + final $request = { + 'TargetGroupArn': targetGroupArn, + if (healthCheckEnabled != null) + 'HealthCheckEnabled': healthCheckEnabled.toString(), + if (healthCheckIntervalSeconds != null) + 'HealthCheckIntervalSeconds': healthCheckIntervalSeconds.toString(), + if (healthCheckPath != null) 'HealthCheckPath': healthCheckPath, + if (healthCheckPort != null) 'HealthCheckPort': healthCheckPort, + if (healthCheckProtocol != null) + 'HealthCheckProtocol': healthCheckProtocol.toValue(), + if (healthCheckTimeoutSeconds != null) + 'HealthCheckTimeoutSeconds': healthCheckTimeoutSeconds.toString(), + if (healthyThresholdCount != null) + 'HealthyThresholdCount': healthyThresholdCount.toString(), + if (matcher != null) + for (var e1 in matcher.toQueryMap().entries) + 'Matcher.${e1.key}': e1.value, + if (unhealthyThresholdCount != null) + 'UnhealthyThresholdCount': unhealthyThresholdCount.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyTargetGroup', @@ -2157,8 +2327,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTargetGroupInput'], - shapes: shapes, resultWrapper: 'ModifyTargetGroupResult', ); return ModifyTargetGroupOutput.fromXml($result); @@ -2178,9 +2346,15 @@ class ElasticLoadBalancingV2 { required List attributes, required String targetGroupArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['TargetGroupArn'] = targetGroupArn; + final $request = { + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e3 in attributes[i1].toQueryMap().entries) + 'Attributes.member.${i1 + 1}.${e3.key}': e3.value, + 'TargetGroupArn': targetGroupArn, + }; final $result = await _protocol.send( $request, action: 'ModifyTargetGroupAttributes', @@ -2188,8 +2362,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTargetGroupAttributesInput'], - shapes: shapes, resultWrapper: 'ModifyTargetGroupAttributesResult', ); return ModifyTargetGroupAttributesOutput.fromXml($result); @@ -2219,12 +2391,14 @@ class ElasticLoadBalancingV2 { required String trustStoreArn, String? caCertificatesBundleS3ObjectVersion, }) async { - final $request = {}; - $request['CaCertificatesBundleS3Bucket'] = caCertificatesBundleS3Bucket; - $request['CaCertificatesBundleS3Key'] = caCertificatesBundleS3Key; - $request['TrustStoreArn'] = trustStoreArn; - caCertificatesBundleS3ObjectVersion - ?.also((arg) => $request['CaCertificatesBundleS3ObjectVersion'] = arg); + final $request = { + 'CaCertificatesBundleS3Bucket': caCertificatesBundleS3Bucket, + 'CaCertificatesBundleS3Key': caCertificatesBundleS3Key, + 'TrustStoreArn': trustStoreArn, + if (caCertificatesBundleS3ObjectVersion != null) + 'CaCertificatesBundleS3ObjectVersion': + caCertificatesBundleS3ObjectVersion, + }; final $result = await _protocol.send( $request, action: 'ModifyTrustStore', @@ -2232,8 +2406,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTrustStoreInput'], - shapes: shapes, resultWrapper: 'ModifyTrustStoreResult', ); return ModifyTrustStoreOutput.fromXml($result); @@ -2269,9 +2441,15 @@ class ElasticLoadBalancingV2 { required String targetGroupArn, required List targets, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - $request['Targets'] = targets; + final $request = { + 'TargetGroupArn': targetGroupArn, + if (targets.isEmpty) + 'Targets': '' + else + for (var i1 = 0; i1 < targets.length; i1++) + for (var e3 in targets[i1].toQueryMap().entries) + 'Targets.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'RegisterTargets', @@ -2279,8 +2457,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterTargetsInput'], - shapes: shapes, resultWrapper: 'RegisterTargetsResult', ); } @@ -2302,9 +2478,15 @@ class ElasticLoadBalancingV2 { required List certificates, required String listenerArn, }) async { - final $request = {}; - $request['Certificates'] = certificates; - $request['ListenerArn'] = listenerArn; + final $request = { + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + 'ListenerArn': listenerArn, + }; await _protocol.send( $request, action: 'RemoveListenerCertificates', @@ -2312,8 +2494,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveListenerCertificatesInput'], - shapes: shapes, resultWrapper: 'RemoveListenerCertificatesResult', ); } @@ -2339,9 +2519,18 @@ class ElasticLoadBalancingV2 { required List resourceArns, required List tagKeys, }) async { - final $request = {}; - $request['ResourceArns'] = resourceArns; - $request['TagKeys'] = tagKeys; + final $request = { + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTags', @@ -2349,8 +2538,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsInput'], - shapes: shapes, resultWrapper: 'RemoveTagsResult', ); } @@ -2369,9 +2556,14 @@ class ElasticLoadBalancingV2 { required List revocationIds, required String trustStoreArn, }) async { - final $request = {}; - $request['RevocationIds'] = revocationIds; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + if (revocationIds.isEmpty) + 'RevocationIds': '' + else + for (var i1 = 0; i1 < revocationIds.length; i1++) + 'RevocationIds.member.${i1 + 1}': revocationIds[i1].toString(), + 'TrustStoreArn': trustStoreArn, + }; await _protocol.send( $request, action: 'RemoveTrustStoreRevocations', @@ -2379,8 +2571,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTrustStoreRevocationsInput'], - shapes: shapes, resultWrapper: 'RemoveTrustStoreRevocationsResult', ); } @@ -2416,9 +2606,10 @@ class ElasticLoadBalancingV2 { required IpAddressType ipAddressType, required String loadBalancerArn, }) async { - final $request = {}; - $request['IpAddressType'] = ipAddressType.toValue(); - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + 'IpAddressType': ipAddressType.toValue(), + 'LoadBalancerArn': loadBalancerArn, + }; final $result = await _protocol.send( $request, action: 'SetIpAddressType', @@ -2426,8 +2617,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIpAddressTypeInput'], - shapes: shapes, resultWrapper: 'SetIpAddressTypeResult', ); return SetIpAddressTypeOutput.fromXml($result); @@ -2448,8 +2637,14 @@ class ElasticLoadBalancingV2 { Future setRulePriorities({ required List rulePriorities, }) async { - final $request = {}; - $request['RulePriorities'] = rulePriorities; + final $request = { + if (rulePriorities.isEmpty) + 'RulePriorities': '' + else + for (var i1 = 0; i1 < rulePriorities.length; i1++) + for (var e3 in rulePriorities[i1].toQueryMap().entries) + 'RulePriorities.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'SetRulePriorities', @@ -2457,8 +2652,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetRulePrioritiesInput'], - shapes: shapes, resultWrapper: 'SetRulePrioritiesResult', ); return SetRulePrioritiesOutput.fromXml($result); @@ -2493,12 +2686,17 @@ class ElasticLoadBalancingV2 { EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum? enforceSecurityGroupInboundRulesOnPrivateLinkTraffic, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; - $request['SecurityGroups'] = securityGroups; - enforceSecurityGroupInboundRulesOnPrivateLinkTraffic?.also((arg) => - $request['EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic'] = - arg.toValue()); + final $request = { + 'LoadBalancerArn': loadBalancerArn, + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (enforceSecurityGroupInboundRulesOnPrivateLinkTraffic != null) + 'EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic': + enforceSecurityGroupInboundRulesOnPrivateLinkTraffic.toValue(), + }; final $result = await _protocol.send( $request, action: 'SetSecurityGroups', @@ -2506,8 +2704,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSecurityGroupsInput'], - shapes: shapes, resultWrapper: 'SetSecurityGroupsResult', ); return SetSecurityGroupsOutput.fromXml($result); @@ -2595,11 +2791,23 @@ class ElasticLoadBalancingV2 { List? subnetMappings, List? subnets, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; - ipAddressType?.also((arg) => $request['IpAddressType'] = arg.toValue()); - subnetMappings?.also((arg) => $request['SubnetMappings'] = arg); - subnets?.also((arg) => $request['Subnets'] = arg); + final $request = { + 'LoadBalancerArn': loadBalancerArn, + if (ipAddressType != null) 'IpAddressType': ipAddressType.toValue(), + if (subnetMappings != null) + if (subnetMappings.isEmpty) + 'SubnetMappings': '' + else + for (var i1 = 0; i1 < subnetMappings.length; i1++) + for (var e3 in subnetMappings[i1].toQueryMap().entries) + 'SubnetMappings.member.${i1 + 1}.${e3.key}': e3.value, + if (subnets != null) + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + }; final $result = await _protocol.send( $request, action: 'SetSubnets', @@ -2607,8 +2815,6 @@ class ElasticLoadBalancingV2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSubnetsInput'], - shapes: shapes, resultWrapper: 'SetSubnetsResult', ); return SetSubnetsOutput.fromXml($result); @@ -2718,6 +2924,37 @@ class Action { if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn, }; } + + Map toQueryMap() { + final type = this.type; + final authenticateCognitoConfig = this.authenticateCognitoConfig; + final authenticateOidcConfig = this.authenticateOidcConfig; + final fixedResponseConfig = this.fixedResponseConfig; + final forwardConfig = this.forwardConfig; + final order = this.order; + final redirectConfig = this.redirectConfig; + final targetGroupArn = this.targetGroupArn; + return { + 'Type': type.toValue(), + if (authenticateCognitoConfig != null) + for (var e1 in authenticateCognitoConfig.toQueryMap().entries) + 'AuthenticateCognitoConfig.${e1.key}': e1.value, + if (authenticateOidcConfig != null) + for (var e1 in authenticateOidcConfig.toQueryMap().entries) + 'AuthenticateOidcConfig.${e1.key}': e1.value, + if (fixedResponseConfig != null) + for (var e1 in fixedResponseConfig.toQueryMap().entries) + 'FixedResponseConfig.${e1.key}': e1.value, + if (forwardConfig != null) + for (var e1 in forwardConfig.toQueryMap().entries) + 'ForwardConfig.${e1.key}': e1.value, + if (order != null) 'Order': order.toString(), + if (redirectConfig != null) + for (var e1 in redirectConfig.toQueryMap().entries) + 'RedirectConfig.${e1.key}': e1.value, + if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn, + }; + } } enum ActionTypeEnum { @@ -3030,6 +3267,38 @@ class AuthenticateCognitoActionConfig { if (sessionTimeout != null) 'SessionTimeout': sessionTimeout, }; } + + Map toQueryMap() { + final userPoolArn = this.userPoolArn; + final userPoolClientId = this.userPoolClientId; + final userPoolDomain = this.userPoolDomain; + final authenticationRequestExtraParams = + this.authenticationRequestExtraParams; + final onUnauthenticatedRequest = this.onUnauthenticatedRequest; + final scope = this.scope; + final sessionCookieName = this.sessionCookieName; + final sessionTimeout = this.sessionTimeout; + return { + 'UserPoolArn': userPoolArn, + 'UserPoolClientId': userPoolClientId, + 'UserPoolDomain': userPoolDomain, + if (authenticationRequestExtraParams != null) + for (var e1 in authenticationRequestExtraParams.entries + .toList() + .asMap() + .entries) ...{ + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.key': + e1.value.key, + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.value': + e1.value.value, + }, + if (onUnauthenticatedRequest != null) + 'OnUnauthenticatedRequest': onUnauthenticatedRequest.toValue(), + if (scope != null) 'Scope': scope, + if (sessionCookieName != null) 'SessionCookieName': sessionCookieName, + if (sessionTimeout != null) 'SessionTimeout': sessionTimeout.toString(), + }; + } } enum AuthenticateOidcActionConditionalBehaviorEnum { @@ -3213,6 +3482,47 @@ class AuthenticateOidcActionConfig { 'UseExistingClientSecret': useExistingClientSecret, }; } + + Map toQueryMap() { + final authorizationEndpoint = this.authorizationEndpoint; + final clientId = this.clientId; + final issuer = this.issuer; + final tokenEndpoint = this.tokenEndpoint; + final userInfoEndpoint = this.userInfoEndpoint; + final authenticationRequestExtraParams = + this.authenticationRequestExtraParams; + final clientSecret = this.clientSecret; + final onUnauthenticatedRequest = this.onUnauthenticatedRequest; + final scope = this.scope; + final sessionCookieName = this.sessionCookieName; + final sessionTimeout = this.sessionTimeout; + final useExistingClientSecret = this.useExistingClientSecret; + return { + 'AuthorizationEndpoint': authorizationEndpoint, + 'ClientId': clientId, + 'Issuer': issuer, + 'TokenEndpoint': tokenEndpoint, + 'UserInfoEndpoint': userInfoEndpoint, + if (authenticationRequestExtraParams != null) + for (var e1 in authenticationRequestExtraParams.entries + .toList() + .asMap() + .entries) ...{ + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.key': + e1.value.key, + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.value': + e1.value.value, + }, + if (clientSecret != null) 'ClientSecret': clientSecret, + if (onUnauthenticatedRequest != null) + 'OnUnauthenticatedRequest': onUnauthenticatedRequest.toValue(), + if (scope != null) 'Scope': scope, + if (sessionCookieName != null) 'SessionCookieName': sessionCookieName, + if (sessionTimeout != null) 'SessionTimeout': sessionTimeout.toString(), + if (useExistingClientSecret != null) + 'UseExistingClientSecret': useExistingClientSecret.toString(), + }; + } } /// Information about an Availability Zone. @@ -3297,6 +3607,15 @@ class Certificate { if (isDefault != null) 'IsDefault': isDefault, }; } + + Map toQueryMap() { + final certificateArn = this.certificateArn; + final isDefault = this.isDefault; + return { + if (certificateArn != null) 'CertificateArn': certificateArn, + if (isDefault != null) 'IsDefault': isDefault.toString(), + }; + } } /// Information about a cipher used in a policy. @@ -4070,6 +4389,17 @@ class FixedResponseActionConfig { if (messageBody != null) 'MessageBody': messageBody, }; } + + Map toQueryMap() { + final statusCode = this.statusCode; + final contentType = this.contentType; + final messageBody = this.messageBody; + return { + 'StatusCode': statusCode, + if (contentType != null) 'ContentType': contentType, + if (messageBody != null) 'MessageBody': messageBody, + }; + } } /// Information about a forward action. @@ -4104,6 +4434,23 @@ class ForwardActionConfig { if (targetGroups != null) 'TargetGroups': targetGroups, }; } + + Map toQueryMap() { + final targetGroupStickinessConfig = this.targetGroupStickinessConfig; + final targetGroups = this.targetGroups; + return { + if (targetGroupStickinessConfig != null) + for (var e1 in targetGroupStickinessConfig.toQueryMap().entries) + 'TargetGroupStickinessConfig.${e1.key}': e1.value, + if (targetGroups != null) + if (targetGroups.isEmpty) + 'TargetGroups': '' + else + for (var i1 = 0; i1 < targetGroups.length; i1++) + for (var e3 in targetGroups[i1].toQueryMap().entries) + 'TargetGroups.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } class GetTrustStoreCaCertificatesBundleOutput { @@ -4176,6 +4523,18 @@ class HostHeaderConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about an HTTP header condition. @@ -4225,6 +4584,20 @@ class HttpHeaderConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final httpHeaderName = this.httpHeaderName; + final values = this.values; + return { + if (httpHeaderName != null) 'HttpHeaderName': httpHeaderName, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about an HTTP method condition. @@ -4262,6 +4635,18 @@ class HttpRequestMethodConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } enum IpAddressType { @@ -4872,6 +5257,15 @@ class LoadBalancerAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } enum LoadBalancerSchemeEnum { @@ -5049,6 +5443,15 @@ class Matcher { if (httpCode != null) 'HttpCode': httpCode, }; } + + Map toQueryMap() { + final grpcCode = this.grpcCode; + final httpCode = this.httpCode; + return { + if (grpcCode != null) 'GrpcCode': grpcCode, + if (httpCode != null) 'HttpCode': httpCode, + }; + } } enum MitigationInEffectEnum { @@ -5253,6 +5656,19 @@ class MutualAuthenticationAttributes { if (trustStoreArn != null) 'TrustStoreArn': trustStoreArn, }; } + + Map toQueryMap() { + final ignoreClientCertificateExpiry = this.ignoreClientCertificateExpiry; + final mode = this.mode; + final trustStoreArn = this.trustStoreArn; + return { + if (ignoreClientCertificateExpiry != null) + 'IgnoreClientCertificateExpiry': + ignoreClientCertificateExpiry.toString(), + if (mode != null) 'Mode': mode, + if (trustStoreArn != null) 'TrustStoreArn': trustStoreArn, + }; + } } /// Information about a path pattern condition. @@ -5285,6 +5701,18 @@ class PathPatternConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } enum ProtocolEnum { @@ -5377,6 +5805,19 @@ class QueryStringConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + for (var e3 in values[i1].toQueryMap().entries) + 'Values.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Information about a key/value pair. @@ -5406,6 +5847,15 @@ class QueryStringKeyValuePair { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Information about a redirect action. @@ -5499,6 +5949,23 @@ class RedirectActionConfig { if (query != null) 'Query': query, }; } + + Map toQueryMap() { + final statusCode = this.statusCode; + final host = this.host; + final path = this.path; + final port = this.port; + final protocol = this.protocol; + final query = this.query; + return { + 'StatusCode': statusCode.toValue(), + if (host != null) 'Host': host, + if (path != null) 'Path': path, + if (port != null) 'Port': port, + if (protocol != null) 'Protocol': protocol, + if (query != null) 'Query': query, + }; + } } enum RedirectActionStatusCodeEnum { @@ -5615,6 +6082,19 @@ class RevocationContent { if (s3ObjectVersion != null) 'S3ObjectVersion': s3ObjectVersion, }; } + + Map toQueryMap() { + final revocationType = this.revocationType; + final s3Bucket = this.s3Bucket; + final s3Key = this.s3Key; + final s3ObjectVersion = this.s3ObjectVersion; + return { + if (revocationType != null) 'RevocationType': revocationType.toValue(), + if (s3Bucket != null) 'S3Bucket': s3Bucket, + if (s3Key != null) 'S3Key': s3Key, + if (s3ObjectVersion != null) 'S3ObjectVersion': s3ObjectVersion, + }; + } } enum RevocationType { @@ -5867,6 +6347,44 @@ class RuleCondition { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final field = this.field; + final hostHeaderConfig = this.hostHeaderConfig; + final httpHeaderConfig = this.httpHeaderConfig; + final httpRequestMethodConfig = this.httpRequestMethodConfig; + final pathPatternConfig = this.pathPatternConfig; + final queryStringConfig = this.queryStringConfig; + final sourceIpConfig = this.sourceIpConfig; + final values = this.values; + return { + if (field != null) 'Field': field, + if (hostHeaderConfig != null) + for (var e1 in hostHeaderConfig.toQueryMap().entries) + 'HostHeaderConfig.${e1.key}': e1.value, + if (httpHeaderConfig != null) + for (var e1 in httpHeaderConfig.toQueryMap().entries) + 'HttpHeaderConfig.${e1.key}': e1.value, + if (httpRequestMethodConfig != null) + for (var e1 in httpRequestMethodConfig.toQueryMap().entries) + 'HttpRequestMethodConfig.${e1.key}': e1.value, + if (pathPatternConfig != null) + for (var e1 in pathPatternConfig.toQueryMap().entries) + 'PathPatternConfig.${e1.key}': e1.value, + if (queryStringConfig != null) + for (var e1 in queryStringConfig.toQueryMap().entries) + 'QueryStringConfig.${e1.key}': e1.value, + if (sourceIpConfig != null) + for (var e1 in sourceIpConfig.toQueryMap().entries) + 'SourceIpConfig.${e1.key}': e1.value, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about the priorities for the rules for a listener. @@ -5890,6 +6408,15 @@ class RulePriorityPair { if (ruleArn != null) 'RuleArn': ruleArn, }; } + + Map toQueryMap() { + final priority = this.priority; + final ruleArn = this.ruleArn; + return { + if (priority != null) 'Priority': priority.toString(), + if (ruleArn != null) 'RuleArn': ruleArn, + }; + } } class SetIpAddressTypeOutput { @@ -6046,6 +6573,18 @@ class SourceIpConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about a policy used for SSL negotiation. @@ -6132,6 +6671,19 @@ class SubnetMapping { if (subnetId != null) 'SubnetId': subnetId, }; } + + Map toQueryMap() { + final allocationId = this.allocationId; + final iPv6Address = this.iPv6Address; + final privateIPv4Address = this.privateIPv4Address; + final subnetId = this.subnetId; + return { + if (allocationId != null) 'AllocationId': allocationId, + if (iPv6Address != null) 'IPv6Address': iPv6Address, + if (privateIPv4Address != null) 'PrivateIPv4Address': privateIPv4Address, + if (subnetId != null) 'SubnetId': subnetId, + }; + } } /// Information about a tag. @@ -6161,6 +6713,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + if (value != null) 'Value': value, + }; + } } /// The tags associated with a resource. @@ -6258,6 +6819,17 @@ class TargetDescription { if (port != null) 'Port': port, }; } + + Map toQueryMap() { + final id = this.id; + final availabilityZone = this.availabilityZone; + final port = this.port; + return { + 'Id': id, + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (port != null) 'Port': port.toString(), + }; + } } /// Information about a target group. @@ -6657,6 +7229,15 @@ class TargetGroupAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } enum TargetGroupIpAddressTypeEnum { @@ -6716,6 +7297,16 @@ class TargetGroupStickinessConfig { if (enabled != null) 'Enabled': enabled, }; } + + Map toQueryMap() { + final durationSeconds = this.durationSeconds; + final enabled = this.enabled; + return { + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (enabled != null) 'Enabled': enabled.toString(), + }; + } } /// Information about how traffic will be distributed between multiple target @@ -6746,6 +7337,15 @@ class TargetGroupTuple { if (weight != null) 'Weight': weight, }; } + + Map toQueryMap() { + final targetGroupArn = this.targetGroupArn; + final weight = this.weight; + return { + if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn, + if (weight != null) 'Weight': weight.toString(), + }; + } } /// Information about the current health of a target. diff --git a/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.meta.dart b/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.meta.dart deleted file mode 100644 index 0b9bb7d8f..000000000 --- a/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.meta.dart +++ /dev/null @@ -1,1773 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "Action": { - "type": "structure", - "members": { - "Type": {"shape": "ActionTypeEnum", "flattened": false}, - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "AuthenticateOidcConfig": { - "shape": "AuthenticateOidcActionConfig", - "flattened": false - }, - "AuthenticateCognitoConfig": { - "shape": "AuthenticateCognitoActionConfig", - "flattened": false - }, - "Order": {"shape": "ActionOrder", "flattened": false}, - "RedirectConfig": {"shape": "RedirectActionConfig", "flattened": false}, - "FixedResponseConfig": { - "shape": "FixedResponseActionConfig", - "flattened": false - }, - "ForwardConfig": {"shape": "ForwardActionConfig", "flattened": false} - }, - "flattened": false - }, - "ActionOrder": {"type": "integer", "flattened": false}, - "ActionTypeEnum": {"type": "string", "flattened": false}, - "Actions": { - "type": "list", - "member": {"shape": "Action"}, - "flattened": false - }, - "AddListenerCertificatesInput": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false}, - "Certificates": {"shape": "CertificateList", "flattened": false} - }, - "flattened": false - }, - "AddListenerCertificatesOutput": { - "type": "structure", - "members": { - "Certificates": {"shape": "CertificateList", "flattened": false} - }, - "flattened": false - }, - "AddTagsInput": { - "type": "structure", - "members": { - "ResourceArns": {"shape": "ResourceArns", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "AddTagsOutput": {"type": "structure", "members": {}, "flattened": false}, - "AddTrustStoreRevocationsInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "RevocationContents": {"shape": "RevocationContents", "flattened": false} - }, - "flattened": false - }, - "AddTrustStoreRevocationsOutput": { - "type": "structure", - "members": { - "TrustStoreRevocations": { - "shape": "TrustStoreRevocations", - "flattened": false - } - }, - "flattened": false - }, - "AllocationId": {"type": "string", "flattened": false}, - "AlpnPolicyName": { - "type": "list", - "member": {"shape": "AlpnPolicyValue"}, - "flattened": false - }, - "AlpnPolicyValue": {"type": "string", "flattened": false}, - "AnomalyDetection": { - "type": "structure", - "members": { - "Result": {"shape": "AnomalyResultEnum", "flattened": false}, - "MitigationInEffect": { - "shape": "MitigationInEffectEnum", - "flattened": false - } - }, - "flattened": false - }, - "AnomalyResultEnum": {"type": "string", "flattened": false}, - "AuthenticateCognitoActionAuthenticationRequestExtraParams": { - "type": "map", - "key": {"shape": "AuthenticateCognitoActionAuthenticationRequestParamName"}, - "value": { - "shape": "AuthenticateCognitoActionAuthenticationRequestParamValue" - }, - "flattened": false - }, - "AuthenticateCognitoActionAuthenticationRequestParamName": { - "type": "string", - "flattened": false - }, - "AuthenticateCognitoActionAuthenticationRequestParamValue": { - "type": "string", - "flattened": false - }, - "AuthenticateCognitoActionConditionalBehaviorEnum": { - "type": "string", - "flattened": false - }, - "AuthenticateCognitoActionConfig": { - "type": "structure", - "members": { - "UserPoolArn": { - "shape": "AuthenticateCognitoActionUserPoolArn", - "flattened": false - }, - "UserPoolClientId": { - "shape": "AuthenticateCognitoActionUserPoolClientId", - "flattened": false - }, - "UserPoolDomain": { - "shape": "AuthenticateCognitoActionUserPoolDomain", - "flattened": false - }, - "SessionCookieName": { - "shape": "AuthenticateCognitoActionSessionCookieName", - "flattened": false - }, - "Scope": {"shape": "AuthenticateCognitoActionScope", "flattened": false}, - "SessionTimeout": { - "shape": "AuthenticateCognitoActionSessionTimeout", - "flattened": false - }, - "AuthenticationRequestExtraParams": { - "shape": "AuthenticateCognitoActionAuthenticationRequestExtraParams", - "flattened": false - }, - "OnUnauthenticatedRequest": { - "shape": "AuthenticateCognitoActionConditionalBehaviorEnum", - "flattened": false - } - }, - "flattened": false - }, - "AuthenticateCognitoActionScope": {"type": "string", "flattened": false}, - "AuthenticateCognitoActionSessionCookieName": { - "type": "string", - "flattened": false - }, - "AuthenticateCognitoActionSessionTimeout": { - "type": "long", - "flattened": false - }, - "AuthenticateCognitoActionUserPoolArn": { - "type": "string", - "flattened": false - }, - "AuthenticateCognitoActionUserPoolClientId": { - "type": "string", - "flattened": false - }, - "AuthenticateCognitoActionUserPoolDomain": { - "type": "string", - "flattened": false - }, - "AuthenticateOidcActionAuthenticationRequestExtraParams": { - "type": "map", - "key": {"shape": "AuthenticateOidcActionAuthenticationRequestParamName"}, - "value": {"shape": "AuthenticateOidcActionAuthenticationRequestParamValue"}, - "flattened": false - }, - "AuthenticateOidcActionAuthenticationRequestParamName": { - "type": "string", - "flattened": false - }, - "AuthenticateOidcActionAuthenticationRequestParamValue": { - "type": "string", - "flattened": false - }, - "AuthenticateOidcActionAuthorizationEndpoint": { - "type": "string", - "flattened": false - }, - "AuthenticateOidcActionClientId": {"type": "string", "flattened": false}, - "AuthenticateOidcActionClientSecret": {"type": "string", "flattened": false}, - "AuthenticateOidcActionConditionalBehaviorEnum": { - "type": "string", - "flattened": false - }, - "AuthenticateOidcActionConfig": { - "type": "structure", - "members": { - "Issuer": {"shape": "AuthenticateOidcActionIssuer", "flattened": false}, - "AuthorizationEndpoint": { - "shape": "AuthenticateOidcActionAuthorizationEndpoint", - "flattened": false - }, - "TokenEndpoint": { - "shape": "AuthenticateOidcActionTokenEndpoint", - "flattened": false - }, - "UserInfoEndpoint": { - "shape": "AuthenticateOidcActionUserInfoEndpoint", - "flattened": false - }, - "ClientId": { - "shape": "AuthenticateOidcActionClientId", - "flattened": false - }, - "ClientSecret": { - "shape": "AuthenticateOidcActionClientSecret", - "flattened": false - }, - "SessionCookieName": { - "shape": "AuthenticateOidcActionSessionCookieName", - "flattened": false - }, - "Scope": {"shape": "AuthenticateOidcActionScope", "flattened": false}, - "SessionTimeout": { - "shape": "AuthenticateOidcActionSessionTimeout", - "flattened": false - }, - "AuthenticationRequestExtraParams": { - "shape": "AuthenticateOidcActionAuthenticationRequestExtraParams", - "flattened": false - }, - "OnUnauthenticatedRequest": { - "shape": "AuthenticateOidcActionConditionalBehaviorEnum", - "flattened": false - }, - "UseExistingClientSecret": { - "shape": "AuthenticateOidcActionUseExistingClientSecret", - "flattened": false - } - }, - "flattened": false - }, - "AuthenticateOidcActionIssuer": {"type": "string", "flattened": false}, - "AuthenticateOidcActionScope": {"type": "string", "flattened": false}, - "AuthenticateOidcActionSessionCookieName": { - "type": "string", - "flattened": false - }, - "AuthenticateOidcActionSessionTimeout": {"type": "long", "flattened": false}, - "AuthenticateOidcActionTokenEndpoint": {"type": "string", "flattened": false}, - "AuthenticateOidcActionUseExistingClientSecret": { - "type": "boolean", - "flattened": false - }, - "AuthenticateOidcActionUserInfoEndpoint": { - "type": "string", - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "ZoneName": {"shape": "ZoneName", "flattened": false}, - "SubnetId": {"shape": "SubnetId", "flattened": false}, - "OutpostId": {"shape": "OutpostId", "flattened": false}, - "LoadBalancerAddresses": { - "shape": "LoadBalancerAddresses", - "flattened": false - } - }, - "flattened": false - }, - "AvailabilityZones": { - "type": "list", - "member": {"shape": "AvailabilityZone"}, - "flattened": false - }, - "CanonicalHostedZoneId": {"type": "string", "flattened": false}, - "Certificate": { - "type": "structure", - "members": { - "CertificateArn": {"shape": "CertificateArn", "flattened": false}, - "IsDefault": {"shape": "Default", "flattened": false} - }, - "flattened": false - }, - "CertificateArn": {"type": "string", "flattened": false}, - "CertificateList": { - "type": "list", - "member": {"shape": "Certificate"}, - "flattened": false - }, - "Cipher": { - "type": "structure", - "members": { - "Name": {"shape": "CipherName", "flattened": false}, - "Priority": {"shape": "CipherPriority", "flattened": false} - }, - "flattened": false - }, - "CipherName": {"type": "string", "flattened": false}, - "CipherPriority": {"type": "integer", "flattened": false}, - "Ciphers": { - "type": "list", - "member": {"shape": "Cipher"}, - "flattened": false - }, - "ConditionFieldName": {"type": "string", "flattened": false}, - "CreateListenerInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "Protocol": {"shape": "ProtocolEnum", "flattened": false}, - "Port": {"shape": "Port", "flattened": false}, - "SslPolicy": {"shape": "SslPolicyName", "flattened": false}, - "Certificates": {"shape": "CertificateList", "flattened": false}, - "DefaultActions": {"shape": "Actions", "flattened": false}, - "AlpnPolicy": {"shape": "AlpnPolicyName", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "MutualAuthentication": { - "shape": "MutualAuthenticationAttributes", - "flattened": false - } - }, - "flattened": false - }, - "CreateListenerOutput": { - "type": "structure", - "members": { - "Listeners": {"shape": "Listeners", "flattened": false} - }, - "flattened": false - }, - "CreateLoadBalancerInput": { - "type": "structure", - "members": { - "Name": {"shape": "LoadBalancerName", "flattened": false}, - "Subnets": {"shape": "Subnets", "flattened": false}, - "SubnetMappings": {"shape": "SubnetMappings", "flattened": false}, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false}, - "Scheme": {"shape": "LoadBalancerSchemeEnum", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "Type": {"shape": "LoadBalancerTypeEnum", "flattened": false}, - "IpAddressType": {"shape": "IpAddressType", "flattened": false}, - "CustomerOwnedIpv4Pool": { - "shape": "CustomerOwnedIpv4Pool", - "flattened": false - } - }, - "flattened": false - }, - "CreateLoadBalancerOutput": { - "type": "structure", - "members": { - "LoadBalancers": {"shape": "LoadBalancers", "flattened": false} - }, - "flattened": false - }, - "CreateRuleInput": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false}, - "Conditions": {"shape": "RuleConditionList", "flattened": false}, - "Priority": {"shape": "RulePriority", "flattened": false}, - "Actions": {"shape": "Actions", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateRuleOutput": { - "type": "structure", - "members": { - "Rules": {"shape": "Rules", "flattened": false} - }, - "flattened": false - }, - "CreateTargetGroupInput": { - "type": "structure", - "members": { - "Name": {"shape": "TargetGroupName", "flattened": false}, - "Protocol": {"shape": "ProtocolEnum", "flattened": false}, - "ProtocolVersion": {"shape": "ProtocolVersion", "flattened": false}, - "Port": {"shape": "Port", "flattened": false}, - "VpcId": {"shape": "VpcId", "flattened": false}, - "HealthCheckProtocol": {"shape": "ProtocolEnum", "flattened": false}, - "HealthCheckPort": {"shape": "HealthCheckPort", "flattened": false}, - "HealthCheckEnabled": {"shape": "HealthCheckEnabled", "flattened": false}, - "HealthCheckPath": {"shape": "Path", "flattened": false}, - "HealthCheckIntervalSeconds": { - "shape": "HealthCheckIntervalSeconds", - "flattened": false - }, - "HealthCheckTimeoutSeconds": { - "shape": "HealthCheckTimeoutSeconds", - "flattened": false - }, - "HealthyThresholdCount": { - "shape": "HealthCheckThresholdCount", - "flattened": false - }, - "UnhealthyThresholdCount": { - "shape": "HealthCheckThresholdCount", - "flattened": false - }, - "Matcher": {"shape": "Matcher", "flattened": false}, - "TargetType": {"shape": "TargetTypeEnum", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "IpAddressType": { - "shape": "TargetGroupIpAddressTypeEnum", - "flattened": false - } - }, - "flattened": false - }, - "CreateTargetGroupOutput": { - "type": "structure", - "members": { - "TargetGroups": {"shape": "TargetGroups", "flattened": false} - }, - "flattened": false - }, - "CreateTrustStoreInput": { - "type": "structure", - "members": { - "Name": {"shape": "TrustStoreName", "flattened": false}, - "CaCertificatesBundleS3Bucket": {"shape": "S3Bucket", "flattened": false}, - "CaCertificatesBundleS3Key": {"shape": "S3Key", "flattened": false}, - "CaCertificatesBundleS3ObjectVersion": { - "shape": "S3ObjectVersion", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateTrustStoreOutput": { - "type": "structure", - "members": { - "TrustStores": {"shape": "TrustStores", "flattened": false} - }, - "flattened": false - }, - "CreatedTime": {"type": "timestamp", "flattened": false}, - "CustomerOwnedIpv4Pool": {"type": "string", "flattened": false}, - "DNSName": {"type": "string", "flattened": false}, - "Default": {"type": "boolean", "flattened": false}, - "DeleteListenerInput": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false} - }, - "flattened": false - }, - "DeleteListenerOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteLoadBalancerInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false} - }, - "flattened": false - }, - "DeleteLoadBalancerOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteRuleInput": { - "type": "structure", - "members": { - "RuleArn": {"shape": "RuleArn", "flattened": false} - }, - "flattened": false - }, - "DeleteRuleOutput": {"type": "structure", "members": {}, "flattened": false}, - "DeleteTargetGroupInput": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false} - }, - "flattened": false - }, - "DeleteTargetGroupOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteTrustStoreInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false} - }, - "flattened": false - }, - "DeleteTrustStoreOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeregisterTargetsInput": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "Targets": {"shape": "TargetDescriptions", "flattened": false} - }, - "flattened": false - }, - "DeregisterTargetsOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DescribeAccountLimitsInput": { - "type": "structure", - "members": { - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeAccountLimitsOutput": { - "type": "structure", - "members": { - "Limits": {"shape": "Limits", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeListenerCertificatesInput": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeListenerCertificatesOutput": { - "type": "structure", - "members": { - "Certificates": {"shape": "CertificateList", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeListenersInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "ListenerArns": {"shape": "ListenerArns", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeListenersOutput": { - "type": "structure", - "members": { - "Listeners": {"shape": "Listeners", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerAttributesInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancerAttributesOutput": { - "type": "structure", - "members": { - "Attributes": {"shape": "LoadBalancerAttributes", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancersInput": { - "type": "structure", - "members": { - "LoadBalancerArns": {"shape": "LoadBalancerArns", "flattened": false}, - "Names": {"shape": "LoadBalancerNames", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeLoadBalancersOutput": { - "type": "structure", - "members": { - "LoadBalancers": {"shape": "LoadBalancers", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeRulesInput": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false}, - "RuleArns": {"shape": "RuleArns", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeRulesOutput": { - "type": "structure", - "members": { - "Rules": {"shape": "Rules", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeSSLPoliciesInput": { - "type": "structure", - "members": { - "Names": {"shape": "SslPolicyNames", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false}, - "LoadBalancerType": {"shape": "LoadBalancerTypeEnum", "flattened": false} - }, - "flattened": false - }, - "DescribeSSLPoliciesOutput": { - "type": "structure", - "members": { - "SslPolicies": {"shape": "SslPolicies", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeTagsInput": { - "type": "structure", - "members": { - "ResourceArns": {"shape": "ResourceArns", "flattened": false} - }, - "flattened": false - }, - "DescribeTagsOutput": { - "type": "structure", - "members": { - "TagDescriptions": {"shape": "TagDescriptions", "flattened": false} - }, - "flattened": false - }, - "DescribeTargetGroupAttributesInput": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false} - }, - "flattened": false - }, - "DescribeTargetGroupAttributesOutput": { - "type": "structure", - "members": { - "Attributes": {"shape": "TargetGroupAttributes", "flattened": false} - }, - "flattened": false - }, - "DescribeTargetGroupsInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "TargetGroupArns": {"shape": "TargetGroupArns", "flattened": false}, - "Names": {"shape": "TargetGroupNames", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeTargetGroupsOutput": { - "type": "structure", - "members": { - "TargetGroups": {"shape": "TargetGroups", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeTargetHealthInput": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "Targets": {"shape": "TargetDescriptions", "flattened": false}, - "Include": { - "shape": "ListOfDescribeTargetHealthIncludeOptions", - "flattened": false - } - }, - "flattened": false - }, - "DescribeTargetHealthInputIncludeEnum": { - "type": "string", - "flattened": false - }, - "DescribeTargetHealthOutput": { - "type": "structure", - "members": { - "TargetHealthDescriptions": { - "shape": "TargetHealthDescriptions", - "flattened": false - } - }, - "flattened": false - }, - "DescribeTrustStoreAssociationsInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeTrustStoreAssociationsOutput": { - "type": "structure", - "members": { - "TrustStoreAssociations": { - "shape": "TrustStoreAssociations", - "flattened": false - }, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeTrustStoreRevocation": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "RevocationId": {"shape": "RevocationId", "flattened": false}, - "RevocationType": {"shape": "RevocationType", "flattened": false}, - "NumberOfRevokedEntries": { - "shape": "NumberOfRevokedEntries", - "flattened": false - } - }, - "flattened": false - }, - "DescribeTrustStoreRevocationResponse": { - "type": "list", - "member": {"shape": "DescribeTrustStoreRevocation"}, - "flattened": false - }, - "DescribeTrustStoreRevocationsInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "RevocationIds": {"shape": "RevocationIds", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeTrustStoreRevocationsOutput": { - "type": "structure", - "members": { - "TrustStoreRevocations": { - "shape": "DescribeTrustStoreRevocationResponse", - "flattened": false - }, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeTrustStoresInput": { - "type": "structure", - "members": { - "TrustStoreArns": {"shape": "TrustStoreArns", "flattened": false}, - "Names": {"shape": "TrustStoreNames", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "PageSize": {"shape": "PageSize", "flattened": false} - }, - "flattened": false - }, - "DescribeTrustStoresOutput": { - "type": "structure", - "members": { - "TrustStores": {"shape": "TrustStores", "flattened": false}, - "NextMarker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "Description": {"type": "string", "flattened": false}, - "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic": { - "type": "string", - "flattened": false - }, - "EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum": { - "type": "string", - "flattened": false - }, - "FixedResponseActionConfig": { - "type": "structure", - "members": { - "MessageBody": { - "shape": "FixedResponseActionMessage", - "flattened": false - }, - "StatusCode": { - "shape": "FixedResponseActionStatusCode", - "flattened": false - }, - "ContentType": { - "shape": "FixedResponseActionContentType", - "flattened": false - } - }, - "flattened": false - }, - "FixedResponseActionContentType": {"type": "string", "flattened": false}, - "FixedResponseActionMessage": {"type": "string", "flattened": false}, - "FixedResponseActionStatusCode": {"type": "string", "flattened": false}, - "ForwardActionConfig": { - "type": "structure", - "members": { - "TargetGroups": {"shape": "TargetGroupList", "flattened": false}, - "TargetGroupStickinessConfig": { - "shape": "TargetGroupStickinessConfig", - "flattened": false - } - }, - "flattened": false - }, - "GetTrustStoreCaCertificatesBundleInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false} - }, - "flattened": false - }, - "GetTrustStoreCaCertificatesBundleOutput": { - "type": "structure", - "members": { - "Location": {"shape": "Location", "flattened": false} - }, - "flattened": false - }, - "GetTrustStoreRevocationContentInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "RevocationId": {"shape": "RevocationId", "flattened": false} - }, - "flattened": false - }, - "GetTrustStoreRevocationContentOutput": { - "type": "structure", - "members": { - "Location": {"shape": "Location", "flattened": false} - }, - "flattened": false - }, - "GrpcCode": {"type": "string", "flattened": false}, - "HealthCheckEnabled": {"type": "boolean", "flattened": false}, - "HealthCheckIntervalSeconds": {"type": "integer", "flattened": false}, - "HealthCheckPort": {"type": "string", "flattened": false}, - "HealthCheckThresholdCount": {"type": "integer", "flattened": false}, - "HealthCheckTimeoutSeconds": {"type": "integer", "flattened": false}, - "HostHeaderConditionConfig": { - "type": "structure", - "members": { - "Values": {"shape": "ListOfString", "flattened": false} - }, - "flattened": false - }, - "HttpCode": {"type": "string", "flattened": false}, - "HttpHeaderConditionConfig": { - "type": "structure", - "members": { - "HttpHeaderName": { - "shape": "HttpHeaderConditionName", - "flattened": false - }, - "Values": {"shape": "ListOfString", "flattened": false} - }, - "flattened": false - }, - "HttpHeaderConditionName": {"type": "string", "flattened": false}, - "HttpRequestMethodConditionConfig": { - "type": "structure", - "members": { - "Values": {"shape": "ListOfString", "flattened": false} - }, - "flattened": false - }, - "IPv6Address": {"type": "string", "flattened": false}, - "IgnoreClientCertificateExpiry": {"type": "boolean", "flattened": false}, - "IpAddress": {"type": "string", "flattened": false}, - "IpAddressType": {"type": "string", "flattened": false}, - "IsDefault": {"type": "boolean", "flattened": false}, - "Limit": { - "type": "structure", - "members": { - "Name": {"shape": "Name", "flattened": false}, - "Max": {"shape": "Max", "flattened": false} - }, - "flattened": false - }, - "Limits": { - "type": "list", - "member": {"shape": "Limit"}, - "flattened": false - }, - "ListOfDescribeTargetHealthIncludeOptions": { - "type": "list", - "member": {"shape": "DescribeTargetHealthInputIncludeEnum"}, - "flattened": false - }, - "ListOfString": { - "type": "list", - "member": {"shape": "StringValue"}, - "flattened": false - }, - "Listener": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false}, - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "Port": {"shape": "Port", "flattened": false}, - "Protocol": {"shape": "ProtocolEnum", "flattened": false}, - "Certificates": {"shape": "CertificateList", "flattened": false}, - "SslPolicy": {"shape": "SslPolicyName", "flattened": false}, - "DefaultActions": {"shape": "Actions", "flattened": false}, - "AlpnPolicy": {"shape": "AlpnPolicyName", "flattened": false}, - "MutualAuthentication": { - "shape": "MutualAuthenticationAttributes", - "flattened": false - } - }, - "flattened": false - }, - "ListenerArn": {"type": "string", "flattened": false}, - "ListenerArns": { - "type": "list", - "member": {"shape": "ListenerArn"}, - "flattened": false - }, - "Listeners": { - "type": "list", - "member": {"shape": "Listener"}, - "flattened": false - }, - "LoadBalancer": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "DNSName": {"shape": "DNSName", "flattened": false}, - "CanonicalHostedZoneId": { - "shape": "CanonicalHostedZoneId", - "flattened": false - }, - "CreatedTime": {"shape": "CreatedTime", "flattened": false}, - "LoadBalancerName": {"shape": "LoadBalancerName", "flattened": false}, - "Scheme": {"shape": "LoadBalancerSchemeEnum", "flattened": false}, - "VpcId": {"shape": "VpcId", "flattened": false}, - "State": {"shape": "LoadBalancerState", "flattened": false}, - "Type": {"shape": "LoadBalancerTypeEnum", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false}, - "IpAddressType": {"shape": "IpAddressType", "flattened": false}, - "CustomerOwnedIpv4Pool": { - "shape": "CustomerOwnedIpv4Pool", - "flattened": false - }, - "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic": { - "shape": "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic", - "flattened": false - } - }, - "flattened": false - }, - "LoadBalancerAddress": { - "type": "structure", - "members": { - "IpAddress": {"shape": "IpAddress", "flattened": false}, - "AllocationId": {"shape": "AllocationId", "flattened": false}, - "PrivateIPv4Address": {"shape": "PrivateIPv4Address", "flattened": false}, - "IPv6Address": {"shape": "IPv6Address", "flattened": false} - }, - "flattened": false - }, - "LoadBalancerAddresses": { - "type": "list", - "member": {"shape": "LoadBalancerAddress"}, - "flattened": false - }, - "LoadBalancerArn": {"type": "string", "flattened": false}, - "LoadBalancerArns": { - "type": "list", - "member": {"shape": "LoadBalancerArn"}, - "flattened": false - }, - "LoadBalancerAttribute": { - "type": "structure", - "members": { - "Key": {"shape": "LoadBalancerAttributeKey", "flattened": false}, - "Value": {"shape": "LoadBalancerAttributeValue", "flattened": false} - }, - "flattened": false - }, - "LoadBalancerAttributeKey": {"type": "string", "flattened": false}, - "LoadBalancerAttributeValue": {"type": "string", "flattened": false}, - "LoadBalancerAttributes": { - "type": "list", - "member": {"shape": "LoadBalancerAttribute"}, - "flattened": false - }, - "LoadBalancerName": {"type": "string", "flattened": false}, - "LoadBalancerNames": { - "type": "list", - "member": {"shape": "LoadBalancerName"}, - "flattened": false - }, - "LoadBalancerSchemeEnum": {"type": "string", "flattened": false}, - "LoadBalancerState": { - "type": "structure", - "members": { - "Code": {"shape": "LoadBalancerStateEnum", "flattened": false}, - "Reason": {"shape": "StateReason", "flattened": false} - }, - "flattened": false - }, - "LoadBalancerStateEnum": {"type": "string", "flattened": false}, - "LoadBalancerTypeEnum": {"type": "string", "flattened": false}, - "LoadBalancers": { - "type": "list", - "member": {"shape": "LoadBalancer"}, - "flattened": false - }, - "Location": {"type": "string", "flattened": false}, - "Marker": {"type": "string", "flattened": false}, - "Matcher": { - "type": "structure", - "members": { - "HttpCode": {"shape": "HttpCode", "flattened": false}, - "GrpcCode": {"shape": "GrpcCode", "flattened": false} - }, - "flattened": false - }, - "Max": {"type": "string", "flattened": false}, - "MitigationInEffectEnum": {"type": "string", "flattened": false}, - "Mode": {"type": "string", "flattened": false}, - "ModifyListenerInput": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false}, - "Port": {"shape": "Port", "flattened": false}, - "Protocol": {"shape": "ProtocolEnum", "flattened": false}, - "SslPolicy": {"shape": "SslPolicyName", "flattened": false}, - "Certificates": {"shape": "CertificateList", "flattened": false}, - "DefaultActions": {"shape": "Actions", "flattened": false}, - "AlpnPolicy": {"shape": "AlpnPolicyName", "flattened": false}, - "MutualAuthentication": { - "shape": "MutualAuthenticationAttributes", - "flattened": false - } - }, - "flattened": false - }, - "ModifyListenerOutput": { - "type": "structure", - "members": { - "Listeners": {"shape": "Listeners", "flattened": false} - }, - "flattened": false - }, - "ModifyLoadBalancerAttributesInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "Attributes": {"shape": "LoadBalancerAttributes", "flattened": false} - }, - "flattened": false - }, - "ModifyLoadBalancerAttributesOutput": { - "type": "structure", - "members": { - "Attributes": {"shape": "LoadBalancerAttributes", "flattened": false} - }, - "flattened": false - }, - "ModifyRuleInput": { - "type": "structure", - "members": { - "RuleArn": {"shape": "RuleArn", "flattened": false}, - "Conditions": {"shape": "RuleConditionList", "flattened": false}, - "Actions": {"shape": "Actions", "flattened": false} - }, - "flattened": false - }, - "ModifyRuleOutput": { - "type": "structure", - "members": { - "Rules": {"shape": "Rules", "flattened": false} - }, - "flattened": false - }, - "ModifyTargetGroupAttributesInput": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "Attributes": {"shape": "TargetGroupAttributes", "flattened": false} - }, - "flattened": false - }, - "ModifyTargetGroupAttributesOutput": { - "type": "structure", - "members": { - "Attributes": {"shape": "TargetGroupAttributes", "flattened": false} - }, - "flattened": false - }, - "ModifyTargetGroupInput": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "HealthCheckProtocol": {"shape": "ProtocolEnum", "flattened": false}, - "HealthCheckPort": {"shape": "HealthCheckPort", "flattened": false}, - "HealthCheckPath": {"shape": "Path", "flattened": false}, - "HealthCheckEnabled": {"shape": "HealthCheckEnabled", "flattened": false}, - "HealthCheckIntervalSeconds": { - "shape": "HealthCheckIntervalSeconds", - "flattened": false - }, - "HealthCheckTimeoutSeconds": { - "shape": "HealthCheckTimeoutSeconds", - "flattened": false - }, - "HealthyThresholdCount": { - "shape": "HealthCheckThresholdCount", - "flattened": false - }, - "UnhealthyThresholdCount": { - "shape": "HealthCheckThresholdCount", - "flattened": false - }, - "Matcher": {"shape": "Matcher", "flattened": false} - }, - "flattened": false - }, - "ModifyTargetGroupOutput": { - "type": "structure", - "members": { - "TargetGroups": {"shape": "TargetGroups", "flattened": false} - }, - "flattened": false - }, - "ModifyTrustStoreInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "CaCertificatesBundleS3Bucket": {"shape": "S3Bucket", "flattened": false}, - "CaCertificatesBundleS3Key": {"shape": "S3Key", "flattened": false}, - "CaCertificatesBundleS3ObjectVersion": { - "shape": "S3ObjectVersion", - "flattened": false - } - }, - "flattened": false - }, - "ModifyTrustStoreOutput": { - "type": "structure", - "members": { - "TrustStores": {"shape": "TrustStores", "flattened": false} - }, - "flattened": false - }, - "MutualAuthenticationAttributes": { - "type": "structure", - "members": { - "Mode": {"shape": "Mode", "flattened": false}, - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "IgnoreClientCertificateExpiry": { - "shape": "IgnoreClientCertificateExpiry", - "flattened": false - } - }, - "flattened": false - }, - "Name": {"type": "string", "flattened": false}, - "NumberOfCaCertificates": {"type": "integer", "flattened": false}, - "NumberOfRevokedEntries": {"type": "long", "flattened": false}, - "OutpostId": {"type": "string", "flattened": false}, - "PageSize": {"type": "integer", "flattened": false}, - "Path": {"type": "string", "flattened": false}, - "PathPatternConditionConfig": { - "type": "structure", - "members": { - "Values": {"shape": "ListOfString", "flattened": false} - }, - "flattened": false - }, - "Port": {"type": "integer", "flattened": false}, - "PrivateIPv4Address": {"type": "string", "flattened": false}, - "ProtocolEnum": {"type": "string", "flattened": false}, - "ProtocolVersion": {"type": "string", "flattened": false}, - "QueryStringConditionConfig": { - "type": "structure", - "members": { - "Values": {"shape": "QueryStringKeyValuePairList", "flattened": false} - }, - "flattened": false - }, - "QueryStringKeyValuePair": { - "type": "structure", - "members": { - "Key": {"shape": "StringValue", "flattened": false}, - "Value": {"shape": "StringValue", "flattened": false} - }, - "flattened": false - }, - "QueryStringKeyValuePairList": { - "type": "list", - "member": {"shape": "QueryStringKeyValuePair"}, - "flattened": false - }, - "RedirectActionConfig": { - "type": "structure", - "members": { - "Protocol": {"shape": "RedirectActionProtocol", "flattened": false}, - "Port": {"shape": "RedirectActionPort", "flattened": false}, - "Host": {"shape": "RedirectActionHost", "flattened": false}, - "Path": {"shape": "RedirectActionPath", "flattened": false}, - "Query": {"shape": "RedirectActionQuery", "flattened": false}, - "StatusCode": { - "shape": "RedirectActionStatusCodeEnum", - "flattened": false - } - }, - "flattened": false - }, - "RedirectActionHost": {"type": "string", "flattened": false}, - "RedirectActionPath": {"type": "string", "flattened": false}, - "RedirectActionPort": {"type": "string", "flattened": false}, - "RedirectActionProtocol": {"type": "string", "flattened": false}, - "RedirectActionQuery": {"type": "string", "flattened": false}, - "RedirectActionStatusCodeEnum": {"type": "string", "flattened": false}, - "RegisterTargetsInput": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "Targets": {"shape": "TargetDescriptions", "flattened": false} - }, - "flattened": false - }, - "RegisterTargetsOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "RemoveListenerCertificatesInput": { - "type": "structure", - "members": { - "ListenerArn": {"shape": "ListenerArn", "flattened": false}, - "Certificates": {"shape": "CertificateList", "flattened": false} - }, - "flattened": false - }, - "RemoveListenerCertificatesOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "RemoveTagsInput": { - "type": "structure", - "members": { - "ResourceArns": {"shape": "ResourceArns", "flattened": false}, - "TagKeys": {"shape": "TagKeys", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsOutput": {"type": "structure", "members": {}, "flattened": false}, - "RemoveTrustStoreRevocationsInput": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "RevocationIds": {"shape": "RevocationIds", "flattened": false} - }, - "flattened": false - }, - "RemoveTrustStoreRevocationsOutput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ResourceArn": {"type": "string", "flattened": false}, - "ResourceArns": { - "type": "list", - "member": {"shape": "ResourceArn"}, - "flattened": false - }, - "RevocationContent": { - "type": "structure", - "members": { - "S3Bucket": {"shape": "S3Bucket", "flattened": false}, - "S3Key": {"shape": "S3Key", "flattened": false}, - "S3ObjectVersion": {"shape": "S3ObjectVersion", "flattened": false}, - "RevocationType": {"shape": "RevocationType", "flattened": false} - }, - "flattened": false - }, - "RevocationContents": { - "type": "list", - "member": {"shape": "RevocationContent"}, - "flattened": false - }, - "RevocationId": {"type": "long", "flattened": false}, - "RevocationIds": { - "type": "list", - "member": {"shape": "RevocationId"}, - "flattened": false - }, - "RevocationType": {"type": "string", "flattened": false}, - "Rule": { - "type": "structure", - "members": { - "RuleArn": {"shape": "RuleArn", "flattened": false}, - "Priority": {"shape": "String", "flattened": false}, - "Conditions": {"shape": "RuleConditionList", "flattened": false}, - "Actions": {"shape": "Actions", "flattened": false}, - "IsDefault": {"shape": "IsDefault", "flattened": false} - }, - "flattened": false - }, - "RuleArn": {"type": "string", "flattened": false}, - "RuleArns": { - "type": "list", - "member": {"shape": "RuleArn"}, - "flattened": false - }, - "RuleCondition": { - "type": "structure", - "members": { - "Field": {"shape": "ConditionFieldName", "flattened": false}, - "Values": {"shape": "ListOfString", "flattened": false}, - "HostHeaderConfig": { - "shape": "HostHeaderConditionConfig", - "flattened": false - }, - "PathPatternConfig": { - "shape": "PathPatternConditionConfig", - "flattened": false - }, - "HttpHeaderConfig": { - "shape": "HttpHeaderConditionConfig", - "flattened": false - }, - "QueryStringConfig": { - "shape": "QueryStringConditionConfig", - "flattened": false - }, - "HttpRequestMethodConfig": { - "shape": "HttpRequestMethodConditionConfig", - "flattened": false - }, - "SourceIpConfig": {"shape": "SourceIpConditionConfig", "flattened": false} - }, - "flattened": false - }, - "RuleConditionList": { - "type": "list", - "member": {"shape": "RuleCondition"}, - "flattened": false - }, - "RulePriority": {"type": "integer", "flattened": false}, - "RulePriorityList": { - "type": "list", - "member": {"shape": "RulePriorityPair"}, - "flattened": false - }, - "RulePriorityPair": { - "type": "structure", - "members": { - "RuleArn": {"shape": "RuleArn", "flattened": false}, - "Priority": {"shape": "RulePriority", "flattened": false} - }, - "flattened": false - }, - "Rules": { - "type": "list", - "member": {"shape": "Rule"}, - "flattened": false - }, - "S3Bucket": {"type": "string", "flattened": false}, - "S3Key": {"type": "string", "flattened": false}, - "S3ObjectVersion": {"type": "string", "flattened": false}, - "SecurityGroupId": {"type": "string", "flattened": false}, - "SecurityGroups": { - "type": "list", - "member": {"shape": "SecurityGroupId"}, - "flattened": false - }, - "SetIpAddressTypeInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "IpAddressType": {"shape": "IpAddressType", "flattened": false} - }, - "flattened": false - }, - "SetIpAddressTypeOutput": { - "type": "structure", - "members": { - "IpAddressType": {"shape": "IpAddressType", "flattened": false} - }, - "flattened": false - }, - "SetRulePrioritiesInput": { - "type": "structure", - "members": { - "RulePriorities": {"shape": "RulePriorityList", "flattened": false} - }, - "flattened": false - }, - "SetRulePrioritiesOutput": { - "type": "structure", - "members": { - "Rules": {"shape": "Rules", "flattened": false} - }, - "flattened": false - }, - "SetSecurityGroupsInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "SecurityGroups": {"shape": "SecurityGroups", "flattened": false}, - "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic": { - "shape": "EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum", - "flattened": false - } - }, - "flattened": false - }, - "SetSecurityGroupsOutput": { - "type": "structure", - "members": { - "SecurityGroupIds": {"shape": "SecurityGroups", "flattened": false}, - "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic": { - "shape": "EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum", - "flattened": false - } - }, - "flattened": false - }, - "SetSubnetsInput": { - "type": "structure", - "members": { - "LoadBalancerArn": {"shape": "LoadBalancerArn", "flattened": false}, - "Subnets": {"shape": "Subnets", "flattened": false}, - "SubnetMappings": {"shape": "SubnetMappings", "flattened": false}, - "IpAddressType": {"shape": "IpAddressType", "flattened": false} - }, - "flattened": false - }, - "SetSubnetsOutput": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "IpAddressType": {"shape": "IpAddressType", "flattened": false} - }, - "flattened": false - }, - "SourceIpConditionConfig": { - "type": "structure", - "members": { - "Values": {"shape": "ListOfString", "flattened": false} - }, - "flattened": false - }, - "SslPolicies": { - "type": "list", - "member": {"shape": "SslPolicy"}, - "flattened": false - }, - "SslPolicy": { - "type": "structure", - "members": { - "SslProtocols": {"shape": "SslProtocols", "flattened": false}, - "Ciphers": {"shape": "Ciphers", "flattened": false}, - "Name": {"shape": "SslPolicyName", "flattened": false}, - "SupportedLoadBalancerTypes": { - "shape": "ListOfString", - "flattened": false - } - }, - "flattened": false - }, - "SslPolicyName": {"type": "string", "flattened": false}, - "SslPolicyNames": { - "type": "list", - "member": {"shape": "SslPolicyName"}, - "flattened": false - }, - "SslProtocol": {"type": "string", "flattened": false}, - "SslProtocols": { - "type": "list", - "member": {"shape": "SslProtocol"}, - "flattened": false - }, - "StateReason": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false}, - "StringValue": {"type": "string", "flattened": false}, - "SubnetId": {"type": "string", "flattened": false}, - "SubnetMapping": { - "type": "structure", - "members": { - "SubnetId": {"shape": "SubnetId", "flattened": false}, - "AllocationId": {"shape": "AllocationId", "flattened": false}, - "PrivateIPv4Address": {"shape": "PrivateIPv4Address", "flattened": false}, - "IPv6Address": {"shape": "IPv6Address", "flattened": false} - }, - "flattened": false - }, - "SubnetMappings": { - "type": "list", - "member": {"shape": "SubnetMapping"}, - "flattened": false - }, - "Subnets": { - "type": "list", - "member": {"shape": "SubnetId"}, - "flattened": false - }, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false} - }, - "flattened": false - }, - "TagDescription": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "ResourceArn", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "TagDescriptions": { - "type": "list", - "member": {"shape": "TagDescription"}, - "flattened": false - }, - "TagKey": {"type": "string", "flattened": false}, - "TagKeys": { - "type": "list", - "member": {"shape": "TagKey"}, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TagValue": {"type": "string", "flattened": false}, - "TargetDescription": { - "type": "structure", - "members": { - "Id": {"shape": "TargetId", "flattened": false}, - "Port": {"shape": "Port", "flattened": false}, - "AvailabilityZone": {"shape": "ZoneName", "flattened": false} - }, - "flattened": false - }, - "TargetDescriptions": { - "type": "list", - "member": {"shape": "TargetDescription"}, - "flattened": false - }, - "TargetGroup": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "TargetGroupName": {"shape": "TargetGroupName", "flattened": false}, - "Protocol": {"shape": "ProtocolEnum", "flattened": false}, - "Port": {"shape": "Port", "flattened": false}, - "VpcId": {"shape": "VpcId", "flattened": false}, - "HealthCheckProtocol": {"shape": "ProtocolEnum", "flattened": false}, - "HealthCheckPort": {"shape": "HealthCheckPort", "flattened": false}, - "HealthCheckEnabled": {"shape": "HealthCheckEnabled", "flattened": false}, - "HealthCheckIntervalSeconds": { - "shape": "HealthCheckIntervalSeconds", - "flattened": false - }, - "HealthCheckTimeoutSeconds": { - "shape": "HealthCheckTimeoutSeconds", - "flattened": false - }, - "HealthyThresholdCount": { - "shape": "HealthCheckThresholdCount", - "flattened": false - }, - "UnhealthyThresholdCount": { - "shape": "HealthCheckThresholdCount", - "flattened": false - }, - "HealthCheckPath": {"shape": "Path", "flattened": false}, - "Matcher": {"shape": "Matcher", "flattened": false}, - "LoadBalancerArns": {"shape": "LoadBalancerArns", "flattened": false}, - "TargetType": {"shape": "TargetTypeEnum", "flattened": false}, - "ProtocolVersion": {"shape": "ProtocolVersion", "flattened": false}, - "IpAddressType": { - "shape": "TargetGroupIpAddressTypeEnum", - "flattened": false - } - }, - "flattened": false - }, - "TargetGroupArn": {"type": "string", "flattened": false}, - "TargetGroupArns": { - "type": "list", - "member": {"shape": "TargetGroupArn"}, - "flattened": false - }, - "TargetGroupAttribute": { - "type": "structure", - "members": { - "Key": {"shape": "TargetGroupAttributeKey", "flattened": false}, - "Value": {"shape": "TargetGroupAttributeValue", "flattened": false} - }, - "flattened": false - }, - "TargetGroupAttributeKey": {"type": "string", "flattened": false}, - "TargetGroupAttributeValue": {"type": "string", "flattened": false}, - "TargetGroupAttributes": { - "type": "list", - "member": {"shape": "TargetGroupAttribute"}, - "flattened": false - }, - "TargetGroupIpAddressTypeEnum": {"type": "string", "flattened": false}, - "TargetGroupList": { - "type": "list", - "member": {"shape": "TargetGroupTuple"}, - "flattened": false - }, - "TargetGroupName": {"type": "string", "flattened": false}, - "TargetGroupNames": { - "type": "list", - "member": {"shape": "TargetGroupName"}, - "flattened": false - }, - "TargetGroupStickinessConfig": { - "type": "structure", - "members": { - "Enabled": {"shape": "TargetGroupStickinessEnabled", "flattened": false}, - "DurationSeconds": { - "shape": "TargetGroupStickinessDurationSeconds", - "flattened": false - } - }, - "flattened": false - }, - "TargetGroupStickinessDurationSeconds": { - "type": "integer", - "flattened": false - }, - "TargetGroupStickinessEnabled": {"type": "boolean", "flattened": false}, - "TargetGroupTuple": { - "type": "structure", - "members": { - "TargetGroupArn": {"shape": "TargetGroupArn", "flattened": false}, - "Weight": {"shape": "TargetGroupWeight", "flattened": false} - }, - "flattened": false - }, - "TargetGroupWeight": {"type": "integer", "flattened": false}, - "TargetGroups": { - "type": "list", - "member": {"shape": "TargetGroup"}, - "flattened": false - }, - "TargetHealth": { - "type": "structure", - "members": { - "State": {"shape": "TargetHealthStateEnum", "flattened": false}, - "Reason": {"shape": "TargetHealthReasonEnum", "flattened": false}, - "Description": {"shape": "Description", "flattened": false} - }, - "flattened": false - }, - "TargetHealthDescription": { - "type": "structure", - "members": { - "Target": {"shape": "TargetDescription", "flattened": false}, - "HealthCheckPort": {"shape": "HealthCheckPort", "flattened": false}, - "TargetHealth": {"shape": "TargetHealth", "flattened": false}, - "AnomalyDetection": {"shape": "AnomalyDetection", "flattened": false} - }, - "flattened": false - }, - "TargetHealthDescriptions": { - "type": "list", - "member": {"shape": "TargetHealthDescription"}, - "flattened": false - }, - "TargetHealthReasonEnum": {"type": "string", "flattened": false}, - "TargetHealthStateEnum": {"type": "string", "flattened": false}, - "TargetId": {"type": "string", "flattened": false}, - "TargetTypeEnum": {"type": "string", "flattened": false}, - "TotalRevokedEntries": {"type": "long", "flattened": false}, - "TrustStore": { - "type": "structure", - "members": { - "Name": {"shape": "TrustStoreName", "flattened": false}, - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "Status": {"shape": "TrustStoreStatus", "flattened": false}, - "NumberOfCaCertificates": { - "shape": "NumberOfCaCertificates", - "flattened": false - }, - "TotalRevokedEntries": { - "shape": "TotalRevokedEntries", - "flattened": false - } - }, - "flattened": false - }, - "TrustStoreArn": {"type": "string", "flattened": false}, - "TrustStoreArns": { - "type": "list", - "member": {"shape": "TrustStoreArn"}, - "flattened": false - }, - "TrustStoreAssociation": { - "type": "structure", - "members": { - "ResourceArn": { - "shape": "TrustStoreAssociationResourceArn", - "flattened": false - } - }, - "flattened": false - }, - "TrustStoreAssociationResourceArn": {"type": "string", "flattened": false}, - "TrustStoreAssociations": { - "type": "list", - "member": {"shape": "TrustStoreAssociation"}, - "flattened": false - }, - "TrustStoreName": {"type": "string", "flattened": false}, - "TrustStoreNames": { - "type": "list", - "member": {"shape": "TrustStoreName"}, - "flattened": false - }, - "TrustStoreRevocation": { - "type": "structure", - "members": { - "TrustStoreArn": {"shape": "TrustStoreArn", "flattened": false}, - "RevocationId": {"shape": "RevocationId", "flattened": false}, - "RevocationType": {"shape": "RevocationType", "flattened": false}, - "NumberOfRevokedEntries": { - "shape": "NumberOfRevokedEntries", - "flattened": false - } - }, - "flattened": false - }, - "TrustStoreRevocations": { - "type": "list", - "member": {"shape": "TrustStoreRevocation"}, - "flattened": false - }, - "TrustStoreStatus": {"type": "string", "flattened": false}, - "TrustStores": { - "type": "list", - "member": {"shape": "TrustStore"}, - "flattened": false - }, - "VpcId": {"type": "string", "flattened": false}, - "ZoneName": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/iam/v2010_05_08.dart b/aws_client/lib/src/generated/iam/v2010_05_08.dart index db5368a01..5b160566c 100644 --- a/aws_client/lib/src/generated/iam/v2010_05_08.dart +++ b/aws_client/lib/src/generated/iam/v2010_05_08.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2010_05_08.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Identity and Access Management (IAM) is a web service for securely @@ -30,7 +29,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// and Access Management User Guide. class Iam { final _s.QueryProtocol _protocol; - final Map shapes; Iam({ String? region, @@ -38,7 +36,7 @@ class Iam { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'iam', @@ -47,9 +45,7 @@ class Iam { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -84,9 +80,10 @@ class Iam { required String clientID, required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['ClientID'] = clientID; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'ClientID': clientID, + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; await _protocol.send( $request, action: 'AddClientIDToOpenIDConnectProvider', @@ -94,8 +91,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddClientIDToOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -147,9 +142,10 @@ class Iam { required String instanceProfileName, required String roleName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['RoleName'] = roleName; + final $request = { + 'InstanceProfileName': instanceProfileName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'AddRoleToInstanceProfile', @@ -157,8 +153,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToInstanceProfileRequest'], - shapes: shapes, ); } @@ -187,9 +181,10 @@ class Iam { required String groupName, required String userName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['UserName'] = userName; + final $request = { + 'GroupName': groupName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'AddUserToGroup', @@ -197,8 +192,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddUserToGroupRequest'], - shapes: shapes, ); } @@ -243,9 +236,10 @@ class Iam { required String groupName, required String policyArn, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyArn'] = policyArn; + final $request = { + 'GroupName': groupName, + 'PolicyArn': policyArn, + }; await _protocol.send( $request, action: 'AttachGroupPolicy', @@ -253,8 +247,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachGroupPolicyRequest'], - shapes: shapes, ); } @@ -309,9 +301,10 @@ class Iam { required String policyArn, required String roleName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['RoleName'] = roleName; + final $request = { + 'PolicyArn': policyArn, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'AttachRolePolicy', @@ -319,8 +312,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachRolePolicyRequest'], - shapes: shapes, ); } @@ -365,9 +356,10 @@ class Iam { required String policyArn, required String userName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['UserName'] = userName; + final $request = { + 'PolicyArn': policyArn, + 'UserName': userName, + }; await _protocol.send( $request, action: 'AttachUserPolicy', @@ -375,8 +367,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachUserPolicyRequest'], - shapes: shapes, ); } @@ -420,9 +410,10 @@ class Iam { required String newPassword, required String oldPassword, }) async { - final $request = {}; - $request['NewPassword'] = newPassword; - $request['OldPassword'] = oldPassword; + final $request = { + 'NewPassword': newPassword, + 'OldPassword': oldPassword, + }; await _protocol.send( $request, action: 'ChangePassword', @@ -430,8 +421,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ChangePasswordRequest'], - shapes: shapes, ); } @@ -471,8 +460,9 @@ class Iam { Future createAccessKey({ String? userName, }) async { - final $request = {}; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'CreateAccessKey', @@ -480,8 +470,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAccessKeyRequest'], - shapes: shapes, resultWrapper: 'CreateAccessKeyResult', ); return CreateAccessKeyResponse.fromXml($result); @@ -508,8 +496,9 @@ class Iam { Future createAccountAlias({ required String accountAlias, }) async { - final $request = {}; - $request['AccountAlias'] = accountAlias; + final $request = { + 'AccountAlias': accountAlias, + }; await _protocol.send( $request, action: 'CreateAccountAlias', @@ -517,8 +506,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAccountAliasRequest'], - shapes: shapes, ); } @@ -559,9 +546,10 @@ class Iam { required String groupName, String? path, }) async { - final $request = {}; - $request['GroupName'] = groupName; - path?.also((arg) => $request['Path'] = arg); + final $request = { + 'GroupName': groupName, + if (path != null) 'Path': path, + }; final $result = await _protocol.send( $request, action: 'CreateGroup', @@ -569,8 +557,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGroupRequest'], - shapes: shapes, resultWrapper: 'CreateGroupResult', ); return CreateGroupResponse.fromXml($result); @@ -635,10 +621,17 @@ class Iam { String? path, List? tags, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'InstanceProfileName': instanceProfileName, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateInstanceProfile', @@ -646,8 +639,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateInstanceProfileRequest'], - shapes: shapes, resultWrapper: 'CreateInstanceProfileResult', ); return CreateInstanceProfileResponse.fromXml($result); @@ -704,11 +695,12 @@ class Iam { required String userName, bool? passwordResetRequired, }) async { - final $request = {}; - $request['Password'] = password; - $request['UserName'] = userName; - passwordResetRequired - ?.also((arg) => $request['PasswordResetRequired'] = arg); + final $request = { + 'Password': password, + 'UserName': userName, + if (passwordResetRequired != null) + 'PasswordResetRequired': passwordResetRequired.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateLoginProfile', @@ -716,8 +708,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoginProfileRequest'], - shapes: shapes, resultWrapper: 'CreateLoginProfileResult', ); return CreateLoginProfileResponse.fromXml($result); @@ -851,11 +841,28 @@ class Iam { List? tags, List? thumbprintList, }) async { - final $request = {}; - $request['Url'] = url; - clientIDList?.also((arg) => $request['ClientIDList'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - thumbprintList?.also((arg) => $request['ThumbprintList'] = arg); + final $request = { + 'Url': url, + if (clientIDList != null) + if (clientIDList.isEmpty) + 'ClientIDList': '' + else + for (var i1 = 0; i1 < clientIDList.length; i1++) + 'ClientIDList.member.${i1 + 1}': clientIDList[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (thumbprintList != null) + if (thumbprintList.isEmpty) + 'ThumbprintList': '' + else + for (var i1 = 0; i1 < thumbprintList.length; i1++) + 'ThumbprintList.member.${i1 + 1}': thumbprintList[i1], + }; final $result = await _protocol.send( $request, action: 'CreateOpenIDConnectProvider', @@ -863,8 +870,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOpenIDConnectProviderRequest'], - shapes: shapes, resultWrapper: 'CreateOpenIDConnectProviderResult', ); return CreateOpenIDConnectProviderResponse.fromXml($result); @@ -987,12 +992,19 @@ class Iam { String? path, List? tags, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; - description?.also((arg) => $request['Description'] = arg); - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + if (description != null) 'Description': description, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreatePolicy', @@ -1000,8 +1012,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePolicyRequest'], - shapes: shapes, resultWrapper: 'CreatePolicyResult', ); return CreatePolicyResponse.fromXml($result); @@ -1085,10 +1095,11 @@ class Iam { required String policyDocument, bool? setAsDefault, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['PolicyDocument'] = policyDocument; - setAsDefault?.also((arg) => $request['SetAsDefault'] = arg); + final $request = { + 'PolicyArn': policyArn, + 'PolicyDocument': policyDocument, + if (setAsDefault != null) 'SetAsDefault': setAsDefault.toString(), + }; final $result = await _protocol.send( $request, action: 'CreatePolicyVersion', @@ -1096,8 +1107,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePolicyVersionRequest'], - shapes: shapes, resultWrapper: 'CreatePolicyVersionResult', ); return CreatePolicyVersionResponse.fromXml($result); @@ -1240,14 +1249,23 @@ class Iam { 3600, 43200, ); - final $request = {}; - $request['AssumeRolePolicyDocument'] = assumeRolePolicyDocument; - $request['RoleName'] = roleName; - description?.also((arg) => $request['Description'] = arg); - maxSessionDuration?.also((arg) => $request['MaxSessionDuration'] = arg); - path?.also((arg) => $request['Path'] = arg); - permissionsBoundary?.also((arg) => $request['PermissionsBoundary'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'AssumeRolePolicyDocument': assumeRolePolicyDocument, + 'RoleName': roleName, + if (description != null) 'Description': description, + if (maxSessionDuration != null) + 'MaxSessionDuration': maxSessionDuration.toString(), + if (path != null) 'Path': path, + if (permissionsBoundary != null) + 'PermissionsBoundary': permissionsBoundary, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateRole', @@ -1255,8 +1273,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateRoleRequest'], - shapes: shapes, resultWrapper: 'CreateRoleResult', ); return CreateRoleResponse.fromXml($result); @@ -1332,10 +1348,17 @@ class Iam { required String sAMLMetadataDocument, List? tags, }) async { - final $request = {}; - $request['Name'] = name; - $request['SAMLMetadataDocument'] = sAMLMetadataDocument; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Name': name, + 'SAMLMetadataDocument': sAMLMetadataDocument, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSAMLProvider', @@ -1343,8 +1366,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSAMLProviderRequest'], - shapes: shapes, resultWrapper: 'CreateSAMLProviderResult', ); return CreateSAMLProviderResponse.fromXml($result); @@ -1402,10 +1423,11 @@ class Iam { String? customSuffix, String? description, }) async { - final $request = {}; - $request['AWSServiceName'] = awsServiceName; - customSuffix?.also((arg) => $request['CustomSuffix'] = arg); - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'AWSServiceName': awsServiceName, + if (customSuffix != null) 'CustomSuffix': customSuffix, + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'CreateServiceLinkedRole', @@ -1413,8 +1435,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServiceLinkedRoleRequest'], - shapes: shapes, resultWrapper: 'CreateServiceLinkedRoleResult', ); return CreateServiceLinkedRoleResponse.fromXml($result); @@ -1463,9 +1483,10 @@ class Iam { required String serviceName, required String userName, }) async { - final $request = {}; - $request['ServiceName'] = serviceName; - $request['UserName'] = userName; + final $request = { + 'ServiceName': serviceName, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'CreateServiceSpecificCredential', @@ -1473,8 +1494,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServiceSpecificCredentialRequest'], - shapes: shapes, resultWrapper: 'CreateServiceSpecificCredentialResult', ); return CreateServiceSpecificCredentialResponse.fromXml($result); @@ -1549,11 +1568,19 @@ class Iam { String? permissionsBoundary, List? tags, }) async { - final $request = {}; - $request['UserName'] = userName; - path?.also((arg) => $request['Path'] = arg); - permissionsBoundary?.also((arg) => $request['PermissionsBoundary'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'UserName': userName, + if (path != null) 'Path': path, + if (permissionsBoundary != null) + 'PermissionsBoundary': permissionsBoundary, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateUser', @@ -1561,8 +1588,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUserRequest'], - shapes: shapes, resultWrapper: 'CreateUserResult', ); return CreateUserResponse.fromXml($result); @@ -1636,10 +1661,17 @@ class Iam { String? path, List? tags, }) async { - final $request = {}; - $request['VirtualMFADeviceName'] = virtualMFADeviceName; - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'VirtualMFADeviceName': virtualMFADeviceName, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateVirtualMFADevice', @@ -1647,8 +1679,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateVirtualMFADeviceRequest'], - shapes: shapes, resultWrapper: 'CreateVirtualMFADeviceResult', ); return CreateVirtualMFADeviceResponse.fromXml($result); @@ -1689,9 +1719,10 @@ class Iam { required String serialNumber, required String userName, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - $request['UserName'] = userName; + final $request = { + 'SerialNumber': serialNumber, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeactivateMFADevice', @@ -1699,8 +1730,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeactivateMFADeviceRequest'], - shapes: shapes, ); } @@ -1736,9 +1765,10 @@ class Iam { required String accessKeyId, String? userName, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'AccessKeyId': accessKeyId, + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteAccessKey', @@ -1746,8 +1776,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAccessKeyRequest'], - shapes: shapes, ); } @@ -1772,8 +1800,9 @@ class Iam { Future deleteAccountAlias({ required String accountAlias, }) async { - final $request = {}; - $request['AccountAlias'] = accountAlias; + final $request = { + 'AccountAlias': accountAlias, + }; await _protocol.send( $request, action: 'DeleteAccountAlias', @@ -1781,8 +1810,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAccountAliasRequest'], - shapes: shapes, ); } @@ -1793,7 +1820,7 @@ class Iam { /// May throw [LimitExceededException]. /// May throw [ServiceFailureException]. Future deleteAccountPasswordPolicy() async { - final $request = {}; + final $request = {}; await _protocol.send( $request, action: 'DeleteAccountPasswordPolicy', @@ -1801,7 +1828,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, ); } @@ -1823,8 +1849,9 @@ class Iam { Future deleteGroup({ required String groupName, }) async { - final $request = {}; - $request['GroupName'] = groupName; + final $request = { + 'GroupName': groupName, + }; await _protocol.send( $request, action: 'DeleteGroup', @@ -1832,8 +1859,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGroupRequest'], - shapes: shapes, ); } @@ -1870,9 +1895,10 @@ class Iam { required String groupName, required String policyName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyName'] = policyName; + final $request = { + 'GroupName': groupName, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'DeleteGroupPolicy', @@ -1880,8 +1906,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGroupPolicyRequest'], - shapes: shapes, ); } @@ -1912,8 +1936,9 @@ class Iam { Future deleteInstanceProfile({ required String instanceProfileName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; + final $request = { + 'InstanceProfileName': instanceProfileName, + }; await _protocol.send( $request, action: 'DeleteInstanceProfile', @@ -1921,8 +1946,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteInstanceProfileRequest'], - shapes: shapes, ); } @@ -1959,8 +1982,9 @@ class Iam { Future deleteLoginProfile({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteLoginProfile', @@ -1968,8 +1992,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoginProfileRequest'], - shapes: shapes, ); } @@ -1993,8 +2015,9 @@ class Iam { Future deleteOpenIDConnectProvider({ required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; await _protocol.send( $request, action: 'DeleteOpenIDConnectProvider', @@ -2002,8 +2025,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -2053,8 +2074,9 @@ class Iam { Future deletePolicy({ required String policyArn, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; + final $request = { + 'PolicyArn': policyArn, + }; await _protocol.send( $request, action: 'DeletePolicy', @@ -2062,8 +2084,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePolicyRequest'], - shapes: shapes, ); } @@ -2109,9 +2129,10 @@ class Iam { required String policyArn, required String versionId, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['VersionId'] = versionId; + final $request = { + 'PolicyArn': policyArn, + 'VersionId': versionId, + }; await _protocol.send( $request, action: 'DeletePolicyVersion', @@ -2119,8 +2140,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePolicyVersionRequest'], - shapes: shapes, ); } @@ -2170,8 +2189,9 @@ class Iam { Future deleteRole({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DeleteRole', @@ -2179,8 +2199,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRoleRequest'], - shapes: shapes, ); } @@ -2203,8 +2221,9 @@ class Iam { Future deleteRolePermissionsBoundary({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DeleteRolePermissionsBoundary', @@ -2212,8 +2231,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRolePermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -2251,9 +2268,10 @@ class Iam { required String policyName, required String roleName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['RoleName'] = roleName; + final $request = { + 'PolicyName': policyName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DeleteRolePolicy', @@ -2261,8 +2279,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRolePolicyRequest'], - shapes: shapes, ); } @@ -2288,8 +2304,9 @@ class Iam { Future deleteSAMLProvider({ required String sAMLProviderArn, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + }; await _protocol.send( $request, action: 'DeleteSAMLProvider', @@ -2297,8 +2314,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSAMLProviderRequest'], - shapes: shapes, ); } @@ -2331,9 +2346,10 @@ class Iam { required String sSHPublicKeyId, required String userName, }) async { - final $request = {}; - $request['SSHPublicKeyId'] = sSHPublicKeyId; - $request['UserName'] = userName; + final $request = { + 'SSHPublicKeyId': sSHPublicKeyId, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteSSHPublicKey', @@ -2341,8 +2357,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSSHPublicKeyRequest'], - shapes: shapes, ); } @@ -2380,8 +2394,9 @@ class Iam { Future deleteServerCertificate({ required String serverCertificateName, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; + final $request = { + 'ServerCertificateName': serverCertificateName, + }; await _protocol.send( $request, action: 'DeleteServerCertificate', @@ -2389,8 +2404,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServerCertificateRequest'], - shapes: shapes, ); } @@ -2427,8 +2440,9 @@ class Iam { Future deleteServiceLinkedRole({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'DeleteServiceLinkedRole', @@ -2436,8 +2450,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServiceLinkedRoleRequest'], - shapes: shapes, resultWrapper: 'DeleteServiceLinkedRoleResult', ); return DeleteServiceLinkedRoleResponse.fromXml($result); @@ -2468,9 +2480,10 @@ class Iam { required String serviceSpecificCredentialId, String? userName, }) async { - final $request = {}; - $request['ServiceSpecificCredentialId'] = serviceSpecificCredentialId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'ServiceSpecificCredentialId': serviceSpecificCredentialId, + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteServiceSpecificCredential', @@ -2478,8 +2491,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServiceSpecificCredentialRequest'], - shapes: shapes, ); } @@ -2515,9 +2526,10 @@ class Iam { required String certificateId, String? userName, }) async { - final $request = {}; - $request['CertificateId'] = certificateId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'CertificateId': certificateId, + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteSigningCertificate', @@ -2525,8 +2537,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSigningCertificateRequest'], - shapes: shapes, ); } @@ -2585,8 +2595,9 @@ class Iam { Future deleteUser({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteUser', @@ -2594,8 +2605,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserRequest'], - shapes: shapes, ); } @@ -2615,8 +2624,9 @@ class Iam { Future deleteUserPermissionsBoundary({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteUserPermissionsBoundary', @@ -2624,8 +2634,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserPermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -2662,9 +2670,10 @@ class Iam { required String policyName, required String userName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['UserName'] = userName; + final $request = { + 'PolicyName': policyName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteUserPolicy', @@ -2672,8 +2681,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserPolicyRequest'], - shapes: shapes, ); } @@ -2701,8 +2708,9 @@ class Iam { Future deleteVirtualMFADevice({ required String serialNumber, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; + final $request = { + 'SerialNumber': serialNumber, + }; await _protocol.send( $request, action: 'DeleteVirtualMFADevice', @@ -2710,8 +2718,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteVirtualMFADeviceRequest'], - shapes: shapes, ); } @@ -2748,9 +2754,10 @@ class Iam { required String groupName, required String policyArn, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyArn'] = policyArn; + final $request = { + 'GroupName': groupName, + 'PolicyArn': policyArn, + }; await _protocol.send( $request, action: 'DetachGroupPolicy', @@ -2758,8 +2765,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachGroupPolicyRequest'], - shapes: shapes, ); } @@ -2797,9 +2802,10 @@ class Iam { required String policyArn, required String roleName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['RoleName'] = roleName; + final $request = { + 'PolicyArn': policyArn, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DetachRolePolicy', @@ -2807,8 +2813,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachRolePolicyRequest'], - shapes: shapes, ); } @@ -2845,9 +2849,10 @@ class Iam { required String policyArn, required String userName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['UserName'] = userName; + final $request = { + 'PolicyArn': policyArn, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DetachUserPolicy', @@ -2855,8 +2860,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachUserPolicyRequest'], - shapes: shapes, ); } @@ -2922,11 +2925,12 @@ class Iam { required String serialNumber, required String userName, }) async { - final $request = {}; - $request['AuthenticationCode1'] = authenticationCode1; - $request['AuthenticationCode2'] = authenticationCode2; - $request['SerialNumber'] = serialNumber; - $request['UserName'] = userName; + final $request = { + 'AuthenticationCode1': authenticationCode1, + 'AuthenticationCode2': authenticationCode2, + 'SerialNumber': serialNumber, + 'UserName': userName, + }; await _protocol.send( $request, action: 'EnableMFADevice', @@ -2934,8 +2938,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableMFADeviceRequest'], - shapes: shapes, ); } @@ -2947,7 +2949,7 @@ class Iam { /// May throw [LimitExceededException]. /// May throw [ServiceFailureException]. Future generateCredentialReport() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GenerateCredentialReport', @@ -2955,7 +2957,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GenerateCredentialReportResult', ); return GenerateCredentialReportResponse.fromXml($result); @@ -3123,10 +3124,11 @@ class Iam { required String entityPath, String? organizationsPolicyId, }) async { - final $request = {}; - $request['EntityPath'] = entityPath; - organizationsPolicyId - ?.also((arg) => $request['OrganizationsPolicyId'] = arg); + final $request = { + 'EntityPath': entityPath, + if (organizationsPolicyId != null) + 'OrganizationsPolicyId': organizationsPolicyId, + }; final $result = await _protocol.send( $request, action: 'GenerateOrganizationsAccessReport', @@ -3134,8 +3136,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GenerateOrganizationsAccessReportRequest'], - shapes: shapes, resultWrapper: 'GenerateOrganizationsAccessReportResult', ); return GenerateOrganizationsAccessReportResponse.fromXml($result); @@ -3230,9 +3230,10 @@ class Iam { required String arn, AccessAdvisorUsageGranularityType? granularity, }) async { - final $request = {}; - $request['Arn'] = arn; - granularity?.also((arg) => $request['Granularity'] = arg.toValue()); + final $request = { + 'Arn': arn, + if (granularity != null) 'Granularity': granularity.toValue(), + }; final $result = await _protocol.send( $request, action: 'GenerateServiceLastAccessedDetails', @@ -3240,8 +3241,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GenerateServiceLastAccessedDetailsRequest'], - shapes: shapes, resultWrapper: 'GenerateServiceLastAccessedDetailsResult', ); return GenerateServiceLastAccessedDetailsResponse.fromXml($result); @@ -3261,8 +3260,9 @@ class Iam { Future getAccessKeyLastUsed({ required String accessKeyId, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; + final $request = { + 'AccessKeyId': accessKeyId, + }; final $result = await _protocol.send( $request, action: 'GetAccessKeyLastUsed', @@ -3270,8 +3270,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAccessKeyLastUsedRequest'], - shapes: shapes, resultWrapper: 'GetAccessKeyLastUsedResult', ); return GetAccessKeyLastUsedResponse.fromXml($result); @@ -3334,11 +3332,16 @@ class Iam { 1, 1000, ); - final $request = {}; - filter?.also( - (arg) => $request['Filter'] = arg.map((e) => e.toValue()).toList()); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + if (filter != null) + if (filter.isEmpty) + 'Filter': '' + else + for (var i1 = 0; i1 < filter.length; i1++) + 'Filter.member.${i1 + 1}': filter[i1].toValue(), + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetAccountAuthorizationDetails', @@ -3346,8 +3349,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAccountAuthorizationDetailsRequest'], - shapes: shapes, resultWrapper: 'GetAccountAuthorizationDetailsResult', ); return GetAccountAuthorizationDetailsResponse.fromXml($result); @@ -3363,7 +3364,7 @@ class Iam { /// May throw [NoSuchEntityException]. /// May throw [ServiceFailureException]. Future getAccountPasswordPolicy() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetAccountPasswordPolicy', @@ -3371,7 +3372,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetAccountPasswordPolicyResult', ); return GetAccountPasswordPolicyResponse.fromXml($result); @@ -3386,7 +3386,7 @@ class Iam { /// /// May throw [ServiceFailureException]. Future getAccountSummary() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetAccountSummary', @@ -3394,7 +3394,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetAccountSummaryResult', ); return GetAccountSummaryResponse.fromXml($result); @@ -3442,8 +3441,13 @@ class Iam { Future getContextKeysForCustomPolicy({ required List policyInputList, }) async { - final $request = {}; - $request['PolicyInputList'] = policyInputList; + final $request = { + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + }; final $result = await _protocol.send( $request, action: 'GetContextKeysForCustomPolicy', @@ -3451,8 +3455,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetContextKeysForCustomPolicyRequest'], - shapes: shapes, resultWrapper: 'GetContextKeysForCustomPolicyResult', ); return GetContextKeysForPolicyResponse.fromXml($result); @@ -3523,9 +3525,15 @@ class Iam { required String policySourceArn, List? policyInputList, }) async { - final $request = {}; - $request['PolicySourceArn'] = policySourceArn; - policyInputList?.also((arg) => $request['PolicyInputList'] = arg); + final $request = { + 'PolicySourceArn': policySourceArn, + if (policyInputList != null) + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + }; final $result = await _protocol.send( $request, action: 'GetContextKeysForPrincipalPolicy', @@ -3533,8 +3541,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetContextKeysForPrincipalPolicyRequest'], - shapes: shapes, resultWrapper: 'GetContextKeysForPrincipalPolicyResult', ); return GetContextKeysForPolicyResponse.fromXml($result); @@ -3550,7 +3556,7 @@ class Iam { /// May throw [CredentialReportNotReadyException]. /// May throw [ServiceFailureException]. Future getCredentialReport() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetCredentialReport', @@ -3558,7 +3564,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetCredentialReportResult', ); return GetCredentialReportResponse.fromXml($result); @@ -3608,10 +3613,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['GroupName'] = groupName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'GroupName': groupName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetGroup', @@ -3619,8 +3625,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetGroupRequest'], - shapes: shapes, resultWrapper: 'GetGroupResult', ); return GetGroupResponse.fromXml($result); @@ -3667,9 +3671,10 @@ class Iam { required String groupName, required String policyName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyName'] = policyName; + final $request = { + 'GroupName': groupName, + 'PolicyName': policyName, + }; final $result = await _protocol.send( $request, action: 'GetGroupPolicy', @@ -3677,8 +3682,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetGroupPolicyRequest'], - shapes: shapes, resultWrapper: 'GetGroupPolicyResult', ); return GetGroupPolicyResponse.fromXml($result); @@ -3703,8 +3706,9 @@ class Iam { Future getInstanceProfile({ required String instanceProfileName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; + final $request = { + 'InstanceProfileName': instanceProfileName, + }; final $result = await _protocol.send( $request, action: 'GetInstanceProfile', @@ -3712,8 +3716,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetInstanceProfileRequest'], - shapes: shapes, resultWrapper: 'GetInstanceProfileResult', ); return GetInstanceProfileResponse.fromXml($result); @@ -3748,8 +3750,9 @@ class Iam { Future getLoginProfile({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetLoginProfile', @@ -3757,8 +3760,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetLoginProfileRequest'], - shapes: shapes, resultWrapper: 'GetLoginProfileResult', ); return GetLoginProfileResponse.fromXml($result); @@ -3780,9 +3781,10 @@ class Iam { required String serialNumber, String? userName, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'SerialNumber': serialNumber, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetMFADevice', @@ -3790,8 +3792,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMFADeviceRequest'], - shapes: shapes, resultWrapper: 'GetMFADeviceResult', ); return GetMFADeviceResponse.fromXml($result); @@ -3816,8 +3816,9 @@ class Iam { Future getOpenIDConnectProvider({ required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; final $result = await _protocol.send( $request, action: 'GetOpenIDConnectProvider', @@ -3825,8 +3826,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetOpenIDConnectProviderRequest'], - shapes: shapes, resultWrapper: 'GetOpenIDConnectProviderResult', ); return GetOpenIDConnectProviderResponse.fromXml($result); @@ -3898,11 +3897,12 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['JobId'] = jobId; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - sortKey?.also((arg) => $request['SortKey'] = arg.toValue()); + final $request = { + 'JobId': jobId, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (sortKey != null) 'SortKey': sortKey.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetOrganizationsAccessReport', @@ -3910,8 +3910,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetOrganizationsAccessReportRequest'], - shapes: shapes, resultWrapper: 'GetOrganizationsAccessReportResult', ); return GetOrganizationsAccessReportResponse.fromXml($result); @@ -3949,8 +3947,9 @@ class Iam { Future getPolicy({ required String policyArn, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; + final $request = { + 'PolicyArn': policyArn, + }; final $result = await _protocol.send( $request, action: 'GetPolicy', @@ -3958,8 +3957,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPolicyRequest'], - shapes: shapes, resultWrapper: 'GetPolicyResult', ); return GetPolicyResponse.fromXml($result); @@ -4016,9 +4013,10 @@ class Iam { required String policyArn, required String versionId, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['VersionId'] = versionId; + final $request = { + 'PolicyArn': policyArn, + 'VersionId': versionId, + }; final $result = await _protocol.send( $request, action: 'GetPolicyVersion', @@ -4026,8 +4024,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPolicyVersionRequest'], - shapes: shapes, resultWrapper: 'GetPolicyVersionResult', ); return GetPolicyVersionResponse.fromXml($result); @@ -4060,8 +4056,9 @@ class Iam { Future getRole({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'GetRole', @@ -4069,8 +4066,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetRoleRequest'], - shapes: shapes, resultWrapper: 'GetRoleResult', ); return GetRoleResponse.fromXml($result); @@ -4121,9 +4116,10 @@ class Iam { required String policyName, required String roleName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['RoleName'] = roleName; + final $request = { + 'PolicyName': policyName, + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'GetRolePolicy', @@ -4131,8 +4127,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetRolePolicyRequest'], - shapes: shapes, resultWrapper: 'GetRolePolicyResult', ); return GetRolePolicyResponse.fromXml($result); @@ -4161,8 +4155,9 @@ class Iam { Future getSAMLProvider({ required String sAMLProviderArn, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + }; final $result = await _protocol.send( $request, action: 'GetSAMLProvider', @@ -4170,8 +4165,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSAMLProviderRequest'], - shapes: shapes, resultWrapper: 'GetSAMLProviderResult', ); return GetSAMLProviderResponse.fromXml($result); @@ -4213,10 +4206,11 @@ class Iam { required String sSHPublicKeyId, required String userName, }) async { - final $request = {}; - $request['Encoding'] = encoding.toValue(); - $request['SSHPublicKeyId'] = sSHPublicKeyId; - $request['UserName'] = userName; + final $request = { + 'Encoding': encoding.toValue(), + 'SSHPublicKeyId': sSHPublicKeyId, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetSSHPublicKey', @@ -4224,8 +4218,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSSHPublicKeyRequest'], - shapes: shapes, resultWrapper: 'GetSSHPublicKeyResult', ); return GetSSHPublicKeyResponse.fromXml($result); @@ -4253,8 +4245,9 @@ class Iam { Future getServerCertificate({ required String serverCertificateName, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; + final $request = { + 'ServerCertificateName': serverCertificateName, + }; final $result = await _protocol.send( $request, action: 'GetServerCertificate', @@ -4262,8 +4255,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServerCertificateRequest'], - shapes: shapes, resultWrapper: 'GetServerCertificateResult', ); return GetServerCertificateResponse.fromXml($result); @@ -4367,10 +4358,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['JobId'] = jobId; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'JobId': jobId, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetServiceLastAccessedDetails', @@ -4378,8 +4370,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServiceLastAccessedDetailsRequest'], - shapes: shapes, resultWrapper: 'GetServiceLastAccessedDetailsResult', ); return GetServiceLastAccessedDetailsResponse.fromXml($result); @@ -4468,11 +4458,12 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['JobId'] = jobId; - $request['ServiceNamespace'] = serviceNamespace; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'JobId': jobId, + 'ServiceNamespace': serviceNamespace, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetServiceLastAccessedDetailsWithEntities', @@ -4480,8 +4471,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServiceLastAccessedDetailsWithEntitiesRequest'], - shapes: shapes, resultWrapper: 'GetServiceLastAccessedDetailsWithEntitiesResult', ); return GetServiceLastAccessedDetailsWithEntitiesResponse.fromXml($result); @@ -4506,8 +4495,9 @@ class Iam { getServiceLinkedRoleDeletionStatus({ required String deletionTaskId, }) async { - final $request = {}; - $request['DeletionTaskId'] = deletionTaskId; + final $request = { + 'DeletionTaskId': deletionTaskId, + }; final $result = await _protocol.send( $request, action: 'GetServiceLinkedRoleDeletionStatus', @@ -4515,8 +4505,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServiceLinkedRoleDeletionStatusRequest'], - shapes: shapes, resultWrapper: 'GetServiceLinkedRoleDeletionStatusResult', ); return GetServiceLinkedRoleDeletionStatusResponse.fromXml($result); @@ -4543,8 +4531,9 @@ class Iam { Future getUser({ String? userName, }) async { - final $request = {}; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetUser', @@ -4552,8 +4541,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetUserRequest'], - shapes: shapes, resultWrapper: 'GetUserResult', ); return GetUserResponse.fromXml($result); @@ -4600,9 +4587,10 @@ class Iam { required String policyName, required String userName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['UserName'] = userName; + final $request = { + 'PolicyName': policyName, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetUserPolicy', @@ -4610,8 +4598,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetUserPolicyRequest'], - shapes: shapes, resultWrapper: 'GetUserPolicyResult', ); return GetUserPolicyResponse.fromXml($result); @@ -4678,10 +4664,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListAccessKeys', @@ -4689,8 +4676,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAccessKeysRequest'], - shapes: shapes, resultWrapper: 'ListAccessKeysResult', ); return ListAccessKeysResponse.fromXml($result); @@ -4733,9 +4718,10 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListAccountAliases', @@ -4743,8 +4729,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAccountAliasesRequest'], - shapes: shapes, resultWrapper: 'ListAccountAliasesResult', ); return ListAccountAliasesResponse.fromXml($result); @@ -4820,11 +4804,12 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['GroupName'] = groupName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + 'GroupName': groupName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListAttachedGroupPolicies', @@ -4832,8 +4817,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAttachedGroupPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListAttachedGroupPoliciesResult', ); return ListAttachedGroupPoliciesResponse.fromXml($result); @@ -4909,11 +4892,12 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListAttachedRolePolicies', @@ -4921,8 +4905,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAttachedRolePoliciesRequest'], - shapes: shapes, resultWrapper: 'ListAttachedRolePoliciesResult', ); return ListAttachedRolePoliciesResponse.fromXml($result); @@ -4998,11 +4980,12 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListAttachedUserPolicies', @@ -5010,8 +4993,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAttachedUserPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListAttachedUserPoliciesResult', ); return ListAttachedUserPoliciesResponse.fromXml($result); @@ -5105,14 +5086,15 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['PolicyArn'] = policyArn; - entityFilter?.also((arg) => $request['EntityFilter'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); - policyUsageFilter - ?.also((arg) => $request['PolicyUsageFilter'] = arg.toValue()); + final $request = { + 'PolicyArn': policyArn, + if (entityFilter != null) 'EntityFilter': entityFilter.toValue(), + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + if (policyUsageFilter != null) + 'PolicyUsageFilter': policyUsageFilter.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListEntitiesForPolicy', @@ -5120,8 +5102,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListEntitiesForPolicyRequest'], - shapes: shapes, resultWrapper: 'ListEntitiesForPolicyResult', ); return ListEntitiesForPolicyResponse.fromXml($result); @@ -5181,10 +5161,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['GroupName'] = groupName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'GroupName': groupName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListGroupPolicies', @@ -5192,8 +5173,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGroupPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListGroupPoliciesResult', ); return ListGroupPoliciesResponse.fromXml($result); @@ -5249,10 +5228,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListGroups', @@ -5260,8 +5240,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGroupsRequest'], - shapes: shapes, resultWrapper: 'ListGroupsResult', ); return ListGroupsResponse.fromXml($result); @@ -5312,10 +5290,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListGroupsForUser', @@ -5323,8 +5302,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGroupsForUserRequest'], - shapes: shapes, resultWrapper: 'ListGroupsForUserResult', ); return ListGroupsForUserResponse.fromXml($result); @@ -5376,10 +5353,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'InstanceProfileName': instanceProfileName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListInstanceProfileTags', @@ -5387,8 +5365,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListInstanceProfileTagsRequest'], - shapes: shapes, resultWrapper: 'ListInstanceProfileTagsResult', ); return ListInstanceProfileTagsResponse.fromXml($result); @@ -5454,10 +5430,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListInstanceProfiles', @@ -5465,8 +5442,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListInstanceProfilesRequest'], - shapes: shapes, resultWrapper: 'ListInstanceProfilesResult', ); return ListInstanceProfilesResponse.fromXml($result); @@ -5521,10 +5496,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListInstanceProfilesForRole', @@ -5532,8 +5508,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListInstanceProfilesForRoleRequest'], - shapes: shapes, resultWrapper: 'ListInstanceProfilesForRoleResult', ); return ListInstanceProfilesForRoleResponse.fromXml($result); @@ -5587,10 +5561,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['SerialNumber'] = serialNumber; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'SerialNumber': serialNumber, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListMFADeviceTags', @@ -5598,8 +5573,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMFADeviceTagsRequest'], - shapes: shapes, resultWrapper: 'ListMFADeviceTagsResult', ); return ListMFADeviceTagsResponse.fromXml($result); @@ -5654,10 +5627,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListMFADevices', @@ -5665,8 +5639,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMFADevicesRequest'], - shapes: shapes, resultWrapper: 'ListMFADevicesResult', ); return ListMFADevicesResponse.fromXml($result); @@ -5724,10 +5696,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListOpenIDConnectProviderTags', @@ -5735,8 +5708,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListOpenIDConnectProviderTagsRequest'], - shapes: shapes, resultWrapper: 'ListOpenIDConnectProviderTagsResult', ); return ListOpenIDConnectProviderTagsResponse.fromXml($result); @@ -5755,7 +5726,7 @@ class Iam { /// May throw [ServiceFailureException]. Future listOpenIDConnectProviders() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListOpenIDConnectProviders', @@ -5763,8 +5734,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListOpenIDConnectProvidersRequest'], - shapes: shapes, resultWrapper: 'ListOpenIDConnectProvidersResult', ); return ListOpenIDConnectProvidersResponse.fromXml($result); @@ -5868,14 +5837,15 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - onlyAttached?.also((arg) => $request['OnlyAttached'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); - policyUsageFilter - ?.also((arg) => $request['PolicyUsageFilter'] = arg.toValue()); - scope?.also((arg) => $request['Scope'] = arg.toValue()); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (onlyAttached != null) 'OnlyAttached': onlyAttached.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + if (policyUsageFilter != null) + 'PolicyUsageFilter': policyUsageFilter.toValue(), + if (scope != null) 'Scope': scope.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListPolicies', @@ -5883,8 +5853,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListPoliciesResult', ); return ListPoliciesResponse.fromXml($result); @@ -5967,10 +5935,15 @@ class Iam { required List serviceNamespaces, String? marker, }) async { - final $request = {}; - $request['Arn'] = arn; - $request['ServiceNamespaces'] = serviceNamespaces; - marker?.also((arg) => $request['Marker'] = arg); + final $request = { + 'Arn': arn, + if (serviceNamespaces.isEmpty) + 'ServiceNamespaces': '' + else + for (var i1 = 0; i1 < serviceNamespaces.length; i1++) + 'ServiceNamespaces.member.${i1 + 1}': serviceNamespaces[i1], + if (marker != null) 'Marker': marker, + }; final $result = await _protocol.send( $request, action: 'ListPoliciesGrantingServiceAccess', @@ -5978,8 +5951,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPoliciesGrantingServiceAccessRequest'], - shapes: shapes, resultWrapper: 'ListPoliciesGrantingServiceAccessResult', ); return ListPoliciesGrantingServiceAccessResponse.fromXml($result); @@ -6032,10 +6003,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['PolicyArn'] = policyArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'PolicyArn': policyArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListPolicyTags', @@ -6043,8 +6015,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPolicyTagsRequest'], - shapes: shapes, resultWrapper: 'ListPolicyTagsResult', ); return ListPolicyTagsResponse.fromXml($result); @@ -6100,10 +6070,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['PolicyArn'] = policyArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'PolicyArn': policyArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListPolicyVersions', @@ -6111,8 +6082,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPolicyVersionsRequest'], - shapes: shapes, resultWrapper: 'ListPolicyVersionsResult', ); return ListPolicyVersionsResponse.fromXml($result); @@ -6172,10 +6141,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListRolePolicies', @@ -6183,8 +6153,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRolePoliciesRequest'], - shapes: shapes, resultWrapper: 'ListRolePoliciesResult', ); return ListRolePoliciesResponse.fromXml($result); @@ -6236,10 +6204,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListRoleTags', @@ -6247,8 +6216,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRoleTagsRequest'], - shapes: shapes, resultWrapper: 'ListRoleTagsResult', ); return ListRoleTagsResponse.fromXml($result); @@ -6325,10 +6292,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListRoles', @@ -6336,8 +6304,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRolesRequest'], - shapes: shapes, resultWrapper: 'ListRolesResult', ); return ListRolesResponse.fromXml($result); @@ -6395,10 +6361,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListSAMLProviderTags', @@ -6406,8 +6373,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSAMLProviderTagsRequest'], - shapes: shapes, resultWrapper: 'ListSAMLProviderTagsResult', ); return ListSAMLProviderTagsResponse.fromXml($result); @@ -6426,7 +6391,7 @@ class Iam { /// /// May throw [ServiceFailureException]. Future listSAMLProviders() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListSAMLProviders', @@ -6434,8 +6399,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSAMLProvidersRequest'], - shapes: shapes, resultWrapper: 'ListSAMLProvidersResult', ); return ListSAMLProvidersResponse.fromXml($result); @@ -6496,10 +6459,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListSSHPublicKeys', @@ -6507,8 +6471,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSSHPublicKeysRequest'], - shapes: shapes, resultWrapper: 'ListSSHPublicKeysResult', ); return ListSSHPublicKeysResponse.fromXml($result); @@ -6568,10 +6530,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'ServerCertificateName': serverCertificateName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListServerCertificateTags', @@ -6579,8 +6542,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListServerCertificateTagsRequest'], - shapes: shapes, resultWrapper: 'ListServerCertificateTagsResult', ); return ListServerCertificateTagsResponse.fromXml($result); @@ -6650,10 +6611,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListServerCertificates', @@ -6661,8 +6623,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListServerCertificatesRequest'], - shapes: shapes, resultWrapper: 'ListServerCertificatesResult', ); return ListServerCertificatesResponse.fromXml($result); @@ -6699,9 +6659,10 @@ class Iam { String? serviceName, String? userName, }) async { - final $request = {}; - serviceName?.also((arg) => $request['ServiceName'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (serviceName != null) 'ServiceName': serviceName, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListServiceSpecificCredentials', @@ -6709,8 +6670,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListServiceSpecificCredentialsRequest'], - shapes: shapes, resultWrapper: 'ListServiceSpecificCredentialsResult', ); return ListServiceSpecificCredentialsResponse.fromXml($result); @@ -6770,10 +6729,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListSigningCertificates', @@ -6781,8 +6741,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSigningCertificatesRequest'], - shapes: shapes, resultWrapper: 'ListSigningCertificatesResult', ); return ListSigningCertificatesResponse.fromXml($result); @@ -6841,10 +6799,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListUserPolicies', @@ -6852,8 +6811,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListUserPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListUserPoliciesResult', ); return ListUserPoliciesResponse.fromXml($result); @@ -6905,10 +6862,11 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListUserTags', @@ -6916,8 +6874,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListUserTagsRequest'], - shapes: shapes, resultWrapper: 'ListUserTagsResult', ); return ListUserTagsResponse.fromXml($result); @@ -6989,10 +6945,11 @@ class Iam { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListUsers', @@ -7000,8 +6957,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListUsersRequest'], - shapes: shapes, resultWrapper: 'ListUsersResult', ); return ListUsersResponse.fromXml($result); @@ -7055,11 +7010,12 @@ class Iam { 1, 1000, ); - final $request = {}; - assignmentStatus - ?.also((arg) => $request['AssignmentStatus'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + if (assignmentStatus != null) + 'AssignmentStatus': assignmentStatus.toValue(), + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListVirtualMFADevices', @@ -7067,8 +7023,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListVirtualMFADevicesRequest'], - shapes: shapes, resultWrapper: 'ListVirtualMFADevicesResult', ); return ListVirtualMFADevicesResponse.fromXml($result); @@ -7151,10 +7105,11 @@ class Iam { required String policyDocument, required String policyName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; + final $request = { + 'GroupName': groupName, + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'PutGroupPolicy', @@ -7162,8 +7117,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutGroupPolicyRequest'], - shapes: shapes, ); } @@ -7211,9 +7164,10 @@ class Iam { required String permissionsBoundary, required String roleName, }) async { - final $request = {}; - $request['PermissionsBoundary'] = permissionsBoundary; - $request['RoleName'] = roleName; + final $request = { + 'PermissionsBoundary': permissionsBoundary, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'PutRolePermissionsBoundary', @@ -7221,8 +7175,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutRolePermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -7315,10 +7267,11 @@ class Iam { required String policyName, required String roleName, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; - $request['RoleName'] = roleName; + final $request = { + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'PutRolePolicy', @@ -7326,8 +7279,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutRolePolicyRequest'], - shapes: shapes, ); } @@ -7372,9 +7323,10 @@ class Iam { required String permissionsBoundary, required String userName, }) async { - final $request = {}; - $request['PermissionsBoundary'] = permissionsBoundary; - $request['UserName'] = userName; + final $request = { + 'PermissionsBoundary': permissionsBoundary, + 'UserName': userName, + }; await _protocol.send( $request, action: 'PutUserPermissionsBoundary', @@ -7382,8 +7334,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutUserPermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -7463,10 +7413,11 @@ class Iam { required String policyName, required String userName, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; - $request['UserName'] = userName; + final $request = { + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'PutUserPolicy', @@ -7474,8 +7425,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutUserPolicyRequest'], - shapes: shapes, ); } @@ -7508,9 +7457,10 @@ class Iam { required String clientID, required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['ClientID'] = clientID; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'ClientID': clientID, + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; await _protocol.send( $request, action: 'RemoveClientIDFromOpenIDConnectProvider', @@ -7518,8 +7468,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveClientIDFromOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -7562,9 +7510,10 @@ class Iam { required String instanceProfileName, required String roleName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['RoleName'] = roleName; + final $request = { + 'InstanceProfileName': instanceProfileName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'RemoveRoleFromInstanceProfile', @@ -7572,8 +7521,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromInstanceProfileRequest'], - shapes: shapes, ); } @@ -7602,9 +7549,10 @@ class Iam { required String groupName, required String userName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['UserName'] = userName; + final $request = { + 'GroupName': groupName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'RemoveUserFromGroup', @@ -7612,8 +7560,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveUserFromGroupRequest'], - shapes: shapes, ); } @@ -7645,9 +7591,10 @@ class Iam { required String serviceSpecificCredentialId, String? userName, }) async { - final $request = {}; - $request['ServiceSpecificCredentialId'] = serviceSpecificCredentialId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'ServiceSpecificCredentialId': serviceSpecificCredentialId, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ResetServiceSpecificCredential', @@ -7655,8 +7602,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetServiceSpecificCredentialRequest'], - shapes: shapes, resultWrapper: 'ResetServiceSpecificCredentialResult', ); return ResetServiceSpecificCredentialResponse.fromXml($result); @@ -7707,11 +7652,12 @@ class Iam { required String serialNumber, required String userName, }) async { - final $request = {}; - $request['AuthenticationCode1'] = authenticationCode1; - $request['AuthenticationCode2'] = authenticationCode2; - $request['SerialNumber'] = serialNumber; - $request['UserName'] = userName; + final $request = { + 'AuthenticationCode1': authenticationCode1, + 'AuthenticationCode2': authenticationCode2, + 'SerialNumber': serialNumber, + 'UserName': userName, + }; await _protocol.send( $request, action: 'ResyncMFADevice', @@ -7719,8 +7665,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResyncMFADeviceRequest'], - shapes: shapes, ); } @@ -7759,9 +7703,10 @@ class Iam { required String policyArn, required String versionId, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['VersionId'] = versionId; + final $request = { + 'PolicyArn': policyArn, + 'VersionId': versionId, + }; await _protocol.send( $request, action: 'SetDefaultPolicyVersion', @@ -7769,8 +7714,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetDefaultPolicyVersionRequest'], - shapes: shapes, ); } @@ -7819,9 +7762,9 @@ class Iam { Future setSecurityTokenServicePreferences({ required GlobalEndpointTokenVersion globalEndpointTokenVersion, }) async { - final $request = {}; - $request['GlobalEndpointTokenVersion'] = - globalEndpointTokenVersion.toValue(); + final $request = { + 'GlobalEndpointTokenVersion': globalEndpointTokenVersion.toValue(), + }; await _protocol.send( $request, action: 'SetSecurityTokenServicePreferences', @@ -7829,8 +7772,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSecurityTokenServicePreferencesRequest'], - shapes: shapes, ); } @@ -8119,20 +8060,45 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['ActionNames'] = actionNames; - $request['PolicyInputList'] = policyInputList; - callerArn?.also((arg) => $request['CallerArn'] = arg); - contextEntries?.also((arg) => $request['ContextEntries'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - permissionsBoundaryPolicyInputList - ?.also((arg) => $request['PermissionsBoundaryPolicyInputList'] = arg); - resourceArns?.also((arg) => $request['ResourceArns'] = arg); - resourceHandlingOption - ?.also((arg) => $request['ResourceHandlingOption'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - resourcePolicy?.also((arg) => $request['ResourcePolicy'] = arg); + final $request = { + if (actionNames.isEmpty) + 'ActionNames': '' + else + for (var i1 = 0; i1 < actionNames.length; i1++) + 'ActionNames.member.${i1 + 1}': actionNames[i1], + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + if (callerArn != null) 'CallerArn': callerArn, + if (contextEntries != null) + if (contextEntries.isEmpty) + 'ContextEntries': '' + else + for (var i1 = 0; i1 < contextEntries.length; i1++) + for (var e3 in contextEntries[i1].toQueryMap().entries) + 'ContextEntries.member.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (permissionsBoundaryPolicyInputList != null) + if (permissionsBoundaryPolicyInputList.isEmpty) + 'PermissionsBoundaryPolicyInputList': '' + else + for (var i1 = 0; i1 < permissionsBoundaryPolicyInputList.length; i1++) + 'PermissionsBoundaryPolicyInputList.member.${i1 + 1}': + permissionsBoundaryPolicyInputList[i1], + if (resourceArns != null) + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (resourceHandlingOption != null) + 'ResourceHandlingOption': resourceHandlingOption, + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (resourcePolicy != null) 'ResourcePolicy': resourcePolicy, + }; final $result = await _protocol.send( $request, action: 'SimulateCustomPolicy', @@ -8140,8 +8106,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SimulateCustomPolicyRequest'], - shapes: shapes, resultWrapper: 'SimulateCustomPolicyResult', ); return SimulatePolicyResponse.fromXml($result); @@ -8461,21 +8425,47 @@ class Iam { 1, 1000, ); - final $request = {}; - $request['ActionNames'] = actionNames; - $request['PolicySourceArn'] = policySourceArn; - callerArn?.also((arg) => $request['CallerArn'] = arg); - contextEntries?.also((arg) => $request['ContextEntries'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - permissionsBoundaryPolicyInputList - ?.also((arg) => $request['PermissionsBoundaryPolicyInputList'] = arg); - policyInputList?.also((arg) => $request['PolicyInputList'] = arg); - resourceArns?.also((arg) => $request['ResourceArns'] = arg); - resourceHandlingOption - ?.also((arg) => $request['ResourceHandlingOption'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - resourcePolicy?.also((arg) => $request['ResourcePolicy'] = arg); + final $request = { + if (actionNames.isEmpty) + 'ActionNames': '' + else + for (var i1 = 0; i1 < actionNames.length; i1++) + 'ActionNames.member.${i1 + 1}': actionNames[i1], + 'PolicySourceArn': policySourceArn, + if (callerArn != null) 'CallerArn': callerArn, + if (contextEntries != null) + if (contextEntries.isEmpty) + 'ContextEntries': '' + else + for (var i1 = 0; i1 < contextEntries.length; i1++) + for (var e3 in contextEntries[i1].toQueryMap().entries) + 'ContextEntries.member.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (permissionsBoundaryPolicyInputList != null) + if (permissionsBoundaryPolicyInputList.isEmpty) + 'PermissionsBoundaryPolicyInputList': '' + else + for (var i1 = 0; i1 < permissionsBoundaryPolicyInputList.length; i1++) + 'PermissionsBoundaryPolicyInputList.member.${i1 + 1}': + permissionsBoundaryPolicyInputList[i1], + if (policyInputList != null) + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + if (resourceArns != null) + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (resourceHandlingOption != null) + 'ResourceHandlingOption': resourceHandlingOption, + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (resourcePolicy != null) 'ResourcePolicy': resourcePolicy, + }; final $result = await _protocol.send( $request, action: 'SimulatePrincipalPolicy', @@ -8483,8 +8473,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SimulatePrincipalPolicyRequest'], - shapes: shapes, resultWrapper: 'SimulatePrincipalPolicyResult', ); return SimulatePolicyResponse.fromXml($result); @@ -8550,9 +8538,15 @@ class Iam { required String instanceProfileName, required List tags, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['Tags'] = tags; + final $request = { + 'InstanceProfileName': instanceProfileName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagInstanceProfile', @@ -8560,8 +8554,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagInstanceProfileRequest'], - shapes: shapes, ); } @@ -8628,9 +8620,15 @@ class Iam { required String serialNumber, required List tags, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - $request['Tags'] = tags; + final $request = { + 'SerialNumber': serialNumber, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagMFADevice', @@ -8638,8 +8636,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagMFADeviceRequest'], - shapes: shapes, ); } @@ -8707,9 +8703,15 @@ class Iam { required String openIDConnectProviderArn, required List tags, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - $request['Tags'] = tags; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagOpenIDConnectProvider', @@ -8717,8 +8719,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -8783,9 +8783,15 @@ class Iam { required String policyArn, required List tags, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['Tags'] = tags; + final $request = { + 'PolicyArn': policyArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagPolicy', @@ -8793,8 +8799,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagPolicyRequest'], - shapes: shapes, ); } @@ -8868,9 +8872,15 @@ class Iam { required String roleName, required List tags, }) async { - final $request = {}; - $request['RoleName'] = roleName; - $request['Tags'] = tags; + final $request = { + 'RoleName': roleName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagRole', @@ -8878,8 +8888,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagRoleRequest'], - shapes: shapes, ); } @@ -8947,9 +8955,15 @@ class Iam { required String sAMLProviderArn, required List tags, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; - $request['Tags'] = tags; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagSAMLProvider', @@ -8957,8 +8971,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagSAMLProviderRequest'], - shapes: shapes, ); } @@ -9033,9 +9045,15 @@ class Iam { required String serverCertificateName, required List tags, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - $request['Tags'] = tags; + final $request = { + 'ServerCertificateName': serverCertificateName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagServerCertificate', @@ -9043,8 +9061,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagServerCertificateRequest'], - shapes: shapes, ); } @@ -9117,9 +9133,15 @@ class Iam { required List tags, required String userName, }) async { - final $request = {}; - $request['Tags'] = tags; - $request['UserName'] = userName; + final $request = { + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + 'UserName': userName, + }; await _protocol.send( $request, action: 'TagUser', @@ -9127,8 +9149,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagUserRequest'], - shapes: shapes, ); } @@ -9157,9 +9177,14 @@ class Iam { required String instanceProfileName, required List tagKeys, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['TagKeys'] = tagKeys; + final $request = { + 'InstanceProfileName': instanceProfileName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagInstanceProfile', @@ -9167,8 +9192,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagInstanceProfileRequest'], - shapes: shapes, ); } @@ -9199,9 +9222,14 @@ class Iam { required String serialNumber, required List tagKeys, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - $request['TagKeys'] = tagKeys; + final $request = { + 'SerialNumber': serialNumber, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagMFADevice', @@ -9209,8 +9237,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagMFADeviceRequest'], - shapes: shapes, ); } @@ -9242,9 +9268,14 @@ class Iam { required String openIDConnectProviderArn, required List tagKeys, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagOpenIDConnectProvider', @@ -9252,8 +9283,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -9283,9 +9312,14 @@ class Iam { required String policyArn, required List tagKeys, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'PolicyArn': policyArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagPolicy', @@ -9293,8 +9327,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagPolicyRequest'], - shapes: shapes, ); } @@ -9323,9 +9355,14 @@ class Iam { required String roleName, required List tagKeys, }) async { - final $request = {}; - $request['RoleName'] = roleName; - $request['TagKeys'] = tagKeys; + final $request = { + 'RoleName': roleName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagRole', @@ -9333,8 +9370,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagRoleRequest'], - shapes: shapes, ); } @@ -9367,9 +9402,14 @@ class Iam { required String sAMLProviderArn, required List tagKeys, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagSAMLProvider', @@ -9377,8 +9417,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagSAMLProviderRequest'], - shapes: shapes, ); } @@ -9415,9 +9453,14 @@ class Iam { required String serverCertificateName, required List tagKeys, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ServerCertificateName': serverCertificateName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagServerCertificate', @@ -9425,8 +9468,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagServerCertificateRequest'], - shapes: shapes, ); } @@ -9454,9 +9495,14 @@ class Iam { required List tagKeys, required String userName, }) async { - final $request = {}; - $request['TagKeys'] = tagKeys; - $request['UserName'] = userName; + final $request = { + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + 'UserName': userName, + }; await _protocol.send( $request, action: 'UntagUser', @@ -9464,8 +9510,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagUserRequest'], - shapes: shapes, ); } @@ -9515,10 +9559,11 @@ class Iam { required StatusType status, String? userName, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; - $request['Status'] = status.toValue(); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'AccessKeyId': accessKeyId, + 'Status': status.toValue(), + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateAccessKey', @@ -9526,8 +9571,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAccessKeyRequest'], - shapes: shapes, ); } @@ -9666,21 +9709,22 @@ class Iam { 1, 24, ); - final $request = {}; - allowUsersToChangePassword - ?.also((arg) => $request['AllowUsersToChangePassword'] = arg); - hardExpiry?.also((arg) => $request['HardExpiry'] = arg); - maxPasswordAge?.also((arg) => $request['MaxPasswordAge'] = arg); - minimumPasswordLength - ?.also((arg) => $request['MinimumPasswordLength'] = arg); - passwordReusePrevention - ?.also((arg) => $request['PasswordReusePrevention'] = arg); - requireLowercaseCharacters - ?.also((arg) => $request['RequireLowercaseCharacters'] = arg); - requireNumbers?.also((arg) => $request['RequireNumbers'] = arg); - requireSymbols?.also((arg) => $request['RequireSymbols'] = arg); - requireUppercaseCharacters - ?.also((arg) => $request['RequireUppercaseCharacters'] = arg); + final $request = { + if (allowUsersToChangePassword != null) + 'AllowUsersToChangePassword': allowUsersToChangePassword.toString(), + if (hardExpiry != null) 'HardExpiry': hardExpiry.toString(), + if (maxPasswordAge != null) 'MaxPasswordAge': maxPasswordAge.toString(), + if (minimumPasswordLength != null) + 'MinimumPasswordLength': minimumPasswordLength.toString(), + if (passwordReusePrevention != null) + 'PasswordReusePrevention': passwordReusePrevention.toString(), + if (requireLowercaseCharacters != null) + 'RequireLowercaseCharacters': requireLowercaseCharacters.toString(), + if (requireNumbers != null) 'RequireNumbers': requireNumbers.toString(), + if (requireSymbols != null) 'RequireSymbols': requireSymbols.toString(), + if (requireUppercaseCharacters != null) + 'RequireUppercaseCharacters': requireUppercaseCharacters.toString(), + }; await _protocol.send( $request, action: 'UpdateAccountPasswordPolicy', @@ -9688,8 +9732,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAccountPasswordPolicyRequest'], - shapes: shapes, ); } @@ -9743,9 +9785,10 @@ class Iam { required String policyDocument, required String roleName, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['RoleName'] = roleName; + final $request = { + 'PolicyDocument': policyDocument, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'UpdateAssumeRolePolicy', @@ -9753,8 +9796,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAssumeRolePolicyRequest'], - shapes: shapes, ); } @@ -9814,10 +9855,11 @@ class Iam { String? newGroupName, String? newPath, }) async { - final $request = {}; - $request['GroupName'] = groupName; - newGroupName?.also((arg) => $request['NewGroupName'] = arg); - newPath?.also((arg) => $request['NewPath'] = arg); + final $request = { + 'GroupName': groupName, + if (newGroupName != null) 'NewGroupName': newGroupName, + if (newPath != null) 'NewPath': newPath, + }; await _protocol.send( $request, action: 'UpdateGroup', @@ -9825,8 +9867,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateGroupRequest'], - shapes: shapes, ); } @@ -9887,11 +9927,12 @@ class Iam { String? password, bool? passwordResetRequired, }) async { - final $request = {}; - $request['UserName'] = userName; - password?.also((arg) => $request['Password'] = arg); - passwordResetRequired - ?.also((arg) => $request['PasswordResetRequired'] = arg); + final $request = { + 'UserName': userName, + if (password != null) 'Password': password, + if (passwordResetRequired != null) + 'PasswordResetRequired': passwordResetRequired.toString(), + }; await _protocol.send( $request, action: 'UpdateLoginProfile', @@ -9899,8 +9940,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateLoginProfileRequest'], - shapes: shapes, ); } @@ -9953,9 +9992,14 @@ class Iam { required String openIDConnectProviderArn, required List thumbprintList, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - $request['ThumbprintList'] = thumbprintList; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (thumbprintList.isEmpty) + 'ThumbprintList': '' + else + for (var i1 = 0; i1 < thumbprintList.length; i1++) + 'ThumbprintList.member.${i1 + 1}': thumbprintList[i1], + }; await _protocol.send( $request, action: 'UpdateOpenIDConnectProviderThumbprint', @@ -9963,8 +10007,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateOpenIDConnectProviderThumbprintRequest'], - shapes: shapes, ); } @@ -10014,10 +10056,12 @@ class Iam { 3600, 43200, ); - final $request = {}; - $request['RoleName'] = roleName; - description?.also((arg) => $request['Description'] = arg); - maxSessionDuration?.also((arg) => $request['MaxSessionDuration'] = arg); + final $request = { + 'RoleName': roleName, + if (description != null) 'Description': description, + if (maxSessionDuration != null) + 'MaxSessionDuration': maxSessionDuration.toString(), + }; await _protocol.send( $request, action: 'UpdateRole', @@ -10025,8 +10069,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateRoleRequest'], - shapes: shapes, resultWrapper: 'UpdateRoleResult', ); } @@ -10050,9 +10092,10 @@ class Iam { required String description, required String roleName, }) async { - final $request = {}; - $request['Description'] = description; - $request['RoleName'] = roleName; + final $request = { + 'Description': description, + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'UpdateRoleDescription', @@ -10060,8 +10103,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateRoleDescriptionRequest'], - shapes: shapes, resultWrapper: 'UpdateRoleDescriptionResult', ); return UpdateRoleDescriptionResponse.fromXml($result); @@ -10099,9 +10140,10 @@ class Iam { required String sAMLMetadataDocument, required String sAMLProviderArn, }) async { - final $request = {}; - $request['SAMLMetadataDocument'] = sAMLMetadataDocument; - $request['SAMLProviderArn'] = sAMLProviderArn; + final $request = { + 'SAMLMetadataDocument': sAMLMetadataDocument, + 'SAMLProviderArn': sAMLProviderArn, + }; final $result = await _protocol.send( $request, action: 'UpdateSAMLProvider', @@ -10109,8 +10151,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSAMLProviderRequest'], - shapes: shapes, resultWrapper: 'UpdateSAMLProviderResult', ); return UpdateSAMLProviderResponse.fromXml($result); @@ -10154,10 +10194,11 @@ class Iam { required StatusType status, required String userName, }) async { - final $request = {}; - $request['SSHPublicKeyId'] = sSHPublicKeyId; - $request['Status'] = status.toValue(); - $request['UserName'] = userName; + final $request = { + 'SSHPublicKeyId': sSHPublicKeyId, + 'Status': status.toValue(), + 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateSSHPublicKey', @@ -10165,8 +10206,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSSHPublicKeyRequest'], - shapes: shapes, ); } @@ -10235,11 +10274,12 @@ class Iam { String? newPath, String? newServerCertificateName, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - newPath?.also((arg) => $request['NewPath'] = arg); - newServerCertificateName - ?.also((arg) => $request['NewServerCertificateName'] = arg); + final $request = { + 'ServerCertificateName': serverCertificateName, + if (newPath != null) 'NewPath': newPath, + if (newServerCertificateName != null) + 'NewServerCertificateName': newServerCertificateName, + }; await _protocol.send( $request, action: 'UpdateServerCertificate', @@ -10247,8 +10287,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServerCertificateRequest'], - shapes: shapes, ); } @@ -10284,10 +10322,11 @@ class Iam { required StatusType status, String? userName, }) async { - final $request = {}; - $request['ServiceSpecificCredentialId'] = serviceSpecificCredentialId; - $request['Status'] = status.toValue(); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'ServiceSpecificCredentialId': serviceSpecificCredentialId, + 'Status': status.toValue(), + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateServiceSpecificCredential', @@ -10295,8 +10334,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServiceSpecificCredentialRequest'], - shapes: shapes, ); } @@ -10340,10 +10377,11 @@ class Iam { required StatusType status, String? userName, }) async { - final $request = {}; - $request['CertificateId'] = certificateId; - $request['Status'] = status.toValue(); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'CertificateId': certificateId, + 'Status': status.toValue(), + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateSigningCertificate', @@ -10351,8 +10389,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSigningCertificateRequest'], - shapes: shapes, ); } @@ -10414,10 +10450,11 @@ class Iam { String? newPath, String? newUserName, }) async { - final $request = {}; - $request['UserName'] = userName; - newPath?.also((arg) => $request['NewPath'] = arg); - newUserName?.also((arg) => $request['NewUserName'] = arg); + final $request = { + 'UserName': userName, + if (newPath != null) 'NewPath': newPath, + if (newUserName != null) 'NewUserName': newUserName, + }; await _protocol.send( $request, action: 'UpdateUser', @@ -10425,8 +10462,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateUserRequest'], - shapes: shapes, ); } @@ -10481,9 +10516,10 @@ class Iam { required String sSHPublicKeyBody, required String userName, }) async { - final $request = {}; - $request['SSHPublicKeyBody'] = sSHPublicKeyBody; - $request['UserName'] = userName; + final $request = { + 'SSHPublicKeyBody': sSHPublicKeyBody, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'UploadSSHPublicKey', @@ -10491,8 +10527,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UploadSSHPublicKeyRequest'], - shapes: shapes, resultWrapper: 'UploadSSHPublicKeyResult', ); return UploadSSHPublicKeyResponse.fromXml($result); @@ -10659,13 +10693,20 @@ class Iam { String? path, List? tags, }) async { - final $request = {}; - $request['CertificateBody'] = certificateBody; - $request['PrivateKey'] = privateKey; - $request['ServerCertificateName'] = serverCertificateName; - certificateChain?.also((arg) => $request['CertificateChain'] = arg); - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CertificateBody': certificateBody, + 'PrivateKey': privateKey, + 'ServerCertificateName': serverCertificateName, + if (certificateChain != null) 'CertificateChain': certificateChain, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'UploadServerCertificate', @@ -10673,8 +10714,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UploadServerCertificateRequest'], - shapes: shapes, resultWrapper: 'UploadServerCertificateResult', ); return UploadServerCertificateResponse.fromXml($result); @@ -10752,9 +10791,10 @@ class Iam { required String certificateBody, String? userName, }) async { - final $request = {}; - $request['CertificateBody'] = certificateBody; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'CertificateBody': certificateBody, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'UploadSigningCertificate', @@ -10762,8 +10802,6 @@ class Iam { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UploadSigningCertificateRequest'], - shapes: shapes, resultWrapper: 'UploadSigningCertificateResult', ); return UploadSigningCertificateResponse.fromXml($result); @@ -11214,6 +11252,22 @@ class ContextEntry { if (contextKeyValues != null) 'ContextKeyValues': contextKeyValues, }; } + + Map toQueryMap() { + final contextKeyName = this.contextKeyName; + final contextKeyType = this.contextKeyType; + final contextKeyValues = this.contextKeyValues; + return { + if (contextKeyName != null) 'ContextKeyName': contextKeyName, + if (contextKeyType != null) 'ContextKeyType': contextKeyType.toValue(), + if (contextKeyValues != null) + if (contextKeyValues.isEmpty) + 'ContextKeyValues': '' + else + for (var i1 = 0; i1 < contextKeyValues.length; i1++) + 'ContextKeyValues.member.${i1 + 1}': contextKeyValues[i1], + }; + } } enum ContextKeyTypeEnum { @@ -17372,6 +17426,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } /// Contains details about the most recent attempt to access an action within diff --git a/aws_client/lib/src/generated/iam/v2010_05_08.meta.dart b/aws_client/lib/src/generated/iam/v2010_05_08.meta.dart deleted file mode 100644 index 5fc608aa1..000000000 --- a/aws_client/lib/src/generated/iam/v2010_05_08.meta.dart +++ /dev/null @@ -1,3272 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AccessAdvisorUsageGranularityType": {"type": "string", "flattened": false}, - "AccessDetail": { - "type": "structure", - "members": { - "ServiceName": {"shape": "serviceNameType", "flattened": false}, - "ServiceNamespace": {"shape": "serviceNamespaceType", "flattened": false}, - "Region": {"shape": "stringType", "flattened": false}, - "EntityPath": { - "shape": "organizationsEntityPathType", - "flattened": false - }, - "LastAuthenticatedTime": {"shape": "dateType", "flattened": false}, - "TotalAuthenticatedEntities": {"shape": "integerType", "flattened": false} - }, - "flattened": false - }, - "AccessDetails": { - "type": "list", - "member": {"shape": "AccessDetail"}, - "flattened": false - }, - "AccessKey": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "AccessKeyId": {"shape": "accessKeyIdType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false}, - "SecretAccessKey": {"shape": "accessKeySecretType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "AccessKeyLastUsed": { - "type": "structure", - "members": { - "LastUsedDate": {"shape": "dateType", "flattened": false}, - "ServiceName": {"shape": "stringType", "flattened": false}, - "Region": {"shape": "stringType", "flattened": false} - }, - "flattened": false - }, - "AccessKeyMetadata": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "AccessKeyId": {"shape": "accessKeyIdType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "ActionNameListType": { - "type": "list", - "member": {"shape": "ActionNameType"}, - "flattened": false - }, - "ActionNameType": {"type": "string", "flattened": false}, - "AddClientIDToOpenIDConnectProviderRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false}, - "ClientID": {"shape": "clientIDType", "flattened": false} - }, - "flattened": false - }, - "AddRoleToInstanceProfileRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - }, - "RoleName": {"shape": "roleNameType", "flattened": false} - }, - "flattened": false - }, - "AddUserToGroupRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "UserName": {"shape": "existingUserNameType", "flattened": false} - }, - "flattened": false - }, - "ArnListType": { - "type": "list", - "member": {"shape": "arnType"}, - "flattened": false - }, - "AttachGroupPolicyRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "AttachRolePolicyRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "AttachUserPolicyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "AttachedPermissionsBoundary": { - "type": "structure", - "members": { - "PermissionsBoundaryType": { - "shape": "PermissionsBoundaryAttachmentType", - "flattened": false - }, - "PermissionsBoundaryArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "AttachedPolicy": { - "type": "structure", - "members": { - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "BootstrapDatum": {"type": "blob", "flattened": false}, - "CertificationKeyType": {"type": "string", "flattened": false}, - "CertificationMapType": { - "type": "map", - "key": {"shape": "CertificationKeyType"}, - "value": {"shape": "CertificationValueType"}, - "flattened": false - }, - "CertificationValueType": {"type": "string", "flattened": false}, - "ChangePasswordRequest": { - "type": "structure", - "members": { - "OldPassword": {"shape": "passwordType", "flattened": false}, - "NewPassword": {"shape": "passwordType", "flattened": false} - }, - "flattened": false - }, - "ColumnNumber": {"type": "integer", "flattened": false}, - "ContextEntry": { - "type": "structure", - "members": { - "ContextKeyName": {"shape": "ContextKeyNameType", "flattened": false}, - "ContextKeyValues": { - "shape": "ContextKeyValueListType", - "flattened": false - }, - "ContextKeyType": {"shape": "ContextKeyTypeEnum", "flattened": false} - }, - "flattened": false - }, - "ContextEntryListType": { - "type": "list", - "member": {"shape": "ContextEntry"}, - "flattened": false - }, - "ContextKeyNameType": {"type": "string", "flattened": false}, - "ContextKeyNamesResultListType": { - "type": "list", - "member": {"shape": "ContextKeyNameType"}, - "flattened": false - }, - "ContextKeyTypeEnum": {"type": "string", "flattened": false}, - "ContextKeyValueListType": { - "type": "list", - "member": {"shape": "ContextKeyValueType"}, - "flattened": false - }, - "ContextKeyValueType": {"type": "string", "flattened": false}, - "CreateAccessKeyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false} - }, - "flattened": false - }, - "CreateAccessKeyResponse": { - "type": "structure", - "members": { - "AccessKey": {"shape": "AccessKey", "flattened": false} - }, - "flattened": false - }, - "CreateAccountAliasRequest": { - "type": "structure", - "members": { - "AccountAlias": {"shape": "accountAliasType", "flattened": false} - }, - "flattened": false - }, - "CreateGroupRequest": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "GroupName": {"shape": "groupNameType", "flattened": false} - }, - "flattened": false - }, - "CreateGroupResponse": { - "type": "structure", - "members": { - "Group": {"shape": "Group", "flattened": false} - }, - "flattened": false - }, - "CreateInstanceProfileRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - }, - "Path": {"shape": "pathType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreateInstanceProfileResponse": { - "type": "structure", - "members": { - "InstanceProfile": {"shape": "InstanceProfile", "flattened": false} - }, - "flattened": false - }, - "CreateLoginProfileRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "Password": {"shape": "passwordType", "flattened": false}, - "PasswordResetRequired": {"shape": "booleanType", "flattened": false} - }, - "flattened": false - }, - "CreateLoginProfileResponse": { - "type": "structure", - "members": { - "LoginProfile": {"shape": "LoginProfile", "flattened": false} - }, - "flattened": false - }, - "CreateOpenIDConnectProviderRequest": { - "type": "structure", - "members": { - "Url": {"shape": "OpenIDConnectProviderUrlType", "flattened": false}, - "ClientIDList": {"shape": "clientIDListType", "flattened": false}, - "ThumbprintList": {"shape": "thumbprintListType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreateOpenIDConnectProviderResponse": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreatePolicyRequest": { - "type": "structure", - "members": { - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "Path": {"shape": "policyPathType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false}, - "Description": {"shape": "policyDescriptionType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreatePolicyResponse": { - "type": "structure", - "members": { - "Policy": {"shape": "Policy", "flattened": false} - }, - "flattened": false - }, - "CreatePolicyVersionRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false}, - "SetAsDefault": {"shape": "booleanType", "flattened": false} - }, - "flattened": false - }, - "CreatePolicyVersionResponse": { - "type": "structure", - "members": { - "PolicyVersion": {"shape": "PolicyVersion", "flattened": false} - }, - "flattened": false - }, - "CreateRoleRequest": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "RoleName": {"shape": "roleNameType", "flattened": false}, - "AssumeRolePolicyDocument": { - "shape": "policyDocumentType", - "flattened": false - }, - "Description": {"shape": "roleDescriptionType", "flattened": false}, - "MaxSessionDuration": { - "shape": "roleMaxSessionDurationType", - "flattened": false - }, - "PermissionsBoundary": {"shape": "arnType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreateRoleResponse": { - "type": "structure", - "members": { - "Role": {"shape": "Role", "flattened": false} - }, - "flattened": false - }, - "CreateSAMLProviderRequest": { - "type": "structure", - "members": { - "SAMLMetadataDocument": { - "shape": "SAMLMetadataDocumentType", - "flattened": false - }, - "Name": {"shape": "SAMLProviderNameType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreateSAMLProviderResponse": { - "type": "structure", - "members": { - "SAMLProviderArn": {"shape": "arnType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreateServiceLinkedRoleRequest": { - "type": "structure", - "members": { - "AWSServiceName": {"shape": "groupNameType", "flattened": false}, - "Description": {"shape": "roleDescriptionType", "flattened": false}, - "CustomSuffix": {"shape": "customSuffixType", "flattened": false} - }, - "flattened": false - }, - "CreateServiceLinkedRoleResponse": { - "type": "structure", - "members": { - "Role": {"shape": "Role", "flattened": false} - }, - "flattened": false - }, - "CreateServiceSpecificCredentialRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "ServiceName": {"shape": "serviceName", "flattened": false} - }, - "flattened": false - }, - "CreateServiceSpecificCredentialResponse": { - "type": "structure", - "members": { - "ServiceSpecificCredential": { - "shape": "ServiceSpecificCredential", - "flattened": false - } - }, - "flattened": false - }, - "CreateUserRequest": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "UserName": {"shape": "userNameType", "flattened": false}, - "PermissionsBoundary": {"shape": "arnType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreateUserResponse": { - "type": "structure", - "members": { - "User": {"shape": "User", "flattened": false} - }, - "flattened": false - }, - "CreateVirtualMFADeviceRequest": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "VirtualMFADeviceName": { - "shape": "virtualMFADeviceName", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "CreateVirtualMFADeviceResponse": { - "type": "structure", - "members": { - "VirtualMFADevice": {"shape": "VirtualMFADevice", "flattened": false} - }, - "flattened": false - }, - "DeactivateMFADeviceRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "SerialNumber": {"shape": "serialNumberType", "flattened": false} - }, - "flattened": false - }, - "DeleteAccessKeyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "AccessKeyId": {"shape": "accessKeyIdType", "flattened": false} - }, - "flattened": false - }, - "DeleteAccountAliasRequest": { - "type": "structure", - "members": { - "AccountAlias": {"shape": "accountAliasType", "flattened": false} - }, - "flattened": false - }, - "DeleteGroupPolicyRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteGroupRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteInstanceProfileRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - } - }, - "flattened": false - }, - "DeleteLoginProfileRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteOpenIDConnectProviderRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "DeletePolicyRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "DeletePolicyVersionRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "VersionId": {"shape": "policyVersionIdType", "flattened": false} - }, - "flattened": false - }, - "DeleteRolePermissionsBoundaryRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteRolePolicyRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteRoleRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteSAMLProviderRequest": { - "type": "structure", - "members": { - "SAMLProviderArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "DeleteSSHPublicKeyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SSHPublicKeyId": {"shape": "publicKeyIdType", "flattened": false} - }, - "flattened": false - }, - "DeleteServerCertificateRequest": { - "type": "structure", - "members": { - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - } - }, - "flattened": false - }, - "DeleteServiceLinkedRoleRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteServiceLinkedRoleResponse": { - "type": "structure", - "members": { - "DeletionTaskId": {"shape": "DeletionTaskIdType", "flattened": false} - }, - "flattened": false - }, - "DeleteServiceSpecificCredentialRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "ServiceSpecificCredentialId": { - "shape": "serviceSpecificCredentialId", - "flattened": false - } - }, - "flattened": false - }, - "DeleteSigningCertificateRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "CertificateId": {"shape": "certificateIdType", "flattened": false} - }, - "flattened": false - }, - "DeleteUserPermissionsBoundaryRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteUserPolicyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteUserRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false} - }, - "flattened": false - }, - "DeleteVirtualMFADeviceRequest": { - "type": "structure", - "members": { - "SerialNumber": {"shape": "serialNumberType", "flattened": false} - }, - "flattened": false - }, - "DeletionTaskFailureReasonType": { - "type": "structure", - "members": { - "Reason": {"shape": "ReasonType", "flattened": false}, - "RoleUsageList": {"shape": "RoleUsageListType", "flattened": false} - }, - "flattened": false - }, - "DeletionTaskIdType": {"type": "string", "flattened": false}, - "DeletionTaskStatusType": {"type": "string", "flattened": false}, - "DetachGroupPolicyRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "DetachRolePolicyRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "DetachUserPolicyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "EnableMFADeviceRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "AuthenticationCode1": { - "shape": "authenticationCodeType", - "flattened": false - }, - "AuthenticationCode2": { - "shape": "authenticationCodeType", - "flattened": false - } - }, - "flattened": false - }, - "EntityDetails": { - "type": "structure", - "members": { - "EntityInfo": {"shape": "EntityInfo", "flattened": false}, - "LastAuthenticated": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "EntityInfo": { - "type": "structure", - "members": { - "Arn": {"shape": "arnType", "flattened": false}, - "Name": {"shape": "userNameType", "flattened": false}, - "Type": {"shape": "policyOwnerEntityType", "flattened": false}, - "Id": {"shape": "idType", "flattened": false}, - "Path": {"shape": "pathType", "flattened": false} - }, - "flattened": false - }, - "EntityType": {"type": "string", "flattened": false}, - "ErrorDetails": { - "type": "structure", - "members": { - "Message": {"shape": "stringType", "flattened": false}, - "Code": {"shape": "stringType", "flattened": false} - }, - "flattened": false - }, - "EvalDecisionDetailsType": { - "type": "map", - "key": {"shape": "EvalDecisionSourceType"}, - "value": {"shape": "PolicyEvaluationDecisionType"}, - "flattened": false - }, - "EvalDecisionSourceType": {"type": "string", "flattened": false}, - "EvaluationResult": { - "type": "structure", - "members": { - "EvalActionName": {"shape": "ActionNameType", "flattened": false}, - "EvalResourceName": {"shape": "ResourceNameType", "flattened": false}, - "EvalDecision": { - "shape": "PolicyEvaluationDecisionType", - "flattened": false - }, - "MatchedStatements": {"shape": "StatementListType", "flattened": false}, - "MissingContextValues": { - "shape": "ContextKeyNamesResultListType", - "flattened": false - }, - "OrganizationsDecisionDetail": { - "shape": "OrganizationsDecisionDetail", - "flattened": false - }, - "PermissionsBoundaryDecisionDetail": { - "shape": "PermissionsBoundaryDecisionDetail", - "flattened": false - }, - "EvalDecisionDetails": { - "shape": "EvalDecisionDetailsType", - "flattened": false - }, - "ResourceSpecificResults": { - "shape": "ResourceSpecificResultListType", - "flattened": false - } - }, - "flattened": false - }, - "EvaluationResultsListType": { - "type": "list", - "member": {"shape": "EvaluationResult"}, - "flattened": false - }, - "GenerateCredentialReportResponse": { - "type": "structure", - "members": { - "State": {"shape": "ReportStateType", "flattened": false}, - "Description": {"shape": "ReportStateDescriptionType", "flattened": false} - }, - "flattened": false - }, - "GenerateOrganizationsAccessReportRequest": { - "type": "structure", - "members": { - "EntityPath": { - "shape": "organizationsEntityPathType", - "flattened": false - }, - "OrganizationsPolicyId": { - "shape": "organizationsPolicyIdType", - "flattened": false - } - }, - "flattened": false - }, - "GenerateOrganizationsAccessReportResponse": { - "type": "structure", - "members": { - "JobId": {"shape": "jobIDType", "flattened": false} - }, - "flattened": false - }, - "GenerateServiceLastAccessedDetailsRequest": { - "type": "structure", - "members": { - "Arn": {"shape": "arnType", "flattened": false}, - "Granularity": { - "shape": "AccessAdvisorUsageGranularityType", - "flattened": false - } - }, - "flattened": false - }, - "GenerateServiceLastAccessedDetailsResponse": { - "type": "structure", - "members": { - "JobId": {"shape": "jobIDType", "flattened": false} - }, - "flattened": false - }, - "GetAccessKeyLastUsedRequest": { - "type": "structure", - "members": { - "AccessKeyId": {"shape": "accessKeyIdType", "flattened": false} - }, - "flattened": false - }, - "GetAccessKeyLastUsedResponse": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "AccessKeyLastUsed": {"shape": "AccessKeyLastUsed", "flattened": false} - }, - "flattened": false - }, - "GetAccountAuthorizationDetailsRequest": { - "type": "structure", - "members": { - "Filter": {"shape": "entityListType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false} - }, - "flattened": false - }, - "GetAccountAuthorizationDetailsResponse": { - "type": "structure", - "members": { - "UserDetailList": {"shape": "userDetailListType", "flattened": false}, - "GroupDetailList": {"shape": "groupDetailListType", "flattened": false}, - "RoleDetailList": {"shape": "roleDetailListType", "flattened": false}, - "Policies": {"shape": "ManagedPolicyDetailListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "GetAccountPasswordPolicyResponse": { - "type": "structure", - "members": { - "PasswordPolicy": {"shape": "PasswordPolicy", "flattened": false} - }, - "flattened": false - }, - "GetAccountSummaryResponse": { - "type": "structure", - "members": { - "SummaryMap": {"shape": "summaryMapType", "flattened": false} - }, - "flattened": false - }, - "GetContextKeysForCustomPolicyRequest": { - "type": "structure", - "members": { - "PolicyInputList": { - "shape": "SimulationPolicyListType", - "flattened": false - } - }, - "flattened": false - }, - "GetContextKeysForPolicyResponse": { - "type": "structure", - "members": { - "ContextKeyNames": { - "shape": "ContextKeyNamesResultListType", - "flattened": false - } - }, - "flattened": false - }, - "GetContextKeysForPrincipalPolicyRequest": { - "type": "structure", - "members": { - "PolicySourceArn": {"shape": "arnType", "flattened": false}, - "PolicyInputList": { - "shape": "SimulationPolicyListType", - "flattened": false - } - }, - "flattened": false - }, - "GetCredentialReportResponse": { - "type": "structure", - "members": { - "Content": {"shape": "ReportContentType", "flattened": false}, - "ReportFormat": {"shape": "ReportFormatType", "flattened": false}, - "GeneratedTime": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "GetGroupPolicyRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false} - }, - "flattened": false - }, - "GetGroupPolicyResponse": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "GetGroupRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "GetGroupResponse": { - "type": "structure", - "members": { - "Group": {"shape": "Group", "flattened": false}, - "Users": {"shape": "userListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "GetInstanceProfileRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - } - }, - "flattened": false - }, - "GetInstanceProfileResponse": { - "type": "structure", - "members": { - "InstanceProfile": {"shape": "InstanceProfile", "flattened": false} - }, - "flattened": false - }, - "GetLoginProfileRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false} - }, - "flattened": false - }, - "GetLoginProfileResponse": { - "type": "structure", - "members": { - "LoginProfile": {"shape": "LoginProfile", "flattened": false} - }, - "flattened": false - }, - "GetMFADeviceRequest": { - "type": "structure", - "members": { - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "UserName": {"shape": "userNameType", "flattened": false} - }, - "flattened": false - }, - "GetMFADeviceResponse": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "EnableDate": {"shape": "dateType", "flattened": false}, - "Certifications": {"shape": "CertificationMapType", "flattened": false} - }, - "flattened": false - }, - "GetOpenIDConnectProviderRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "GetOpenIDConnectProviderResponse": { - "type": "structure", - "members": { - "Url": {"shape": "OpenIDConnectProviderUrlType", "flattened": false}, - "ClientIDList": {"shape": "clientIDListType", "flattened": false}, - "ThumbprintList": {"shape": "thumbprintListType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "GetOrganizationsAccessReportRequest": { - "type": "structure", - "members": { - "JobId": {"shape": "jobIDType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "SortKey": {"shape": "sortKeyType", "flattened": false} - }, - "flattened": false - }, - "GetOrganizationsAccessReportResponse": { - "type": "structure", - "members": { - "JobStatus": {"shape": "jobStatusType", "flattened": false}, - "JobCreationDate": {"shape": "dateType", "flattened": false}, - "JobCompletionDate": {"shape": "dateType", "flattened": false}, - "NumberOfServicesAccessible": { - "shape": "integerType", - "flattened": false - }, - "NumberOfServicesNotAccessed": { - "shape": "integerType", - "flattened": false - }, - "AccessDetails": {"shape": "AccessDetails", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "ErrorDetails": {"shape": "ErrorDetails", "flattened": false} - }, - "flattened": false - }, - "GetPolicyRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "GetPolicyResponse": { - "type": "structure", - "members": { - "Policy": {"shape": "Policy", "flattened": false} - }, - "flattened": false - }, - "GetPolicyVersionRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "VersionId": {"shape": "policyVersionIdType", "flattened": false} - }, - "flattened": false - }, - "GetPolicyVersionResponse": { - "type": "structure", - "members": { - "PolicyVersion": {"shape": "PolicyVersion", "flattened": false} - }, - "flattened": false - }, - "GetRolePolicyRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false} - }, - "flattened": false - }, - "GetRolePolicyResponse": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "GetRoleRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false} - }, - "flattened": false - }, - "GetRoleResponse": { - "type": "structure", - "members": { - "Role": {"shape": "Role", "flattened": false} - }, - "flattened": false - }, - "GetSAMLProviderRequest": { - "type": "structure", - "members": { - "SAMLProviderArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "GetSAMLProviderResponse": { - "type": "structure", - "members": { - "SAMLMetadataDocument": { - "shape": "SAMLMetadataDocumentType", - "flattened": false - }, - "CreateDate": {"shape": "dateType", "flattened": false}, - "ValidUntil": {"shape": "dateType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "GetSSHPublicKeyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SSHPublicKeyId": {"shape": "publicKeyIdType", "flattened": false}, - "Encoding": {"shape": "encodingType", "flattened": false} - }, - "flattened": false - }, - "GetSSHPublicKeyResponse": { - "type": "structure", - "members": { - "SSHPublicKey": {"shape": "SSHPublicKey", "flattened": false} - }, - "flattened": false - }, - "GetServerCertificateRequest": { - "type": "structure", - "members": { - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - } - }, - "flattened": false - }, - "GetServerCertificateResponse": { - "type": "structure", - "members": { - "ServerCertificate": {"shape": "ServerCertificate", "flattened": false} - }, - "flattened": false - }, - "GetServiceLastAccessedDetailsRequest": { - "type": "structure", - "members": { - "JobId": {"shape": "jobIDType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false} - }, - "flattened": false - }, - "GetServiceLastAccessedDetailsResponse": { - "type": "structure", - "members": { - "JobStatus": {"shape": "jobStatusType", "flattened": false}, - "JobType": { - "shape": "AccessAdvisorUsageGranularityType", - "flattened": false - }, - "JobCreationDate": {"shape": "dateType", "flattened": false}, - "ServicesLastAccessed": { - "shape": "ServicesLastAccessed", - "flattened": false - }, - "JobCompletionDate": {"shape": "dateType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false}, - "Error": {"shape": "ErrorDetails", "flattened": false} - }, - "flattened": false - }, - "GetServiceLastAccessedDetailsWithEntitiesRequest": { - "type": "structure", - "members": { - "JobId": {"shape": "jobIDType", "flattened": false}, - "ServiceNamespace": {"shape": "serviceNamespaceType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false} - }, - "flattened": false - }, - "GetServiceLastAccessedDetailsWithEntitiesResponse": { - "type": "structure", - "members": { - "JobStatus": {"shape": "jobStatusType", "flattened": false}, - "JobCreationDate": {"shape": "dateType", "flattened": false}, - "JobCompletionDate": {"shape": "dateType", "flattened": false}, - "EntityDetailsList": { - "shape": "entityDetailsListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false}, - "Error": {"shape": "ErrorDetails", "flattened": false} - }, - "flattened": false - }, - "GetServiceLinkedRoleDeletionStatusRequest": { - "type": "structure", - "members": { - "DeletionTaskId": {"shape": "DeletionTaskIdType", "flattened": false} - }, - "flattened": false - }, - "GetServiceLinkedRoleDeletionStatusResponse": { - "type": "structure", - "members": { - "Status": {"shape": "DeletionTaskStatusType", "flattened": false}, - "Reason": {"shape": "DeletionTaskFailureReasonType", "flattened": false} - }, - "flattened": false - }, - "GetUserPolicyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false} - }, - "flattened": false - }, - "GetUserPolicyResponse": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "GetUserRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false} - }, - "flattened": false - }, - "GetUserResponse": { - "type": "structure", - "members": { - "User": {"shape": "User", "flattened": false} - }, - "flattened": false - }, - "Group": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "GroupName": {"shape": "groupNameType", "flattened": false}, - "GroupId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "GroupDetail": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "GroupName": {"shape": "groupNameType", "flattened": false}, - "GroupId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "GroupPolicyList": {"shape": "policyDetailListType", "flattened": false}, - "AttachedManagedPolicies": { - "shape": "attachedPoliciesListType", - "flattened": false - } - }, - "flattened": false - }, - "InstanceProfile": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - }, - "InstanceProfileId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "Roles": {"shape": "roleListType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "LineNumber": {"type": "integer", "flattened": false}, - "ListAccessKeysRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListAccessKeysResponse": { - "type": "structure", - "members": { - "AccessKeyMetadata": { - "shape": "accessKeyMetadataListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListAccountAliasesRequest": { - "type": "structure", - "members": { - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListAccountAliasesResponse": { - "type": "structure", - "members": { - "AccountAliases": {"shape": "accountAliasListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListAttachedGroupPoliciesRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "PathPrefix": {"shape": "policyPathType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListAttachedGroupPoliciesResponse": { - "type": "structure", - "members": { - "AttachedPolicies": { - "shape": "attachedPoliciesListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListAttachedRolePoliciesRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PathPrefix": {"shape": "policyPathType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListAttachedRolePoliciesResponse": { - "type": "structure", - "members": { - "AttachedPolicies": { - "shape": "attachedPoliciesListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListAttachedUserPoliciesRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "PathPrefix": {"shape": "policyPathType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListAttachedUserPoliciesResponse": { - "type": "structure", - "members": { - "AttachedPolicies": { - "shape": "attachedPoliciesListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListEntitiesForPolicyRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "EntityFilter": {"shape": "EntityType", "flattened": false}, - "PathPrefix": {"shape": "pathType", "flattened": false}, - "PolicyUsageFilter": {"shape": "PolicyUsageType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListEntitiesForPolicyResponse": { - "type": "structure", - "members": { - "PolicyGroups": {"shape": "PolicyGroupListType", "flattened": false}, - "PolicyUsers": {"shape": "PolicyUserListType", "flattened": false}, - "PolicyRoles": {"shape": "PolicyRoleListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListGroupPoliciesRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListGroupPoliciesResponse": { - "type": "structure", - "members": { - "PolicyNames": {"shape": "policyNameListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListGroupsForUserRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListGroupsForUserResponse": { - "type": "structure", - "members": { - "Groups": {"shape": "groupListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListGroupsRequest": { - "type": "structure", - "members": { - "PathPrefix": {"shape": "pathPrefixType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListGroupsResponse": { - "type": "structure", - "members": { - "Groups": {"shape": "groupListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListInstanceProfileTagsRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - }, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListInstanceProfileTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListInstanceProfilesForRoleRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListInstanceProfilesForRoleResponse": { - "type": "structure", - "members": { - "InstanceProfiles": { - "shape": "instanceProfileListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListInstanceProfilesRequest": { - "type": "structure", - "members": { - "PathPrefix": {"shape": "pathPrefixType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListInstanceProfilesResponse": { - "type": "structure", - "members": { - "InstanceProfiles": { - "shape": "instanceProfileListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListMFADeviceTagsRequest": { - "type": "structure", - "members": { - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListMFADeviceTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListMFADevicesRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListMFADevicesResponse": { - "type": "structure", - "members": { - "MFADevices": {"shape": "mfaDeviceListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListOpenIDConnectProviderTagsRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListOpenIDConnectProviderTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListOpenIDConnectProvidersRequest": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ListOpenIDConnectProvidersResponse": { - "type": "structure", - "members": { - "OpenIDConnectProviderList": { - "shape": "OpenIDConnectProviderListType", - "flattened": false - } - }, - "flattened": false - }, - "ListPoliciesGrantingServiceAccessEntry": { - "type": "structure", - "members": { - "ServiceNamespace": {"shape": "serviceNamespaceType", "flattened": false}, - "Policies": { - "shape": "policyGrantingServiceAccessListType", - "flattened": false - } - }, - "flattened": false - }, - "ListPoliciesGrantingServiceAccessRequest": { - "type": "structure", - "members": { - "Marker": {"shape": "markerType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "ServiceNamespaces": { - "shape": "serviceNamespaceListType", - "flattened": false - } - }, - "flattened": false - }, - "ListPoliciesGrantingServiceAccessResponse": { - "type": "structure", - "members": { - "PoliciesGrantingServiceAccess": { - "shape": "listPolicyGrantingServiceAccessResponseListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListPoliciesRequest": { - "type": "structure", - "members": { - "Scope": {"shape": "policyScopeType", "flattened": false}, - "OnlyAttached": {"shape": "booleanType", "flattened": false}, - "PathPrefix": {"shape": "policyPathType", "flattened": false}, - "PolicyUsageFilter": {"shape": "PolicyUsageType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListPoliciesResponse": { - "type": "structure", - "members": { - "Policies": {"shape": "policyListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListPolicyTagsRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListPolicyTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListPolicyVersionsRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListPolicyVersionsResponse": { - "type": "structure", - "members": { - "Versions": { - "shape": "policyDocumentVersionListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListRolePoliciesRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListRolePoliciesResponse": { - "type": "structure", - "members": { - "PolicyNames": {"shape": "policyNameListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListRoleTagsRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListRoleTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListRolesRequest": { - "type": "structure", - "members": { - "PathPrefix": {"shape": "pathPrefixType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListRolesResponse": { - "type": "structure", - "members": { - "Roles": {"shape": "roleListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListSAMLProviderTagsRequest": { - "type": "structure", - "members": { - "SAMLProviderArn": {"shape": "arnType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListSAMLProviderTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListSAMLProvidersRequest": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ListSAMLProvidersResponse": { - "type": "structure", - "members": { - "SAMLProviderList": {"shape": "SAMLProviderListType", "flattened": false} - }, - "flattened": false - }, - "ListSSHPublicKeysRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListSSHPublicKeysResponse": { - "type": "structure", - "members": { - "SSHPublicKeys": {"shape": "SSHPublicKeyListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListServerCertificateTagsRequest": { - "type": "structure", - "members": { - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - }, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListServerCertificateTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListServerCertificatesRequest": { - "type": "structure", - "members": { - "PathPrefix": {"shape": "pathPrefixType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListServerCertificatesResponse": { - "type": "structure", - "members": { - "ServerCertificateMetadataList": { - "shape": "serverCertificateMetadataListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListServiceSpecificCredentialsRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "ServiceName": {"shape": "serviceName", "flattened": false} - }, - "flattened": false - }, - "ListServiceSpecificCredentialsResponse": { - "type": "structure", - "members": { - "ServiceSpecificCredentials": { - "shape": "ServiceSpecificCredentialsListType", - "flattened": false - } - }, - "flattened": false - }, - "ListSigningCertificatesRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListSigningCertificatesResponse": { - "type": "structure", - "members": { - "Certificates": {"shape": "certificateListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListUserPoliciesRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListUserPoliciesResponse": { - "type": "structure", - "members": { - "PolicyNames": {"shape": "policyNameListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListUserTagsRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListUserTagsResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "tagListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListUsersRequest": { - "type": "structure", - "members": { - "PathPrefix": {"shape": "pathPrefixType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListUsersResponse": { - "type": "structure", - "members": { - "Users": {"shape": "userListType", "flattened": false}, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "ListVirtualMFADevicesRequest": { - "type": "structure", - "members": { - "AssignmentStatus": {"shape": "assignmentStatusType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false}, - "MaxItems": {"shape": "maxItemsType", "flattened": false} - }, - "flattened": false - }, - "ListVirtualMFADevicesResponse": { - "type": "structure", - "members": { - "VirtualMFADevices": { - "shape": "virtualMFADeviceListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "LoginProfile": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "PasswordResetRequired": {"shape": "booleanType", "flattened": false} - }, - "flattened": false - }, - "MFADevice": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "EnableDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "ManagedPolicyDetail": { - "type": "structure", - "members": { - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "Path": {"shape": "policyPathType", "flattened": false}, - "DefaultVersionId": {"shape": "policyVersionIdType", "flattened": false}, - "AttachmentCount": {"shape": "attachmentCountType", "flattened": false}, - "PermissionsBoundaryUsageCount": { - "shape": "attachmentCountType", - "flattened": false - }, - "IsAttachable": {"shape": "booleanType", "flattened": false}, - "Description": {"shape": "policyDescriptionType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "UpdateDate": {"shape": "dateType", "flattened": false}, - "PolicyVersionList": { - "shape": "policyDocumentVersionListType", - "flattened": false - } - }, - "flattened": false - }, - "ManagedPolicyDetailListType": { - "type": "list", - "member": {"shape": "ManagedPolicyDetail"}, - "flattened": false - }, - "OpenIDConnectProviderListEntry": { - "type": "structure", - "members": { - "Arn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "OpenIDConnectProviderListType": { - "type": "list", - "member": {"shape": "OpenIDConnectProviderListEntry"}, - "flattened": false - }, - "OpenIDConnectProviderUrlType": {"type": "string", "flattened": false}, - "OrganizationsDecisionDetail": { - "type": "structure", - "members": { - "AllowedByOrganizations": {"shape": "booleanType", "flattened": false} - }, - "flattened": false - }, - "PasswordPolicy": { - "type": "structure", - "members": { - "MinimumPasswordLength": { - "shape": "minimumPasswordLengthType", - "flattened": false - }, - "RequireSymbols": {"shape": "booleanType", "flattened": false}, - "RequireNumbers": {"shape": "booleanType", "flattened": false}, - "RequireUppercaseCharacters": { - "shape": "booleanType", - "flattened": false - }, - "RequireLowercaseCharacters": { - "shape": "booleanType", - "flattened": false - }, - "AllowUsersToChangePassword": { - "shape": "booleanType", - "flattened": false - }, - "ExpirePasswords": {"shape": "booleanType", "flattened": false}, - "MaxPasswordAge": {"shape": "maxPasswordAgeType", "flattened": false}, - "PasswordReusePrevention": { - "shape": "passwordReusePreventionType", - "flattened": false - }, - "HardExpiry": {"shape": "booleanObjectType", "flattened": false} - }, - "flattened": false - }, - "PermissionsBoundaryAttachmentType": {"type": "string", "flattened": false}, - "PermissionsBoundaryDecisionDetail": { - "type": "structure", - "members": { - "AllowedByPermissionsBoundary": { - "shape": "booleanType", - "flattened": false - } - }, - "flattened": false - }, - "Policy": { - "type": "structure", - "members": { - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "Path": {"shape": "policyPathType", "flattened": false}, - "DefaultVersionId": {"shape": "policyVersionIdType", "flattened": false}, - "AttachmentCount": {"shape": "attachmentCountType", "flattened": false}, - "PermissionsBoundaryUsageCount": { - "shape": "attachmentCountType", - "flattened": false - }, - "IsAttachable": {"shape": "booleanType", "flattened": false}, - "Description": {"shape": "policyDescriptionType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "UpdateDate": {"shape": "dateType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "PolicyDetail": { - "type": "structure", - "members": { - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "PolicyEvaluationDecisionType": {"type": "string", "flattened": false}, - "PolicyGrantingServiceAccess": { - "type": "structure", - "members": { - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyType": {"shape": "policyType", "flattened": false}, - "PolicyArn": {"shape": "arnType", "flattened": false}, - "EntityType": {"shape": "policyOwnerEntityType", "flattened": false}, - "EntityName": {"shape": "entityNameType", "flattened": false} - }, - "flattened": false - }, - "PolicyGroup": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "GroupId": {"shape": "idType", "flattened": false} - }, - "flattened": false - }, - "PolicyGroupListType": { - "type": "list", - "member": {"shape": "PolicyGroup"}, - "flattened": false - }, - "PolicyIdentifierType": {"type": "string", "flattened": false}, - "PolicyRole": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "RoleId": {"shape": "idType", "flattened": false} - }, - "flattened": false - }, - "PolicyRoleListType": { - "type": "list", - "member": {"shape": "PolicyRole"}, - "flattened": false - }, - "PolicySourceType": {"type": "string", "flattened": false}, - "PolicyUsageType": {"type": "string", "flattened": false}, - "PolicyUser": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "UserId": {"shape": "idType", "flattened": false} - }, - "flattened": false - }, - "PolicyUserListType": { - "type": "list", - "member": {"shape": "PolicyUser"}, - "flattened": false - }, - "PolicyVersion": { - "type": "structure", - "members": { - "Document": {"shape": "policyDocumentType", "flattened": false}, - "VersionId": {"shape": "policyVersionIdType", "flattened": false}, - "IsDefaultVersion": {"shape": "booleanType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "Position": { - "type": "structure", - "members": { - "Line": {"shape": "LineNumber", "flattened": false}, - "Column": {"shape": "ColumnNumber", "flattened": false} - }, - "flattened": false - }, - "PutGroupPolicyRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "PutRolePermissionsBoundaryRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PermissionsBoundary": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "PutRolePolicyRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "PutUserPermissionsBoundaryRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "PermissionsBoundary": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "PutUserPolicyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "PolicyName": {"shape": "policyNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "ReasonType": {"type": "string", "flattened": false}, - "RegionNameType": {"type": "string", "flattened": false}, - "RemoveClientIDFromOpenIDConnectProviderRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false}, - "ClientID": {"shape": "clientIDType", "flattened": false} - }, - "flattened": false - }, - "RemoveRoleFromInstanceProfileRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - }, - "RoleName": {"shape": "roleNameType", "flattened": false} - }, - "flattened": false - }, - "RemoveUserFromGroupRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "UserName": {"shape": "existingUserNameType", "flattened": false} - }, - "flattened": false - }, - "ReportContentType": {"type": "blob", "flattened": false}, - "ReportFormatType": {"type": "string", "flattened": false}, - "ReportStateDescriptionType": {"type": "string", "flattened": false}, - "ReportStateType": {"type": "string", "flattened": false}, - "ResetServiceSpecificCredentialRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "ServiceSpecificCredentialId": { - "shape": "serviceSpecificCredentialId", - "flattened": false - } - }, - "flattened": false - }, - "ResetServiceSpecificCredentialResponse": { - "type": "structure", - "members": { - "ServiceSpecificCredential": { - "shape": "ServiceSpecificCredential", - "flattened": false - } - }, - "flattened": false - }, - "ResourceHandlingOptionType": {"type": "string", "flattened": false}, - "ResourceNameListType": { - "type": "list", - "member": {"shape": "ResourceNameType"}, - "flattened": false - }, - "ResourceNameType": {"type": "string", "flattened": false}, - "ResourceSpecificResult": { - "type": "structure", - "members": { - "EvalResourceName": {"shape": "ResourceNameType", "flattened": false}, - "EvalResourceDecision": { - "shape": "PolicyEvaluationDecisionType", - "flattened": false - }, - "MatchedStatements": {"shape": "StatementListType", "flattened": false}, - "MissingContextValues": { - "shape": "ContextKeyNamesResultListType", - "flattened": false - }, - "EvalDecisionDetails": { - "shape": "EvalDecisionDetailsType", - "flattened": false - }, - "PermissionsBoundaryDecisionDetail": { - "shape": "PermissionsBoundaryDecisionDetail", - "flattened": false - } - }, - "flattened": false - }, - "ResourceSpecificResultListType": { - "type": "list", - "member": {"shape": "ResourceSpecificResult"}, - "flattened": false - }, - "ResyncMFADeviceRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "AuthenticationCode1": { - "shape": "authenticationCodeType", - "flattened": false - }, - "AuthenticationCode2": { - "shape": "authenticationCodeType", - "flattened": false - } - }, - "flattened": false - }, - "Role": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "RoleName": {"shape": "roleNameType", "flattened": false}, - "RoleId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "AssumeRolePolicyDocument": { - "shape": "policyDocumentType", - "flattened": false - }, - "Description": {"shape": "roleDescriptionType", "flattened": false}, - "MaxSessionDuration": { - "shape": "roleMaxSessionDurationType", - "flattened": false - }, - "PermissionsBoundary": { - "shape": "AttachedPermissionsBoundary", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false}, - "RoleLastUsed": {"shape": "RoleLastUsed", "flattened": false} - }, - "flattened": false - }, - "RoleDetail": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "RoleName": {"shape": "roleNameType", "flattened": false}, - "RoleId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "AssumeRolePolicyDocument": { - "shape": "policyDocumentType", - "flattened": false - }, - "InstanceProfileList": { - "shape": "instanceProfileListType", - "flattened": false - }, - "RolePolicyList": {"shape": "policyDetailListType", "flattened": false}, - "AttachedManagedPolicies": { - "shape": "attachedPoliciesListType", - "flattened": false - }, - "PermissionsBoundary": { - "shape": "AttachedPermissionsBoundary", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false}, - "RoleLastUsed": {"shape": "RoleLastUsed", "flattened": false} - }, - "flattened": false - }, - "RoleLastUsed": { - "type": "structure", - "members": { - "LastUsedDate": {"shape": "dateType", "flattened": false}, - "Region": {"shape": "stringType", "flattened": false} - }, - "flattened": false - }, - "RoleUsageListType": { - "type": "list", - "member": {"shape": "RoleUsageType"}, - "flattened": false - }, - "RoleUsageType": { - "type": "structure", - "members": { - "Region": {"shape": "RegionNameType", "flattened": false}, - "Resources": {"shape": "ArnListType", "flattened": false} - }, - "flattened": false - }, - "SAMLMetadataDocumentType": {"type": "string", "flattened": false}, - "SAMLProviderListEntry": { - "type": "structure", - "members": { - "Arn": {"shape": "arnType", "flattened": false}, - "ValidUntil": {"shape": "dateType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "SAMLProviderListType": { - "type": "list", - "member": {"shape": "SAMLProviderListEntry"}, - "flattened": false - }, - "SAMLProviderNameType": {"type": "string", "flattened": false}, - "SSHPublicKey": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SSHPublicKeyId": {"shape": "publicKeyIdType", "flattened": false}, - "Fingerprint": {"shape": "publicKeyFingerprintType", "flattened": false}, - "SSHPublicKeyBody": { - "shape": "publicKeyMaterialType", - "flattened": false - }, - "Status": {"shape": "statusType", "flattened": false}, - "UploadDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "SSHPublicKeyListType": { - "type": "list", - "member": {"shape": "SSHPublicKeyMetadata"}, - "flattened": false - }, - "SSHPublicKeyMetadata": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SSHPublicKeyId": {"shape": "publicKeyIdType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false}, - "UploadDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "ServerCertificate": { - "type": "structure", - "members": { - "ServerCertificateMetadata": { - "shape": "ServerCertificateMetadata", - "flattened": false - }, - "CertificateBody": {"shape": "certificateBodyType", "flattened": false}, - "CertificateChain": {"shape": "certificateChainType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "ServerCertificateMetadata": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - }, - "ServerCertificateId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "UploadDate": {"shape": "dateType", "flattened": false}, - "Expiration": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "ServiceLastAccessed": { - "type": "structure", - "members": { - "ServiceName": {"shape": "serviceNameType", "flattened": false}, - "LastAuthenticated": {"shape": "dateType", "flattened": false}, - "ServiceNamespace": {"shape": "serviceNamespaceType", "flattened": false}, - "LastAuthenticatedEntity": {"shape": "arnType", "flattened": false}, - "LastAuthenticatedRegion": {"shape": "stringType", "flattened": false}, - "TotalAuthenticatedEntities": { - "shape": "integerType", - "flattened": false - }, - "TrackedActionsLastAccessed": { - "shape": "TrackedActionsLastAccessed", - "flattened": false - } - }, - "flattened": false - }, - "ServiceSpecificCredential": { - "type": "structure", - "members": { - "CreateDate": {"shape": "dateType", "flattened": false}, - "ServiceName": {"shape": "serviceName", "flattened": false}, - "ServiceUserName": {"shape": "serviceUserName", "flattened": false}, - "ServicePassword": {"shape": "servicePassword", "flattened": false}, - "ServiceSpecificCredentialId": { - "shape": "serviceSpecificCredentialId", - "flattened": false - }, - "UserName": {"shape": "userNameType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false} - }, - "flattened": false - }, - "ServiceSpecificCredentialMetadata": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false}, - "ServiceUserName": {"shape": "serviceUserName", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "ServiceSpecificCredentialId": { - "shape": "serviceSpecificCredentialId", - "flattened": false - }, - "ServiceName": {"shape": "serviceName", "flattened": false} - }, - "flattened": false - }, - "ServiceSpecificCredentialsListType": { - "type": "list", - "member": {"shape": "ServiceSpecificCredentialMetadata"}, - "flattened": false - }, - "ServicesLastAccessed": { - "type": "list", - "member": {"shape": "ServiceLastAccessed"}, - "flattened": false - }, - "SetDefaultPolicyVersionRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "VersionId": {"shape": "policyVersionIdType", "flattened": false} - }, - "flattened": false - }, - "SetSecurityTokenServicePreferencesRequest": { - "type": "structure", - "members": { - "GlobalEndpointTokenVersion": { - "shape": "globalEndpointTokenVersion", - "flattened": false - } - }, - "flattened": false - }, - "SigningCertificate": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "CertificateId": {"shape": "certificateIdType", "flattened": false}, - "CertificateBody": {"shape": "certificateBodyType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false}, - "UploadDate": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "SimulateCustomPolicyRequest": { - "type": "structure", - "members": { - "PolicyInputList": { - "shape": "SimulationPolicyListType", - "flattened": false - }, - "PermissionsBoundaryPolicyInputList": { - "shape": "SimulationPolicyListType", - "flattened": false - }, - "ActionNames": {"shape": "ActionNameListType", "flattened": false}, - "ResourceArns": {"shape": "ResourceNameListType", "flattened": false}, - "ResourcePolicy": {"shape": "policyDocumentType", "flattened": false}, - "ResourceOwner": {"shape": "ResourceNameType", "flattened": false}, - "CallerArn": {"shape": "ResourceNameType", "flattened": false}, - "ContextEntries": {"shape": "ContextEntryListType", "flattened": false}, - "ResourceHandlingOption": { - "shape": "ResourceHandlingOptionType", - "flattened": false - }, - "MaxItems": {"shape": "maxItemsType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false} - }, - "flattened": false - }, - "SimulatePolicyResponse": { - "type": "structure", - "members": { - "EvaluationResults": { - "shape": "EvaluationResultsListType", - "flattened": false - }, - "IsTruncated": {"shape": "booleanType", "flattened": false}, - "Marker": {"shape": "responseMarkerType", "flattened": false} - }, - "flattened": false - }, - "SimulatePrincipalPolicyRequest": { - "type": "structure", - "members": { - "PolicySourceArn": {"shape": "arnType", "flattened": false}, - "PolicyInputList": { - "shape": "SimulationPolicyListType", - "flattened": false - }, - "PermissionsBoundaryPolicyInputList": { - "shape": "SimulationPolicyListType", - "flattened": false - }, - "ActionNames": {"shape": "ActionNameListType", "flattened": false}, - "ResourceArns": {"shape": "ResourceNameListType", "flattened": false}, - "ResourcePolicy": {"shape": "policyDocumentType", "flattened": false}, - "ResourceOwner": {"shape": "ResourceNameType", "flattened": false}, - "CallerArn": {"shape": "ResourceNameType", "flattened": false}, - "ContextEntries": {"shape": "ContextEntryListType", "flattened": false}, - "ResourceHandlingOption": { - "shape": "ResourceHandlingOptionType", - "flattened": false - }, - "MaxItems": {"shape": "maxItemsType", "flattened": false}, - "Marker": {"shape": "markerType", "flattened": false} - }, - "flattened": false - }, - "SimulationPolicyListType": { - "type": "list", - "member": {"shape": "policyDocumentType"}, - "flattened": false - }, - "Statement": { - "type": "structure", - "members": { - "SourcePolicyId": {"shape": "PolicyIdentifierType", "flattened": false}, - "SourcePolicyType": {"shape": "PolicySourceType", "flattened": false}, - "StartPosition": {"shape": "Position", "flattened": false}, - "EndPosition": {"shape": "Position", "flattened": false} - }, - "flattened": false - }, - "StatementListType": { - "type": "list", - "member": {"shape": "Statement"}, - "flattened": false - }, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "tagKeyType", "flattened": false}, - "Value": {"shape": "tagValueType", "flattened": false} - }, - "flattened": false - }, - "TagInstanceProfileRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TagMFADeviceRequest": { - "type": "structure", - "members": { - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TagOpenIDConnectProviderRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TagPolicyRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TagRoleRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TagSAMLProviderRequest": { - "type": "structure", - "members": { - "SAMLProviderArn": {"shape": "arnType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TagServerCertificateRequest": { - "type": "structure", - "members": { - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TagUserRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "TrackedActionLastAccessed": { - "type": "structure", - "members": { - "ActionName": {"shape": "stringType", "flattened": false}, - "LastAccessedEntity": {"shape": "arnType", "flattened": false}, - "LastAccessedTime": {"shape": "dateType", "flattened": false}, - "LastAccessedRegion": {"shape": "stringType", "flattened": false} - }, - "flattened": false - }, - "TrackedActionsLastAccessed": { - "type": "list", - "member": {"shape": "TrackedActionLastAccessed"}, - "flattened": false - }, - "UntagInstanceProfileRequest": { - "type": "structure", - "members": { - "InstanceProfileName": { - "shape": "instanceProfileNameType", - "flattened": false - }, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UntagMFADeviceRequest": { - "type": "structure", - "members": { - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UntagOpenIDConnectProviderRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false}, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UntagPolicyRequest": { - "type": "structure", - "members": { - "PolicyArn": {"shape": "arnType", "flattened": false}, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UntagRoleRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UntagSAMLProviderRequest": { - "type": "structure", - "members": { - "SAMLProviderArn": {"shape": "arnType", "flattened": false}, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UntagServerCertificateRequest": { - "type": "structure", - "members": { - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - }, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UntagUserRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "TagKeys": {"shape": "tagKeyListType", "flattened": false} - }, - "flattened": false - }, - "UpdateAccessKeyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "AccessKeyId": {"shape": "accessKeyIdType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false} - }, - "flattened": false - }, - "UpdateAccountPasswordPolicyRequest": { - "type": "structure", - "members": { - "MinimumPasswordLength": { - "shape": "minimumPasswordLengthType", - "flattened": false - }, - "RequireSymbols": {"shape": "booleanType", "flattened": false}, - "RequireNumbers": {"shape": "booleanType", "flattened": false}, - "RequireUppercaseCharacters": { - "shape": "booleanType", - "flattened": false - }, - "RequireLowercaseCharacters": { - "shape": "booleanType", - "flattened": false - }, - "AllowUsersToChangePassword": { - "shape": "booleanType", - "flattened": false - }, - "MaxPasswordAge": {"shape": "maxPasswordAgeType", "flattened": false}, - "PasswordReusePrevention": { - "shape": "passwordReusePreventionType", - "flattened": false - }, - "HardExpiry": {"shape": "booleanObjectType", "flattened": false} - }, - "flattened": false - }, - "UpdateAssumeRolePolicyRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "PolicyDocument": {"shape": "policyDocumentType", "flattened": false} - }, - "flattened": false - }, - "UpdateGroupRequest": { - "type": "structure", - "members": { - "GroupName": {"shape": "groupNameType", "flattened": false}, - "NewPath": {"shape": "pathType", "flattened": false}, - "NewGroupName": {"shape": "groupNameType", "flattened": false} - }, - "flattened": false - }, - "UpdateLoginProfileRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "Password": {"shape": "passwordType", "flattened": false}, - "PasswordResetRequired": { - "shape": "booleanObjectType", - "flattened": false - } - }, - "flattened": false - }, - "UpdateOpenIDConnectProviderThumbprintRequest": { - "type": "structure", - "members": { - "OpenIDConnectProviderArn": {"shape": "arnType", "flattened": false}, - "ThumbprintList": {"shape": "thumbprintListType", "flattened": false} - }, - "flattened": false - }, - "UpdateRoleDescriptionRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "Description": {"shape": "roleDescriptionType", "flattened": false} - }, - "flattened": false - }, - "UpdateRoleDescriptionResponse": { - "type": "structure", - "members": { - "Role": {"shape": "Role", "flattened": false} - }, - "flattened": false - }, - "UpdateRoleRequest": { - "type": "structure", - "members": { - "RoleName": {"shape": "roleNameType", "flattened": false}, - "Description": {"shape": "roleDescriptionType", "flattened": false}, - "MaxSessionDuration": { - "shape": "roleMaxSessionDurationType", - "flattened": false - } - }, - "flattened": false - }, - "UpdateRoleResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "UpdateSAMLProviderRequest": { - "type": "structure", - "members": { - "SAMLMetadataDocument": { - "shape": "SAMLMetadataDocumentType", - "flattened": false - }, - "SAMLProviderArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "UpdateSAMLProviderResponse": { - "type": "structure", - "members": { - "SAMLProviderArn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "UpdateSSHPublicKeyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SSHPublicKeyId": {"shape": "publicKeyIdType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false} - }, - "flattened": false - }, - "UpdateServerCertificateRequest": { - "type": "structure", - "members": { - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - }, - "NewPath": {"shape": "pathType", "flattened": false}, - "NewServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - } - }, - "flattened": false - }, - "UpdateServiceSpecificCredentialRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "ServiceSpecificCredentialId": { - "shape": "serviceSpecificCredentialId", - "flattened": false - }, - "Status": {"shape": "statusType", "flattened": false} - }, - "flattened": false - }, - "UpdateSigningCertificateRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "CertificateId": {"shape": "certificateIdType", "flattened": false}, - "Status": {"shape": "statusType", "flattened": false} - }, - "flattened": false - }, - "UpdateUserRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "NewPath": {"shape": "pathType", "flattened": false}, - "NewUserName": {"shape": "userNameType", "flattened": false} - }, - "flattened": false - }, - "UploadSSHPublicKeyRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "userNameType", "flattened": false}, - "SSHPublicKeyBody": {"shape": "publicKeyMaterialType", "flattened": false} - }, - "flattened": false - }, - "UploadSSHPublicKeyResponse": { - "type": "structure", - "members": { - "SSHPublicKey": {"shape": "SSHPublicKey", "flattened": false} - }, - "flattened": false - }, - "UploadServerCertificateRequest": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "ServerCertificateName": { - "shape": "serverCertificateNameType", - "flattened": false - }, - "CertificateBody": {"shape": "certificateBodyType", "flattened": false}, - "PrivateKey": {"shape": "privateKeyType", "flattened": false}, - "CertificateChain": {"shape": "certificateChainType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "UploadServerCertificateResponse": { - "type": "structure", - "members": { - "ServerCertificateMetadata": { - "shape": "ServerCertificateMetadata", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "UploadSigningCertificateRequest": { - "type": "structure", - "members": { - "UserName": {"shape": "existingUserNameType", "flattened": false}, - "CertificateBody": {"shape": "certificateBodyType", "flattened": false} - }, - "flattened": false - }, - "UploadSigningCertificateResponse": { - "type": "structure", - "members": { - "Certificate": {"shape": "SigningCertificate", "flattened": false} - }, - "flattened": false - }, - "User": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "UserName": {"shape": "userNameType", "flattened": false}, - "UserId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "PasswordLastUsed": {"shape": "dateType", "flattened": false}, - "PermissionsBoundary": { - "shape": "AttachedPermissionsBoundary", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "UserDetail": { - "type": "structure", - "members": { - "Path": {"shape": "pathType", "flattened": false}, - "UserName": {"shape": "userNameType", "flattened": false}, - "UserId": {"shape": "idType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false}, - "CreateDate": {"shape": "dateType", "flattened": false}, - "UserPolicyList": {"shape": "policyDetailListType", "flattened": false}, - "GroupList": {"shape": "groupNameListType", "flattened": false}, - "AttachedManagedPolicies": { - "shape": "attachedPoliciesListType", - "flattened": false - }, - "PermissionsBoundary": { - "shape": "AttachedPermissionsBoundary", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "VirtualMFADevice": { - "type": "structure", - "members": { - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "Base32StringSeed": {"shape": "BootstrapDatum", "flattened": false}, - "QRCodePNG": {"shape": "BootstrapDatum", "flattened": false}, - "User": {"shape": "User", "flattened": false}, - "EnableDate": {"shape": "dateType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "accessKeyIdType": {"type": "string", "flattened": false}, - "accessKeyMetadataListType": { - "type": "list", - "member": {"shape": "AccessKeyMetadata"}, - "flattened": false - }, - "accessKeySecretType": {"type": "string", "flattened": false}, - "accountAliasListType": { - "type": "list", - "member": {"shape": "accountAliasType"}, - "flattened": false - }, - "accountAliasType": {"type": "string", "flattened": false}, - "arnType": {"type": "string", "flattened": false}, - "assignmentStatusType": {"type": "string", "flattened": false}, - "attachedPoliciesListType": { - "type": "list", - "member": {"shape": "AttachedPolicy"}, - "flattened": false - }, - "attachmentCountType": {"type": "integer", "flattened": false}, - "authenticationCodeType": {"type": "string", "flattened": false}, - "booleanObjectType": {"type": "boolean", "flattened": false}, - "booleanType": {"type": "boolean", "flattened": false}, - "certificateBodyType": {"type": "string", "flattened": false}, - "certificateChainType": {"type": "string", "flattened": false}, - "certificateIdType": {"type": "string", "flattened": false}, - "certificateListType": { - "type": "list", - "member": {"shape": "SigningCertificate"}, - "flattened": false - }, - "clientIDListType": { - "type": "list", - "member": {"shape": "clientIDType"}, - "flattened": false - }, - "clientIDType": {"type": "string", "flattened": false}, - "customSuffixType": {"type": "string", "flattened": false}, - "dateType": {"type": "timestamp", "flattened": false}, - "encodingType": {"type": "string", "flattened": false}, - "entityDetailsListType": { - "type": "list", - "member": {"shape": "EntityDetails"}, - "flattened": false - }, - "entityListType": { - "type": "list", - "member": {"shape": "EntityType"}, - "flattened": false - }, - "entityNameType": {"type": "string", "flattened": false}, - "existingUserNameType": {"type": "string", "flattened": false}, - "globalEndpointTokenVersion": {"type": "string", "flattened": false}, - "groupDetailListType": { - "type": "list", - "member": {"shape": "GroupDetail"}, - "flattened": false - }, - "groupListType": { - "type": "list", - "member": {"shape": "Group"}, - "flattened": false - }, - "groupNameListType": { - "type": "list", - "member": {"shape": "groupNameType"}, - "flattened": false - }, - "groupNameType": {"type": "string", "flattened": false}, - "idType": {"type": "string", "flattened": false}, - "instanceProfileListType": { - "type": "list", - "member": {"shape": "InstanceProfile"}, - "flattened": false - }, - "instanceProfileNameType": {"type": "string", "flattened": false}, - "integerType": {"type": "integer", "flattened": false}, - "jobIDType": {"type": "string", "flattened": false}, - "jobStatusType": {"type": "string", "flattened": false}, - "listPolicyGrantingServiceAccessResponseListType": { - "type": "list", - "member": {"shape": "ListPoliciesGrantingServiceAccessEntry"}, - "flattened": false - }, - "markerType": {"type": "string", "flattened": false}, - "maxItemsType": {"type": "integer", "flattened": false}, - "maxPasswordAgeType": {"type": "integer", "flattened": false}, - "mfaDeviceListType": { - "type": "list", - "member": {"shape": "MFADevice"}, - "flattened": false - }, - "minimumPasswordLengthType": {"type": "integer", "flattened": false}, - "organizationsEntityPathType": {"type": "string", "flattened": false}, - "organizationsPolicyIdType": {"type": "string", "flattened": false}, - "passwordReusePreventionType": {"type": "integer", "flattened": false}, - "passwordType": {"type": "string", "flattened": false}, - "pathPrefixType": {"type": "string", "flattened": false}, - "pathType": {"type": "string", "flattened": false}, - "policyDescriptionType": {"type": "string", "flattened": false}, - "policyDetailListType": { - "type": "list", - "member": {"shape": "PolicyDetail"}, - "flattened": false - }, - "policyDocumentType": {"type": "string", "flattened": false}, - "policyDocumentVersionListType": { - "type": "list", - "member": {"shape": "PolicyVersion"}, - "flattened": false - }, - "policyGrantingServiceAccessListType": { - "type": "list", - "member": {"shape": "PolicyGrantingServiceAccess"}, - "flattened": false - }, - "policyListType": { - "type": "list", - "member": {"shape": "Policy"}, - "flattened": false - }, - "policyNameListType": { - "type": "list", - "member": {"shape": "policyNameType"}, - "flattened": false - }, - "policyNameType": {"type": "string", "flattened": false}, - "policyOwnerEntityType": {"type": "string", "flattened": false}, - "policyPathType": {"type": "string", "flattened": false}, - "policyScopeType": {"type": "string", "flattened": false}, - "policyType": {"type": "string", "flattened": false}, - "policyVersionIdType": {"type": "string", "flattened": false}, - "privateKeyType": {"type": "string", "flattened": false}, - "publicKeyFingerprintType": {"type": "string", "flattened": false}, - "publicKeyIdType": {"type": "string", "flattened": false}, - "publicKeyMaterialType": {"type": "string", "flattened": false}, - "responseMarkerType": {"type": "string", "flattened": false}, - "roleDescriptionType": {"type": "string", "flattened": false}, - "roleDetailListType": { - "type": "list", - "member": {"shape": "RoleDetail"}, - "flattened": false - }, - "roleListType": { - "type": "list", - "member": {"shape": "Role"}, - "flattened": false - }, - "roleMaxSessionDurationType": {"type": "integer", "flattened": false}, - "roleNameType": {"type": "string", "flattened": false}, - "serialNumberType": {"type": "string", "flattened": false}, - "serverCertificateMetadataListType": { - "type": "list", - "member": {"shape": "ServerCertificateMetadata"}, - "flattened": false - }, - "serverCertificateNameType": {"type": "string", "flattened": false}, - "serviceName": {"type": "string", "flattened": false}, - "serviceNameType": {"type": "string", "flattened": false}, - "serviceNamespaceListType": { - "type": "list", - "member": {"shape": "serviceNamespaceType"}, - "flattened": false - }, - "serviceNamespaceType": {"type": "string", "flattened": false}, - "servicePassword": {"type": "string", "flattened": false}, - "serviceSpecificCredentialId": {"type": "string", "flattened": false}, - "serviceUserName": {"type": "string", "flattened": false}, - "sortKeyType": {"type": "string", "flattened": false}, - "statusType": {"type": "string", "flattened": false}, - "stringType": {"type": "string", "flattened": false}, - "summaryKeyType": {"type": "string", "flattened": false}, - "summaryMapType": { - "type": "map", - "key": {"shape": "summaryKeyType"}, - "value": {"shape": "summaryValueType"}, - "flattened": false - }, - "summaryValueType": {"type": "integer", "flattened": false}, - "tagKeyListType": { - "type": "list", - "member": {"shape": "tagKeyType"}, - "flattened": false - }, - "tagKeyType": {"type": "string", "flattened": false}, - "tagListType": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "tagValueType": {"type": "string", "flattened": false}, - "thumbprintListType": { - "type": "list", - "member": {"shape": "thumbprintType"}, - "flattened": false - }, - "thumbprintType": {"type": "string", "flattened": false}, - "userDetailListType": { - "type": "list", - "member": {"shape": "UserDetail"}, - "flattened": false - }, - "userListType": { - "type": "list", - "member": {"shape": "User"}, - "flattened": false - }, - "userNameType": {"type": "string", "flattened": false}, - "virtualMFADeviceListType": { - "type": "list", - "member": {"shape": "VirtualMFADevice"}, - "flattened": false - }, - "virtualMFADeviceName": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/import_export/v2010_06_01.dart b/aws_client/lib/src/generated/import_export/v2010_06_01.dart index 37c48f868..1d53bec3f 100644 --- a/aws_client/lib/src/generated/import_export/v2010_06_01.dart +++ b/aws_client/lib/src/generated/import_export/v2010_06_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2010_06_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// transferring large amounts of data between the AWS cloud and portable @@ -28,7 +27,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// than upgrading your connectivity. class ImportExport { final _s.QueryProtocol _protocol; - final Map shapes; ImportExport({ String? region, @@ -36,7 +34,7 @@ class ImportExport { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'importexport', @@ -45,9 +43,7 @@ class ImportExport { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -71,9 +67,10 @@ class ImportExport { required String jobId, String? aPIVersion, }) async { - final $request = {}; - $request['JobId'] = jobId; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); + final $request = { + 'JobId': jobId, + if (aPIVersion != null) 'APIVersion': aPIVersion, + }; final $result = await _protocol.send( $request, action: 'CancelJob', @@ -81,8 +78,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=CancelJob', exceptionFnMap: _exceptionFns, - shape: shapes['CancelJobInput'], - shapes: shapes, resultWrapper: 'CancelJobResult', ); return CancelJobOutput.fromXml($result); @@ -118,12 +113,13 @@ class ImportExport { String? aPIVersion, String? manifestAddendum, }) async { - final $request = {}; - $request['JobType'] = jobType.toValue(); - $request['Manifest'] = manifest; - $request['ValidateOnly'] = validateOnly; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); - manifestAddendum?.also((arg) => $request['ManifestAddendum'] = arg); + final $request = { + 'JobType': jobType.toValue(), + 'Manifest': manifest, + 'ValidateOnly': validateOnly.toString(), + if (aPIVersion != null) 'APIVersion': aPIVersion, + if (manifestAddendum != null) 'ManifestAddendum': manifestAddendum, + }; final $result = await _protocol.send( $request, action: 'CreateJob', @@ -131,8 +127,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=CreateJob', exceptionFnMap: _exceptionFns, - shape: shapes['CreateJobInput'], - shapes: shapes, resultWrapper: 'CreateJobResult', ); return CreateJobOutput.fromXml($result); @@ -162,19 +156,24 @@ class ImportExport { String? street2, String? street3, }) async { - final $request = {}; - $request['jobIds'] = jobIds; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); - city?.also((arg) => $request['city'] = arg); - company?.also((arg) => $request['company'] = arg); - country?.also((arg) => $request['country'] = arg); - name?.also((arg) => $request['name'] = arg); - phoneNumber?.also((arg) => $request['phoneNumber'] = arg); - postalCode?.also((arg) => $request['postalCode'] = arg); - stateOrProvince?.also((arg) => $request['stateOrProvince'] = arg); - street1?.also((arg) => $request['street1'] = arg); - street2?.also((arg) => $request['street2'] = arg); - street3?.also((arg) => $request['street3'] = arg); + final $request = { + if (jobIds.isEmpty) + 'jobIds': '' + else + for (var i1 = 0; i1 < jobIds.length; i1++) + 'jobIds.member.${i1 + 1}': jobIds[i1], + if (aPIVersion != null) 'APIVersion': aPIVersion, + if (city != null) 'city': city, + if (company != null) 'company': company, + if (country != null) 'country': country, + if (name != null) 'name': name, + if (phoneNumber != null) 'phoneNumber': phoneNumber, + if (postalCode != null) 'postalCode': postalCode, + if (stateOrProvince != null) 'stateOrProvince': stateOrProvince, + if (street1 != null) 'street1': street1, + if (street2 != null) 'street2': street2, + if (street3 != null) 'street3': street3, + }; final $result = await _protocol.send( $request, action: 'GetShippingLabel', @@ -182,8 +181,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=GetShippingLabel', exceptionFnMap: _exceptionFns, - shape: shapes['GetShippingLabelInput'], - shapes: shapes, resultWrapper: 'GetShippingLabelResult', ); return GetShippingLabelOutput.fromXml($result); @@ -203,9 +200,10 @@ class ImportExport { required String jobId, String? aPIVersion, }) async { - final $request = {}; - $request['JobId'] = jobId; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); + final $request = { + 'JobId': jobId, + if (aPIVersion != null) 'APIVersion': aPIVersion, + }; final $result = await _protocol.send( $request, action: 'GetStatus', @@ -213,8 +211,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=GetStatus', exceptionFnMap: _exceptionFns, - shape: shapes['GetStatusInput'], - shapes: shapes, resultWrapper: 'GetStatusResult', ); return GetStatusOutput.fromXml($result); @@ -234,10 +230,11 @@ class ImportExport { String? marker, int? maxJobs, }) async { - final $request = {}; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxJobs?.also((arg) => $request['MaxJobs'] = arg); + final $request = { + if (aPIVersion != null) 'APIVersion': aPIVersion, + if (marker != null) 'Marker': marker, + if (maxJobs != null) 'MaxJobs': maxJobs.toString(), + }; final $result = await _protocol.send( $request, action: 'ListJobs', @@ -245,8 +242,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=ListJobs', exceptionFnMap: _exceptionFns, - shape: shapes['ListJobsInput'], - shapes: shapes, resultWrapper: 'ListJobsResult', ); return ListJobsOutput.fromXml($result); @@ -283,12 +278,13 @@ class ImportExport { required bool validateOnly, String? aPIVersion, }) async { - final $request = {}; - $request['JobId'] = jobId; - $request['JobType'] = jobType.toValue(); - $request['Manifest'] = manifest; - $request['ValidateOnly'] = validateOnly; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); + final $request = { + 'JobId': jobId, + 'JobType': jobType.toValue(), + 'Manifest': manifest, + 'ValidateOnly': validateOnly.toString(), + if (aPIVersion != null) 'APIVersion': aPIVersion, + }; final $result = await _protocol.send( $request, action: 'UpdateJob', @@ -296,8 +292,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=UpdateJob', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateJobInput'], - shapes: shapes, resultWrapper: 'UpdateJobResult', ); return UpdateJobOutput.fromXml($result); diff --git a/aws_client/lib/src/generated/import_export/v2010_06_01.meta.dart b/aws_client/lib/src/generated/import_export/v2010_06_01.meta.dart deleted file mode 100644 index 340db4f62..000000000 --- a/aws_client/lib/src/generated/import_export/v2010_06_01.meta.dart +++ /dev/null @@ -1,349 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "APIVersion": {"type": "string", "flattened": false}, - "Artifact": { - "type": "structure", - "members": { - "Description": {"shape": "Description", "flattened": false}, - "URL": {"shape": "URL", "flattened": false} - }, - "flattened": false - }, - "ArtifactList": { - "type": "list", - "member": {"shape": "Artifact"}, - "flattened": false - }, - "BucketPermissionException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "CancelJobInput": { - "type": "structure", - "members": { - "JobId": {"shape": "JobId", "flattened": false}, - "APIVersion": {"shape": "APIVersion", "flattened": false} - }, - "flattened": false - }, - "CancelJobOutput": { - "type": "structure", - "members": { - "Success": {"shape": "Success", "flattened": false} - }, - "flattened": false - }, - "CanceledJobIdException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "Carrier": {"type": "string", "flattened": false}, - "CreateJobInput": { - "type": "structure", - "members": { - "JobType": {"shape": "JobType", "flattened": false}, - "Manifest": {"shape": "Manifest", "flattened": false}, - "ManifestAddendum": {"shape": "ManifestAddendum", "flattened": false}, - "ValidateOnly": {"shape": "ValidateOnly", "flattened": false}, - "APIVersion": {"shape": "APIVersion", "flattened": false} - }, - "flattened": false - }, - "CreateJobOutput": { - "type": "structure", - "members": { - "JobId": {"shape": "JobId", "flattened": false}, - "JobType": {"shape": "JobType", "flattened": false}, - "Signature": {"shape": "Signature", "flattened": false}, - "SignatureFileContents": { - "shape": "SignatureFileContents", - "flattened": false - }, - "WarningMessage": {"shape": "WarningMessage", "flattened": false}, - "ArtifactList": {"shape": "ArtifactList", "flattened": false} - }, - "flattened": false - }, - "CreateJobQuotaExceededException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "CreationDate": {"type": "timestamp", "flattened": false}, - "CurrentManifest": {"type": "string", "flattened": false}, - "Description": {"type": "string", "flattened": false}, - "ErrorCount": {"type": "integer", "flattened": false}, - "ErrorMessage": {"type": "string", "flattened": false}, - "ExpiredJobIdException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "GenericString": {"type": "string", "flattened": false}, - "GetShippingLabelInput": { - "type": "structure", - "members": { - "jobIds": {"shape": "JobIdList", "flattened": false}, - "name": {"shape": "name", "flattened": false}, - "company": {"shape": "company", "flattened": false}, - "phoneNumber": {"shape": "phoneNumber", "flattened": false}, - "country": {"shape": "country", "flattened": false}, - "stateOrProvince": {"shape": "stateOrProvince", "flattened": false}, - "city": {"shape": "city", "flattened": false}, - "postalCode": {"shape": "postalCode", "flattened": false}, - "street1": {"shape": "street1", "flattened": false}, - "street2": {"shape": "street2", "flattened": false}, - "street3": {"shape": "street3", "flattened": false}, - "APIVersion": {"shape": "APIVersion", "flattened": false} - }, - "flattened": false - }, - "GetShippingLabelOutput": { - "type": "structure", - "members": { - "ShippingLabelURL": {"shape": "GenericString", "flattened": false}, - "Warning": {"shape": "GenericString", "flattened": false} - }, - "flattened": false - }, - "GetStatusInput": { - "type": "structure", - "members": { - "JobId": {"shape": "JobId", "flattened": false}, - "APIVersion": {"shape": "APIVersion", "flattened": false} - }, - "flattened": false - }, - "GetStatusOutput": { - "type": "structure", - "members": { - "JobId": {"shape": "JobId", "flattened": false}, - "JobType": {"shape": "JobType", "flattened": false}, - "LocationCode": {"shape": "LocationCode", "flattened": false}, - "LocationMessage": {"shape": "LocationMessage", "flattened": false}, - "ProgressCode": {"shape": "ProgressCode", "flattened": false}, - "ProgressMessage": {"shape": "ProgressMessage", "flattened": false}, - "Carrier": {"shape": "Carrier", "flattened": false}, - "TrackingNumber": {"shape": "TrackingNumber", "flattened": false}, - "LogBucket": {"shape": "LogBucket", "flattened": false}, - "LogKey": {"shape": "LogKey", "flattened": false}, - "ErrorCount": {"shape": "ErrorCount", "flattened": false}, - "Signature": {"shape": "Signature", "flattened": false}, - "SignatureFileContents": {"shape": "Signature", "flattened": false}, - "CurrentManifest": {"shape": "CurrentManifest", "flattened": false}, - "CreationDate": {"shape": "CreationDate", "flattened": false}, - "ArtifactList": {"shape": "ArtifactList", "flattened": false} - }, - "flattened": false - }, - "InvalidAccessKeyIdException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "InvalidAddressException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "InvalidCustomsException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "InvalidFileSystemException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "InvalidJobIdException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "InvalidManifestFieldException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "InvalidParameterException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "InvalidVersionException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "IsCanceled": {"type": "boolean", "flattened": false}, - "IsTruncated": {"type": "boolean", "flattened": false}, - "Job": { - "type": "structure", - "members": { - "JobId": {"shape": "JobId", "flattened": false}, - "CreationDate": {"shape": "CreationDate", "flattened": false}, - "IsCanceled": {"shape": "IsCanceled", "flattened": false}, - "JobType": {"shape": "JobType", "flattened": false} - }, - "flattened": false - }, - "JobId": {"type": "string", "flattened": false}, - "JobIdList": { - "type": "list", - "member": {"shape": "GenericString"}, - "flattened": false - }, - "JobType": {"type": "string", "flattened": false}, - "JobsList": { - "type": "list", - "member": {"shape": "Job"}, - "flattened": false - }, - "ListJobsInput": { - "type": "structure", - "members": { - "MaxJobs": {"shape": "MaxJobs", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false}, - "APIVersion": {"shape": "APIVersion", "flattened": false} - }, - "flattened": false - }, - "ListJobsOutput": { - "type": "structure", - "members": { - "Jobs": {"shape": "JobsList", "flattened": false}, - "IsTruncated": {"shape": "IsTruncated", "flattened": false} - }, - "flattened": false - }, - "LocationCode": {"type": "string", "flattened": false}, - "LocationMessage": {"type": "string", "flattened": false}, - "LogBucket": {"type": "string", "flattened": false}, - "LogKey": {"type": "string", "flattened": false}, - "MalformedManifestException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "Manifest": {"type": "string", "flattened": false}, - "ManifestAddendum": {"type": "string", "flattened": false}, - "Marker": {"type": "string", "flattened": false}, - "MaxJobs": {"type": "integer", "flattened": false}, - "MissingCustomsException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "MissingManifestFieldException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "MissingParameterException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "MultipleRegionsException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "NoSuchBucketException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "ProgressCode": {"type": "string", "flattened": false}, - "ProgressMessage": {"type": "string", "flattened": false}, - "Signature": {"type": "string", "flattened": false}, - "SignatureFileContents": {"type": "string", "flattened": false}, - "Success": {"type": "boolean", "flattened": false}, - "TrackingNumber": {"type": "string", "flattened": false}, - "URL": {"type": "string", "flattened": false}, - "UnableToCancelJobIdException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "UnableToUpdateJobIdException": { - "type": "structure", - "members": { - "message": {"shape": "ErrorMessage", "flattened": false} - }, - "flattened": false - }, - "UpdateJobInput": { - "type": "structure", - "members": { - "JobId": {"shape": "JobId", "flattened": false}, - "Manifest": {"shape": "Manifest", "flattened": false}, - "JobType": {"shape": "JobType", "flattened": false}, - "ValidateOnly": {"shape": "ValidateOnly", "flattened": false}, - "APIVersion": {"shape": "APIVersion", "flattened": false} - }, - "flattened": false - }, - "UpdateJobOutput": { - "type": "structure", - "members": { - "Success": {"shape": "Success", "flattened": false}, - "WarningMessage": {"shape": "WarningMessage", "flattened": false}, - "ArtifactList": {"shape": "ArtifactList", "flattened": false} - }, - "flattened": false - }, - "ValidateOnly": {"type": "boolean", "flattened": false}, - "WarningMessage": {"type": "string", "flattened": false}, - "city": {"type": "string", "flattened": false}, - "company": {"type": "string", "flattened": false}, - "country": {"type": "string", "flattened": false}, - "name": {"type": "string", "flattened": false}, - "phoneNumber": {"type": "string", "flattened": false}, - "postalCode": {"type": "string", "flattened": false}, - "stateOrProvince": {"type": "string", "flattened": false}, - "street1": {"type": "string", "flattened": false}, - "street2": {"type": "string", "flattened": false}, - "street3": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/neptune/v2014_10_31.dart b/aws_client/lib/src/generated/neptune/v2014_10_31.dart index 7a643a112..7bd125ee8 100644 --- a/aws_client/lib/src/generated/neptune/v2014_10_31.dart +++ b/aws_client/lib/src/generated/neptune/v2014_10_31.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2014_10_31.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon Neptune is a fast, reliable, fully-managed graph database service @@ -33,7 +32,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// security. class Neptune { final _s.QueryProtocol _protocol; - final Map shapes; Neptune({ required String region, @@ -41,7 +39,7 @@ class Neptune { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -51,9 +49,7 @@ class Neptune { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -89,10 +85,11 @@ class Neptune { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'AddRoleToDBCluster', @@ -100,8 +97,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToDBClusterMessage'], - shapes: shapes, ); } @@ -142,9 +137,10 @@ class Neptune { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -152,8 +148,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -180,9 +174,15 @@ class Neptune { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -190,8 +190,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -236,10 +234,11 @@ class Neptune { required String optInType, required String resourceIdentifier, }) async { - final $request = {}; - $request['ApplyAction'] = applyAction; - $request['OptInType'] = optInType; - $request['ResourceIdentifier'] = resourceIdentifier; + final $request = { + 'ApplyAction': applyAction, + 'OptInType': optInType, + 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'ApplyPendingMaintenanceAction', @@ -247,8 +246,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyPendingMaintenanceActionMessage'], - shapes: shapes, resultWrapper: 'ApplyPendingMaintenanceActionResult', ); return ApplyPendingMaintenanceActionResult.fromXml($result); @@ -316,14 +313,21 @@ class Neptune { required String targetDBClusterParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterParameterGroupIdentifier'] = - sourceDBClusterParameterGroupIdentifier; - $request['TargetDBClusterParameterGroupDescription'] = - targetDBClusterParameterGroupDescription; - $request['TargetDBClusterParameterGroupIdentifier'] = - targetDBClusterParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterParameterGroupIdentifier': + sourceDBClusterParameterGroupIdentifier, + 'TargetDBClusterParameterGroupDescription': + targetDBClusterParameterGroupDescription, + 'TargetDBClusterParameterGroupIdentifier': + targetDBClusterParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterParameterGroup', @@ -331,8 +335,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterParameterGroupResult', ); return CopyDBClusterParameterGroupResult.fromXml($result); @@ -425,15 +427,20 @@ class Neptune { String? preSignedUrl, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterSnapshotIdentifier'] = - sourceDBClusterSnapshotIdentifier; - $request['TargetDBClusterSnapshotIdentifier'] = - targetDBClusterSnapshotIdentifier; - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterSnapshotIdentifier': sourceDBClusterSnapshotIdentifier, + 'TargetDBClusterSnapshotIdentifier': targetDBClusterSnapshotIdentifier, + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterSnapshot', @@ -441,8 +448,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterSnapshotResult', ); return CopyDBClusterSnapshotResult.fromXml($result); @@ -504,14 +509,18 @@ class Neptune { required String targetDBParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBParameterGroupIdentifier'] = - sourceDBParameterGroupIdentifier; - $request['TargetDBParameterGroupDescription'] = - targetDBParameterGroupDescription; - $request['TargetDBParameterGroupIdentifier'] = - targetDBParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBParameterGroupIdentifier': sourceDBParameterGroupIdentifier, + 'TargetDBParameterGroupDescription': targetDBParameterGroupDescription, + 'TargetDBParameterGroupIdentifier': targetDBParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBParameterGroup', @@ -519,8 +528,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBParameterGroupResult', ); return CopyDBParameterGroupResult.fromXml($result); @@ -822,44 +829,73 @@ class Neptune { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - replicationSourceIdentifier - ?.also((arg) => $request['ReplicationSourceIdentifier'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (replicationSourceIdentifier != null) + 'ReplicationSourceIdentifier': replicationSourceIdentifier, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBCluster', @@ -867,8 +903,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterResult', ); return CreateDBClusterResult.fromXml($result); @@ -915,13 +949,30 @@ class Neptune { List? staticMembers, List? tags, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['EndpointType'] = endpointType; - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + 'DBClusterIdentifier': dBClusterIdentifier, + 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterEndpoint', @@ -929,8 +980,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterEndpointResult', ); return CreateDBClusterEndpointOutput.fromXml($result); @@ -998,11 +1047,18 @@ class Neptune { required String description, List? tags, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterParameterGroup', @@ -1010,8 +1066,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterParameterGroupResult', ); return CreateDBClusterParameterGroupResult.fromXml($result); @@ -1064,10 +1118,17 @@ class Neptune { required String dBClusterSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterSnapshot', @@ -1075,8 +1136,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterSnapshotResult', ); return CreateDBClusterSnapshotResult.fromXml($result); @@ -1431,59 +1490,91 @@ class Neptune { String? timezone, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - timezone?.also((arg) => $request['Timezone'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (timezone != null) 'Timezone': timezone, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -1491,8 +1582,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -1561,11 +1650,18 @@ class Neptune { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -1573,8 +1669,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -1612,11 +1706,22 @@ class Neptune { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -1624,8 +1729,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -1732,14 +1835,31 @@ class Neptune { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -1747,8 +1867,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -1801,14 +1919,17 @@ class Neptune { String? sourceDBClusterIdentifier, bool? storageEncrypted, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateGlobalCluster', @@ -1816,8 +1937,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalClusterResult', ); return CreateGlobalClusterResult.fromXml($result); @@ -1886,11 +2005,13 @@ class Neptune { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBCluster', @@ -1898,8 +2019,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterResult', ); return DeleteDBClusterResult.fromXml($result); @@ -1918,8 +2037,9 @@ class Neptune { Future deleteDBClusterEndpoint({ required String dBClusterEndpointIdentifier, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterEndpoint', @@ -1927,8 +2047,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterEndpointResult', ); return DeleteDBClusterEndpointOutput.fromXml($result); @@ -1959,8 +2077,9 @@ class Neptune { Future deleteDBClusterParameterGroup({ required String dBClusterParameterGroupName, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBClusterParameterGroup', @@ -1968,8 +2087,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -1991,8 +2108,9 @@ class Neptune { Future deleteDBClusterSnapshot({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterSnapshot', @@ -2000,8 +2118,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterSnapshotResult', ); return DeleteDBClusterSnapshotResult.fromXml($result); @@ -2089,11 +2205,13 @@ class Neptune { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -2101,8 +2219,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -2133,8 +2249,9 @@ class Neptune { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -2142,8 +2259,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -2171,8 +2286,9 @@ class Neptune { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -2180,8 +2296,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -2195,8 +2309,9 @@ class Neptune { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -2204,8 +2319,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -2222,8 +2335,9 @@ class Neptune { Future deleteGlobalCluster({ required String globalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalCluster', @@ -2231,8 +2345,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalClusterResult', ); return DeleteGlobalClusterResult.fromXml($result); @@ -2292,13 +2404,21 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterEndpointIdentifier - ?.also((arg) => $request['DBClusterEndpointIdentifier'] = arg); - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterEndpointIdentifier != null) + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterEndpoints', @@ -2306,8 +2426,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterEndpointsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterEndpointsResult', ); return DBClusterEndpointMessage.fromXml($result); @@ -2355,12 +2473,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameterGroups', @@ -2368,8 +2493,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParameterGroupsResult', ); return DBClusterParameterGroupsMessage.fromXml($result); @@ -2422,12 +2545,19 @@ class Neptune { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameters', @@ -2435,8 +2565,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParametersResult', ); return DBClusterParameterGroupDetails.fromXml($result); @@ -2465,8 +2593,9 @@ class Neptune { describeDBClusterSnapshotAttributes({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshotAttributes', @@ -2474,8 +2603,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotAttributesResult', ); return DescribeDBClusterSnapshotAttributesResult.fromXml($result); @@ -2598,16 +2725,24 @@ class Neptune { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshots', @@ -2615,8 +2750,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotsResult', ); return DBClusterSnapshotMessage.fromXml($result); @@ -2686,11 +2819,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusters', @@ -2698,8 +2839,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClustersResult', ); return DBClusterMessage.fromXml($result); @@ -2769,19 +2908,26 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - listSupportedTimezones - ?.also((arg) => $request['ListSupportedTimezones'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (listSupportedTimezones != null) + 'ListSupportedTimezones': listSupportedTimezones.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -2789,8 +2935,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -2860,11 +3004,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -2872,8 +3024,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -2920,11 +3070,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -2932,8 +3090,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -2986,12 +3142,19 @@ class Neptune { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -2999,8 +3162,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -3043,11 +3204,18 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -3055,8 +3223,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -3094,11 +3260,18 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultClusterParameters', @@ -3106,8 +3279,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultClusterParametersResult', ); return DescribeEngineDefaultClusterParametersResult.fromXml($result); @@ -3144,11 +3315,18 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -3156,8 +3334,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -3178,9 +3354,16 @@ class Neptune { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -3188,8 +3371,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -3231,11 +3412,18 @@ class Neptune { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -3243,8 +3431,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -3343,16 +3529,28 @@ class Neptune { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -3360,8 +3558,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -3399,11 +3595,12 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalClusters', @@ -3411,8 +3608,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalClustersResult', ); return GlobalClustersMessage.fromXml($result); @@ -3467,15 +3662,22 @@ class Neptune { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -3483,8 +3685,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -3538,11 +3738,18 @@ class Neptune { int? maxRecords, String? resourceIdentifier, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribePendingMaintenanceActions', @@ -3550,8 +3757,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePendingMaintenanceActionsMessage'], - shapes: shapes, resultWrapper: 'DescribePendingMaintenanceActionsResult', ); return PendingMaintenanceActionsMessage.fromXml($result); @@ -3570,8 +3775,9 @@ class Neptune { describeValidDBInstanceModifications({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeValidDBInstanceModifications', @@ -3579,8 +3785,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeValidDBInstanceModificationsMessage'], - shapes: shapes, resultWrapper: 'DescribeValidDBInstanceModificationsResult', ); return DescribeValidDBInstanceModificationsResult.fromXml($result); @@ -3624,10 +3828,12 @@ class Neptune { String? dBClusterIdentifier, String? targetDBInstanceIdentifier, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - targetDBInstanceIdentifier - ?.also((arg) => $request['TargetDBInstanceIdentifier'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (targetDBInstanceIdentifier != null) + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverDBCluster', @@ -3635,8 +3841,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverDBClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverDBClusterResult', ); return FailoverDBClusterResult.fromXml($result); @@ -3678,9 +3882,10 @@ class Neptune { required String globalClusterIdentifier, required String targetDbClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverGlobalCluster', @@ -3688,8 +3893,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverGlobalClusterResult', ); return FailoverGlobalClusterResult.fromXml($result); @@ -3713,9 +3916,16 @@ class Neptune { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -3723,8 +3933,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -3974,37 +4182,50 @@ class Neptune { String? storageType, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBInstanceParameterGroupName - ?.also((arg) => $request['DBInstanceParameterGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - newDBClusterIdentifier - ?.also((arg) => $request['NewDBClusterIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBInstanceParameterGroupName != null) + 'DBInstanceParameterGroupName': dBInstanceParameterGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (newDBClusterIdentifier != null) + 'NewDBClusterIdentifier': newDBClusterIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBCluster', @@ -4012,8 +4233,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterResult', ); return ModifyDBClusterResult.fromXml($result); @@ -4049,11 +4268,22 @@ class Neptune { List? excludedMembers, List? staticMembers, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - endpointType?.also((arg) => $request['EndpointType'] = arg); - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (endpointType != null) 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterEndpoint', @@ -4061,8 +4291,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterEndpointResult', ); return ModifyDBClusterEndpointOutput.fromXml($result); @@ -4103,9 +4331,15 @@ class Neptune { required String dBClusterParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterParameterGroup', @@ -4113,8 +4347,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -4182,11 +4414,22 @@ class Neptune { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterSnapshotAttribute', @@ -4194,8 +4437,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterSnapshotAttributeResult', ); return ModifyDBClusterSnapshotAttributeResult.fromXml($result); @@ -4568,56 +4809,78 @@ class Neptune { String? tdeCredentialPassword, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBPortNumber?.also((arg) => $request['DBPortNumber'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBPortNumber != null) 'DBPortNumber': dBPortNumber.toString(), + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -4625,8 +4888,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -4685,9 +4946,15 @@ class Neptune { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -4695,8 +4962,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -4730,11 +4995,16 @@ class Neptune { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -4742,8 +5012,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -4796,12 +5064,18 @@ class Neptune { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -4809,8 +5083,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -4880,14 +5152,16 @@ class Neptune { String? engineVersion, String? newGlobalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - newGlobalClusterIdentifier - ?.also((arg) => $request['NewGlobalClusterIdentifier'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (newGlobalClusterIdentifier != null) + 'NewGlobalClusterIdentifier': newGlobalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalCluster', @@ -4895,8 +5169,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalClusterResult', ); return ModifyGlobalClusterResult.fromXml($result); @@ -4912,8 +5184,9 @@ class Neptune { Future promoteReadReplicaDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplicaDBCluster', @@ -4921,8 +5194,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaDBClusterMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaDBClusterResult', ); return PromoteReadReplicaDBClusterResult.fromXml($result); @@ -4962,9 +5233,10 @@ class Neptune { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -4972,8 +5244,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -4999,9 +5269,10 @@ class Neptune { required String dbClusterIdentifier, required String globalClusterIdentifier, }) async { - final $request = {}; - $request['DbClusterIdentifier'] = dbClusterIdentifier; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'DbClusterIdentifier': dbClusterIdentifier, + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RemoveFromGlobalCluster', @@ -5009,8 +5280,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveFromGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'RemoveFromGlobalClusterResult', ); return RemoveFromGlobalClusterResult.fromXml($result); @@ -5040,10 +5309,11 @@ class Neptune { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'RemoveRoleFromDBCluster', @@ -5051,8 +5321,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromDBClusterMessage'], - shapes: shapes, ); } @@ -5075,9 +5343,10 @@ class Neptune { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -5085,8 +5354,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -5111,9 +5378,14 @@ class Neptune { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -5121,8 +5393,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -5160,10 +5430,18 @@ class Neptune { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBClusterParameterGroup', @@ -5171,8 +5449,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -5221,10 +5497,18 @@ class Neptune { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -5232,8 +5516,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -5436,30 +5718,58 @@ class Neptune { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['SnapshotIdentifier'] = snapshotIdentifier; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'SnapshotIdentifier': snapshotIdentifier, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromSnapshot', @@ -5467,8 +5777,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromSnapshotResult', ); return RestoreDBClusterFromSnapshotResult.fromXml($result); @@ -5702,30 +6010,51 @@ class Neptune { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['SourceDBClusterIdentifier'] = sourceDBClusterIdentifier; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - restoreToTime - ?.also((arg) => $request['RestoreToTime'] = _s.iso8601ToJson(arg)); - restoreType?.also((arg) => $request['RestoreType'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (restoreToTime != null) + 'RestoreToTime': _s.iso8601ToJson(restoreToTime), + if (restoreType != null) 'RestoreType': restoreType, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterToPointInTime', @@ -5733,8 +6062,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterToPointInTimeResult', ); return RestoreDBClusterToPointInTimeResult.fromXml($result); @@ -5753,8 +6080,9 @@ class Neptune { Future startDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBCluster', @@ -5762,8 +6090,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBClusterMessage'], - shapes: shapes, resultWrapper: 'StartDBClusterResult', ); return StartDBClusterResult.fromXml($result); @@ -5786,8 +6112,9 @@ class Neptune { Future stopDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBCluster', @@ -5795,8 +6122,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBClusterMessage'], - shapes: shapes, resultWrapper: 'StopDBClusterResult', ); return StopDBClusterResult.fromXml($result); @@ -5960,6 +6285,25 @@ class CloudwatchLogsExportConfiguration { if (enableLogTypes != null) 'EnableLogTypes': enableLogTypes, }; } + + Map toQueryMap() { + final disableLogTypes = this.disableLogTypes; + final enableLogTypes = this.enableLogTypes; + return { + if (disableLogTypes != null) + if (disableLogTypes.isEmpty) + 'DisableLogTypes': '' + else + for (var i1 = 0; i1 < disableLogTypes.length; i1++) + 'DisableLogTypes.member.${i1 + 1}': disableLogTypes[i1], + if (enableLogTypes != null) + if (enableLogTypes.isEmpty) + 'EnableLogTypes': '' + else + for (var i1 = 0; i1 < enableLogTypes.length; i1++) + 'EnableLogTypes.member.${i1 + 1}': enableLogTypes[i1], + }; + } } /// This data type is used as a response element in the @@ -9599,6 +9943,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } /// Contains the details of an Amazon Neptune global database. @@ -10373,6 +10730,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } /// A list of the log types whose configuration is still pending. In other @@ -10887,6 +11270,15 @@ class ServerlessV2ScalingConfiguration { if (minCapacity != null) 'MinCapacity': minCapacity, }; } + + Map toQueryMap() { + final maxCapacity = this.maxCapacity; + final minCapacity = this.minCapacity; + return { + if (maxCapacity != null) 'MaxCapacity': maxCapacity.toString(), + if (minCapacity != null) 'MinCapacity': minCapacity.toString(), + }; + } } /// Shows the scaling configuration for a Neptune Serverless DB cluster. @@ -11092,6 +11484,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/aws_client/lib/src/generated/neptune/v2014_10_31.meta.dart b/aws_client/lib/src/generated/neptune/v2014_10_31.meta.dart deleted file mode 100644 index 9169d7601..000000000 --- a/aws_client/lib/src/generated/neptune/v2014_10_31.meta.dart +++ /dev/null @@ -1,2488 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AddRoleToDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ApplyMethod": {"type": "string", "flattened": false}, - "ApplyPendingMaintenanceActionMessage": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "ApplyAction": {"shape": "String", "flattened": false}, - "OptInType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ApplyPendingMaintenanceActionResult": { - "type": "structure", - "members": { - "ResourcePendingMaintenanceActions": { - "shape": "ResourcePendingMaintenanceActions", - "flattened": false - } - }, - "flattened": false - }, - "AttributeValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "AttributeValue"}, - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "AvailabilityZones": { - "type": "list", - "member": {"shape": "String", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CharacterSet": { - "type": "structure", - "members": { - "CharacterSetName": {"shape": "String", "flattened": false}, - "CharacterSetDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CloudwatchLogsExportConfiguration": { - "type": "structure", - "members": { - "EnableLogTypes": {"shape": "LogTypeList", "flattened": false}, - "DisableLogTypes": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "ClusterPendingModifiedValues": { - "type": "structure", - "members": { - "PendingCloudwatchLogsExports": { - "shape": "PendingCloudwatchLogsExports", - "flattened": false - }, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "EngineVersion": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "SourceDBClusterParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterParameterGroupDescription": { - "shape": "String", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterParameterGroupResult": { - "type": "structure", - "members": { - "DBClusterParameterGroup": { - "shape": "DBClusterParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CopyDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBClusterSnapshotIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterSnapshotIdentifier": { - "shape": "String", - "flattened": false - }, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "CopyTags": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "CopyDBParameterGroupMessage": { - "type": "structure", - "members": { - "SourceDBParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBParameterGroupDescription": { - "shape": "String", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterEndpointMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterEndpointOutput": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointResourceIdentifier": { - "shape": "String", - "flattened": false - }, - "Endpoint": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "CustomEndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false}, - "DBClusterEndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterMessage": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "ReplicationSourceIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterParameterGroupResult": { - "type": "structure", - "members": { - "DBClusterParameterGroup": { - "shape": "DBClusterParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CreateDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceMessage": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "SensitiveString", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "Timezone": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "SourceDBClusterIdentifier": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "DBCluster": { - "type": "structure", - "members": { - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterParameterGroup": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "String", "flattened": false}, - "EarliestRestorableTime": {"shape": "TStamp", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false}, - "ReaderEndpoint": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBClusterOptionGroupMemberships": { - "shape": "DBClusterOptionGroupMemberships", - "flattened": false - }, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "ReplicationSourceIdentifier": {"shape": "String", "flattened": false}, - "ReadReplicaIdentifiers": { - "shape": "ReadReplicaIdentifierList", - "flattened": false - }, - "DBClusterMembers": {"shape": "DBClusterMemberList", "flattened": false}, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "HostedZoneId": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DbClusterResourceId": {"shape": "String", "flattened": false}, - "DBClusterArn": {"shape": "String", "flattened": false}, - "AssociatedRoles": {"shape": "DBClusterRoles", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "CloneGroupId": {"shape": "String", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "EnabledCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "PendingModifiedValues": { - "shape": "ClusterPendingModifiedValues", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "CrossAccountClone": {"shape": "BooleanOptional", "flattened": false}, - "AutomaticRestartTime": {"shape": "TStamp", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfigurationInfo", - "flattened": false - }, - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "IOOptimizedNextAllowedModificationTime": { - "shape": "TStamp", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterEndpoint": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointResourceIdentifier": { - "shape": "String", - "flattened": false - }, - "Endpoint": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "CustomEndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false}, - "DBClusterEndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterEndpointList": { - "type": "list", - "member": { - "shape": "DBClusterEndpoint", - "locationName": "DBClusterEndpointList" - }, - "flattened": false - }, - "DBClusterEndpointMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterEndpoints": { - "shape": "DBClusterEndpointList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterList": { - "type": "list", - "member": {"shape": "DBCluster", "locationName": "DBCluster"}, - "flattened": false - }, - "DBClusterMember": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "IsClusterWriter": {"shape": "Boolean", "flattened": false}, - "DBClusterParameterGroupStatus": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DBClusterMemberList": { - "type": "list", - "member": {"shape": "DBClusterMember", "locationName": "DBClusterMember"}, - "flattened": false - }, - "DBClusterMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusters": {"shape": "DBClusterList", "flattened": false} - }, - "flattened": false - }, - "DBClusterOptionGroupMemberships": { - "type": "list", - "member": { - "shape": "DBClusterOptionGroupStatus", - "locationName": "DBClusterOptionGroup" - }, - "flattened": false - }, - "DBClusterOptionGroupStatus": { - "type": "structure", - "members": { - "DBClusterOptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroup": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "DBClusterParameterGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupList": { - "type": "list", - "member": { - "shape": "DBClusterParameterGroup", - "locationName": "DBClusterParameterGroup" - }, - "flattened": false - }, - "DBClusterParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterParameterGroups": { - "shape": "DBClusterParameterGroupList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterRole": { - "type": "structure", - "members": { - "RoleArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterRoles": { - "type": "list", - "member": {"shape": "DBClusterRole", "locationName": "DBClusterRole"}, - "flattened": false - }, - "DBClusterSnapshot": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "Integer", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DBClusterSnapshotArn": {"shape": "String", "flattened": false}, - "SourceDBClusterSnapshotArn": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterSnapshotAttribute": { - "type": "structure", - "members": { - "AttributeName": {"shape": "String", "flattened": false}, - "AttributeValues": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "DBClusterSnapshotAttributeList": { - "type": "list", - "member": { - "shape": "DBClusterSnapshotAttribute", - "locationName": "DBClusterSnapshotAttribute" - }, - "flattened": false - }, - "DBClusterSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterSnapshotAttributes": { - "shape": "DBClusterSnapshotAttributeList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterSnapshotList": { - "type": "list", - "member": { - "shape": "DBClusterSnapshot", - "locationName": "DBClusterSnapshot" - }, - "flattened": false - }, - "DBClusterSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterSnapshots": { - "shape": "DBClusterSnapshotList", - "flattened": false - } - }, - "flattened": false - }, - "DBEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "DBEngineDescription": {"shape": "String", "flattened": false}, - "DBEngineVersionDescription": {"shape": "String", "flattened": false}, - "DefaultCharacterSet": {"shape": "CharacterSet", "flattened": false}, - "SupportedCharacterSets": { - "shape": "SupportedCharacterSetsList", - "flattened": false - }, - "ValidUpgradeTarget": { - "shape": "ValidUpgradeTargetList", - "flattened": false - }, - "SupportedTimezones": { - "shape": "SupportedTimezonesList", - "flattened": false - }, - "ExportableLogTypes": {"shape": "LogTypeList", "flattened": false}, - "SupportsLogExportsToCloudwatchLogs": { - "shape": "Boolean", - "flattened": false - }, - "SupportsReadReplica": {"shape": "Boolean", "flattened": false}, - "SupportsGlobalDatabases": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DBEngineVersionList": { - "type": "list", - "member": {"shape": "DBEngineVersion", "locationName": "DBEngineVersion"}, - "flattened": false - }, - "DBEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBEngineVersions": {"shape": "DBEngineVersionList", "flattened": false} - }, - "flattened": false - }, - "DBInstance": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DBInstanceStatus": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "Integer", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "DBParameterGroups": { - "shape": "DBParameterGroupStatusList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "ReadReplicaSourceDBInstanceIdentifier": { - "shape": "String", - "flattened": false - }, - "ReadReplicaDBInstanceIdentifiers": { - "shape": "ReadReplicaDBInstanceIdentifierList", - "flattened": false - }, - "ReadReplicaDBClusterIdentifiers": { - "shape": "ReadReplicaDBClusterIdentifierList", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupMemberships": { - "shape": "OptionGroupMembershipList", - "flattened": false - }, - "CharacterSetName": {"shape": "String", "flattened": false}, - "SecondaryAvailabilityZone": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false}, - "StatusInfos": {"shape": "DBInstanceStatusInfoList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "DbInstancePort": {"shape": "Integer", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "DomainMemberships": { - "shape": "DomainMembershipList", - "flattened": false - }, - "CopyTagsToSnapshot": {"shape": "Boolean", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "EnhancedMonitoringResourceArn": {"shape": "String", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceArn": {"shape": "String", "flattened": false}, - "Timezone": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "PerformanceInsightsEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "EnabledCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DBInstanceList": { - "type": "list", - "member": {"shape": "DBInstance", "locationName": "DBInstance"}, - "flattened": false - }, - "DBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstances": {"shape": "DBInstanceList", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfo": { - "type": "structure", - "members": { - "StatusType": {"shape": "String", "flattened": false}, - "Normal": {"shape": "Boolean", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfoList": { - "type": "list", - "member": { - "shape": "DBInstanceStatusInfo", - "locationName": "DBInstanceStatusInfo" - }, - "flattened": false - }, - "DBParameterGroup": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "DBParameterGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupList": { - "type": "list", - "member": {"shape": "DBParameterGroup", "locationName": "DBParameterGroup"}, - "flattened": false - }, - "DBParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatus": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatusList": { - "type": "list", - "member": { - "shape": "DBParameterGroupStatus", - "locationName": "DBParameterGroup" - }, - "flattened": false - }, - "DBParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBParameterGroups": {"shape": "DBParameterGroupList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembership": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "DBSecurityGroupMembership", - "locationName": "DBSecurityGroup" - }, - "flattened": false - }, - "DBSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "DBSecurityGroupName"}, - "flattened": false - }, - "DBSubnetGroup": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false}, - "DBSubnetGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSubnetGroups": {"shape": "DBSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroups": { - "type": "list", - "member": {"shape": "DBSubnetGroup", "locationName": "DBSubnetGroup"}, - "flattened": false - }, - "DeleteDBClusterEndpointMessage": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterEndpointOutput": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointResourceIdentifier": { - "shape": "String", - "flattened": false - }, - "Endpoint": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "CustomEndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false}, - "DBClusterEndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "DeleteDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "DeleteGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - } - }, - "flattened": false - }, - "DeleteGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterEndpointsMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterParametersMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterSnapshotAttributesMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBClusterSnapshotAttributesResult": { - "shape": "DBClusterSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBClusterSnapshotsMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "IncludeShared": {"shape": "Boolean", "flattened": false}, - "IncludePublic": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClustersMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false}, - "ListSupportedCharacterSets": { - "shape": "BooleanOptional", - "flattened": false - }, - "ListSupportedTimezones": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeDBInstancesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParameterGroupsMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSubnetGroupsMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultClusterParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultClusterParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeGlobalClustersMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Vpc": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribePendingMaintenanceActionsMessage": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeValidDBInstanceModificationsMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeValidDBInstanceModificationsResult": { - "type": "structure", - "members": { - "ValidDBInstanceModificationsMessage": { - "shape": "ValidDBInstanceModificationsMessage", - "flattened": false - } - }, - "flattened": false - }, - "DomainMembership": { - "type": "structure", - "members": { - "Domain": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "FQDN": {"shape": "String", "flattened": false}, - "IAMRoleName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DomainMembershipList": { - "type": "list", - "member": {"shape": "DomainMembership", "locationName": "DomainMembership"}, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "DoubleOptional": {"type": "double", "flattened": false}, - "DoubleRange": { - "type": "structure", - "members": { - "From": {"shape": "Double", "flattened": false}, - "To": {"shape": "Double", "flattened": false} - }, - "flattened": false - }, - "DoubleRangeList": { - "type": "list", - "member": {"shape": "DoubleRange", "locationName": "DoubleRange"}, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "HostedZoneId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false}, - "SourceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Enabled": {"shape": "Boolean", "flattened": false}, - "EventSubscriptionArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "FailoverDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "FailoverDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "FailoverGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "TargetDbClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "FailoverGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "Filter": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Values": {"shape": "FilterValueList", "flattened": false} - }, - "flattened": false - }, - "FilterList": { - "type": "list", - "member": {"shape": "Filter", "locationName": "Filter"}, - "flattened": false - }, - "FilterValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "Value"}, - "flattened": false - }, - "GlobalCluster": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "GlobalClusterResourceId": {"shape": "String", "flattened": false}, - "GlobalClusterArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "GlobalClusterMembers": { - "shape": "GlobalClusterMemberList", - "flattened": false - } - }, - "flattened": false - }, - "GlobalClusterIdentifier": {"type": "string", "flattened": false}, - "GlobalClusterList": { - "type": "list", - "member": {"shape": "GlobalCluster", "locationName": "GlobalClusterMember"}, - "flattened": false - }, - "GlobalClusterMember": { - "type": "structure", - "members": { - "DBClusterArn": {"shape": "String", "flattened": false}, - "Readers": {"shape": "ReadersArnList", "flattened": false}, - "IsWriter": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "GlobalClusterMemberList": { - "type": "list", - "member": { - "shape": "GlobalClusterMember", - "locationName": "GlobalClusterMember" - }, - "flattened": false - }, - "GlobalClustersMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "GlobalClusters": {"shape": "GlobalClusterList", "flattened": false} - }, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "LogTypeList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ModifyDBClusterEndpointMessage": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterEndpointOutput": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointResourceIdentifier": { - "shape": "String", - "flattened": false - }, - "Endpoint": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "CustomEndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false}, - "DBClusterEndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "NewDBClusterIdentifier": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "CloudwatchLogsExportConfiguration": { - "shape": "CloudwatchLogsExportConfiguration", - "flattened": false - }, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "DBInstanceParameterGroupName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterSnapshotAttributeMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "AttributeName": {"shape": "String", "flattened": false}, - "ValuesToAdd": {"shape": "AttributeValueList", "flattened": false}, - "ValuesToRemove": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterSnapshotAttributeResult": { - "type": "structure", - "members": { - "DBClusterSnapshotAttributesResult": { - "shape": "DBClusterSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "ModifyDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "NewDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "SensitiveString", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "DBPortNumber": {"shape": "IntegerOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "CloudwatchLogsExportConfiguration": { - "shape": "CloudwatchLogsExportConfiguration", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "ModifyDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "NewGlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "ModifyGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembership": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembershipList": { - "type": "list", - "member": { - "shape": "OptionGroupMembership", - "locationName": "OptionGroupMembership" - }, - "flattened": false - }, - "OrderableDBInstanceOption": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZones": { - "shape": "AvailabilityZoneList", - "flattened": false - }, - "MultiAZCapable": {"shape": "Boolean", "flattened": false}, - "ReadReplicaCapable": {"shape": "Boolean", "flattened": false}, - "Vpc": {"shape": "Boolean", "flattened": false}, - "SupportsStorageEncryption": {"shape": "Boolean", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "SupportsIops": {"shape": "Boolean", "flattened": false}, - "SupportsEnhancedMonitoring": {"shape": "Boolean", "flattened": false}, - "SupportsIAMDatabaseAuthentication": { - "shape": "Boolean", - "flattened": false - }, - "SupportsPerformanceInsights": {"shape": "Boolean", "flattened": false}, - "MinStorageSize": {"shape": "IntegerOptional", "flattened": false}, - "MaxStorageSize": {"shape": "IntegerOptional", "flattened": false}, - "MinIopsPerDbInstance": {"shape": "IntegerOptional", "flattened": false}, - "MaxIopsPerDbInstance": {"shape": "IntegerOptional", "flattened": false}, - "MinIopsPerGib": {"shape": "DoubleOptional", "flattened": false}, - "MaxIopsPerGib": {"shape": "DoubleOptional", "flattened": false}, - "SupportsGlobalDatabases": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOptionsList": { - "type": "list", - "member": { - "shape": "OrderableDBInstanceOption", - "locationName": "OrderableDBInstanceOption" - }, - "flattened": false - }, - "OrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "OrderableDBInstanceOptions": { - "shape": "OrderableDBInstanceOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ApplyMethod": {"shape": "ApplyMethod", "flattened": false} - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PendingCloudwatchLogsExports": { - "type": "structure", - "members": { - "LogTypesToEnable": {"shape": "LogTypeList", "flattened": false}, - "LogTypesToDisable": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "PendingMaintenanceAction": { - "type": "structure", - "members": { - "Action": {"shape": "String", "flattened": false}, - "AutoAppliedAfterDate": {"shape": "TStamp", "flattened": false}, - "ForcedApplyDate": {"shape": "TStamp", "flattened": false}, - "OptInStatus": {"shape": "String", "flattened": false}, - "CurrentApplyDate": {"shape": "TStamp", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PendingMaintenanceActionDetails": { - "type": "list", - "member": { - "shape": "PendingMaintenanceAction", - "locationName": "PendingMaintenanceAction" - }, - "flattened": false - }, - "PendingMaintenanceActions": { - "type": "list", - "member": { - "shape": "ResourcePendingMaintenanceActions", - "locationName": "ResourcePendingMaintenanceActions" - }, - "flattened": false - }, - "PendingMaintenanceActionsMessage": { - "type": "structure", - "members": { - "PendingMaintenanceActions": { - "shape": "PendingMaintenanceActions", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PendingCloudwatchLogsExports": { - "shape": "PendingCloudwatchLogsExports", - "flattened": false - } - }, - "flattened": false - }, - "PromoteReadReplicaDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "Range": { - "type": "structure", - "members": { - "From": {"shape": "Integer", "flattened": false}, - "To": {"shape": "Integer", "flattened": false}, - "Step": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "RangeList": { - "type": "list", - "member": {"shape": "Range", "locationName": "Range"}, - "flattened": false - }, - "ReadReplicaDBClusterIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBClusterIdentifier" - }, - "flattened": false - }, - "ReadReplicaDBInstanceIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBInstanceIdentifier" - }, - "flattened": false - }, - "ReadReplicaIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "ReadReplicaIdentifier"}, - "flattened": false - }, - "ReadersArnList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "RebootDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "ForceFailover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RemoveFromGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "DbClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveFromGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "RemoveRoleFromDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ResetDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ResetDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ResourcePendingMaintenanceActions": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "PendingMaintenanceActionDetails": { - "shape": "PendingMaintenanceActionDetails", - "flattened": false - } - }, - "flattened": false - }, - "RestoreDBClusterFromSnapshotMessage": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterFromSnapshotResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterToPointInTimeMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RestoreType": {"shape": "String", "flattened": false}, - "SourceDBClusterIdentifier": {"shape": "String", "flattened": false}, - "RestoreToTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterToPointInTimeResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "SensitiveString": {"type": "string", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "type": "structure", - "members": { - "MinCapacity": {"shape": "DoubleOptional", "flattened": false}, - "MaxCapacity": {"shape": "DoubleOptional", "flattened": false} - }, - "flattened": false - }, - "ServerlessV2ScalingConfigurationInfo": { - "type": "structure", - "members": { - "MinCapacity": {"shape": "DoubleOptional", "flattened": false}, - "MaxCapacity": {"shape": "DoubleOptional", "flattened": false} - }, - "flattened": false - }, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "StartDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StartDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "StopDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StopDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "StringList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SupportedCharacterSetsList": { - "type": "list", - "member": {"shape": "CharacterSet", "locationName": "CharacterSet"}, - "flattened": false - }, - "SupportedTimezonesList": { - "type": "list", - "member": {"shape": "Timezone", "locationName": "Timezone"}, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "Timezone": { - "type": "structure", - "members": { - "TimezoneName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UpgradeTarget": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "AutoUpgrade": {"shape": "Boolean", "flattened": false}, - "IsMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "SupportsGlobalDatabases": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "ValidDBInstanceModificationsMessage": { - "type": "structure", - "members": { - "Storage": {"shape": "ValidStorageOptionsList", "flattened": false} - }, - "flattened": false - }, - "ValidStorageOptions": { - "type": "structure", - "members": { - "StorageType": {"shape": "String", "flattened": false}, - "StorageSize": {"shape": "RangeList", "flattened": false}, - "ProvisionedIops": {"shape": "RangeList", "flattened": false}, - "IopsToStorageRatio": {"shape": "DoubleRangeList", "flattened": false} - }, - "flattened": false - }, - "ValidStorageOptionsList": { - "type": "list", - "member": { - "shape": "ValidStorageOptions", - "locationName": "ValidStorageOptions" - }, - "flattened": false - }, - "ValidUpgradeTargetList": { - "type": "list", - "member": {"shape": "UpgradeTarget", "locationName": "UpgradeTarget"}, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroupMembership" - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/rds/v2013_01_10.dart b/aws_client/lib/src/generated/rds/v2013_01_10.dart index 43c9c2d45..ab09f2eaf 100644 --- a/aws_client/lib/src/generated/rds/v2013_01_10.dart +++ b/aws_client/lib/src/generated/rds/v2013_01_10.dart @@ -17,12 +17,10 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2013_01_10.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; class Rds { final _s.QueryProtocol _protocol; - final Map shapes; Rds({ required String region, @@ -30,7 +28,7 @@ class Rds { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class Rds { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class Rds { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -142,9 +141,10 @@ class Rds { required String sourceDBSnapshotIdentifier, required String targetDBSnapshotIdentifier, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -152,8 +152,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -198,35 +196,50 @@ class Rds { bool? publiclyAccessible, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -234,8 +247,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -267,17 +278,19 @@ class Rds { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -285,8 +298,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -300,10 +311,11 @@ class Rds { required String dBParameterGroupName, required String description, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -311,8 +323,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -326,9 +336,10 @@ class Rds { required String dBSecurityGroupDescription, required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -336,8 +347,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -352,9 +361,10 @@ class Rds { required String dBInstanceIdentifier, required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -362,8 +372,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -380,10 +388,15 @@ class Rds { required String dBSubnetGroupName, required List subnetIds, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -391,8 +404,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -414,13 +425,24 @@ class Rds { List? sourceIds, String? sourceType, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -428,8 +450,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -444,11 +464,12 @@ class Rds { required String optionGroupDescription, required String optionGroupName, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -456,8 +477,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -473,11 +492,13 @@ class Rds { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -485,8 +506,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -498,8 +517,9 @@ class Rds { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -507,8 +527,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -518,8 +536,9 @@ class Rds { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -527,8 +546,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -538,8 +555,9 @@ class Rds { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -547,8 +565,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -561,8 +577,9 @@ class Rds { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -570,8 +587,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -581,8 +596,9 @@ class Rds { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -590,8 +606,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -603,8 +617,9 @@ class Rds { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -612,8 +627,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -626,16 +639,17 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -643,8 +657,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -657,10 +669,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -668,8 +682,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -682,10 +694,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -693,8 +707,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -708,11 +720,12 @@ class Rds { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -720,8 +733,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -734,10 +745,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -745,8 +758,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -761,12 +772,15 @@ class Rds { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -774,8 +788,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -788,10 +800,11 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -799,8 +812,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -812,10 +823,11 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -823,8 +835,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -833,8 +843,9 @@ class Rds { Future describeEventCategories({ String? sourceType, }) async { - final $request = {}; - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -842,8 +853,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -856,10 +865,11 @@ class Rds { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -867,8 +877,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -884,15 +892,21 @@ class Rds { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -900,8 +914,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -913,11 +925,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -925,8 +938,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -941,12 +952,13 @@ class Rds { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -954,8 +966,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -970,14 +980,15 @@ class Rds { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -985,8 +996,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1005,17 +1014,19 @@ class Rds { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1023,8 +1034,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1043,16 +1052,17 @@ class Rds { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1060,8 +1070,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1073,8 +1081,9 @@ class Rds { Future listTagsForResource({ required String resourceName, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; + final $request = { + 'ResourceName': resourceName, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1082,8 +1091,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1122,31 +1129,47 @@ class Rds { String? preferredMaintenanceWindow, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1154,8 +1177,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1168,9 +1189,15 @@ class Rds { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1178,8 +1205,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1196,11 +1221,16 @@ class Rds { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1208,8 +1238,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1229,12 +1257,18 @@ class Rds { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1242,8 +1276,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1258,11 +1290,25 @@ class Rds { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1270,8 +1316,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1285,12 +1329,13 @@ class Rds { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1298,8 +1343,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1315,10 +1358,13 @@ class Rds { int? dBInstanceCount, String? reservedDBInstanceId, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1326,8 +1372,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1340,9 +1384,10 @@ class Rds { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1350,8 +1395,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1365,9 +1408,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1375,8 +1419,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1389,9 +1431,14 @@ class Rds { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1399,8 +1446,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1412,10 +1457,18 @@ class Rds { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1423,8 +1476,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1461,22 +1512,24 @@ class Rds { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1484,8 +1537,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1524,25 +1575,27 @@ class Rds { DateTime? restoreTime, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1550,8 +1603,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1568,13 +1619,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1582,8 +1635,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -3279,6 +3330,31 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -3637,6 +3713,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -4203,6 +4305,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/aws_client/lib/src/generated/rds/v2013_01_10.meta.dart b/aws_client/lib/src/generated/rds/v2013_01_10.meta.dart deleted file mode 100644 index 350f8fda5..000000000 --- a/aws_client/lib/src/generated/rds/v2013_01_10.meta.dart +++ /dev/null @@ -1,1551 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AddSourceIdentifierToSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ApplyMethod": {"type": "string", "flattened": false}, - "AuthorizeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "ProvisionedIopsCapable": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CharacterSet": { - "type": "structure", - "members": { - "CharacterSetName": {"shape": "String", "flattened": false}, - "CharacterSetDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "TargetDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceMessage": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "DBEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "DBEngineDescription": {"shape": "String", "flattened": false}, - "DBEngineVersionDescription": {"shape": "String", "flattened": false}, - "DefaultCharacterSet": {"shape": "CharacterSet", "flattened": false}, - "SupportedCharacterSets": { - "shape": "SupportedCharacterSetsList", - "flattened": false - } - }, - "flattened": false - }, - "DBEngineVersionList": { - "type": "list", - "member": {"shape": "DBEngineVersion", "locationName": "DBEngineVersion"}, - "flattened": false - }, - "DBEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBEngineVersions": {"shape": "DBEngineVersionList", "flattened": false} - }, - "flattened": false - }, - "DBInstance": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DBInstanceStatus": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "Integer", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "DBParameterGroups": { - "shape": "DBParameterGroupStatusList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "ReadReplicaSourceDBInstanceIdentifier": { - "shape": "String", - "flattened": false - }, - "ReadReplicaDBInstanceIdentifiers": { - "shape": "ReadReplicaDBInstanceIdentifierList", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupMembership": { - "shape": "OptionGroupMembership", - "flattened": false - }, - "CharacterSetName": {"shape": "String", "flattened": false}, - "SecondaryAvailabilityZone": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DBInstanceList": { - "type": "list", - "member": {"shape": "DBInstance", "locationName": "DBInstance"}, - "flattened": false - }, - "DBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstances": {"shape": "DBInstanceList", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroup": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupList": { - "type": "list", - "member": {"shape": "DBParameterGroup", "locationName": "DBParameterGroup"}, - "flattened": false - }, - "DBParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatus": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatusList": { - "type": "list", - "member": { - "shape": "DBParameterGroupStatus", - "locationName": "DBParameterGroup" - }, - "flattened": false - }, - "DBParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBParameterGroups": {"shape": "DBParameterGroupList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroup": { - "type": "structure", - "members": { - "OwnerId": {"shape": "String", "flattened": false}, - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "EC2SecurityGroups": { - "shape": "EC2SecurityGroupList", - "flattened": false - }, - "IPRanges": {"shape": "IPRangeList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembership": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "DBSecurityGroupMembership", - "locationName": "DBSecurityGroup" - }, - "flattened": false - }, - "DBSecurityGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSecurityGroups": {"shape": "DBSecurityGroups", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "DBSecurityGroupName"}, - "flattened": false - }, - "DBSecurityGroups": { - "type": "list", - "member": {"shape": "DBSecurityGroup", "locationName": "DBSecurityGroup"}, - "flattened": false - }, - "DBSnapshot": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotList": { - "type": "list", - "member": {"shape": "DBSnapshot", "locationName": "DBSnapshot"}, - "flattened": false - }, - "DBSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSnapshots": {"shape": "DBSnapshotList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroup": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSubnetGroups": {"shape": "DBSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroups": { - "type": "list", - "member": {"shape": "DBSubnetGroup", "locationName": "DBSubnetGroup"}, - "flattened": false - }, - "DeleteDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "DeleteDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "DeleteOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false}, - "ListSupportedCharacterSets": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBInstancesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParameterGroupsMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSecurityGroupsMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSnapshotsMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSubnetGroupsMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupOptionsMessage": { - "type": "structure", - "members": { - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupsMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Vpc": {"shape": "BooleanOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesMessage": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "EC2SecurityGroup": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroupList": { - "type": "list", - "member": {"shape": "EC2SecurityGroup", "locationName": "EC2SecurityGroup"}, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "Id": {"shape": "String", "flattened": false}, - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Enabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "IPRange": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IPRangeList": { - "type": "list", - "member": {"shape": "IPRange", "locationName": "IPRange"}, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "NewDBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "ModifyDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionsToInclude": { - "shape": "OptionConfigurationList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionNamesList", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "Option": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "OptionDescription": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - } - }, - "flattened": false - }, - "OptionConfiguration": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - } - }, - "flattened": false - }, - "OptionConfigurationList": { - "type": "list", - "member": { - "shape": "OptionConfiguration", - "locationName": "OptionConfiguration" - }, - "flattened": false - }, - "OptionGroup": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Options": {"shape": "OptionsList", "flattened": false}, - "AllowsVpcAndNonVpcInstanceMemberships": { - "shape": "Boolean", - "flattened": false - }, - "VpcId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembership": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupOption": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "MinimumRequiredMinorEngineVersion": { - "shape": "String", - "flattened": false - }, - "PortRequired": {"shape": "Boolean", "flattened": false}, - "DefaultPort": {"shape": "IntegerOptional", "flattened": false}, - "OptionsDependedOn": {"shape": "OptionsDependedOn", "flattened": false} - }, - "flattened": false - }, - "OptionGroupOptionsList": { - "type": "list", - "member": { - "shape": "OptionGroupOption", - "locationName": "OptionGroupOption" - }, - "flattened": false - }, - "OptionGroupOptionsMessage": { - "type": "structure", - "members": { - "OptionGroupOptions": { - "shape": "OptionGroupOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroups": { - "type": "structure", - "members": { - "OptionGroupsList": {"shape": "OptionGroupsList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupsList": { - "type": "list", - "member": {"shape": "OptionGroup", "locationName": "OptionGroup"}, - "flattened": false - }, - "OptionNamesList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "OptionsDependedOn": { - "type": "list", - "member": {"shape": "String", "locationName": "OptionName"}, - "flattened": false - }, - "OptionsList": { - "type": "list", - "member": {"shape": "Option", "locationName": "Option"}, - "flattened": false - }, - "OrderableDBInstanceOption": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZones": { - "shape": "AvailabilityZoneList", - "flattened": false - }, - "MultiAZCapable": {"shape": "Boolean", "flattened": false}, - "ReadReplicaCapable": {"shape": "Boolean", "flattened": false}, - "Vpc": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOptionsList": { - "type": "list", - "member": { - "shape": "OrderableDBInstanceOption", - "locationName": "OrderableDBInstanceOption" - }, - "flattened": false - }, - "OrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "OrderableDBInstanceOptions": { - "shape": "OrderableDBInstanceOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ApplyMethod": {"shape": "ApplyMethod", "flattened": false} - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingResult": { - "type": "structure", - "members": { - "ReservedDBInstance": {"shape": "ReservedDBInstance", "flattened": false} - }, - "flattened": false - }, - "ReadReplicaDBInstanceIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBInstanceIdentifier" - }, - "flattened": false - }, - "RebootDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "ForceFailover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RecurringCharge": { - "type": "structure", - "members": { - "RecurringChargeAmount": {"shape": "Double", "flattened": false}, - "RecurringChargeFrequency": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecurringChargeList": { - "type": "list", - "member": {"shape": "RecurringCharge", "locationName": "RecurringCharge"}, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstance": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "Integer", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "State": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstanceList": { - "type": "list", - "member": { - "shape": "ReservedDBInstance", - "locationName": "ReservedDBInstance" - }, - "flattened": false - }, - "ReservedDBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstances": { - "shape": "ReservedDBInstanceList", - "flattened": false - } - }, - "flattened": false - }, - "ReservedDBInstancesOffering": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstancesOfferingList": { - "type": "list", - "member": { - "shape": "ReservedDBInstancesOffering", - "locationName": "ReservedDBInstancesOffering" - }, - "flattened": false - }, - "ReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferings": { - "shape": "ReservedDBInstancesOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "ResetDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeMessage": { - "type": "structure", - "members": { - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RestoreTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false}, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SupportedCharacterSetsList": { - "type": "list", - "member": {"shape": "CharacterSet", "locationName": "CharacterSet"}, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroupMembership" - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/rds/v2013_02_12.dart b/aws_client/lib/src/generated/rds/v2013_02_12.dart index 4e7d21c5b..a0012e2ad 100644 --- a/aws_client/lib/src/generated/rds/v2013_02_12.dart +++ b/aws_client/lib/src/generated/rds/v2013_02_12.dart @@ -17,12 +17,10 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2013_02_12.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; class Rds { final _s.QueryProtocol _protocol; - final Map shapes; Rds({ required String region, @@ -30,7 +28,7 @@ class Rds { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class Rds { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class Rds { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -142,9 +141,10 @@ class Rds { required String sourceDBSnapshotIdentifier, required String targetDBSnapshotIdentifier, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -152,8 +152,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -198,35 +196,50 @@ class Rds { bool? publiclyAccessible, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -234,8 +247,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -267,17 +278,19 @@ class Rds { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -285,8 +298,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -300,10 +311,11 @@ class Rds { required String dBParameterGroupName, required String description, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -311,8 +323,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -326,9 +336,10 @@ class Rds { required String dBSecurityGroupDescription, required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -336,8 +347,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -352,9 +361,10 @@ class Rds { required String dBInstanceIdentifier, required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -362,8 +372,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -380,10 +388,15 @@ class Rds { required String dBSubnetGroupName, required List subnetIds, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -391,8 +404,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -414,13 +425,24 @@ class Rds { List? sourceIds, String? sourceType, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -428,8 +450,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -444,11 +464,12 @@ class Rds { required String optionGroupDescription, required String optionGroupName, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -456,8 +477,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -473,11 +492,13 @@ class Rds { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -485,8 +506,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -498,8 +517,9 @@ class Rds { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -507,8 +527,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -518,8 +536,9 @@ class Rds { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -527,8 +546,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -538,8 +555,9 @@ class Rds { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -547,8 +565,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -561,8 +577,9 @@ class Rds { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -570,8 +587,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -581,8 +596,9 @@ class Rds { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -590,8 +606,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -603,8 +617,9 @@ class Rds { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -612,8 +627,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -626,16 +639,17 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -643,8 +657,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -657,10 +669,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -668,8 +682,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -685,13 +697,15 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -699,8 +713,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -713,10 +725,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -724,8 +738,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -739,11 +751,12 @@ class Rds { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -751,8 +764,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -765,10 +776,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -776,8 +789,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -792,12 +803,15 @@ class Rds { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -805,8 +819,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -819,10 +831,11 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -830,8 +843,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -843,10 +854,11 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -854,8 +866,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -864,8 +874,9 @@ class Rds { Future describeEventCategories({ String? sourceType, }) async { - final $request = {}; - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -873,8 +884,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -887,10 +896,11 @@ class Rds { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -898,8 +908,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -915,15 +923,21 @@ class Rds { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -931,8 +945,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -944,11 +956,12 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -956,8 +969,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -972,12 +983,13 @@ class Rds { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -985,8 +997,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -1001,14 +1011,15 @@ class Rds { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -1016,8 +1027,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1036,17 +1045,19 @@ class Rds { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1054,8 +1065,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1074,16 +1083,17 @@ class Rds { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1091,8 +1101,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1107,11 +1115,12 @@ class Rds { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -1119,8 +1128,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -1132,8 +1139,9 @@ class Rds { Future listTagsForResource({ required String resourceName, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; + final $request = { + 'ResourceName': resourceName, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1141,8 +1149,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1181,31 +1187,47 @@ class Rds { String? preferredMaintenanceWindow, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1213,8 +1235,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1227,9 +1247,15 @@ class Rds { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1237,8 +1263,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1255,11 +1279,16 @@ class Rds { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1267,8 +1296,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1288,12 +1315,18 @@ class Rds { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1301,8 +1334,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1317,11 +1348,25 @@ class Rds { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1329,8 +1374,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1344,12 +1387,13 @@ class Rds { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1357,8 +1401,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1374,10 +1416,13 @@ class Rds { int? dBInstanceCount, String? reservedDBInstanceId, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1385,8 +1430,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1399,9 +1442,10 @@ class Rds { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1409,8 +1453,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1424,9 +1466,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1434,8 +1477,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1448,9 +1489,14 @@ class Rds { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1458,8 +1504,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1471,10 +1515,18 @@ class Rds { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1482,8 +1534,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1520,22 +1570,24 @@ class Rds { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1543,8 +1595,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1583,25 +1633,27 @@ class Rds { DateTime? restoreTime, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1609,8 +1661,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1627,13 +1677,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1641,8 +1693,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -3450,6 +3500,39 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -3771,6 +3854,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class OrderableDBInstanceOption { @@ -3929,6 +4035,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -4495,6 +4627,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/aws_client/lib/src/generated/rds/v2013_02_12.meta.dart b/aws_client/lib/src/generated/rds/v2013_02_12.meta.dart deleted file mode 100644 index bb3556873..000000000 --- a/aws_client/lib/src/generated/rds/v2013_02_12.meta.dart +++ /dev/null @@ -1,1675 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AddSourceIdentifierToSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ApplyMethod": {"type": "string", "flattened": false}, - "AuthorizeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "ProvisionedIopsCapable": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CharacterSet": { - "type": "structure", - "members": { - "CharacterSetName": {"shape": "String", "flattened": false}, - "CharacterSetDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "TargetDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceMessage": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "DBEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "DBEngineDescription": {"shape": "String", "flattened": false}, - "DBEngineVersionDescription": {"shape": "String", "flattened": false}, - "DefaultCharacterSet": {"shape": "CharacterSet", "flattened": false}, - "SupportedCharacterSets": { - "shape": "SupportedCharacterSetsList", - "flattened": false - } - }, - "flattened": false - }, - "DBEngineVersionList": { - "type": "list", - "member": {"shape": "DBEngineVersion", "locationName": "DBEngineVersion"}, - "flattened": false - }, - "DBEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBEngineVersions": {"shape": "DBEngineVersionList", "flattened": false} - }, - "flattened": false - }, - "DBInstance": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DBInstanceStatus": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "Integer", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "DBParameterGroups": { - "shape": "DBParameterGroupStatusList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "ReadReplicaSourceDBInstanceIdentifier": { - "shape": "String", - "flattened": false - }, - "ReadReplicaDBInstanceIdentifiers": { - "shape": "ReadReplicaDBInstanceIdentifierList", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupMemberships": { - "shape": "OptionGroupMembershipList", - "flattened": false - }, - "CharacterSetName": {"shape": "String", "flattened": false}, - "SecondaryAvailabilityZone": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DBInstanceList": { - "type": "list", - "member": {"shape": "DBInstance", "locationName": "DBInstance"}, - "flattened": false - }, - "DBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstances": {"shape": "DBInstanceList", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroup": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupList": { - "type": "list", - "member": {"shape": "DBParameterGroup", "locationName": "DBParameterGroup"}, - "flattened": false - }, - "DBParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatus": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatusList": { - "type": "list", - "member": { - "shape": "DBParameterGroupStatus", - "locationName": "DBParameterGroup" - }, - "flattened": false - }, - "DBParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBParameterGroups": {"shape": "DBParameterGroupList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroup": { - "type": "structure", - "members": { - "OwnerId": {"shape": "String", "flattened": false}, - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "EC2SecurityGroups": { - "shape": "EC2SecurityGroupList", - "flattened": false - }, - "IPRanges": {"shape": "IPRangeList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembership": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "DBSecurityGroupMembership", - "locationName": "DBSecurityGroup" - }, - "flattened": false - }, - "DBSecurityGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSecurityGroups": {"shape": "DBSecurityGroups", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "DBSecurityGroupName"}, - "flattened": false - }, - "DBSecurityGroups": { - "type": "list", - "member": {"shape": "DBSecurityGroup", "locationName": "DBSecurityGroup"}, - "flattened": false - }, - "DBSnapshot": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotList": { - "type": "list", - "member": {"shape": "DBSnapshot", "locationName": "DBSnapshot"}, - "flattened": false - }, - "DBSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSnapshots": {"shape": "DBSnapshotList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroup": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSubnetGroups": {"shape": "DBSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroups": { - "type": "list", - "member": {"shape": "DBSubnetGroup", "locationName": "DBSubnetGroup"}, - "flattened": false - }, - "DeleteDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "DeleteDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "DeleteOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false}, - "ListSupportedCharacterSets": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBInstancesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesDetails": { - "type": "structure", - "members": { - "LogFileName": {"shape": "String", "flattened": false}, - "LastWritten": {"shape": "Long", "flattened": false}, - "Size": {"shape": "Long", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesList": { - "type": "list", - "member": { - "shape": "DescribeDBLogFilesDetails", - "locationName": "DescribeDBLogFilesDetails" - }, - "flattened": false - }, - "DescribeDBLogFilesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "FilenameContains": {"shape": "String", "flattened": false}, - "FileLastWritten": {"shape": "Long", "flattened": false}, - "FileSize": {"shape": "Long", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesResponse": { - "type": "structure", - "members": { - "DescribeDBLogFiles": { - "shape": "DescribeDBLogFilesList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParameterGroupsMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSecurityGroupsMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSnapshotsMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSubnetGroupsMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupOptionsMessage": { - "type": "structure", - "members": { - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupsMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Vpc": {"shape": "BooleanOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesMessage": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "DownloadDBLogFilePortionDetails": { - "type": "structure", - "members": { - "LogFileData": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "AdditionalDataPending": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DownloadDBLogFilePortionMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "LogFileName": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "NumberOfLines": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroup": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroupList": { - "type": "list", - "member": {"shape": "EC2SecurityGroup", "locationName": "EC2SecurityGroup"}, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Enabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "IPRange": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IPRangeList": { - "type": "list", - "member": {"shape": "IPRange", "locationName": "IPRange"}, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Long": {"type": "long", "flattened": false}, - "ModifyDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "NewDBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "ModifyDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionsToInclude": { - "shape": "OptionConfigurationList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionNamesList", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "Option": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "OptionDescription": {"shape": "String", "flattened": false}, - "Persistent": {"shape": "Boolean", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "OptionSettings": { - "shape": "OptionSettingConfigurationList", - "flattened": false - }, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - } - }, - "flattened": false - }, - "OptionConfiguration": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "OptionSettings": {"shape": "OptionSettingsList", "flattened": false} - }, - "flattened": false - }, - "OptionConfigurationList": { - "type": "list", - "member": { - "shape": "OptionConfiguration", - "locationName": "OptionConfiguration" - }, - "flattened": false - }, - "OptionGroup": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Options": {"shape": "OptionsList", "flattened": false}, - "AllowsVpcAndNonVpcInstanceMemberships": { - "shape": "Boolean", - "flattened": false - }, - "VpcId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembership": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembershipList": { - "type": "list", - "member": { - "shape": "OptionGroupMembership", - "locationName": "OptionGroupMembership" - }, - "flattened": false - }, - "OptionGroupOption": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "MinimumRequiredMinorEngineVersion": { - "shape": "String", - "flattened": false - }, - "PortRequired": {"shape": "Boolean", "flattened": false}, - "DefaultPort": {"shape": "IntegerOptional", "flattened": false}, - "OptionsDependedOn": {"shape": "OptionsDependedOn", "flattened": false}, - "Persistent": {"shape": "Boolean", "flattened": false}, - "OptionGroupOptionSettings": { - "shape": "OptionGroupOptionSettingsList", - "flattened": false - } - }, - "flattened": false - }, - "OptionGroupOptionSetting": { - "type": "structure", - "members": { - "SettingName": {"shape": "String", "flattened": false}, - "SettingDescription": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionGroupOptionSettingsList": { - "type": "list", - "member": { - "shape": "OptionGroupOptionSetting", - "locationName": "OptionGroupOptionSetting" - }, - "flattened": false - }, - "OptionGroupOptionsList": { - "type": "list", - "member": { - "shape": "OptionGroupOption", - "locationName": "OptionGroupOption" - }, - "flattened": false - }, - "OptionGroupOptionsMessage": { - "type": "structure", - "members": { - "OptionGroupOptions": { - "shape": "OptionGroupOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroups": { - "type": "structure", - "members": { - "OptionGroupsList": {"shape": "OptionGroupsList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupsList": { - "type": "list", - "member": {"shape": "OptionGroup", "locationName": "OptionGroup"}, - "flattened": false - }, - "OptionNamesList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "OptionSetting": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "IsCollection": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionSettingConfigurationList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionSettingsList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionsDependedOn": { - "type": "list", - "member": {"shape": "String", "locationName": "OptionName"}, - "flattened": false - }, - "OptionsList": { - "type": "list", - "member": {"shape": "Option", "locationName": "Option"}, - "flattened": false - }, - "OrderableDBInstanceOption": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZones": { - "shape": "AvailabilityZoneList", - "flattened": false - }, - "MultiAZCapable": {"shape": "Boolean", "flattened": false}, - "ReadReplicaCapable": {"shape": "Boolean", "flattened": false}, - "Vpc": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOptionsList": { - "type": "list", - "member": { - "shape": "OrderableDBInstanceOption", - "locationName": "OrderableDBInstanceOption" - }, - "flattened": false - }, - "OrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "OrderableDBInstanceOptions": { - "shape": "OrderableDBInstanceOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ApplyMethod": {"shape": "ApplyMethod", "flattened": false} - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingResult": { - "type": "structure", - "members": { - "ReservedDBInstance": {"shape": "ReservedDBInstance", "flattened": false} - }, - "flattened": false - }, - "ReadReplicaDBInstanceIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBInstanceIdentifier" - }, - "flattened": false - }, - "RebootDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "ForceFailover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RecurringCharge": { - "type": "structure", - "members": { - "RecurringChargeAmount": {"shape": "Double", "flattened": false}, - "RecurringChargeFrequency": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecurringChargeList": { - "type": "list", - "member": {"shape": "RecurringCharge", "locationName": "RecurringCharge"}, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstance": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "Integer", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "State": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstanceList": { - "type": "list", - "member": { - "shape": "ReservedDBInstance", - "locationName": "ReservedDBInstance" - }, - "flattened": false - }, - "ReservedDBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstances": { - "shape": "ReservedDBInstanceList", - "flattened": false - } - }, - "flattened": false - }, - "ReservedDBInstancesOffering": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstancesOfferingList": { - "type": "list", - "member": { - "shape": "ReservedDBInstancesOffering", - "locationName": "ReservedDBInstancesOffering" - }, - "flattened": false - }, - "ReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferings": { - "shape": "ReservedDBInstancesOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "ResetDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeMessage": { - "type": "structure", - "members": { - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RestoreTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false}, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SupportedCharacterSetsList": { - "type": "list", - "member": {"shape": "CharacterSet", "locationName": "CharacterSet"}, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroupMembership" - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/rds/v2013_09_09.dart b/aws_client/lib/src/generated/rds/v2013_09_09.dart index 4b422d8cc..349cbfe80 100644 --- a/aws_client/lib/src/generated/rds/v2013_09_09.dart +++ b/aws_client/lib/src/generated/rds/v2013_09_09.dart @@ -17,12 +17,10 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2013_09_09.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; class Rds { final _s.QueryProtocol _protocol; - final Map shapes; Rds({ required String region, @@ -30,7 +28,7 @@ class Rds { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class Rds { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class Rds { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -143,10 +142,17 @@ class Rds { required String targetDBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -154,8 +160,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -201,36 +205,57 @@ class Rds { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -238,8 +263,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -275,19 +298,27 @@ class Rds { bool? publiclyAccessible, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -295,8 +326,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -311,11 +340,18 @@ class Rds { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -323,8 +359,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -339,10 +373,17 @@ class Rds { required String dBSecurityGroupName, List? tags, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -350,8 +391,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -367,10 +406,17 @@ class Rds { required String dBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -378,8 +424,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -397,11 +441,22 @@ class Rds { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -409,8 +464,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -433,14 +486,31 @@ class Rds { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -448,8 +518,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -465,12 +533,19 @@ class Rds { required String optionGroupName, List? tags, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -478,8 +553,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -495,11 +568,13 @@ class Rds { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -507,8 +582,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -520,8 +593,9 @@ class Rds { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -529,8 +603,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -540,8 +612,9 @@ class Rds { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -549,8 +622,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -560,8 +631,9 @@ class Rds { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -569,8 +641,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -583,8 +653,9 @@ class Rds { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -592,8 +663,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -603,8 +672,9 @@ class Rds { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -612,8 +682,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -625,8 +693,9 @@ class Rds { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -634,8 +703,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -649,17 +716,24 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -667,8 +741,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -682,11 +754,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -694,8 +774,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -712,14 +790,22 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -727,8 +813,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -742,11 +826,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -754,8 +846,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -770,12 +860,19 @@ class Rds { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -783,8 +880,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -798,11 +893,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -810,8 +913,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -827,13 +928,22 @@ class Rds { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -841,8 +951,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -856,11 +964,18 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -868,8 +983,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -882,11 +995,18 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -894,8 +1014,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -905,9 +1023,16 @@ class Rds { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -915,8 +1040,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -930,11 +1053,18 @@ class Rds { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -942,8 +1072,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -960,16 +1088,28 @@ class Rds { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -977,8 +1117,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -991,12 +1129,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -1004,8 +1149,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -1021,13 +1164,20 @@ class Rds { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -1035,8 +1185,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -1052,15 +1200,22 @@ class Rds { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -1068,8 +1223,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1089,18 +1242,26 @@ class Rds { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1108,8 +1269,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1129,17 +1288,24 @@ class Rds { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1147,8 +1313,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1163,11 +1327,12 @@ class Rds { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -1175,8 +1340,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -1189,9 +1352,16 @@ class Rds { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1199,8 +1369,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1239,31 +1407,47 @@ class Rds { String? preferredMaintenanceWindow, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1271,8 +1455,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1285,9 +1467,15 @@ class Rds { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1295,8 +1483,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1313,11 +1499,16 @@ class Rds { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1325,8 +1516,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1346,12 +1535,18 @@ class Rds { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1359,8 +1554,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1375,11 +1568,25 @@ class Rds { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1387,8 +1594,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1402,12 +1607,13 @@ class Rds { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1415,8 +1621,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1433,11 +1637,20 @@ class Rds { String? reservedDBInstanceId, List? tags, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1445,8 +1658,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1459,9 +1670,10 @@ class Rds { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1469,8 +1681,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1484,9 +1694,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1494,8 +1705,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1508,9 +1717,14 @@ class Rds { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1518,8 +1732,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1531,10 +1743,18 @@ class Rds { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1542,8 +1762,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1581,23 +1799,31 @@ class Rds { bool? publiclyAccessible, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1605,8 +1831,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1646,26 +1870,34 @@ class Rds { List? tags, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1673,8 +1905,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1691,13 +1921,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1705,8 +1937,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -3377,6 +3607,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } class IPRange { @@ -3591,6 +3834,39 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -3917,6 +4193,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class OrderableDBInstanceOption { @@ -4075,6 +4374,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -4641,6 +4966,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/aws_client/lib/src/generated/rds/v2013_09_09.meta.dart b/aws_client/lib/src/generated/rds/v2013_09_09.meta.dart deleted file mode 100644 index 8b69c18b6..000000000 --- a/aws_client/lib/src/generated/rds/v2013_09_09.meta.dart +++ /dev/null @@ -1,1747 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AddSourceIdentifierToSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ApplyMethod": {"type": "string", "flattened": false}, - "AuthorizeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "ProvisionedIopsCapable": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CharacterSet": { - "type": "structure", - "members": { - "CharacterSetName": {"shape": "String", "flattened": false}, - "CharacterSetDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "TargetDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceMessage": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "DBEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "DBEngineDescription": {"shape": "String", "flattened": false}, - "DBEngineVersionDescription": {"shape": "String", "flattened": false}, - "DefaultCharacterSet": {"shape": "CharacterSet", "flattened": false}, - "SupportedCharacterSets": { - "shape": "SupportedCharacterSetsList", - "flattened": false - } - }, - "flattened": false - }, - "DBEngineVersionList": { - "type": "list", - "member": {"shape": "DBEngineVersion", "locationName": "DBEngineVersion"}, - "flattened": false - }, - "DBEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBEngineVersions": {"shape": "DBEngineVersionList", "flattened": false} - }, - "flattened": false - }, - "DBInstance": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DBInstanceStatus": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "Integer", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "DBParameterGroups": { - "shape": "DBParameterGroupStatusList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "ReadReplicaSourceDBInstanceIdentifier": { - "shape": "String", - "flattened": false - }, - "ReadReplicaDBInstanceIdentifiers": { - "shape": "ReadReplicaDBInstanceIdentifierList", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupMemberships": { - "shape": "OptionGroupMembershipList", - "flattened": false - }, - "CharacterSetName": {"shape": "String", "flattened": false}, - "SecondaryAvailabilityZone": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false}, - "StatusInfos": {"shape": "DBInstanceStatusInfoList", "flattened": false} - }, - "flattened": false - }, - "DBInstanceList": { - "type": "list", - "member": {"shape": "DBInstance", "locationName": "DBInstance"}, - "flattened": false - }, - "DBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstances": {"shape": "DBInstanceList", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfo": { - "type": "structure", - "members": { - "StatusType": {"shape": "String", "flattened": false}, - "Normal": {"shape": "Boolean", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfoList": { - "type": "list", - "member": { - "shape": "DBInstanceStatusInfo", - "locationName": "DBInstanceStatusInfo" - }, - "flattened": false - }, - "DBParameterGroup": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupList": { - "type": "list", - "member": {"shape": "DBParameterGroup", "locationName": "DBParameterGroup"}, - "flattened": false - }, - "DBParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatus": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatusList": { - "type": "list", - "member": { - "shape": "DBParameterGroupStatus", - "locationName": "DBParameterGroup" - }, - "flattened": false - }, - "DBParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBParameterGroups": {"shape": "DBParameterGroupList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroup": { - "type": "structure", - "members": { - "OwnerId": {"shape": "String", "flattened": false}, - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "EC2SecurityGroups": { - "shape": "EC2SecurityGroupList", - "flattened": false - }, - "IPRanges": {"shape": "IPRangeList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembership": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "DBSecurityGroupMembership", - "locationName": "DBSecurityGroup" - }, - "flattened": false - }, - "DBSecurityGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSecurityGroups": {"shape": "DBSecurityGroups", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "DBSecurityGroupName"}, - "flattened": false - }, - "DBSecurityGroups": { - "type": "list", - "member": {"shape": "DBSecurityGroup", "locationName": "DBSecurityGroup"}, - "flattened": false - }, - "DBSnapshot": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "Integer", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotList": { - "type": "list", - "member": {"shape": "DBSnapshot", "locationName": "DBSnapshot"}, - "flattened": false - }, - "DBSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSnapshots": {"shape": "DBSnapshotList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroup": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSubnetGroups": {"shape": "DBSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroups": { - "type": "list", - "member": {"shape": "DBSubnetGroup", "locationName": "DBSubnetGroup"}, - "flattened": false - }, - "DeleteDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "DeleteDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "DeleteOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false}, - "ListSupportedCharacterSets": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBInstancesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesDetails": { - "type": "structure", - "members": { - "LogFileName": {"shape": "String", "flattened": false}, - "LastWritten": {"shape": "Long", "flattened": false}, - "Size": {"shape": "Long", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesList": { - "type": "list", - "member": { - "shape": "DescribeDBLogFilesDetails", - "locationName": "DescribeDBLogFilesDetails" - }, - "flattened": false - }, - "DescribeDBLogFilesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "FilenameContains": {"shape": "String", "flattened": false}, - "FileLastWritten": {"shape": "Long", "flattened": false}, - "FileSize": {"shape": "Long", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesResponse": { - "type": "structure", - "members": { - "DescribeDBLogFiles": { - "shape": "DescribeDBLogFilesList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParameterGroupsMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSecurityGroupsMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSnapshotsMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSubnetGroupsMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupOptionsMessage": { - "type": "structure", - "members": { - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupsMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Vpc": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesMessage": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "DownloadDBLogFilePortionDetails": { - "type": "structure", - "members": { - "LogFileData": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "AdditionalDataPending": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DownloadDBLogFilePortionMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "LogFileName": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "NumberOfLines": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroup": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroupList": { - "type": "list", - "member": {"shape": "EC2SecurityGroup", "locationName": "EC2SecurityGroup"}, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Enabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "Filter": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Values": {"shape": "FilterValueList", "flattened": false} - }, - "flattened": false - }, - "FilterList": { - "type": "list", - "member": {"shape": "Filter", "locationName": "Filter"}, - "flattened": false - }, - "FilterValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "Value"}, - "flattened": false - }, - "IPRange": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IPRangeList": { - "type": "list", - "member": {"shape": "IPRange", "locationName": "IPRange"}, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "Long": {"type": "long", "flattened": false}, - "ModifyDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "NewDBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "ModifyDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionsToInclude": { - "shape": "OptionConfigurationList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionNamesList", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "Option": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "OptionDescription": {"shape": "String", "flattened": false}, - "Persistent": {"shape": "Boolean", "flattened": false}, - "Permanent": {"shape": "Boolean", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "OptionSettings": { - "shape": "OptionSettingConfigurationList", - "flattened": false - }, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - } - }, - "flattened": false - }, - "OptionConfiguration": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "OptionSettings": {"shape": "OptionSettingsList", "flattened": false} - }, - "flattened": false - }, - "OptionConfigurationList": { - "type": "list", - "member": { - "shape": "OptionConfiguration", - "locationName": "OptionConfiguration" - }, - "flattened": false - }, - "OptionGroup": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Options": {"shape": "OptionsList", "flattened": false}, - "AllowsVpcAndNonVpcInstanceMemberships": { - "shape": "Boolean", - "flattened": false - }, - "VpcId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembership": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembershipList": { - "type": "list", - "member": { - "shape": "OptionGroupMembership", - "locationName": "OptionGroupMembership" - }, - "flattened": false - }, - "OptionGroupOption": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "MinimumRequiredMinorEngineVersion": { - "shape": "String", - "flattened": false - }, - "PortRequired": {"shape": "Boolean", "flattened": false}, - "DefaultPort": {"shape": "IntegerOptional", "flattened": false}, - "OptionsDependedOn": {"shape": "OptionsDependedOn", "flattened": false}, - "Persistent": {"shape": "Boolean", "flattened": false}, - "Permanent": {"shape": "Boolean", "flattened": false}, - "OptionGroupOptionSettings": { - "shape": "OptionGroupOptionSettingsList", - "flattened": false - } - }, - "flattened": false - }, - "OptionGroupOptionSetting": { - "type": "structure", - "members": { - "SettingName": {"shape": "String", "flattened": false}, - "SettingDescription": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionGroupOptionSettingsList": { - "type": "list", - "member": { - "shape": "OptionGroupOptionSetting", - "locationName": "OptionGroupOptionSetting" - }, - "flattened": false - }, - "OptionGroupOptionsList": { - "type": "list", - "member": { - "shape": "OptionGroupOption", - "locationName": "OptionGroupOption" - }, - "flattened": false - }, - "OptionGroupOptionsMessage": { - "type": "structure", - "members": { - "OptionGroupOptions": { - "shape": "OptionGroupOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroups": { - "type": "structure", - "members": { - "OptionGroupsList": {"shape": "OptionGroupsList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupsList": { - "type": "list", - "member": {"shape": "OptionGroup", "locationName": "OptionGroup"}, - "flattened": false - }, - "OptionNamesList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "OptionSetting": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "IsCollection": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionSettingConfigurationList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionSettingsList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionsDependedOn": { - "type": "list", - "member": {"shape": "String", "locationName": "OptionName"}, - "flattened": false - }, - "OptionsList": { - "type": "list", - "member": {"shape": "Option", "locationName": "Option"}, - "flattened": false - }, - "OrderableDBInstanceOption": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZones": { - "shape": "AvailabilityZoneList", - "flattened": false - }, - "MultiAZCapable": {"shape": "Boolean", "flattened": false}, - "ReadReplicaCapable": {"shape": "Boolean", "flattened": false}, - "Vpc": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOptionsList": { - "type": "list", - "member": { - "shape": "OrderableDBInstanceOption", - "locationName": "OrderableDBInstanceOption" - }, - "flattened": false - }, - "OrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "OrderableDBInstanceOptions": { - "shape": "OrderableDBInstanceOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ApplyMethod": {"shape": "ApplyMethod", "flattened": false} - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "IntegerOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingResult": { - "type": "structure", - "members": { - "ReservedDBInstance": {"shape": "ReservedDBInstance", "flattened": false} - }, - "flattened": false - }, - "ReadReplicaDBInstanceIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBInstanceIdentifier" - }, - "flattened": false - }, - "RebootDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "ForceFailover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RecurringCharge": { - "type": "structure", - "members": { - "RecurringChargeAmount": {"shape": "Double", "flattened": false}, - "RecurringChargeFrequency": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecurringChargeList": { - "type": "list", - "member": {"shape": "RecurringCharge", "locationName": "RecurringCharge"}, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstance": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "Integer", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "State": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstanceList": { - "type": "list", - "member": { - "shape": "ReservedDBInstance", - "locationName": "ReservedDBInstance" - }, - "flattened": false - }, - "ReservedDBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstances": { - "shape": "ReservedDBInstanceList", - "flattened": false - } - }, - "flattened": false - }, - "ReservedDBInstancesOffering": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstancesOfferingList": { - "type": "list", - "member": { - "shape": "ReservedDBInstancesOffering", - "locationName": "ReservedDBInstancesOffering" - }, - "flattened": false - }, - "ReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferings": { - "shape": "ReservedDBInstancesOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "ResetDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeMessage": { - "type": "structure", - "members": { - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RestoreTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false}, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SupportedCharacterSetsList": { - "type": "list", - "member": {"shape": "CharacterSet", "locationName": "CharacterSet"}, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroupMembership" - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/rds/v2014_09_01.dart b/aws_client/lib/src/generated/rds/v2014_09_01.dart index d1d804bbe..fc05da730 100644 --- a/aws_client/lib/src/generated/rds/v2014_09_01.dart +++ b/aws_client/lib/src/generated/rds/v2014_09_01.dart @@ -17,12 +17,10 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2014_09_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; class Rds { final _s.QueryProtocol _protocol; - final Map shapes; Rds({ required String region, @@ -30,7 +28,7 @@ class Rds { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class Rds { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class Rds { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -143,14 +142,18 @@ class Rds { required String targetDBParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBParameterGroupIdentifier'] = - sourceDBParameterGroupIdentifier; - $request['TargetDBParameterGroupDescription'] = - targetDBParameterGroupDescription; - $request['TargetDBParameterGroupIdentifier'] = - targetDBParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBParameterGroupIdentifier': sourceDBParameterGroupIdentifier, + 'TargetDBParameterGroupDescription': targetDBParameterGroupDescription, + 'TargetDBParameterGroupIdentifier': targetDBParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBParameterGroup', @@ -158,8 +161,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBParameterGroupResult', ); return CopyDBParameterGroupResult.fromXml($result); @@ -175,10 +176,17 @@ class Rds { required String targetDBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -186,8 +194,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -203,11 +209,18 @@ class Rds { required String targetOptionGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceOptionGroupIdentifier'] = sourceOptionGroupIdentifier; - $request['TargetOptionGroupDescription'] = targetOptionGroupDescription; - $request['TargetOptionGroupIdentifier'] = targetOptionGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceOptionGroupIdentifier': sourceOptionGroupIdentifier, + 'TargetOptionGroupDescription': targetOptionGroupDescription, + 'TargetOptionGroupIdentifier': targetOptionGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyOptionGroup', @@ -215,8 +228,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CopyOptionGroupResult', ); return CopyOptionGroupResult.fromXml($result); @@ -267,40 +278,61 @@ class Rds { String? tdeCredentialPassword, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -308,8 +340,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -347,20 +377,28 @@ class Rds { String? storageType, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -368,8 +406,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -384,11 +420,18 @@ class Rds { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -396,8 +439,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -412,10 +453,17 @@ class Rds { required String dBSecurityGroupName, List? tags, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -423,8 +471,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -440,10 +486,17 @@ class Rds { required String dBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -451,8 +504,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -470,11 +521,22 @@ class Rds { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -482,8 +544,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -506,14 +566,31 @@ class Rds { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -521,8 +598,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -538,12 +613,19 @@ class Rds { required String optionGroupName, List? tags, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -551,8 +633,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -568,11 +648,13 @@ class Rds { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -580,8 +662,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -593,8 +673,9 @@ class Rds { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -602,8 +683,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -613,8 +692,9 @@ class Rds { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -622,8 +702,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -633,8 +711,9 @@ class Rds { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -642,8 +721,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -656,8 +733,9 @@ class Rds { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -665,8 +743,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -676,8 +752,9 @@ class Rds { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -685,8 +762,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -698,8 +773,9 @@ class Rds { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -707,8 +783,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -722,17 +796,24 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -740,8 +821,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -755,11 +834,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -767,8 +854,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -785,14 +870,22 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -800,8 +893,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -815,11 +906,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -827,8 +926,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -843,12 +940,19 @@ class Rds { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -856,8 +960,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -871,11 +973,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -883,8 +993,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -900,13 +1008,22 @@ class Rds { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -914,8 +1031,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -929,11 +1044,18 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -941,8 +1063,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -955,11 +1075,18 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -967,8 +1094,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -978,9 +1103,16 @@ class Rds { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -988,8 +1120,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -1003,11 +1133,18 @@ class Rds { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -1015,8 +1152,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -1033,16 +1168,28 @@ class Rds { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -1050,8 +1197,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -1064,12 +1209,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -1077,8 +1229,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -1094,13 +1244,20 @@ class Rds { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -1108,8 +1265,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -1125,15 +1280,22 @@ class Rds { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -1141,8 +1303,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1162,18 +1322,26 @@ class Rds { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1181,8 +1349,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1202,17 +1368,24 @@ class Rds { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1220,8 +1393,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1236,11 +1407,12 @@ class Rds { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -1248,8 +1420,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -1262,9 +1432,16 @@ class Rds { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1272,8 +1449,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1317,35 +1492,51 @@ class Rds { String? tdeCredentialPassword, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (storageType != null) 'StorageType': storageType, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1353,8 +1544,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1367,9 +1556,15 @@ class Rds { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1377,8 +1572,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1395,11 +1588,16 @@ class Rds { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1407,8 +1605,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1428,12 +1624,18 @@ class Rds { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1441,8 +1643,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1457,11 +1657,25 @@ class Rds { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1469,8 +1683,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1484,12 +1696,13 @@ class Rds { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1497,8 +1710,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1515,11 +1726,20 @@ class Rds { String? reservedDBInstanceId, List? tags, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1527,8 +1747,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1541,9 +1759,10 @@ class Rds { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1551,8 +1770,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1566,9 +1783,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1576,8 +1794,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1590,9 +1806,14 @@ class Rds { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1600,8 +1821,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1613,10 +1832,18 @@ class Rds { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1624,8 +1851,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1668,27 +1893,35 @@ class Rds { String? tdeCredentialArn, String? tdeCredentialPassword, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1696,8 +1929,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1742,30 +1973,38 @@ class Rds { String? tdeCredentialPassword, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1773,8 +2012,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1791,13 +2028,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1805,8 +2044,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -3533,6 +3770,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } class IPRange { @@ -3747,6 +3997,39 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -4073,6 +4356,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class OrderableDBInstanceOption { @@ -4241,6 +4547,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -4812,6 +5144,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/aws_client/lib/src/generated/rds/v2014_09_01.meta.dart b/aws_client/lib/src/generated/rds/v2014_09_01.meta.dart deleted file mode 100644 index d7a3f5861..000000000 --- a/aws_client/lib/src/generated/rds/v2014_09_01.meta.dart +++ /dev/null @@ -1,1809 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AddSourceIdentifierToSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ApplyMethod": {"type": "string", "flattened": false}, - "AuthorizeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CharacterSet": { - "type": "structure", - "members": { - "CharacterSetName": {"shape": "String", "flattened": false}, - "CharacterSetDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBParameterGroupMessage": { - "type": "structure", - "members": { - "SourceDBParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBParameterGroupDescription": { - "shape": "String", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "TargetDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CopyOptionGroupMessage": { - "type": "structure", - "members": { - "SourceOptionGroupIdentifier": {"shape": "String", "flattened": false}, - "TargetOptionGroupIdentifier": {"shape": "String", "flattened": false}, - "TargetOptionGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceMessage": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "DBEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "DBEngineDescription": {"shape": "String", "flattened": false}, - "DBEngineVersionDescription": {"shape": "String", "flattened": false}, - "DefaultCharacterSet": {"shape": "CharacterSet", "flattened": false}, - "SupportedCharacterSets": { - "shape": "SupportedCharacterSetsList", - "flattened": false - } - }, - "flattened": false - }, - "DBEngineVersionList": { - "type": "list", - "member": {"shape": "DBEngineVersion", "locationName": "DBEngineVersion"}, - "flattened": false - }, - "DBEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBEngineVersions": {"shape": "DBEngineVersionList", "flattened": false} - }, - "flattened": false - }, - "DBInstance": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DBInstanceStatus": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "Integer", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "DBParameterGroups": { - "shape": "DBParameterGroupStatusList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "ReadReplicaSourceDBInstanceIdentifier": { - "shape": "String", - "flattened": false - }, - "ReadReplicaDBInstanceIdentifiers": { - "shape": "ReadReplicaDBInstanceIdentifierList", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupMemberships": { - "shape": "OptionGroupMembershipList", - "flattened": false - }, - "CharacterSetName": {"shape": "String", "flattened": false}, - "SecondaryAvailabilityZone": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false}, - "StatusInfos": {"shape": "DBInstanceStatusInfoList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceList": { - "type": "list", - "member": {"shape": "DBInstance", "locationName": "DBInstance"}, - "flattened": false - }, - "DBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstances": {"shape": "DBInstanceList", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfo": { - "type": "structure", - "members": { - "StatusType": {"shape": "String", "flattened": false}, - "Normal": {"shape": "Boolean", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfoList": { - "type": "list", - "member": { - "shape": "DBInstanceStatusInfo", - "locationName": "DBInstanceStatusInfo" - }, - "flattened": false - }, - "DBParameterGroup": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupList": { - "type": "list", - "member": {"shape": "DBParameterGroup", "locationName": "DBParameterGroup"}, - "flattened": false - }, - "DBParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatus": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatusList": { - "type": "list", - "member": { - "shape": "DBParameterGroupStatus", - "locationName": "DBParameterGroup" - }, - "flattened": false - }, - "DBParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBParameterGroups": {"shape": "DBParameterGroupList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroup": { - "type": "structure", - "members": { - "OwnerId": {"shape": "String", "flattened": false}, - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "EC2SecurityGroups": { - "shape": "EC2SecurityGroupList", - "flattened": false - }, - "IPRanges": {"shape": "IPRangeList", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembership": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "DBSecurityGroupMembership", - "locationName": "DBSecurityGroup" - }, - "flattened": false - }, - "DBSecurityGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSecurityGroups": {"shape": "DBSecurityGroups", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "DBSecurityGroupName"}, - "flattened": false - }, - "DBSecurityGroups": { - "type": "list", - "member": {"shape": "DBSecurityGroup", "locationName": "DBSecurityGroup"}, - "flattened": false - }, - "DBSnapshot": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "Integer", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotList": { - "type": "list", - "member": {"shape": "DBSnapshot", "locationName": "DBSnapshot"}, - "flattened": false - }, - "DBSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSnapshots": {"shape": "DBSnapshotList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroup": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSubnetGroups": {"shape": "DBSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroups": { - "type": "list", - "member": {"shape": "DBSubnetGroup", "locationName": "DBSubnetGroup"}, - "flattened": false - }, - "DeleteDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "DeleteDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "DeleteOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false}, - "ListSupportedCharacterSets": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBInstancesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesDetails": { - "type": "structure", - "members": { - "LogFileName": {"shape": "String", "flattened": false}, - "LastWritten": {"shape": "Long", "flattened": false}, - "Size": {"shape": "Long", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesList": { - "type": "list", - "member": { - "shape": "DescribeDBLogFilesDetails", - "locationName": "DescribeDBLogFilesDetails" - }, - "flattened": false - }, - "DescribeDBLogFilesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "FilenameContains": {"shape": "String", "flattened": false}, - "FileLastWritten": {"shape": "Long", "flattened": false}, - "FileSize": {"shape": "Long", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesResponse": { - "type": "structure", - "members": { - "DescribeDBLogFiles": { - "shape": "DescribeDBLogFilesList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParameterGroupsMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSecurityGroupsMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSnapshotsMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSubnetGroupsMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupOptionsMessage": { - "type": "structure", - "members": { - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupsMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Vpc": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesMessage": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "DownloadDBLogFilePortionDetails": { - "type": "structure", - "members": { - "LogFileData": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "AdditionalDataPending": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DownloadDBLogFilePortionMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "LogFileName": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "NumberOfLines": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroup": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroupList": { - "type": "list", - "member": {"shape": "EC2SecurityGroup", "locationName": "EC2SecurityGroup"}, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Enabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "Filter": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Values": {"shape": "FilterValueList", "flattened": false} - }, - "flattened": false - }, - "FilterList": { - "type": "list", - "member": {"shape": "Filter", "locationName": "Filter"}, - "flattened": false - }, - "FilterValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "Value"}, - "flattened": false - }, - "IPRange": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IPRangeList": { - "type": "list", - "member": {"shape": "IPRange", "locationName": "IPRange"}, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "Long": {"type": "long", "flattened": false}, - "ModifyDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "NewDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "ModifyDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionsToInclude": { - "shape": "OptionConfigurationList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionNamesList", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "Option": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "OptionDescription": {"shape": "String", "flattened": false}, - "Persistent": {"shape": "Boolean", "flattened": false}, - "Permanent": {"shape": "Boolean", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "OptionSettings": { - "shape": "OptionSettingConfigurationList", - "flattened": false - }, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - } - }, - "flattened": false - }, - "OptionConfiguration": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "OptionSettings": {"shape": "OptionSettingsList", "flattened": false} - }, - "flattened": false - }, - "OptionConfigurationList": { - "type": "list", - "member": { - "shape": "OptionConfiguration", - "locationName": "OptionConfiguration" - }, - "flattened": false - }, - "OptionGroup": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Options": {"shape": "OptionsList", "flattened": false}, - "AllowsVpcAndNonVpcInstanceMemberships": { - "shape": "Boolean", - "flattened": false - }, - "VpcId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembership": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembershipList": { - "type": "list", - "member": { - "shape": "OptionGroupMembership", - "locationName": "OptionGroupMembership" - }, - "flattened": false - }, - "OptionGroupOption": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "MinimumRequiredMinorEngineVersion": { - "shape": "String", - "flattened": false - }, - "PortRequired": {"shape": "Boolean", "flattened": false}, - "DefaultPort": {"shape": "IntegerOptional", "flattened": false}, - "OptionsDependedOn": {"shape": "OptionsDependedOn", "flattened": false}, - "Persistent": {"shape": "Boolean", "flattened": false}, - "Permanent": {"shape": "Boolean", "flattened": false}, - "OptionGroupOptionSettings": { - "shape": "OptionGroupOptionSettingsList", - "flattened": false - } - }, - "flattened": false - }, - "OptionGroupOptionSetting": { - "type": "structure", - "members": { - "SettingName": {"shape": "String", "flattened": false}, - "SettingDescription": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionGroupOptionSettingsList": { - "type": "list", - "member": { - "shape": "OptionGroupOptionSetting", - "locationName": "OptionGroupOptionSetting" - }, - "flattened": false - }, - "OptionGroupOptionsList": { - "type": "list", - "member": { - "shape": "OptionGroupOption", - "locationName": "OptionGroupOption" - }, - "flattened": false - }, - "OptionGroupOptionsMessage": { - "type": "structure", - "members": { - "OptionGroupOptions": { - "shape": "OptionGroupOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroups": { - "type": "structure", - "members": { - "OptionGroupsList": {"shape": "OptionGroupsList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupsList": { - "type": "list", - "member": {"shape": "OptionGroup", "locationName": "OptionGroup"}, - "flattened": false - }, - "OptionNamesList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "OptionSetting": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "IsCollection": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionSettingConfigurationList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionSettingsList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionsDependedOn": { - "type": "list", - "member": {"shape": "String", "locationName": "OptionName"}, - "flattened": false - }, - "OptionsList": { - "type": "list", - "member": {"shape": "Option", "locationName": "Option"}, - "flattened": false - }, - "OrderableDBInstanceOption": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZones": { - "shape": "AvailabilityZoneList", - "flattened": false - }, - "MultiAZCapable": {"shape": "Boolean", "flattened": false}, - "ReadReplicaCapable": {"shape": "Boolean", "flattened": false}, - "Vpc": {"shape": "Boolean", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "SupportsIops": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOptionsList": { - "type": "list", - "member": { - "shape": "OrderableDBInstanceOption", - "locationName": "OrderableDBInstanceOption" - }, - "flattened": false - }, - "OrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "OrderableDBInstanceOptions": { - "shape": "OrderableDBInstanceOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ApplyMethod": {"shape": "ApplyMethod", "flattened": false} - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "IntegerOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingResult": { - "type": "structure", - "members": { - "ReservedDBInstance": {"shape": "ReservedDBInstance", "flattened": false} - }, - "flattened": false - }, - "ReadReplicaDBInstanceIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBInstanceIdentifier" - }, - "flattened": false - }, - "RebootDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "ForceFailover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RecurringCharge": { - "type": "structure", - "members": { - "RecurringChargeAmount": {"shape": "Double", "flattened": false}, - "RecurringChargeFrequency": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecurringChargeList": { - "type": "list", - "member": {"shape": "RecurringCharge", "locationName": "RecurringCharge"}, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstance": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "Integer", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "State": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstanceList": { - "type": "list", - "member": { - "shape": "ReservedDBInstance", - "locationName": "ReservedDBInstance" - }, - "flattened": false - }, - "ReservedDBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstances": { - "shape": "ReservedDBInstanceList", - "flattened": false - } - }, - "flattened": false - }, - "ReservedDBInstancesOffering": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstancesOfferingList": { - "type": "list", - "member": { - "shape": "ReservedDBInstancesOffering", - "locationName": "ReservedDBInstancesOffering" - }, - "flattened": false - }, - "ReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferings": { - "shape": "ReservedDBInstancesOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "ResetDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeMessage": { - "type": "structure", - "members": { - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RestoreTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false}, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SupportedCharacterSetsList": { - "type": "list", - "member": {"shape": "CharacterSet", "locationName": "CharacterSet"}, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroupMembership" - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/rds/v2014_10_31.dart b/aws_client/lib/src/generated/rds/v2014_10_31.dart index 88f3f06a7..bd56bb39e 100644 --- a/aws_client/lib/src/generated/rds/v2014_10_31.dart +++ b/aws_client/lib/src/generated/rds/v2014_10_31.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2014_10_31.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon Relational Database Service (Amazon RDS) is a web service that makes @@ -28,7 +27,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// businesses unique. class Rds { final _s.QueryProtocol _protocol; - final Map shapes; Rds({ required String region, @@ -36,7 +34,7 @@ class Rds { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -45,9 +43,7 @@ class Rds { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -82,10 +78,11 @@ class Rds { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'AddRoleToDBCluster', @@ -93,8 +90,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToDBClusterMessage'], - shapes: shapes, ); } @@ -128,10 +123,11 @@ class Rds { required String featureName, required String roleArn, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['FeatureName'] = featureName; - $request['RoleArn'] = roleArn; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'FeatureName': featureName, + 'RoleArn': roleArn, + }; await _protocol.send( $request, action: 'AddRoleToDBInstance', @@ -139,8 +135,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToDBInstanceMessage'], - shapes: shapes, ); } @@ -194,9 +188,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -204,8 +199,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -244,9 +237,15 @@ class Rds { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -254,8 +253,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -303,10 +300,11 @@ class Rds { required String optInType, required String resourceIdentifier, }) async { - final $request = {}; - $request['ApplyAction'] = applyAction; - $request['OptInType'] = optInType; - $request['ResourceIdentifier'] = resourceIdentifier; + final $request = { + 'ApplyAction': applyAction, + 'OptInType': optInType, + 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'ApplyPendingMaintenanceAction', @@ -314,8 +312,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyPendingMaintenanceActionMessage'], - shapes: shapes, resultWrapper: 'ApplyPendingMaintenanceActionResult', ); return ApplyPendingMaintenanceActionResult.fromXml($result); @@ -393,13 +389,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -407,8 +405,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -484,12 +480,14 @@ class Rds { bool? force, bool? useEarliestTimeOnPointInTimeUnavailable, }) async { - final $request = {}; - $request['BacktrackTo'] = _s.iso8601ToJson(backtrackTo); - $request['DBClusterIdentifier'] = dBClusterIdentifier; - force?.also((arg) => $request['Force'] = arg); - useEarliestTimeOnPointInTimeUnavailable?.also( - (arg) => $request['UseEarliestTimeOnPointInTimeUnavailable'] = arg); + final $request = { + 'BacktrackTo': _s.iso8601ToJson(backtrackTo), + 'DBClusterIdentifier': dBClusterIdentifier, + if (force != null) 'Force': force.toString(), + if (useEarliestTimeOnPointInTimeUnavailable != null) + 'UseEarliestTimeOnPointInTimeUnavailable': + useEarliestTimeOnPointInTimeUnavailable.toString(), + }; final $result = await _protocol.send( $request, action: 'BacktrackDBCluster', @@ -497,8 +495,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BacktrackDBClusterMessage'], - shapes: shapes, resultWrapper: 'BacktrackDBClusterResult', ); return DBClusterBacktrack.fromXml($result); @@ -516,8 +512,9 @@ class Rds { Future cancelExportTask({ required String exportTaskIdentifier, }) async { - final $request = {}; - $request['ExportTaskIdentifier'] = exportTaskIdentifier; + final $request = { + 'ExportTaskIdentifier': exportTaskIdentifier, + }; final $result = await _protocol.send( $request, action: 'CancelExportTask', @@ -525,8 +522,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelExportTaskMessage'], - shapes: shapes, resultWrapper: 'CancelExportTaskResult', ); return ExportTask.fromXml($result); @@ -587,14 +582,21 @@ class Rds { required String targetDBClusterParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterParameterGroupIdentifier'] = - sourceDBClusterParameterGroupIdentifier; - $request['TargetDBClusterParameterGroupDescription'] = - targetDBClusterParameterGroupDescription; - $request['TargetDBClusterParameterGroupIdentifier'] = - targetDBClusterParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterParameterGroupIdentifier': + sourceDBClusterParameterGroupIdentifier, + 'TargetDBClusterParameterGroupDescription': + targetDBClusterParameterGroupDescription, + 'TargetDBClusterParameterGroupIdentifier': + targetDBClusterParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterParameterGroup', @@ -602,8 +604,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterParameterGroupResult', ); return CopyDBClusterParameterGroupResult.fromXml($result); @@ -816,16 +816,21 @@ class Rds { String? sourceRegion, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterSnapshotIdentifier'] = - sourceDBClusterSnapshotIdentifier; - $request['TargetDBClusterSnapshotIdentifier'] = - targetDBClusterSnapshotIdentifier; - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterSnapshotIdentifier': sourceDBClusterSnapshotIdentifier, + 'TargetDBClusterSnapshotIdentifier': targetDBClusterSnapshotIdentifier, + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterSnapshot', @@ -833,8 +838,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterSnapshotResult', ); return CopyDBClusterSnapshotResult.fromXml($result); @@ -895,14 +898,18 @@ class Rds { required String targetDBParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBParameterGroupIdentifier'] = - sourceDBParameterGroupIdentifier; - $request['TargetDBParameterGroupDescription'] = - targetDBParameterGroupDescription; - $request['TargetDBParameterGroupIdentifier'] = - targetDBParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBParameterGroupIdentifier': sourceDBParameterGroupIdentifier, + 'TargetDBParameterGroupDescription': targetDBParameterGroupDescription, + 'TargetDBParameterGroupIdentifier': targetDBParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBParameterGroup', @@ -910,8 +917,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBParameterGroupResult', ); return CopyDBParameterGroupResult.fromXml($result); @@ -1124,18 +1129,26 @@ class Rds { List? tags, String? targetCustomAvailabilityZone, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; - copyOptionGroup?.also((arg) => $request['CopyOptionGroup'] = arg); - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetCustomAvailabilityZone - ?.also((arg) => $request['TargetCustomAvailabilityZone'] = arg); + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + if (copyOptionGroup != null) + 'CopyOptionGroup': copyOptionGroup.toString(), + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetCustomAvailabilityZone != null) + 'TargetCustomAvailabilityZone': targetCustomAvailabilityZone, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -1143,8 +1156,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -1196,11 +1207,18 @@ class Rds { required String targetOptionGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceOptionGroupIdentifier'] = sourceOptionGroupIdentifier; - $request['TargetOptionGroupDescription'] = targetOptionGroupDescription; - $request['TargetOptionGroupIdentifier'] = targetOptionGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceOptionGroupIdentifier': sourceOptionGroupIdentifier, + 'TargetOptionGroupDescription': targetOptionGroupDescription, + 'TargetOptionGroupIdentifier': targetOptionGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyOptionGroup', @@ -1208,8 +1226,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CopyOptionGroupResult', ); return CopyOptionGroupResult.fromXml($result); @@ -1320,19 +1336,27 @@ class Rds { String? targetEngineVersion, bool? upgradeTargetStorageConfig, }) async { - final $request = {}; - $request['BlueGreenDeploymentName'] = blueGreenDeploymentName; - $request['Source'] = source; - tags?.also((arg) => $request['Tags'] = arg); - targetDBClusterParameterGroupName - ?.also((arg) => $request['TargetDBClusterParameterGroupName'] = arg); - targetDBInstanceClass - ?.also((arg) => $request['TargetDBInstanceClass'] = arg); - targetDBParameterGroupName - ?.also((arg) => $request['TargetDBParameterGroupName'] = arg); - targetEngineVersion?.also((arg) => $request['TargetEngineVersion'] = arg); - upgradeTargetStorageConfig - ?.also((arg) => $request['UpgradeTargetStorageConfig'] = arg); + final $request = { + 'BlueGreenDeploymentName': blueGreenDeploymentName, + 'Source': source, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetDBClusterParameterGroupName != null) + 'TargetDBClusterParameterGroupName': targetDBClusterParameterGroupName, + if (targetDBInstanceClass != null) + 'TargetDBInstanceClass': targetDBInstanceClass, + if (targetDBParameterGroupName != null) + 'TargetDBParameterGroupName': targetDBParameterGroupName, + if (targetEngineVersion != null) + 'TargetEngineVersion': targetEngineVersion, + if (upgradeTargetStorageConfig != null) + 'UpgradeTargetStorageConfig': upgradeTargetStorageConfig.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateBlueGreenDeployment', @@ -1340,8 +1364,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateBlueGreenDeploymentRequest'], - shapes: shapes, resultWrapper: 'CreateBlueGreenDeploymentResult', ); return CreateBlueGreenDeploymentResponse.fromXml($result); @@ -1467,22 +1489,31 @@ class Rds { List? tags, bool? useAwsProvidedLatestImage, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['EngineVersion'] = engineVersion; - databaseInstallationFilesS3BucketName?.also( - (arg) => $request['DatabaseInstallationFilesS3BucketName'] = arg); - databaseInstallationFilesS3Prefix - ?.also((arg) => $request['DatabaseInstallationFilesS3Prefix'] = arg); - description?.also((arg) => $request['Description'] = arg); - imageId?.also((arg) => $request['ImageId'] = arg); - kMSKeyId?.also((arg) => $request['KMSKeyId'] = arg); - manifest?.also((arg) => $request['Manifest'] = arg); - sourceCustomDbEngineVersionIdentifier?.also( - (arg) => $request['SourceCustomDbEngineVersionIdentifier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useAwsProvidedLatestImage - ?.also((arg) => $request['UseAwsProvidedLatestImage'] = arg); + final $request = { + 'Engine': engine, + 'EngineVersion': engineVersion, + if (databaseInstallationFilesS3BucketName != null) + 'DatabaseInstallationFilesS3BucketName': + databaseInstallationFilesS3BucketName, + if (databaseInstallationFilesS3Prefix != null) + 'DatabaseInstallationFilesS3Prefix': databaseInstallationFilesS3Prefix, + if (description != null) 'Description': description, + if (imageId != null) 'ImageId': imageId, + if (kMSKeyId != null) 'KMSKeyId': kMSKeyId, + if (manifest != null) 'Manifest': manifest, + if (sourceCustomDbEngineVersionIdentifier != null) + 'SourceCustomDbEngineVersionIdentifier': + sourceCustomDbEngineVersionIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useAwsProvidedLatestImage != null) + 'UseAwsProvidedLatestImage': useAwsProvidedLatestImage.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateCustomDBEngineVersion', @@ -1490,8 +1521,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCustomDBEngineVersionMessage'], - shapes: shapes, resultWrapper: 'CreateCustomDBEngineVersionResult', ); return DBEngineVersion.fromXml($result); @@ -2539,84 +2568,122 @@ class Rds { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dBSystemId?.also((arg) => $request['DBSystemId'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableGlobalWriteForwarding - ?.also((arg) => $request['EnableGlobalWriteForwarding'] = arg); - enableHttpEndpoint?.also((arg) => $request['EnableHttpEndpoint'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enableLimitlessDatabase - ?.also((arg) => $request['EnableLimitlessDatabase'] = arg); - enableLocalWriteForwarding - ?.also((arg) => $request['EnableLocalWriteForwarding'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - rdsCustomClusterConfiguration - ?.also((arg) => $request['RdsCustomClusterConfiguration'] = arg); - replicationSourceIdentifier - ?.also((arg) => $request['ReplicationSourceIdentifier'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dBSystemId != null) 'DBSystemId': dBSystemId, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableGlobalWriteForwarding != null) + 'EnableGlobalWriteForwarding': enableGlobalWriteForwarding.toString(), + if (enableHttpEndpoint != null) + 'EnableHttpEndpoint': enableHttpEndpoint.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enableLimitlessDatabase != null) + 'EnableLimitlessDatabase': enableLimitlessDatabase.toString(), + if (enableLocalWriteForwarding != null) + 'EnableLocalWriteForwarding': enableLocalWriteForwarding.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineMode != null) 'EngineMode': engineMode, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (rdsCustomClusterConfiguration != null) + for (var e1 in rdsCustomClusterConfiguration.toQueryMap().entries) + 'RdsCustomClusterConfiguration.${e1.key}': e1.value, + if (replicationSourceIdentifier != null) + 'ReplicationSourceIdentifier': replicationSourceIdentifier, + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBCluster', @@ -2624,8 +2691,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterResult', ); return CreateDBClusterResult.fromXml($result); @@ -2676,13 +2741,30 @@ class Rds { List? staticMembers, List? tags, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['EndpointType'] = endpointType; - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + 'DBClusterIdentifier': dBClusterIdentifier, + 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterEndpoint', @@ -2690,8 +2772,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterEndpointResult', ); return DBClusterEndpoint.fromXml($result); @@ -2819,11 +2899,18 @@ class Rds { required String description, List? tags, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterParameterGroup', @@ -2831,8 +2918,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterParameterGroupResult', ); return CreateDBClusterParameterGroupResult.fromXml($result); @@ -2893,10 +2978,17 @@ class Rds { required String dBClusterSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterSnapshot', @@ -2904,8 +2996,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterSnapshotResult', ); return CreateDBClusterSnapshotResult.fromXml($result); @@ -4440,87 +4530,137 @@ class Rds { String? timezone, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - backupTarget?.also((arg) => $request['BackupTarget'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dBSystemId?.also((arg) => $request['DBSystemId'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - multiTenant?.also((arg) => $request['MultiTenant'] = arg); - ncharCharacterSetName - ?.also((arg) => $request['NcharCharacterSetName'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - timezone?.also((arg) => $request['Timezone'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (backupTarget != null) 'BackupTarget': backupTarget, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dBSystemId != null) 'DBSystemId': dBSystemId, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (multiTenant != null) 'MultiTenant': multiTenant.toString(), + if (ncharCharacterSetName != null) + 'NcharCharacterSetName': ncharCharacterSetName, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (timezone != null) 'Timezone': timezone, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -4528,8 +4668,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -5288,65 +5426,108 @@ class Rds { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - replicaMode?.also((arg) => $request['ReplicaMode'] = arg.toValue()); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - sourceDBInstanceIdentifier - ?.also((arg) => $request['SourceDBInstanceIdentifier'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - upgradeStorageConfig?.also((arg) => $request['UpgradeStorageConfig'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (replicaMode != null) 'ReplicaMode': replicaMode.toValue(), + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (sourceDBInstanceIdentifier != null) + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (upgradeStorageConfig != null) + 'UpgradeStorageConfig': upgradeStorageConfig.toString(), + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -5354,8 +5535,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -5489,11 +5668,18 @@ class Rds { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -5501,8 +5687,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -5577,17 +5761,39 @@ class Rds { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['Auth'] = auth; - $request['DBProxyName'] = dBProxyName; - $request['EngineFamily'] = engineFamily.toValue(); - $request['RoleArn'] = roleArn; - $request['VpcSubnetIds'] = vpcSubnetIds; - debugLogging?.also((arg) => $request['DebugLogging'] = arg); - idleClientTimeout?.also((arg) => $request['IdleClientTimeout'] = arg); - requireTLS?.also((arg) => $request['RequireTLS'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + if (auth.isEmpty) + 'Auth': '' + else + for (var i1 = 0; i1 < auth.length; i1++) + for (var e3 in auth[i1].toQueryMap().entries) + 'Auth.member.${i1 + 1}.${e3.key}': e3.value, + 'DBProxyName': dBProxyName, + 'EngineFamily': engineFamily.toValue(), + 'RoleArn': roleArn, + if (vpcSubnetIds.isEmpty) + 'VpcSubnetIds': '' + else + for (var i1 = 0; i1 < vpcSubnetIds.length; i1++) + 'VpcSubnetIds.member.${i1 + 1}': vpcSubnetIds[i1], + if (debugLogging != null) 'DebugLogging': debugLogging.toString(), + if (idleClientTimeout != null) + 'IdleClientTimeout': idleClientTimeout.toString(), + if (requireTLS != null) 'RequireTLS': requireTLS.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.member.${i1 + 1}': vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBProxy', @@ -5595,8 +5801,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBProxyRequest'], - shapes: shapes, resultWrapper: 'CreateDBProxyResult', ); return CreateDBProxyResponse.fromXml($result); @@ -5643,13 +5847,29 @@ class Rds { DBProxyEndpointTargetRole? targetRole, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBProxyEndpointName'] = dBProxyEndpointName; - $request['DBProxyName'] = dBProxyName; - $request['VpcSubnetIds'] = vpcSubnetIds; - tags?.also((arg) => $request['Tags'] = arg); - targetRole?.also((arg) => $request['TargetRole'] = arg.toValue()); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBProxyEndpointName': dBProxyEndpointName, + 'DBProxyName': dBProxyName, + if (vpcSubnetIds.isEmpty) + 'VpcSubnetIds': '' + else + for (var i1 = 0; i1 < vpcSubnetIds.length; i1++) + 'VpcSubnetIds.member.${i1 + 1}': vpcSubnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetRole != null) 'TargetRole': targetRole.toValue(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.member.${i1 + 1}': vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBProxyEndpoint', @@ -5657,8 +5877,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBProxyEndpointRequest'], - shapes: shapes, resultWrapper: 'CreateDBProxyEndpointResult', ); return CreateDBProxyEndpointResponse.fromXml($result); @@ -5719,10 +5937,17 @@ class Rds { required String dBSecurityGroupName, List? tags, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -5730,8 +5955,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -5829,12 +6052,15 @@ class Rds { int? computeRedundancy, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; - $request['MaxACU'] = maxACU; - computeRedundancy?.also((arg) => $request['ComputeRedundancy'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + 'MaxACU': maxACU.toString(), + if (computeRedundancy != null) + 'ComputeRedundancy': computeRedundancy.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateDBShardGroup', @@ -5842,8 +6068,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -5893,10 +6117,17 @@ class Rds { required String dBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -5904,8 +6135,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -5954,11 +6183,22 @@ class Rds { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -5966,8 +6206,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -6115,14 +6353,31 @@ class Rds { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -6130,8 +6385,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -6277,18 +6530,21 @@ class Rds { String? sourceDBClusterIdentifier, bool? storageEncrypted, }) async { - final $request = {}; - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); + final $request = { + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engine != null) 'Engine': engine, + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateGlobalCluster', @@ -6296,8 +6552,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalClusterResult', ); return CreateGlobalClusterResult.fromXml($result); @@ -6358,16 +6612,30 @@ class Rds { String? kMSKeyId, List? tags, }) async { - final $request = {}; - $request['IntegrationName'] = integrationName; - $request['SourceArn'] = sourceArn; - $request['TargetArn'] = targetArn; - additionalEncryptionContext - ?.also((arg) => $request['AdditionalEncryptionContext'] = arg); - dataFilter?.also((arg) => $request['DataFilter'] = arg); - description?.also((arg) => $request['Description'] = arg); - kMSKeyId?.also((arg) => $request['KMSKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'IntegrationName': integrationName, + 'SourceArn': sourceArn, + 'TargetArn': targetArn, + if (additionalEncryptionContext != null) + for (var e1 in additionalEncryptionContext.entries + .toList() + .asMap() + .entries) ...{ + 'AdditionalEncryptionContext.entry.${e1.key + 1}.key': e1.value.key, + 'AdditionalEncryptionContext.entry.${e1.key + 1}.value': + e1.value.value, + }, + if (dataFilter != null) 'DataFilter': dataFilter, + if (description != null) 'Description': description, + if (kMSKeyId != null) 'KMSKeyId': kMSKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateIntegration', @@ -6375,8 +6643,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateIntegrationMessage'], - shapes: shapes, resultWrapper: 'CreateIntegrationResult', ); return Integration.fromXml($result); @@ -6470,12 +6736,19 @@ class Rds { required String optionGroupName, List? tags, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -6483,8 +6756,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -6559,15 +6830,22 @@ class Rds { String? ncharCharacterSetName, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - $request['TenantDBName'] = tenantDBName; - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - ncharCharacterSetName - ?.also((arg) => $request['NcharCharacterSetName'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + 'TenantDBName': tenantDBName, + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (ncharCharacterSetName != null) + 'NcharCharacterSetName': ncharCharacterSetName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateTenantDatabase', @@ -6575,8 +6853,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTenantDatabaseMessage'], - shapes: shapes, resultWrapper: 'CreateTenantDatabaseResult', ); return CreateTenantDatabaseResult.fromXml($result); @@ -6616,9 +6892,10 @@ class Rds { required String blueGreenDeploymentIdentifier, bool? deleteTarget, }) async { - final $request = {}; - $request['BlueGreenDeploymentIdentifier'] = blueGreenDeploymentIdentifier; - deleteTarget?.also((arg) => $request['DeleteTarget'] = arg); + final $request = { + 'BlueGreenDeploymentIdentifier': blueGreenDeploymentIdentifier, + if (deleteTarget != null) 'DeleteTarget': deleteTarget.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteBlueGreenDeployment', @@ -6626,8 +6903,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteBlueGreenDeploymentRequest'], - shapes: shapes, resultWrapper: 'DeleteBlueGreenDeploymentResult', ); return DeleteBlueGreenDeploymentResponse.fromXml($result); @@ -6690,9 +6965,10 @@ class Rds { required String engine, required String engineVersion, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['EngineVersion'] = engineVersion; + final $request = { + 'Engine': engine, + 'EngineVersion': engineVersion, + }; final $result = await _protocol.send( $request, action: 'DeleteCustomDBEngineVersion', @@ -6700,8 +6976,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCustomDBEngineVersionMessage'], - shapes: shapes, resultWrapper: 'DeleteCustomDBEngineVersionResult', ); return DBEngineVersion.fromXml($result); @@ -6787,13 +7061,15 @@ class Rds { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - deleteAutomatedBackups - ?.also((arg) => $request['DeleteAutomatedBackups'] = arg); - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (deleteAutomatedBackups != null) + 'DeleteAutomatedBackups': deleteAutomatedBackups.toString(), + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBCluster', @@ -6801,8 +7077,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterResult', ); return DeleteDBClusterResult.fromXml($result); @@ -6821,8 +7095,9 @@ class Rds { Future deleteDBClusterAutomatedBackup({ required String dbClusterResourceId, }) async { - final $request = {}; - $request['DbClusterResourceId'] = dbClusterResourceId; + final $request = { + 'DbClusterResourceId': dbClusterResourceId, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterAutomatedBackup', @@ -6830,8 +7105,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterAutomatedBackupMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterAutomatedBackupResult', ); return DeleteDBClusterAutomatedBackupResult.fromXml($result); @@ -6852,8 +7125,9 @@ class Rds { Future deleteDBClusterEndpoint({ required String dBClusterEndpointIdentifier, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterEndpoint', @@ -6861,8 +7135,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterEndpointResult', ); return DBClusterEndpoint.fromXml($result); @@ -6901,8 +7173,9 @@ class Rds { Future deleteDBClusterParameterGroup({ required String dBClusterParameterGroupName, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBClusterParameterGroup', @@ -6910,8 +7183,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -6940,8 +7211,9 @@ class Rds { Future deleteDBClusterSnapshot({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterSnapshot', @@ -6949,8 +7221,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterSnapshotResult', ); return DeleteDBClusterSnapshotResult.fromXml($result); @@ -7070,13 +7340,15 @@ class Rds { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - deleteAutomatedBackups - ?.also((arg) => $request['DeleteAutomatedBackups'] = arg); - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (deleteAutomatedBackups != null) + 'DeleteAutomatedBackups': deleteAutomatedBackups.toString(), + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -7084,8 +7356,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -7113,10 +7383,11 @@ class Rds { String? dBInstanceAutomatedBackupsArn, String? dbiResourceId, }) async { - final $request = {}; - dBInstanceAutomatedBackupsArn - ?.also((arg) => $request['DBInstanceAutomatedBackupsArn'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); + final $request = { + if (dBInstanceAutomatedBackupsArn != null) + 'DBInstanceAutomatedBackupsArn': dBInstanceAutomatedBackupsArn, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstanceAutomatedBackup', @@ -7124,8 +7395,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceAutomatedBackupMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceAutomatedBackupResult', ); return DeleteDBInstanceAutomatedBackupResult.fromXml($result); @@ -7156,8 +7425,9 @@ class Rds { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -7165,8 +7435,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -7180,8 +7448,9 @@ class Rds { Future deleteDBProxy({ required String dBProxyName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; + final $request = { + 'DBProxyName': dBProxyName, + }; final $result = await _protocol.send( $request, action: 'DeleteDBProxy', @@ -7189,8 +7458,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBProxyRequest'], - shapes: shapes, resultWrapper: 'DeleteDBProxyResult', ); return DeleteDBProxyResponse.fromXml($result); @@ -7210,8 +7477,9 @@ class Rds { Future deleteDBProxyEndpoint({ required String dBProxyEndpointName, }) async { - final $request = {}; - $request['DBProxyEndpointName'] = dBProxyEndpointName; + final $request = { + 'DBProxyEndpointName': dBProxyEndpointName, + }; final $result = await _protocol.send( $request, action: 'DeleteDBProxyEndpoint', @@ -7219,8 +7487,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBProxyEndpointRequest'], - shapes: shapes, resultWrapper: 'DeleteDBProxyEndpointResult', ); return DeleteDBProxyEndpointResponse.fromXml($result); @@ -7271,8 +7537,9 @@ class Rds { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -7280,8 +7547,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -7296,8 +7561,9 @@ class Rds { Future deleteDBShardGroup({ required String dBShardGroupIdentifier, }) async { - final $request = {}; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; + final $request = { + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBShardGroup', @@ -7305,8 +7571,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -7329,8 +7593,9 @@ class Rds { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -7338,8 +7603,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -7367,8 +7630,9 @@ class Rds { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -7376,8 +7640,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -7391,8 +7653,9 @@ class Rds { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -7400,8 +7663,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -7421,8 +7682,9 @@ class Rds { Future deleteGlobalCluster({ required String globalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalCluster', @@ -7430,8 +7692,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalClusterResult', ); return DeleteGlobalClusterResult.fromXml($result); @@ -7448,8 +7708,9 @@ class Rds { Future deleteIntegration({ required String integrationIdentifier, }) async { - final $request = {}; - $request['IntegrationIdentifier'] = integrationIdentifier; + final $request = { + 'IntegrationIdentifier': integrationIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteIntegration', @@ -7457,8 +7718,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIntegrationMessage'], - shapes: shapes, resultWrapper: 'DeleteIntegrationResult', ); return Integration.fromXml($result); @@ -7477,8 +7736,9 @@ class Rds { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -7486,8 +7746,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -7532,12 +7790,14 @@ class Rds { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['TenantDBName'] = tenantDBName; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'TenantDBName': tenantDBName, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteTenantDatabase', @@ -7545,8 +7805,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTenantDatabaseMessage'], - shapes: shapes, resultWrapper: 'DeleteTenantDatabaseResult', ); return DeleteTenantDatabaseResult.fromXml($result); @@ -7578,12 +7836,22 @@ class Rds { List? dBInstanceIdentifiers, String? targetGroupName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - dBClusterIdentifiers?.also((arg) => $request['DBClusterIdentifiers'] = arg); - dBInstanceIdentifiers - ?.also((arg) => $request['DBInstanceIdentifiers'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (dBClusterIdentifiers != null) + if (dBClusterIdentifiers.isEmpty) + 'DBClusterIdentifiers': '' + else + for (var i1 = 0; i1 < dBClusterIdentifiers.length; i1++) + 'DBClusterIdentifiers.member.${i1 + 1}': dBClusterIdentifiers[i1], + if (dBInstanceIdentifiers != null) + if (dBInstanceIdentifiers.isEmpty) + 'DBInstanceIdentifiers': '' + else + for (var i1 = 0; i1 < dBInstanceIdentifiers.length; i1++) + 'DBInstanceIdentifiers.member.${i1 + 1}': dBInstanceIdentifiers[i1], + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; await _protocol.send( $request, action: 'DeregisterDBProxyTargets', @@ -7591,8 +7859,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterDBProxyTargetsRequest'], - shapes: shapes, resultWrapper: 'DeregisterDBProxyTargetsResult', ); } @@ -7604,7 +7870,7 @@ class Rds { /// /// This command doesn't take any parameters. Future describeAccountAttributes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAccountAttributes', @@ -7612,8 +7878,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeAccountAttributesResult', ); return AccountAttributesMessage.fromXml($result); @@ -7709,12 +7973,19 @@ class Rds { 20, 100, ); - final $request = {}; - blueGreenDeploymentIdentifier - ?.also((arg) => $request['BlueGreenDeploymentIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (blueGreenDeploymentIdentifier != null) + 'BlueGreenDeploymentIdentifier': blueGreenDeploymentIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeBlueGreenDeployments', @@ -7722,8 +7993,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeBlueGreenDeploymentsRequest'], - shapes: shapes, resultWrapper: 'DescribeBlueGreenDeploymentsResult', ); return DescribeBlueGreenDeploymentsResponse.fromXml($result); @@ -7779,12 +8048,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - certificateIdentifier - ?.also((arg) => $request['CertificateIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (certificateIdentifier != null) + 'CertificateIdentifier': certificateIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCertificates', @@ -7792,8 +8068,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCertificatesMessage'], - shapes: shapes, resultWrapper: 'DescribeCertificatesResult', ); return CertificateMessage.fromXml($result); @@ -7865,12 +8139,21 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dbClusterResourceId?.also((arg) => $request['DbClusterResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dbClusterResourceId != null) + 'DbClusterResourceId': dbClusterResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterAutomatedBackups', @@ -7878,8 +8161,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterAutomatedBackupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterAutomatedBackupsResult', ); return DBClusterAutomatedBackupMessage.fromXml($result); @@ -7987,12 +8268,20 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - backtrackIdentifier?.also((arg) => $request['BacktrackIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (backtrackIdentifier != null) + 'BacktrackIdentifier': backtrackIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterBacktracks', @@ -8000,8 +8289,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterBacktracksMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterBacktracksResult', ); return DBClusterBacktrackMessage.fromXml($result); @@ -8060,13 +8347,21 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterEndpointIdentifier - ?.also((arg) => $request['DBClusterEndpointIdentifier'] = arg); - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterEndpointIdentifier != null) + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterEndpoints', @@ -8074,8 +8369,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterEndpointsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterEndpointsResult', ); return DBClusterEndpointMessage.fromXml($result); @@ -8131,12 +8424,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameterGroups', @@ -8144,8 +8444,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParameterGroupsResult', ); return DBClusterParameterGroupsMessage.fromXml($result); @@ -8218,12 +8516,19 @@ class Rds { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameters', @@ -8231,8 +8536,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParametersResult', ); return DBClusterParameterGroupDetails.fromXml($result); @@ -8263,8 +8566,9 @@ class Rds { describeDBClusterSnapshotAttributes({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshotAttributes', @@ -8272,8 +8576,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotAttributesResult', ); return DescribeDBClusterSnapshotAttributesResult.fromXml($result); @@ -8428,17 +8730,26 @@ class Rds { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - dbClusterResourceId?.also((arg) => $request['DbClusterResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (dbClusterResourceId != null) + 'DbClusterResourceId': dbClusterResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshots', @@ -8446,8 +8757,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotsResult', ); return DBClusterSnapshotMessage.fromXml($result); @@ -8540,12 +8849,20 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusters', @@ -8553,8 +8870,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClustersResult', ); return DBClusterMessage.fromXml($result); @@ -8757,20 +9072,27 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includeAll?.also((arg) => $request['IncludeAll'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - listSupportedTimezones - ?.also((arg) => $request['ListSupportedTimezones'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includeAll != null) 'IncludeAll': includeAll.toString(), + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (listSupportedTimezones != null) + 'ListSupportedTimezones': listSupportedTimezones.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -8778,8 +9100,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -8867,14 +9187,22 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceAutomatedBackupsArn - ?.also((arg) => $request['DBInstanceAutomatedBackupsArn'] = arg); - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceAutomatedBackupsArn != null) + 'DBInstanceAutomatedBackupsArn': dBInstanceAutomatedBackupsArn, + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstanceAutomatedBackups', @@ -8882,8 +9210,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstanceAutomatedBackupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstanceAutomatedBackupsResult', ); return DBInstanceAutomatedBackupMessage.fromXml($result); @@ -8964,11 +9290,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -8976,8 +9310,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -9034,14 +9366,22 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -9049,8 +9389,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -9097,11 +9435,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -9109,8 +9455,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -9163,12 +9507,19 @@ class Rds { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -9176,8 +9527,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -9221,11 +9570,18 @@ class Rds { 20, 100, ); - final $request = {}; - dBProxyName?.also((arg) => $request['DBProxyName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBProxyName != null) 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxies', @@ -9233,8 +9589,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxiesRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxiesResult', ); return DescribeDBProxiesResponse.fromXml($result); @@ -9285,12 +9639,20 @@ class Rds { 20, 100, ); - final $request = {}; - dBProxyEndpointName?.also((arg) => $request['DBProxyEndpointName'] = arg); - dBProxyName?.also((arg) => $request['DBProxyName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBProxyEndpointName != null) + 'DBProxyEndpointName': dBProxyEndpointName, + if (dBProxyName != null) 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxyEndpoints', @@ -9298,8 +9660,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxyEndpointsRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxyEndpointsResult', ); return DescribeDBProxyEndpointsResponse.fromXml($result); @@ -9349,12 +9709,19 @@ class Rds { 20, 100, ); - final $request = {}; - $request['DBProxyName'] = dBProxyName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxyTargetGroups', @@ -9362,8 +9729,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxyTargetGroupsRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxyTargetGroupsResult', ); return DescribeDBProxyTargetGroupsResponse.fromXml($result); @@ -9413,12 +9778,19 @@ class Rds { 20, 100, ); - final $request = {}; - $request['DBProxyName'] = dBProxyName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxyTargets', @@ -9426,8 +9798,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxyTargetsRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxyTargetsResult', ); return DescribeDBProxyTargetsResponse.fromXml($result); @@ -9590,15 +9960,22 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - lastUpdatedAfter - ?.also((arg) => $request['LastUpdatedAfter'] = _s.iso8601ToJson(arg)); - lastUpdatedBefore - ?.also((arg) => $request['LastUpdatedBefore'] = _s.iso8601ToJson(arg)); - locale?.also((arg) => $request['Locale'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (lastUpdatedAfter != null) + 'LastUpdatedAfter': _s.iso8601ToJson(lastUpdatedAfter), + if (lastUpdatedBefore != null) + 'LastUpdatedBefore': _s.iso8601ToJson(lastUpdatedBefore), + if (locale != null) 'Locale': locale, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBRecommendations', @@ -9606,8 +9983,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBRecommendationsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBRecommendationsResult', ); return DBRecommendationsMessage.fromXml($result); @@ -9659,11 +10034,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -9671,8 +10054,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -9727,12 +10108,19 @@ class Rds { 20, 100, ); - final $request = {}; - dBShardGroupIdentifier - ?.also((arg) => $request['DBShardGroupIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBShardGroupIdentifier != null) + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBShardGroups', @@ -9740,8 +10128,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBShardGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBShardGroupsResult', ); return DescribeDBShardGroupsResponse.fromXml($result); @@ -9769,8 +10155,9 @@ class Rds { Future describeDBSnapshotAttributes({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshotAttributes', @@ -9778,8 +10165,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotAttributesResult', ); return DescribeDBSnapshotAttributesResult.fromXml($result); @@ -9910,14 +10295,23 @@ class Rds { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshotTenantDatabases', @@ -9925,8 +10319,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotTenantDatabasesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotTenantDatabasesResult', ); return DBSnapshotTenantDatabasesMessage.fromXml($result); @@ -10086,16 +10478,25 @@ class Rds { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -10103,8 +10504,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -10147,11 +10546,18 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -10159,8 +10565,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -10202,11 +10606,18 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultClusterParameters', @@ -10214,8 +10625,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultClusterParametersResult', ); return DescribeEngineDefaultClusterParametersResult.fromXml($result); @@ -10404,11 +10813,18 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -10416,8 +10832,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -10446,9 +10860,16 @@ class Rds { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -10456,8 +10877,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -10501,11 +10920,18 @@ class Rds { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -10513,8 +10939,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -10636,16 +11060,28 @@ class Rds { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -10653,8 +11089,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -10750,13 +11184,21 @@ class Rds { 20, 100, ); - final $request = {}; - exportTaskIdentifier?.also((arg) => $request['ExportTaskIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); + final $request = { + if (exportTaskIdentifier != null) + 'ExportTaskIdentifier': exportTaskIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceArn != null) 'SourceArn': sourceArn, + if (sourceType != null) 'SourceType': sourceType.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeExportTasks', @@ -10764,8 +11206,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeExportTasksMessage'], - shapes: shapes, resultWrapper: 'DescribeExportTasksResult', ); return ExportTasksMessage.fromXml($result); @@ -10827,12 +11267,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalClusters', @@ -10840,8 +11287,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalClustersResult', ); return GlobalClustersMessage.fromXml($result); @@ -10878,12 +11323,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - integrationIdentifier - ?.also((arg) => $request['IntegrationIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (integrationIdentifier != null) + 'IntegrationIdentifier': integrationIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeIntegrations', @@ -10891,8 +11343,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeIntegrationsMessage'], - shapes: shapes, resultWrapper: 'DescribeIntegrationsResult', ); return DescribeIntegrationsResponse.fromXml($result); @@ -10975,12 +11425,19 @@ class Rds { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -10988,8 +11445,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -11082,13 +11537,20 @@ class Rds { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -11096,8 +11558,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -11229,17 +11689,24 @@ class Rds { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - availabilityZoneGroup - ?.also((arg) => $request['AvailabilityZoneGroup'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (availabilityZoneGroup != null) + 'AvailabilityZoneGroup': availabilityZoneGroup, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -11247,8 +11714,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -11302,11 +11767,18 @@ class Rds { int? maxRecords, String? resourceIdentifier, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribePendingMaintenanceActions', @@ -11314,8 +11786,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePendingMaintenanceActionsMessage'], - shapes: shapes, resultWrapper: 'DescribePendingMaintenanceActionsResult', ); return PendingMaintenanceActionsMessage.fromXml($result); @@ -11396,19 +11866,27 @@ class Rds { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - leaseId?.also((arg) => $request['LeaseId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (leaseId != null) 'LeaseId': leaseId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -11416,8 +11894,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -11489,17 +11965,24 @@ class Rds { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -11507,8 +11990,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -11564,11 +12045,18 @@ class Rds { int? maxRecords, String? regionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - regionName?.also((arg) => $request['RegionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (regionName != null) 'RegionName': regionName, + }; final $result = await _protocol.send( $request, action: 'DescribeSourceRegions', @@ -11576,8 +12064,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSourceRegionsMessage'], - shapes: shapes, resultWrapper: 'DescribeSourceRegionsResult', ); return SourceRegionMessage.fromXml($result); @@ -11638,12 +12124,20 @@ class Rds { int? maxRecords, String? tenantDBName, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tenantDBName?.also((arg) => $request['TenantDBName'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tenantDBName != null) 'TenantDBName': tenantDBName, + }; final $result = await _protocol.send( $request, action: 'DescribeTenantDatabases', @@ -11651,8 +12145,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTenantDatabasesMessage'], - shapes: shapes, resultWrapper: 'DescribeTenantDatabasesResult', ); return TenantDatabasesMessage.fromXml($result); @@ -11673,8 +12165,9 @@ class Rds { describeValidDBInstanceModifications({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeValidDBInstanceModifications', @@ -11682,8 +12175,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeValidDBInstanceModificationsMessage'], - shapes: shapes, resultWrapper: 'DescribeValidDBInstanceModificationsResult', ); return DescribeValidDBInstanceModificationsResult.fromXml($result); @@ -11710,8 +12201,9 @@ class Rds { Future disableHttpEndpoint({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'DisableHttpEndpoint', @@ -11719,8 +12211,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableHttpEndpointRequest'], - shapes: shapes, resultWrapper: 'DisableHttpEndpointResult', ); return DisableHttpEndpointResponse.fromXml($result); @@ -11789,11 +12279,12 @@ class Rds { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -11801,8 +12292,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -11833,8 +12322,9 @@ class Rds { Future enableHttpEndpoint({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'EnableHttpEndpoint', @@ -11842,8 +12332,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableHttpEndpointRequest'], - shapes: shapes, resultWrapper: 'EnableHttpEndpointResult', ); return EnableHttpEndpointResponse.fromXml($result); @@ -11907,10 +12395,11 @@ class Rds { required String dBClusterIdentifier, String? targetDBInstanceIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - targetDBInstanceIdentifier - ?.also((arg) => $request['TargetDBInstanceIdentifier'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (targetDBInstanceIdentifier != null) + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverDBCluster', @@ -11918,8 +12407,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverDBClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverDBClusterResult', ); return FailoverDBClusterResult.fromXml($result); @@ -12040,11 +12527,12 @@ class Rds { bool? allowDataLoss, bool? switchover, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; - allowDataLoss?.also((arg) => $request['AllowDataLoss'] = arg); - switchover?.also((arg) => $request['Switchover'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + if (allowDataLoss != null) 'AllowDataLoss': allowDataLoss.toString(), + if (switchover != null) 'Switchover': switchover.toString(), + }; final $result = await _protocol.send( $request, action: 'FailoverGlobalCluster', @@ -12052,8 +12540,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverGlobalClusterResult', ); return FailoverGlobalClusterResult.fromXml($result); @@ -12088,9 +12574,16 @@ class Rds { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -12098,8 +12591,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -12134,10 +12625,11 @@ class Rds { AuditPolicyState? auditPolicyState, String? resourceArn, }) async { - final $request = {}; - auditPolicyState - ?.also((arg) => $request['AuditPolicyState'] = arg.toValue()); - resourceArn?.also((arg) => $request['ResourceArn'] = arg); + final $request = { + if (auditPolicyState != null) + 'AuditPolicyState': auditPolicyState.toValue(), + if (resourceArn != null) 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'ModifyActivityStream', @@ -12145,8 +12637,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyActivityStreamRequest'], - shapes: shapes, resultWrapper: 'ModifyActivityStreamResult', ); return ModifyActivityStreamResponse.fromXml($result); @@ -12204,11 +12694,12 @@ class Rds { String? certificateIdentifier, bool? removeCustomerOverride, }) async { - final $request = {}; - certificateIdentifier - ?.also((arg) => $request['CertificateIdentifier'] = arg); - removeCustomerOverride - ?.also((arg) => $request['RemoveCustomerOverride'] = arg); + final $request = { + if (certificateIdentifier != null) + 'CertificateIdentifier': certificateIdentifier, + if (removeCustomerOverride != null) + 'RemoveCustomerOverride': removeCustomerOverride.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyCertificates', @@ -12216,8 +12707,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCertificatesMessage'], - shapes: shapes, resultWrapper: 'ModifyCertificatesResult', ); return ModifyCertificatesResult.fromXml($result); @@ -12311,11 +12800,13 @@ class Rds { int? secondsBeforeTimeout, String? timeoutAction, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - capacity?.also((arg) => $request['Capacity'] = arg); - secondsBeforeTimeout?.also((arg) => $request['SecondsBeforeTimeout'] = arg); - timeoutAction?.also((arg) => $request['TimeoutAction'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (capacity != null) 'Capacity': capacity.toString(), + if (secondsBeforeTimeout != null) + 'SecondsBeforeTimeout': secondsBeforeTimeout.toString(), + if (timeoutAction != null) 'TimeoutAction': timeoutAction, + }; final $result = await _protocol.send( $request, action: 'ModifyCurrentDBClusterCapacity', @@ -12323,8 +12814,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCurrentDBClusterCapacityMessage'], - shapes: shapes, resultWrapper: 'ModifyCurrentDBClusterCapacityResult', ); return DBClusterCapacityInfo.fromXml($result); @@ -12397,11 +12886,12 @@ class Rds { String? description, CustomEngineVersionStatus? status, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['EngineVersion'] = engineVersion; - description?.also((arg) => $request['Description'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + 'Engine': engine, + 'EngineVersion': engineVersion, + if (description != null) 'Description': description, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'ModifyCustomDBEngineVersion', @@ -12409,8 +12899,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCustomDBEngineVersionMessage'], - shapes: shapes, resultWrapper: 'ModifyCustomDBEngineVersionResult', ); return DBEngineVersion.fromXml($result); @@ -13193,76 +13681,96 @@ class Rds { String? storageType, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowEngineModeChange - ?.also((arg) => $request['AllowEngineModeChange'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - awsBackupRecoveryPointArn - ?.also((arg) => $request['AwsBackupRecoveryPointArn'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBInstanceParameterGroupName - ?.also((arg) => $request['DBInstanceParameterGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableGlobalWriteForwarding - ?.also((arg) => $request['EnableGlobalWriteForwarding'] = arg); - enableHttpEndpoint?.also((arg) => $request['EnableHttpEndpoint'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enableLimitlessDatabase - ?.also((arg) => $request['EnableLimitlessDatabase'] = arg); - enableLocalWriteForwarding - ?.also((arg) => $request['EnableLocalWriteForwarding'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - newDBClusterIdentifier - ?.also((arg) => $request['NewDBClusterIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - rotateMasterUserPassword - ?.also((arg) => $request['RotateMasterUserPassword'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowEngineModeChange != null) + 'AllowEngineModeChange': allowEngineModeChange.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (awsBackupRecoveryPointArn != null) + 'AwsBackupRecoveryPointArn': awsBackupRecoveryPointArn, + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBInstanceParameterGroupName != null) + 'DBInstanceParameterGroupName': dBInstanceParameterGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableGlobalWriteForwarding != null) + 'EnableGlobalWriteForwarding': enableGlobalWriteForwarding.toString(), + if (enableHttpEndpoint != null) + 'EnableHttpEndpoint': enableHttpEndpoint.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enableLimitlessDatabase != null) + 'EnableLimitlessDatabase': enableLimitlessDatabase.toString(), + if (enableLocalWriteForwarding != null) + 'EnableLocalWriteForwarding': enableLocalWriteForwarding.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineMode != null) 'EngineMode': engineMode, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (networkType != null) 'NetworkType': networkType, + if (newDBClusterIdentifier != null) + 'NewDBClusterIdentifier': newDBClusterIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (rotateMasterUserPassword != null) + 'RotateMasterUserPassword': rotateMasterUserPassword.toString(), + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBCluster', @@ -13270,8 +13778,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterResult', ); return ModifyDBClusterResult.fromXml($result); @@ -13310,11 +13816,22 @@ class Rds { List? excludedMembers, List? staticMembers, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - endpointType?.also((arg) => $request['EndpointType'] = arg); - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (endpointType != null) 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterEndpoint', @@ -13322,8 +13839,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterEndpointResult', ); return DBClusterEndpoint.fromXml($result); @@ -13389,9 +13904,15 @@ class Rds { required String dBClusterParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterParameterGroup', @@ -13399,8 +13920,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -13481,11 +14000,22 @@ class Rds { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterSnapshotAttribute', @@ -13493,8 +14023,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterSnapshotAttributeResult', ); return ModifyDBClusterSnapshotAttributeResult.fromXml($result); @@ -14740,88 +15268,128 @@ class Rds { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - automationMode?.also((arg) => $request['AutomationMode'] = arg.toValue()); - awsBackupRecoveryPointArn - ?.also((arg) => $request['AwsBackupRecoveryPointArn'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - certificateRotationRestart - ?.also((arg) => $request['CertificateRotationRestart'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBPortNumber?.also((arg) => $request['DBPortNumber'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - disableDomain?.also((arg) => $request['DisableDomain'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - multiTenant?.also((arg) => $request['MultiTenant'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - replicaMode?.also((arg) => $request['ReplicaMode'] = arg.toValue()); - resumeFullAutomationModeMinutes - ?.also((arg) => $request['ResumeFullAutomationModeMinutes'] = arg); - rotateMasterUserPassword - ?.also((arg) => $request['RotateMasterUserPassword'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (automationMode != null) 'AutomationMode': automationMode.toValue(), + if (awsBackupRecoveryPointArn != null) + 'AwsBackupRecoveryPointArn': awsBackupRecoveryPointArn, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (certificateRotationRestart != null) + 'CertificateRotationRestart': certificateRotationRestart.toString(), + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBPortNumber != null) 'DBPortNumber': dBPortNumber.toString(), + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (disableDomain != null) 'DisableDomain': disableDomain.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (multiTenant != null) 'MultiTenant': multiTenant.toString(), + if (networkType != null) 'NetworkType': networkType, + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (replicaMode != null) 'ReplicaMode': replicaMode.toValue(), + if (resumeFullAutomationModeMinutes != null) + 'ResumeFullAutomationModeMinutes': + resumeFullAutomationModeMinutes.toString(), + if (rotateMasterUserPassword != null) + 'RotateMasterUserPassword': rotateMasterUserPassword.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -14829,8 +15397,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -14901,9 +15467,15 @@ class Rds { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -14911,8 +15483,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -14971,15 +15541,28 @@ class Rds { String? roleArn, List? securityGroups, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - auth?.also((arg) => $request['Auth'] = arg); - debugLogging?.also((arg) => $request['DebugLogging'] = arg); - idleClientTimeout?.also((arg) => $request['IdleClientTimeout'] = arg); - newDBProxyName?.also((arg) => $request['NewDBProxyName'] = arg); - requireTLS?.also((arg) => $request['RequireTLS'] = arg); - roleArn?.also((arg) => $request['RoleArn'] = arg); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (auth != null) + if (auth.isEmpty) + 'Auth': '' + else + for (var i1 = 0; i1 < auth.length; i1++) + for (var e3 in auth[i1].toQueryMap().entries) + 'Auth.member.${i1 + 1}.${e3.key}': e3.value, + if (debugLogging != null) 'DebugLogging': debugLogging.toString(), + if (idleClientTimeout != null) + 'IdleClientTimeout': idleClientTimeout.toString(), + if (newDBProxyName != null) 'NewDBProxyName': newDBProxyName, + if (requireTLS != null) 'RequireTLS': requireTLS.toString(), + if (roleArn != null) 'RoleArn': roleArn, + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBProxy', @@ -14987,8 +15570,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBProxyRequest'], - shapes: shapes, resultWrapper: 'ModifyDBProxyResult', ); return ModifyDBProxyResponse.fromXml($result); @@ -15019,11 +15600,17 @@ class Rds { String? newDBProxyEndpointName, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBProxyEndpointName'] = dBProxyEndpointName; - newDBProxyEndpointName - ?.also((arg) => $request['NewDBProxyEndpointName'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBProxyEndpointName': dBProxyEndpointName, + if (newDBProxyEndpointName != null) + 'NewDBProxyEndpointName': newDBProxyEndpointName, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.member.${i1 + 1}': vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBProxyEndpoint', @@ -15031,8 +15618,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBProxyEndpointRequest'], - shapes: shapes, resultWrapper: 'ModifyDBProxyEndpointResult', ); return ModifyDBProxyEndpointResponse.fromXml($result); @@ -15064,11 +15649,14 @@ class Rds { ConnectionPoolConfiguration? connectionPoolConfig, String? newName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - $request['TargetGroupName'] = targetGroupName; - connectionPoolConfig?.also((arg) => $request['ConnectionPoolConfig'] = arg); - newName?.also((arg) => $request['NewName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + 'TargetGroupName': targetGroupName, + if (connectionPoolConfig != null) + for (var e1 in connectionPoolConfig.toQueryMap().entries) + 'ConnectionPoolConfig.${e1.key}': e1.value, + if (newName != null) 'NewName': newName, + }; final $result = await _protocol.send( $request, action: 'ModifyDBProxyTargetGroup', @@ -15076,8 +15664,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBProxyTargetGroupRequest'], - shapes: shapes, resultWrapper: 'ModifyDBProxyTargetGroupResult', ); return ModifyDBProxyTargetGroupResponse.fromXml($result); @@ -15115,12 +15701,18 @@ class Rds { List? recommendedActionUpdates, String? status, }) async { - final $request = {}; - $request['RecommendationId'] = recommendationId; - locale?.also((arg) => $request['Locale'] = arg); - recommendedActionUpdates - ?.also((arg) => $request['RecommendedActionUpdates'] = arg); - status?.also((arg) => $request['Status'] = arg); + final $request = { + 'RecommendationId': recommendationId, + if (locale != null) 'Locale': locale, + if (recommendedActionUpdates != null) + if (recommendedActionUpdates.isEmpty) + 'RecommendedActionUpdates': '' + else + for (var i1 = 0; i1 < recommendedActionUpdates.length; i1++) + for (var e3 in recommendedActionUpdates[i1].toQueryMap().entries) + 'RecommendedActionUpdates.member.${i1 + 1}.${e3.key}': e3.value, + if (status != null) 'Status': status, + }; final $result = await _protocol.send( $request, action: 'ModifyDBRecommendation', @@ -15128,8 +15720,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBRecommendationMessage'], - shapes: shapes, resultWrapper: 'ModifyDBRecommendationResult', ); return DBRecommendationMessage.fromXml($result); @@ -15154,9 +15744,10 @@ class Rds { required String dBShardGroupIdentifier, double? maxACU, }) async { - final $request = {}; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; - maxACU?.also((arg) => $request['MaxACU'] = arg); + final $request = { + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + if (maxACU != null) 'MaxACU': maxACU.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyDBShardGroup', @@ -15164,8 +15755,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -15238,10 +15827,11 @@ class Rds { String? engineVersion, String? optionGroupName, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSnapshot', @@ -15249,8 +15839,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSnapshotResult', ); return ModifyDBSnapshotResult.fromXml($result); @@ -15326,11 +15914,22 @@ class Rds { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBSnapshotAttribute', @@ -15338,8 +15937,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSnapshotAttributeResult', ); return ModifyDBSnapshotAttributeResult.fromXml($result); @@ -15373,11 +15970,16 @@ class Rds { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -15385,8 +15987,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -15446,12 +16046,18 @@ class Rds { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -15459,8 +16065,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -15551,15 +16155,17 @@ class Rds { String? globalClusterIdentifier, String? newGlobalClusterIdentifier, }) async { - final $request = {}; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - newGlobalClusterIdentifier - ?.also((arg) => $request['NewGlobalClusterIdentifier'] = arg); + final $request = { + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (newGlobalClusterIdentifier != null) + 'NewGlobalClusterIdentifier': newGlobalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalCluster', @@ -15567,8 +16173,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalClusterResult', ); return ModifyGlobalClusterResult.fromXml($result); @@ -15604,11 +16208,12 @@ class Rds { String? description, String? integrationName, }) async { - final $request = {}; - $request['IntegrationIdentifier'] = integrationIdentifier; - dataFilter?.also((arg) => $request['DataFilter'] = arg); - description?.also((arg) => $request['Description'] = arg); - integrationName?.also((arg) => $request['IntegrationName'] = arg); + final $request = { + 'IntegrationIdentifier': integrationIdentifier, + if (dataFilter != null) 'DataFilter': dataFilter, + if (description != null) 'Description': description, + if (integrationName != null) 'IntegrationName': integrationName, + }; final $result = await _protocol.send( $request, action: 'ModifyIntegration', @@ -15616,8 +16221,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyIntegrationMessage'], - shapes: shapes, resultWrapper: 'ModifyIntegrationResult', ); return Integration.fromXml($result); @@ -15651,11 +16254,25 @@ class Rds { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -15663,8 +16280,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -15750,11 +16365,12 @@ class Rds { String? masterUserPassword, String? newTenantDBName, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['TenantDBName'] = tenantDBName; - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - newTenantDBName?.also((arg) => $request['NewTenantDBName'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'TenantDBName': tenantDBName, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (newTenantDBName != null) 'NewTenantDBName': newTenantDBName, + }; final $result = await _protocol.send( $request, action: 'ModifyTenantDatabase', @@ -15762,8 +16378,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTenantDatabaseMessage'], - shapes: shapes, resultWrapper: 'ModifyTenantDatabaseResult', ); return ModifyTenantDatabaseResult.fromXml($result); @@ -15854,12 +16468,13 @@ class Rds { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -15867,8 +16482,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -15894,8 +16507,9 @@ class Rds { Future promoteReadReplicaDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplicaDBCluster', @@ -15903,8 +16517,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaDBClusterMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaDBClusterResult', ); return PromoteReadReplicaDBClusterResult.fromXml($result); @@ -15937,11 +16549,20 @@ class Rds { String? reservedDBInstanceId, List? tags, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -15949,8 +16570,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -15988,8 +16607,9 @@ class Rds { Future rebootDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RebootDBCluster', @@ -15997,8 +16617,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBClusterMessage'], - shapes: shapes, resultWrapper: 'RebootDBClusterResult', ); return RebootDBClusterResult.fromXml($result); @@ -16046,9 +16664,10 @@ class Rds { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -16056,8 +16675,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -16077,8 +16694,9 @@ class Rds { Future rebootDBShardGroup({ required String dBShardGroupIdentifier, }) async { - final $request = {}; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; + final $request = { + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + }; final $result = await _protocol.send( $request, action: 'RebootDBShardGroup', @@ -16086,8 +16704,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'RebootDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -16124,12 +16740,22 @@ class Rds { List? dBInstanceIdentifiers, String? targetGroupName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - dBClusterIdentifiers?.also((arg) => $request['DBClusterIdentifiers'] = arg); - dBInstanceIdentifiers - ?.also((arg) => $request['DBInstanceIdentifiers'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (dBClusterIdentifiers != null) + if (dBClusterIdentifiers.isEmpty) + 'DBClusterIdentifiers': '' + else + for (var i1 = 0; i1 < dBClusterIdentifiers.length; i1++) + 'DBClusterIdentifiers.member.${i1 + 1}': dBClusterIdentifiers[i1], + if (dBInstanceIdentifiers != null) + if (dBInstanceIdentifiers.isEmpty) + 'DBInstanceIdentifiers': '' + else + for (var i1 = 0; i1 < dBInstanceIdentifiers.length; i1++) + 'DBInstanceIdentifiers.member.${i1 + 1}': dBInstanceIdentifiers[i1], + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; final $result = await _protocol.send( $request, action: 'RegisterDBProxyTargets', @@ -16137,8 +16763,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterDBProxyTargetsRequest'], - shapes: shapes, resultWrapper: 'RegisterDBProxyTargetsResult', ); return RegisterDBProxyTargetsResponse.fromXml($result); @@ -16166,10 +16790,12 @@ class Rds { String? dbClusterIdentifier, String? globalClusterIdentifier, }) async { - final $request = {}; - dbClusterIdentifier?.also((arg) => $request['DbClusterIdentifier'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); + final $request = { + if (dbClusterIdentifier != null) + 'DbClusterIdentifier': dbClusterIdentifier, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RemoveFromGlobalCluster', @@ -16177,8 +16803,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveFromGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'RemoveFromGlobalClusterResult', ); return RemoveFromGlobalClusterResult.fromXml($result); @@ -16216,10 +16840,11 @@ class Rds { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'RemoveRoleFromDBCluster', @@ -16227,8 +16852,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromDBClusterMessage'], - shapes: shapes, ); } @@ -16256,10 +16879,11 @@ class Rds { required String featureName, required String roleArn, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['FeatureName'] = featureName; - $request['RoleArn'] = roleArn; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'FeatureName': featureName, + 'RoleArn': roleArn, + }; await _protocol.send( $request, action: 'RemoveRoleFromDBInstance', @@ -16267,8 +16891,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromDBInstanceMessage'], - shapes: shapes, ); } @@ -16291,9 +16913,10 @@ class Rds { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -16301,8 +16924,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -16337,9 +16958,14 @@ class Rds { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -16347,8 +16973,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -16395,10 +17019,18 @@ class Rds { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBClusterParameterGroup', @@ -16406,8 +17038,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -16475,10 +17105,18 @@ class Rds { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -16486,8 +17124,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -16967,54 +17603,84 @@ class Rds { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['MasterUsername'] = masterUsername; - $request['S3BucketName'] = s3BucketName; - $request['S3IngestionRoleArn'] = s3IngestionRoleArn; - $request['SourceEngine'] = sourceEngine; - $request['SourceEngineVersion'] = sourceEngineVersion; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - s3Prefix?.also((arg) => $request['S3Prefix'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'MasterUsername': masterUsername, + 'S3BucketName': s3BucketName, + 'S3IngestionRoleArn': s3IngestionRoleArn, + 'SourceEngine': sourceEngine, + 'SourceEngineVersion': sourceEngineVersion, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (s3Prefix != null) 'S3Prefix': s3Prefix, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromS3', @@ -17022,8 +17688,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromS3Message'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromS3Result', ); return RestoreDBClusterFromS3Result.fromXml($result); @@ -17565,44 +18229,77 @@ class Rds { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['SnapshotIdentifier'] = snapshotIdentifier; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - rdsCustomClusterConfiguration - ?.also((arg) => $request['RdsCustomClusterConfiguration'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'SnapshotIdentifier': snapshotIdentifier, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineMode != null) 'EngineMode': engineMode, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (rdsCustomClusterConfiguration != null) + for (var e1 in rdsCustomClusterConfiguration.toQueryMap().entries) + 'RdsCustomClusterConfiguration.${e1.key}': e1.value, + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromSnapshot', @@ -17610,8 +18307,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromSnapshotResult', ); return RestoreDBClusterFromSnapshotResult.fromXml($result); @@ -18128,48 +18823,75 @@ class Rds { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - rdsCustomClusterConfiguration - ?.also((arg) => $request['RdsCustomClusterConfiguration'] = arg); - restoreToTime - ?.also((arg) => $request['RestoreToTime'] = _s.iso8601ToJson(arg)); - restoreType?.also((arg) => $request['RestoreType'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - sourceDbClusterResourceId - ?.also((arg) => $request['SourceDbClusterResourceId'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineMode != null) 'EngineMode': engineMode, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (rdsCustomClusterConfiguration != null) + for (var e1 in rdsCustomClusterConfiguration.toQueryMap().entries) + 'RdsCustomClusterConfiguration.${e1.key}': e1.value, + if (restoreToTime != null) + 'RestoreToTime': _s.iso8601ToJson(restoreToTime), + if (restoreType != null) 'RestoreType': restoreType, + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (sourceDbClusterResourceId != null) + 'SourceDbClusterResourceId': sourceDbClusterResourceId, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterToPointInTime', @@ -18177,8 +18899,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterToPointInTimeResult', ); return RestoreDBClusterToPointInTimeResult.fromXml($result); @@ -18865,59 +19585,99 @@ class Rds { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupTarget?.also((arg) => $request['BackupTarget'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupTarget != null) 'BackupTarget': backupTarget, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engine != null) 'Engine': engine, + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -18925,8 +19685,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -19565,72 +20323,115 @@ class Rds { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['S3BucketName'] = s3BucketName; - $request['S3IngestionRoleArn'] = s3IngestionRoleArn; - $request['SourceEngine'] = sourceEngine; - $request['SourceEngineVersion'] = sourceEngineVersion; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - s3Prefix?.also((arg) => $request['S3Prefix'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'S3BucketName': s3BucketName, + 'S3IngestionRoleArn': s3IngestionRoleArn, + 'SourceEngine': sourceEngine, + 'SourceEngineVersion': sourceEngineVersion, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (s3Prefix != null) 'S3Prefix': s3Prefix, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromS3', @@ -19638,8 +20439,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromS3Message'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromS3Result', ); return RestoreDBInstanceFromS3Result.fromXml($result); @@ -20369,65 +21168,107 @@ class Rds { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupTarget?.also((arg) => $request['BackupTarget'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - sourceDBInstanceAutomatedBackupsArn - ?.also((arg) => $request['SourceDBInstanceAutomatedBackupsArn'] = arg); - sourceDBInstanceIdentifier - ?.also((arg) => $request['SourceDBInstanceIdentifier'] = arg); - sourceDbiResourceId?.also((arg) => $request['SourceDbiResourceId'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupTarget != null) 'BackupTarget': backupTarget, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engine != null) 'Engine': engine, + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (sourceDBInstanceAutomatedBackupsArn != null) + 'SourceDBInstanceAutomatedBackupsArn': + sourceDBInstanceAutomatedBackupsArn, + if (sourceDBInstanceIdentifier != null) + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (sourceDbiResourceId != null) + 'SourceDbiResourceId': sourceDbiResourceId, + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -20435,8 +21276,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -20502,13 +21341,15 @@ class Rds { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -20516,8 +21357,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -20568,13 +21407,16 @@ class Rds { bool? applyImmediately, bool? engineNativeAuditFieldsIncluded, }) async { - final $request = {}; - $request['KmsKeyId'] = kmsKeyId; - $request['Mode'] = mode.toValue(); - $request['ResourceArn'] = resourceArn; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - engineNativeAuditFieldsIncluded - ?.also((arg) => $request['EngineNativeAuditFieldsIncluded'] = arg); + final $request = { + 'KmsKeyId': kmsKeyId, + 'Mode': mode.toValue(), + 'ResourceArn': resourceArn, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (engineNativeAuditFieldsIncluded != null) + 'EngineNativeAuditFieldsIncluded': + engineNativeAuditFieldsIncluded.toString(), + }; final $result = await _protocol.send( $request, action: 'StartActivityStream', @@ -20582,8 +21424,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartActivityStreamRequest'], - shapes: shapes, resultWrapper: 'StartActivityStreamResult', ); return StartActivityStreamResponse.fromXml($result); @@ -20611,8 +21451,9 @@ class Rds { Future startDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBCluster', @@ -20620,8 +21461,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBClusterMessage'], - shapes: shapes, resultWrapper: 'StartDBClusterResult', ); return StartDBClusterResult.fromXml($result); @@ -20658,8 +21497,9 @@ class Rds { Future startDBInstance({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBInstance', @@ -20667,8 +21507,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBInstanceMessage'], - shapes: shapes, resultWrapper: 'StartDBInstanceResult', ); return StartDBInstanceResult.fromXml($result); @@ -20739,12 +21577,13 @@ class Rds { String? kmsKeyId, String? preSignedUrl, }) async { - final $request = {}; - $request['SourceDBInstanceArn'] = sourceDBInstanceArn; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); + final $request = { + 'SourceDBInstanceArn': sourceDBInstanceArn, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + }; final $result = await _protocol.send( $request, action: 'StartDBInstanceAutomatedBackupsReplication', @@ -20752,8 +21591,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBInstanceAutomatedBackupsReplicationMessage'], - shapes: shapes, resultWrapper: 'StartDBInstanceAutomatedBackupsReplicationResult', ); return StartDBInstanceAutomatedBackupsReplicationResult.fromXml($result); @@ -20915,14 +21752,20 @@ class Rds { List? exportOnly, String? s3Prefix, }) async { - final $request = {}; - $request['ExportTaskIdentifier'] = exportTaskIdentifier; - $request['IamRoleArn'] = iamRoleArn; - $request['KmsKeyId'] = kmsKeyId; - $request['S3BucketName'] = s3BucketName; - $request['SourceArn'] = sourceArn; - exportOnly?.also((arg) => $request['ExportOnly'] = arg); - s3Prefix?.also((arg) => $request['S3Prefix'] = arg); + final $request = { + 'ExportTaskIdentifier': exportTaskIdentifier, + 'IamRoleArn': iamRoleArn, + 'KmsKeyId': kmsKeyId, + 'S3BucketName': s3BucketName, + 'SourceArn': sourceArn, + if (exportOnly != null) + if (exportOnly.isEmpty) + 'ExportOnly': '' + else + for (var i1 = 0; i1 < exportOnly.length; i1++) + 'ExportOnly.member.${i1 + 1}': exportOnly[i1], + if (s3Prefix != null) 'S3Prefix': s3Prefix, + }; final $result = await _protocol.send( $request, action: 'StartExportTask', @@ -20930,8 +21773,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartExportTaskMessage'], - shapes: shapes, resultWrapper: 'StartExportTaskResult', ); return ExportTask.fromXml($result); @@ -20967,9 +21808,11 @@ class Rds { required String resourceArn, bool? applyImmediately, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); + final $request = { + 'ResourceArn': resourceArn, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + }; final $result = await _protocol.send( $request, action: 'StopActivityStream', @@ -20977,8 +21820,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopActivityStreamRequest'], - shapes: shapes, resultWrapper: 'StopActivityStreamResult', ); return StopActivityStreamResponse.fromXml($result); @@ -21007,8 +21848,9 @@ class Rds { Future stopDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBCluster', @@ -21016,8 +21858,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBClusterMessage'], - shapes: shapes, resultWrapper: 'StopDBClusterResult', ); return StopDBClusterResult.fromXml($result); @@ -21053,9 +21893,11 @@ class Rds { required String dBInstanceIdentifier, String? dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBInstance', @@ -21063,8 +21905,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBInstanceMessage'], - shapes: shapes, resultWrapper: 'StopDBInstanceResult', ); return StopDBInstanceResult.fromXml($result); @@ -21091,8 +21931,9 @@ class Rds { stopDBInstanceAutomatedBackupsReplication({ required String sourceDBInstanceArn, }) async { - final $request = {}; - $request['SourceDBInstanceArn'] = sourceDBInstanceArn; + final $request = { + 'SourceDBInstanceArn': sourceDBInstanceArn, + }; final $result = await _protocol.send( $request, action: 'StopDBInstanceAutomatedBackupsReplication', @@ -21100,8 +21941,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBInstanceAutomatedBackupsReplicationMessage'], - shapes: shapes, resultWrapper: 'StopDBInstanceAutomatedBackupsReplicationResult', ); return StopDBInstanceAutomatedBackupsReplicationResult.fromXml($result); @@ -21152,9 +21991,11 @@ class Rds { 30, 1152921504606846976, ); - final $request = {}; - $request['BlueGreenDeploymentIdentifier'] = blueGreenDeploymentIdentifier; - switchoverTimeout?.also((arg) => $request['SwitchoverTimeout'] = arg); + final $request = { + 'BlueGreenDeploymentIdentifier': blueGreenDeploymentIdentifier, + if (switchoverTimeout != null) + 'SwitchoverTimeout': switchoverTimeout.toString(), + }; final $result = await _protocol.send( $request, action: 'SwitchoverBlueGreenDeployment', @@ -21162,8 +22003,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverBlueGreenDeploymentRequest'], - shapes: shapes, resultWrapper: 'SwitchoverBlueGreenDeploymentResult', ); return SwitchoverBlueGreenDeploymentResponse.fromXml($result); @@ -21218,9 +22057,10 @@ class Rds { required String globalClusterIdentifier, required String targetDbClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'SwitchoverGlobalCluster', @@ -21228,8 +22068,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'SwitchoverGlobalClusterResult', ); return SwitchoverGlobalClusterResult.fromXml($result); @@ -21256,8 +22094,9 @@ class Rds { Future switchoverReadReplica({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'SwitchoverReadReplica', @@ -21265,8 +22104,6 @@ class Rds { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverReadReplicaMessage'], - shapes: shapes, resultWrapper: 'SwitchoverReadReplicaResult', ); return SwitchoverReadReplicaResult.fromXml($result); @@ -22271,6 +23108,25 @@ class CloudwatchLogsExportConfiguration { if (enableLogTypes != null) 'EnableLogTypes': enableLogTypes, }; } + + Map toQueryMap() { + final disableLogTypes = this.disableLogTypes; + final enableLogTypes = this.enableLogTypes; + return { + if (disableLogTypes != null) + if (disableLogTypes.isEmpty) + 'DisableLogTypes': '' + else + for (var i1 = 0; i1 < disableLogTypes.length; i1++) + 'DisableLogTypes.member.${i1 + 1}': disableLogTypes[i1], + if (enableLogTypes != null) + if (enableLogTypes.isEmpty) + 'EnableLogTypes': '' + else + for (var i1 = 0; i1 < enableLogTypes.length; i1++) + 'EnableLogTypes.member.${i1 + 1}': enableLogTypes[i1], + }; + } } /// This data type is used as a response element in the @@ -22494,6 +23350,29 @@ class ConnectionPoolConfiguration { 'SessionPinningFilters': sessionPinningFilters, }; } + + Map toQueryMap() { + final connectionBorrowTimeout = this.connectionBorrowTimeout; + final initQuery = this.initQuery; + final maxConnectionsPercent = this.maxConnectionsPercent; + final maxIdleConnectionsPercent = this.maxIdleConnectionsPercent; + final sessionPinningFilters = this.sessionPinningFilters; + return { + if (connectionBorrowTimeout != null) + 'ConnectionBorrowTimeout': connectionBorrowTimeout.toString(), + if (initQuery != null) 'InitQuery': initQuery, + if (maxConnectionsPercent != null) + 'MaxConnectionsPercent': maxConnectionsPercent.toString(), + if (maxIdleConnectionsPercent != null) + 'MaxIdleConnectionsPercent': maxIdleConnectionsPercent.toString(), + if (sessionPinningFilters != null) + if (sessionPinningFilters.isEmpty) + 'SessionPinningFilters': '' + else + for (var i1 = 0; i1 < sessionPinningFilters.length; i1++) + 'SessionPinningFilters.member.${i1 + 1}': sessionPinningFilters[i1], + }; + } } /// Displays the settings that control the size and behavior of the connection @@ -31215,6 +32094,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } /// A data type representing an Aurora global database. @@ -32617,6 +33509,41 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final optionVersion = this.optionVersion; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (optionVersion != null) 'OptionVersion': optionVersion, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } ///

@@ -33165,6 +34092,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } /// The version for an option. Option group option versions are returned by the @@ -33713,6 +34663,39 @@ class Parameter { 'SupportedEngineModes': supportedEngineModes, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + final supportedEngineModes = this.supportedEngineModes; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + if (supportedEngineModes != null) + if (supportedEngineModes.isEmpty) + 'SupportedEngineModes': '' + else + for (var i1 = 0; i1 < supportedEngineModes.length; i1++) + 'SupportedEngineModes.member.${i1 + 1}': supportedEngineModes[i1], + }; + } } /// A list of the log types whose configuration is still pending. In other @@ -34359,6 +35342,15 @@ class ProcessorFeature { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class PromoteReadReplicaDBClusterResult { @@ -34504,6 +35496,20 @@ class RdsCustomClusterConfiguration { 'TransitGatewayMulticastDomainId': transitGatewayMulticastDomainId, }; } + + Map toQueryMap() { + final interconnectSubnetId = this.interconnectSubnetId; + final replicaMode = this.replicaMode; + final transitGatewayMulticastDomainId = + this.transitGatewayMulticastDomainId; + return { + if (interconnectSubnetId != null) + 'InterconnectSubnetId': interconnectSubnetId, + if (replicaMode != null) 'ReplicaMode': replicaMode.toValue(), + if (transitGatewayMulticastDomainId != null) + 'TransitGatewayMulticastDomainId': transitGatewayMulticastDomainId, + }; + } } class RebootDBClusterResult { @@ -34731,6 +35737,15 @@ class RecommendedActionUpdate { 'Status': status, }; } + + Map toQueryMap() { + final actionId = this.actionId; + final status = this.status; + return { + 'ActionId': actionId, + 'Status': status, + }; + } } /// This data type is used as a response element in the @@ -35535,6 +36550,25 @@ class ScalingConfiguration { if (timeoutAction != null) 'TimeoutAction': timeoutAction, }; } + + Map toQueryMap() { + final autoPause = this.autoPause; + final maxCapacity = this.maxCapacity; + final minCapacity = this.minCapacity; + final secondsBeforeTimeout = this.secondsBeforeTimeout; + final secondsUntilAutoPause = this.secondsUntilAutoPause; + final timeoutAction = this.timeoutAction; + return { + if (autoPause != null) 'AutoPause': autoPause.toString(), + if (maxCapacity != null) 'MaxCapacity': maxCapacity.toString(), + if (minCapacity != null) 'MinCapacity': minCapacity.toString(), + if (secondsBeforeTimeout != null) + 'SecondsBeforeTimeout': secondsBeforeTimeout.toString(), + if (secondsUntilAutoPause != null) + 'SecondsUntilAutoPause': secondsUntilAutoPause.toString(), + if (timeoutAction != null) 'TimeoutAction': timeoutAction, + }; + } } /// The scaling configuration for an Aurora DB cluster in @@ -35652,6 +36686,15 @@ class ServerlessV2ScalingConfiguration { if (minCapacity != null) 'MinCapacity': minCapacity, }; } + + Map toQueryMap() { + final maxCapacity = this.maxCapacity; + final minCapacity = this.minCapacity; + return { + if (maxCapacity != null) 'MaxCapacity': maxCapacity.toString(), + if (minCapacity != null) 'MinCapacity': minCapacity.toString(), + }; + } } /// The scaling configuration for an Aurora Serverless v2 DB cluster. @@ -36305,6 +37348,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } ///

@@ -36909,6 +37961,24 @@ class UserAuthConfig { if (userName != null) 'UserName': userName, }; } + + Map toQueryMap() { + final authScheme = this.authScheme; + final clientPasswordAuthType = this.clientPasswordAuthType; + final description = this.description; + final iAMAuth = this.iAMAuth; + final secretArn = this.secretArn; + final userName = this.userName; + return { + if (authScheme != null) 'AuthScheme': authScheme.toValue(), + if (clientPasswordAuthType != null) + 'ClientPasswordAuthType': clientPasswordAuthType.toValue(), + if (description != null) 'Description': description, + if (iAMAuth != null) 'IAMAuth': iAMAuth.toValue(), + if (secretArn != null) 'SecretArn': secretArn, + if (userName != null) 'UserName': userName, + }; + } } /// Returns the details of authentication used by a proxy to log in as a diff --git a/aws_client/lib/src/generated/rds/v2014_10_31.meta.dart b/aws_client/lib/src/generated/rds/v2014_10_31.meta.dart deleted file mode 100644 index 3095628df..000000000 --- a/aws_client/lib/src/generated/rds/v2014_10_31.meta.dart +++ /dev/null @@ -1,6349 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AccountAttributesMessage": { - "type": "structure", - "members": { - "AccountQuotas": {"shape": "AccountQuotaList", "flattened": false} - }, - "flattened": false - }, - "AccountQuota": { - "type": "structure", - "members": { - "AccountQuotaName": {"shape": "String", "flattened": false}, - "Used": {"shape": "Long", "flattened": false}, - "Max": {"shape": "Long", "flattened": false} - }, - "flattened": false - }, - "AccountQuotaList": { - "type": "list", - "member": {"shape": "AccountQuota", "locationName": "AccountQuota"}, - "flattened": false - }, - "ActivityStreamMode": {"type": "string", "flattened": false}, - "ActivityStreamModeList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ActivityStreamPolicyStatus": {"type": "string", "flattened": false}, - "ActivityStreamStatus": {"type": "string", "flattened": false}, - "AddRoleToDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddRoleToDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AddSourceIdentifierToSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "AddTagsToResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ApplyMethod": {"type": "string", "flattened": false}, - "ApplyPendingMaintenanceActionMessage": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "ApplyAction": {"shape": "String", "flattened": false}, - "OptInType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ApplyPendingMaintenanceActionResult": { - "type": "structure", - "members": { - "ResourcePendingMaintenanceActions": { - "shape": "ResourcePendingMaintenanceActions", - "flattened": false - } - }, - "flattened": false - }, - "Arn": {"type": "string", "flattened": false}, - "AttributeValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "AttributeValue"}, - "flattened": false - }, - "AuditPolicyState": {"type": "string", "flattened": false}, - "AuthScheme": {"type": "string", "flattened": false}, - "AuthorizeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "AutomationMode": {"type": "string", "flattened": false}, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "AvailabilityZones": { - "type": "list", - "member": {"shape": "String", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "AvailableProcessorFeature": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AvailableProcessorFeatureList": { - "type": "list", - "member": { - "shape": "AvailableProcessorFeature", - "locationName": "AvailableProcessorFeature" - }, - "flattened": false - }, - "AwsBackupRecoveryPointArn": {"type": "string", "flattened": false}, - "BacktrackDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "BacktrackTo": {"shape": "TStamp", "flattened": false}, - "Force": {"shape": "BooleanOptional", "flattened": false}, - "UseEarliestTimeOnPointInTimeUnavailable": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "BlueGreenDeployment": { - "type": "structure", - "members": { - "BlueGreenDeploymentIdentifier": { - "shape": "BlueGreenDeploymentIdentifier", - "flattened": false - }, - "BlueGreenDeploymentName": { - "shape": "BlueGreenDeploymentName", - "flattened": false - }, - "Source": {"shape": "DatabaseArn", "flattened": false}, - "Target": {"shape": "DatabaseArn", "flattened": false}, - "SwitchoverDetails": { - "shape": "SwitchoverDetailList", - "flattened": false - }, - "Tasks": {"shape": "BlueGreenDeploymentTaskList", "flattened": false}, - "Status": {"shape": "BlueGreenDeploymentStatus", "flattened": false}, - "StatusDetails": { - "shape": "BlueGreenDeploymentStatusDetails", - "flattened": false - }, - "CreateTime": {"shape": "TStamp", "flattened": false}, - "DeleteTime": {"shape": "TStamp", "flattened": false}, - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "BlueGreenDeploymentIdentifier": {"type": "string", "flattened": false}, - "BlueGreenDeploymentList": { - "type": "list", - "member": {"shape": "BlueGreenDeployment"}, - "flattened": false - }, - "BlueGreenDeploymentName": {"type": "string", "flattened": false}, - "BlueGreenDeploymentStatus": {"type": "string", "flattened": false}, - "BlueGreenDeploymentStatusDetails": {"type": "string", "flattened": false}, - "BlueGreenDeploymentTask": { - "type": "structure", - "members": { - "Name": {"shape": "BlueGreenDeploymentTaskName", "flattened": false}, - "Status": {"shape": "BlueGreenDeploymentTaskStatus", "flattened": false} - }, - "flattened": false - }, - "BlueGreenDeploymentTaskList": { - "type": "list", - "member": {"shape": "BlueGreenDeploymentTask"}, - "flattened": false - }, - "BlueGreenDeploymentTaskName": {"type": "string", "flattened": false}, - "BlueGreenDeploymentTaskStatus": {"type": "string", "flattened": false}, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "BucketName": {"type": "string", "flattened": false}, - "CACertificateIdentifiersList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "CancelExportTaskMessage": { - "type": "structure", - "members": { - "ExportTaskIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Certificate": { - "type": "structure", - "members": { - "CertificateIdentifier": {"shape": "String", "flattened": false}, - "CertificateType": {"shape": "String", "flattened": false}, - "Thumbprint": {"shape": "String", "flattened": false}, - "ValidFrom": {"shape": "TStamp", "flattened": false}, - "ValidTill": {"shape": "TStamp", "flattened": false}, - "CertificateArn": {"shape": "String", "flattened": false}, - "CustomerOverride": {"shape": "BooleanOptional", "flattened": false}, - "CustomerOverrideValidTill": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "CertificateDetails": { - "type": "structure", - "members": { - "CAIdentifier": {"shape": "String", "flattened": false}, - "ValidTill": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "CertificateList": { - "type": "list", - "member": {"shape": "Certificate", "locationName": "Certificate"}, - "flattened": false - }, - "CertificateMessage": { - "type": "structure", - "members": { - "DefaultCertificateForNewLaunches": { - "shape": "String", - "flattened": false - }, - "Certificates": {"shape": "CertificateList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CharacterSet": { - "type": "structure", - "members": { - "CharacterSetName": {"shape": "String", "flattened": false}, - "CharacterSetDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClientPasswordAuthType": {"type": "string", "flattened": false}, - "CloudwatchLogsExportConfiguration": { - "type": "structure", - "members": { - "EnableLogTypes": {"shape": "LogTypeList", "flattened": false}, - "DisableLogTypes": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "ClusterPendingModifiedValues": { - "type": "structure", - "members": { - "PendingCloudwatchLogsExports": { - "shape": "PendingCloudwatchLogsExports", - "flattened": false - }, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "EngineVersion": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "RdsCustomClusterConfiguration": { - "shape": "RdsCustomClusterConfiguration", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "CertificateDetails": {"shape": "CertificateDetails", "flattened": false} - }, - "flattened": false - }, - "ConnectionPoolConfiguration": { - "type": "structure", - "members": { - "MaxConnectionsPercent": {"shape": "IntegerOptional", "flattened": false}, - "MaxIdleConnectionsPercent": { - "shape": "IntegerOptional", - "flattened": false - }, - "ConnectionBorrowTimeout": { - "shape": "IntegerOptional", - "flattened": false - }, - "SessionPinningFilters": {"shape": "StringList", "flattened": false}, - "InitQuery": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ConnectionPoolConfigurationInfo": { - "type": "structure", - "members": { - "MaxConnectionsPercent": {"shape": "Integer", "flattened": false}, - "MaxIdleConnectionsPercent": {"shape": "Integer", "flattened": false}, - "ConnectionBorrowTimeout": {"shape": "Integer", "flattened": false}, - "SessionPinningFilters": {"shape": "StringList", "flattened": false}, - "InitQuery": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ContextAttribute": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ContextAttributeList": { - "type": "list", - "member": {"shape": "ContextAttribute"}, - "flattened": false - }, - "CopyDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "SourceDBClusterParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterParameterGroupDescription": { - "shape": "String", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterParameterGroupResult": { - "type": "structure", - "members": { - "DBClusterParameterGroup": { - "shape": "DBClusterParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CopyDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBClusterSnapshotIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBClusterSnapshotIdentifier": { - "shape": "String", - "flattened": false - }, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "CopyTags": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "CopyDBParameterGroupMessage": { - "type": "structure", - "members": { - "SourceDBParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBParameterGroupIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetDBParameterGroupDescription": { - "shape": "String", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotMessage": { - "type": "structure", - "members": { - "SourceDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "TargetDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "CopyTags": {"shape": "BooleanOptional", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "TargetCustomAvailabilityZone": {"shape": "String", "flattened": false}, - "CopyOptionGroup": {"shape": "BooleanOptional", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CopyDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CopyOptionGroupMessage": { - "type": "structure", - "members": { - "SourceOptionGroupIdentifier": {"shape": "String", "flattened": false}, - "TargetOptionGroupIdentifier": {"shape": "String", "flattened": false}, - "TargetOptionGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CopyOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "CreateBlueGreenDeploymentRequest": { - "type": "structure", - "members": { - "BlueGreenDeploymentName": { - "shape": "BlueGreenDeploymentName", - "flattened": false - }, - "Source": {"shape": "DatabaseArn", "flattened": false}, - "TargetEngineVersion": { - "shape": "TargetEngineVersion", - "flattened": false - }, - "TargetDBParameterGroupName": { - "shape": "TargetDBParameterGroupName", - "flattened": false - }, - "TargetDBClusterParameterGroupName": { - "shape": "TargetDBClusterParameterGroupName", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "TargetDBInstanceClass": { - "shape": "TargetDBInstanceClass", - "flattened": false - }, - "UpgradeTargetStorageConfig": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "CreateBlueGreenDeploymentResponse": { - "type": "structure", - "members": { - "BlueGreenDeployment": { - "shape": "BlueGreenDeployment", - "flattened": false - } - }, - "flattened": false - }, - "CreateCustomDBEngineVersionMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "CustomEngineName", "flattened": false}, - "EngineVersion": {"shape": "CustomEngineVersion", "flattened": false}, - "DatabaseInstallationFilesS3BucketName": { - "shape": "BucketName", - "flattened": false - }, - "DatabaseInstallationFilesS3Prefix": { - "shape": "String255", - "flattened": false - }, - "ImageId": {"shape": "String255", "flattened": false}, - "KMSKeyId": {"shape": "KmsKeyIdOrArn", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Manifest": { - "shape": "CustomDBEngineVersionManifest", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "SourceCustomDbEngineVersionIdentifier": { - "shape": "String255", - "flattened": false - }, - "UseAwsProvidedLatestImage": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "CreateDBClusterEndpointMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterMessage": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "ReplicationSourceIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "BacktrackWindow": {"shape": "LongOptional", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "EngineMode": {"shape": "String", "flattened": false}, - "ScalingConfiguration": { - "shape": "ScalingConfiguration", - "flattened": false - }, - "RdsCustomClusterConfiguration": { - "shape": "RdsCustomClusterConfiguration", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "GlobalClusterIdentifier": {"shape": "String", "flattened": false}, - "EnableHttpEndpoint": {"shape": "BooleanOptional", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "EnableGlobalWriteForwarding": { - "shape": "BooleanOptional", - "flattened": false - }, - "DBClusterInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "EnableLimitlessDatabase": { - "shape": "BooleanOptional", - "flattened": false - }, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "NetworkType": {"shape": "String", "flattened": false}, - "DBSystemId": {"shape": "String", "flattened": false}, - "ManageMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "MasterUserSecretKmsKeyId": {"shape": "String", "flattened": false}, - "EnableLocalWriteForwarding": { - "shape": "BooleanOptional", - "flattened": false - }, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterParameterGroupResult": { - "type": "structure", - "members": { - "DBClusterParameterGroup": { - "shape": "DBClusterParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CreateDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceMessage": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "NcharCharacterSetName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainFqdn": {"shape": "String", "flattened": false}, - "DomainOu": {"shape": "String", "flattened": false}, - "DomainAuthSecretArn": {"shape": "String", "flattened": false}, - "DomainDnsIps": {"shape": "StringList", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "Timezone": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "MaxAllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "EnableCustomerOwnedIp": {"shape": "BooleanOptional", "flattened": false}, - "CustomIamInstanceProfile": {"shape": "String", "flattened": false}, - "BackupTarget": {"shape": "String", "flattened": false}, - "NetworkType": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "ManageMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "MasterUserSecretKmsKeyId": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "DBSystemId": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "MultiTenant": {"shape": "BooleanOptional", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "StorageType": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "UseDefaultProcessorFeatures": { - "shape": "BooleanOptional", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "DomainFqdn": {"shape": "String", "flattened": false}, - "DomainOu": {"shape": "String", "flattened": false}, - "DomainAuthSecretArn": {"shape": "String", "flattened": false}, - "DomainDnsIps": {"shape": "StringList", "flattened": false}, - "ReplicaMode": {"shape": "ReplicaMode", "flattened": false}, - "MaxAllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "CustomIamInstanceProfile": {"shape": "String", "flattened": false}, - "NetworkType": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "EnableCustomerOwnedIp": {"shape": "BooleanOptional", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "SourceDBClusterIdentifier": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "UpgradeStorageConfig": {"shape": "BooleanOptional", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBParameterGroupResult": { - "type": "structure", - "members": { - "DBParameterGroup": {"shape": "DBParameterGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBProxyEndpointRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "DBProxyName", "flattened": false}, - "DBProxyEndpointName": { - "shape": "DBProxyEndpointName", - "flattened": false - }, - "VpcSubnetIds": {"shape": "StringList", "flattened": false}, - "VpcSecurityGroupIds": {"shape": "StringList", "flattened": false}, - "TargetRole": {"shape": "DBProxyEndpointTargetRole", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBProxyEndpointResponse": { - "type": "structure", - "members": { - "DBProxyEndpoint": {"shape": "DBProxyEndpoint", "flattened": false} - }, - "flattened": false - }, - "CreateDBProxyRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "EngineFamily": {"shape": "EngineFamily", "flattened": false}, - "Auth": {"shape": "UserAuthConfigList", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "VpcSubnetIds": {"shape": "StringList", "flattened": false}, - "VpcSecurityGroupIds": {"shape": "StringList", "flattened": false}, - "RequireTLS": {"shape": "Boolean", "flattened": false}, - "IdleClientTimeout": {"shape": "IntegerOptional", "flattened": false}, - "DebugLogging": {"shape": "Boolean", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBProxyResponse": { - "type": "structure", - "members": { - "DBProxy": {"shape": "DBProxy", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSecurityGroupResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "CreateDBShardGroupMessage": { - "type": "structure", - "members": { - "DBShardGroupIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "ComputeRedundancy": {"shape": "IntegerOptional", "flattened": false}, - "MaxACU": {"shape": "DoubleOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": {"shape": "String", "flattened": false}, - "SourceDBClusterIdentifier": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "CreateIntegrationMessage": { - "type": "structure", - "members": { - "SourceArn": {"shape": "SourceArn", "flattened": false}, - "TargetArn": {"shape": "Arn", "flattened": false}, - "IntegrationName": {"shape": "IntegrationName", "flattened": false}, - "KMSKeyId": {"shape": "String", "flattened": false}, - "AdditionalEncryptionContext": { - "shape": "EncryptionContextMap", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "DataFilter": {"shape": "DataFilter", "flattened": false}, - "Description": {"shape": "IntegrationDescription", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "CreateTenantDatabaseMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TenantDBName": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "SensitiveString", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "NcharCharacterSetName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateTenantDatabaseResult": { - "type": "structure", - "members": { - "TenantDatabase": {"shape": "TenantDatabase", "flattened": false} - }, - "flattened": false - }, - "CustomDBEngineVersionAMI": { - "type": "structure", - "members": { - "ImageId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CustomDBEngineVersionManifest": {"type": "string", "flattened": false}, - "CustomEngineName": {"type": "string", "flattened": false}, - "CustomEngineVersion": {"type": "string", "flattened": false}, - "CustomEngineVersionStatus": {"type": "string", "flattened": false}, - "DBCluster": { - "type": "structure", - "members": { - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterParameterGroup": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "AutomaticRestartTime": {"shape": "TStamp", "flattened": false}, - "PercentProgress": {"shape": "String", "flattened": false}, - "EarliestRestorableTime": {"shape": "TStamp", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false}, - "ReaderEndpoint": {"shape": "String", "flattened": false}, - "CustomEndpoints": {"shape": "StringList", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBClusterOptionGroupMemberships": { - "shape": "DBClusterOptionGroupMemberships", - "flattened": false - }, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "ReplicationSourceIdentifier": {"shape": "String", "flattened": false}, - "ReadReplicaIdentifiers": { - "shape": "ReadReplicaIdentifierList", - "flattened": false - }, - "StatusInfos": {"shape": "DBClusterStatusInfoList", "flattened": false}, - "DBClusterMembers": {"shape": "DBClusterMemberList", "flattened": false}, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "HostedZoneId": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DbClusterResourceId": {"shape": "String", "flattened": false}, - "DBClusterArn": {"shape": "String", "flattened": false}, - "AssociatedRoles": {"shape": "DBClusterRoles", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "CloneGroupId": {"shape": "String", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "EarliestBacktrackTime": {"shape": "TStamp", "flattened": false}, - "BacktrackWindow": {"shape": "LongOptional", "flattened": false}, - "BacktrackConsumedChangeRecords": { - "shape": "LongOptional", - "flattened": false - }, - "EnabledCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "Capacity": {"shape": "IntegerOptional", "flattened": false}, - "EngineMode": {"shape": "String", "flattened": false}, - "ScalingConfigurationInfo": { - "shape": "ScalingConfigurationInfo", - "flattened": false - }, - "RdsCustomClusterConfiguration": { - "shape": "RdsCustomClusterConfiguration", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "HttpEndpointEnabled": {"shape": "BooleanOptional", "flattened": false}, - "ActivityStreamMode": {"shape": "ActivityStreamMode", "flattened": false}, - "ActivityStreamStatus": { - "shape": "ActivityStreamStatus", - "flattened": false - }, - "ActivityStreamKmsKeyId": {"shape": "String", "flattened": false}, - "ActivityStreamKinesisStreamName": { - "shape": "String", - "flattened": false - }, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "CrossAccountClone": {"shape": "BooleanOptional", "flattened": false}, - "DomainMemberships": { - "shape": "DomainMembershipList", - "flattened": false - }, - "TagList": {"shape": "TagList", "flattened": false}, - "GlobalWriteForwardingStatus": { - "shape": "WriteForwardingStatus", - "flattened": false - }, - "GlobalWriteForwardingRequested": { - "shape": "BooleanOptional", - "flattened": false - }, - "PendingModifiedValues": { - "shape": "ClusterPendingModifiedValues", - "flattened": false - }, - "DBClusterInstanceClass": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "PerformanceInsightsEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfigurationInfo", - "flattened": false - }, - "NetworkType": {"shape": "String", "flattened": false}, - "DBSystemId": {"shape": "String", "flattened": false}, - "MasterUserSecret": {"shape": "MasterUserSecret", "flattened": false}, - "IOOptimizedNextAllowedModificationTime": { - "shape": "TStamp", - "flattened": false - }, - "LocalWriteForwardingStatus": { - "shape": "LocalWriteForwardingStatus", - "flattened": false - }, - "AwsBackupRecoveryPointArn": {"shape": "String", "flattened": false}, - "LimitlessDatabase": {"shape": "LimitlessDatabase", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "CertificateDetails": {"shape": "CertificateDetails", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterAutomatedBackup": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "DBClusterAutomatedBackupsArn": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RestoreWindow": {"shape": "RestoreWindow", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DbClusterResourceId": {"shape": "String", "flattened": false}, - "Region": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBClusterArn": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "EngineMode": {"shape": "String", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "AwsBackupRecoveryPointArn": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DBClusterAutomatedBackupList": { - "type": "list", - "member": { - "shape": "DBClusterAutomatedBackup", - "locationName": "DBClusterAutomatedBackup" - }, - "flattened": false - }, - "DBClusterAutomatedBackupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterAutomatedBackups": { - "shape": "DBClusterAutomatedBackupList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterBacktrack": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "BacktrackIdentifier": {"shape": "String", "flattened": false}, - "BacktrackTo": {"shape": "TStamp", "flattened": false}, - "BacktrackedFrom": {"shape": "TStamp", "flattened": false}, - "BacktrackRequestCreationTime": {"shape": "TStamp", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterBacktrackList": { - "type": "list", - "member": { - "shape": "DBClusterBacktrack", - "locationName": "DBClusterBacktrack" - }, - "flattened": false - }, - "DBClusterBacktrackMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterBacktracks": { - "shape": "DBClusterBacktrackList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterCapacityInfo": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "PendingCapacity": {"shape": "IntegerOptional", "flattened": false}, - "CurrentCapacity": {"shape": "IntegerOptional", "flattened": false}, - "SecondsBeforeTimeout": {"shape": "IntegerOptional", "flattened": false}, - "TimeoutAction": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterEndpoint": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointResourceIdentifier": { - "shape": "String", - "flattened": false - }, - "Endpoint": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "CustomEndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false}, - "DBClusterEndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterEndpointList": { - "type": "list", - "member": { - "shape": "DBClusterEndpoint", - "locationName": "DBClusterEndpointList" - }, - "flattened": false - }, - "DBClusterEndpointMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterEndpoints": { - "shape": "DBClusterEndpointList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterIdentifier": {"type": "string", "flattened": false}, - "DBClusterList": { - "type": "list", - "member": {"shape": "DBCluster", "locationName": "DBCluster"}, - "flattened": false - }, - "DBClusterMember": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "IsClusterWriter": {"shape": "Boolean", "flattened": false}, - "DBClusterParameterGroupStatus": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DBClusterMemberList": { - "type": "list", - "member": {"shape": "DBClusterMember", "locationName": "DBClusterMember"}, - "flattened": false - }, - "DBClusterMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusters": {"shape": "DBClusterList", "flattened": false} - }, - "flattened": false - }, - "DBClusterOptionGroupMemberships": { - "type": "list", - "member": { - "shape": "DBClusterOptionGroupStatus", - "locationName": "DBClusterOptionGroup" - }, - "flattened": false - }, - "DBClusterOptionGroupStatus": { - "type": "structure", - "members": { - "DBClusterOptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroup": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "DBClusterParameterGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupList": { - "type": "list", - "member": { - "shape": "DBClusterParameterGroup", - "locationName": "DBClusterParameterGroup" - }, - "flattened": false - }, - "DBClusterParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterParameterGroups": { - "shape": "DBClusterParameterGroupList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterRole": { - "type": "structure", - "members": { - "RoleArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterRoles": { - "type": "list", - "member": {"shape": "DBClusterRole", "locationName": "DBClusterRole"}, - "flattened": false - }, - "DBClusterSnapshot": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineMode": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "Integer", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DBClusterSnapshotArn": {"shape": "String", "flattened": false}, - "SourceDBClusterSnapshotArn": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "TagList": {"shape": "TagList", "flattened": false}, - "DBSystemId": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "DbClusterResourceId": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DBClusterSnapshotAttribute": { - "type": "structure", - "members": { - "AttributeName": {"shape": "String", "flattened": false}, - "AttributeValues": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "DBClusterSnapshotAttributeList": { - "type": "list", - "member": { - "shape": "DBClusterSnapshotAttribute", - "locationName": "DBClusterSnapshotAttribute" - }, - "flattened": false - }, - "DBClusterSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBClusterSnapshotAttributes": { - "shape": "DBClusterSnapshotAttributeList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterSnapshotList": { - "type": "list", - "member": { - "shape": "DBClusterSnapshot", - "locationName": "DBClusterSnapshot" - }, - "flattened": false - }, - "DBClusterSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBClusterSnapshots": { - "shape": "DBClusterSnapshotList", - "flattened": false - } - }, - "flattened": false - }, - "DBClusterStatusInfo": { - "type": "structure", - "members": { - "StatusType": {"shape": "String", "flattened": false}, - "Normal": {"shape": "Boolean", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBClusterStatusInfoList": { - "type": "list", - "member": { - "shape": "DBClusterStatusInfo", - "locationName": "DBClusterStatusInfo" - }, - "flattened": false - }, - "DBEngineVersion": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "DBEngineDescription": {"shape": "String", "flattened": false}, - "DBEngineVersionDescription": {"shape": "String", "flattened": false}, - "DefaultCharacterSet": {"shape": "CharacterSet", "flattened": false}, - "Image": {"shape": "CustomDBEngineVersionAMI", "flattened": false}, - "DBEngineMediaType": {"shape": "String", "flattened": false}, - "SupportedCharacterSets": { - "shape": "SupportedCharacterSetsList", - "flattened": false - }, - "SupportedNcharCharacterSets": { - "shape": "SupportedCharacterSetsList", - "flattened": false - }, - "ValidUpgradeTarget": { - "shape": "ValidUpgradeTargetList", - "flattened": false - }, - "SupportedTimezones": { - "shape": "SupportedTimezonesList", - "flattened": false - }, - "ExportableLogTypes": {"shape": "LogTypeList", "flattened": false}, - "SupportsLogExportsToCloudwatchLogs": { - "shape": "Boolean", - "flattened": false - }, - "SupportsReadReplica": {"shape": "Boolean", "flattened": false}, - "SupportedEngineModes": {"shape": "EngineModeList", "flattened": false}, - "SupportedFeatureNames": {"shape": "FeatureNameList", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SupportsParallelQuery": {"shape": "Boolean", "flattened": false}, - "SupportsGlobalDatabases": {"shape": "Boolean", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "DatabaseInstallationFilesS3BucketName": { - "shape": "String", - "flattened": false - }, - "DatabaseInstallationFilesS3Prefix": { - "shape": "String", - "flattened": false - }, - "DBEngineVersionArn": {"shape": "String", "flattened": false}, - "KMSKeyId": {"shape": "String", "flattened": false}, - "CreateTime": {"shape": "TStamp", "flattened": false}, - "TagList": {"shape": "TagList", "flattened": false}, - "SupportsBabelfish": {"shape": "Boolean", "flattened": false}, - "CustomDBEngineVersionManifest": { - "shape": "CustomDBEngineVersionManifest", - "flattened": false - }, - "SupportsLimitlessDatabase": {"shape": "Boolean", "flattened": false}, - "SupportsCertificateRotationWithoutRestart": { - "shape": "BooleanOptional", - "flattened": false - }, - "SupportedCACertificateIdentifiers": { - "shape": "CACertificateIdentifiersList", - "flattened": false - }, - "SupportsLocalWriteForwarding": { - "shape": "BooleanOptional", - "flattened": false - }, - "SupportsIntegrations": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DBEngineVersionList": { - "type": "list", - "member": {"shape": "DBEngineVersion", "locationName": "DBEngineVersion"}, - "flattened": false - }, - "DBEngineVersionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBEngineVersions": {"shape": "DBEngineVersionList", "flattened": false} - }, - "flattened": false - }, - "DBInstance": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DBInstanceStatus": {"shape": "String", "flattened": false}, - "AutomaticRestartTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "Integer", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "DBParameterGroups": { - "shape": "DBParameterGroupStatusList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "LatestRestorableTime": {"shape": "TStamp", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "ReadReplicaSourceDBInstanceIdentifier": { - "shape": "String", - "flattened": false - }, - "ReadReplicaDBInstanceIdentifiers": { - "shape": "ReadReplicaDBInstanceIdentifierList", - "flattened": false - }, - "ReadReplicaDBClusterIdentifiers": { - "shape": "ReadReplicaDBClusterIdentifierList", - "flattened": false - }, - "ReplicaMode": {"shape": "ReplicaMode", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupMemberships": { - "shape": "OptionGroupMembershipList", - "flattened": false - }, - "CharacterSetName": {"shape": "String", "flattened": false}, - "NcharCharacterSetName": {"shape": "String", "flattened": false}, - "SecondaryAvailabilityZone": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false}, - "StatusInfos": {"shape": "DBInstanceStatusInfoList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "DbInstancePort": {"shape": "Integer", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "DomainMemberships": { - "shape": "DomainMembershipList", - "flattened": false - }, - "CopyTagsToSnapshot": {"shape": "Boolean", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "EnhancedMonitoringResourceArn": {"shape": "String", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceArn": {"shape": "String", "flattened": false}, - "Timezone": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "PerformanceInsightsEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "EnabledCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "DeletionProtection": {"shape": "Boolean", "flattened": false}, - "AssociatedRoles": {"shape": "DBInstanceRoles", "flattened": false}, - "ListenerEndpoint": {"shape": "Endpoint", "flattened": false}, - "MaxAllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "TagList": {"shape": "TagList", "flattened": false}, - "DBInstanceAutomatedBackupsReplications": { - "shape": "DBInstanceAutomatedBackupsReplicationList", - "flattened": false - }, - "CustomerOwnedIpEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "AwsBackupRecoveryPointArn": {"shape": "String", "flattened": false}, - "ActivityStreamStatus": { - "shape": "ActivityStreamStatus", - "flattened": false - }, - "ActivityStreamKmsKeyId": {"shape": "String", "flattened": false}, - "ActivityStreamKinesisStreamName": { - "shape": "String", - "flattened": false - }, - "ActivityStreamMode": {"shape": "ActivityStreamMode", "flattened": false}, - "ActivityStreamEngineNativeAuditFieldsIncluded": { - "shape": "BooleanOptional", - "flattened": false - }, - "AutomationMode": {"shape": "AutomationMode", "flattened": false}, - "ResumeFullAutomationModeTime": {"shape": "TStamp", "flattened": false}, - "CustomIamInstanceProfile": {"shape": "String", "flattened": false}, - "BackupTarget": {"shape": "String", "flattened": false}, - "NetworkType": {"shape": "String", "flattened": false}, - "ActivityStreamPolicyStatus": { - "shape": "ActivityStreamPolicyStatus", - "flattened": false - }, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "DBSystemId": {"shape": "String", "flattened": false}, - "MasterUserSecret": {"shape": "MasterUserSecret", "flattened": false}, - "CertificateDetails": {"shape": "CertificateDetails", "flattened": false}, - "ReadReplicaSourceDBClusterIdentifier": { - "shape": "String", - "flattened": false - }, - "PercentProgress": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "Boolean", "flattened": false}, - "IsStorageConfigUpgradeAvailable": { - "shape": "BooleanOptional", - "flattened": false - }, - "MultiTenant": {"shape": "BooleanOptional", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceAutomatedBackup": { - "type": "structure", - "members": { - "DBInstanceArn": {"shape": "String", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false}, - "Region": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RestoreWindow": {"shape": "RestoreWindow", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "Encrypted": {"shape": "Boolean", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Timezone": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceAutomatedBackupsArn": {"shape": "String", "flattened": false}, - "DBInstanceAutomatedBackupsReplications": { - "shape": "DBInstanceAutomatedBackupsReplicationList", - "flattened": false - }, - "BackupTarget": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "AwsBackupRecoveryPointArn": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "MultiTenant": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DBInstanceAutomatedBackupList": { - "type": "list", - "member": { - "shape": "DBInstanceAutomatedBackup", - "locationName": "DBInstanceAutomatedBackup" - }, - "flattened": false - }, - "DBInstanceAutomatedBackupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstanceAutomatedBackups": { - "shape": "DBInstanceAutomatedBackupList", - "flattened": false - } - }, - "flattened": false - }, - "DBInstanceAutomatedBackupsReplication": { - "type": "structure", - "members": { - "DBInstanceAutomatedBackupsArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceAutomatedBackupsReplicationList": { - "type": "list", - "member": { - "shape": "DBInstanceAutomatedBackupsReplication", - "locationName": "DBInstanceAutomatedBackupsReplication" - }, - "flattened": false - }, - "DBInstanceList": { - "type": "list", - "member": {"shape": "DBInstance", "locationName": "DBInstance"}, - "flattened": false - }, - "DBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBInstances": {"shape": "DBInstanceList", "flattened": false} - }, - "flattened": false - }, - "DBInstanceRole": { - "type": "structure", - "members": { - "RoleArn": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceRoles": { - "type": "list", - "member": {"shape": "DBInstanceRole", "locationName": "DBInstanceRole"}, - "flattened": false - }, - "DBInstanceStatusInfo": { - "type": "structure", - "members": { - "StatusType": {"shape": "String", "flattened": false}, - "Normal": {"shape": "Boolean", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBInstanceStatusInfoList": { - "type": "list", - "member": { - "shape": "DBInstanceStatusInfo", - "locationName": "DBInstanceStatusInfo" - }, - "flattened": false - }, - "DBParameterGroup": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "DBParameterGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupList": { - "type": "list", - "member": {"shape": "DBParameterGroup", "locationName": "DBParameterGroup"}, - "flattened": false - }, - "DBParameterGroupNameMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatus": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBParameterGroupStatusList": { - "type": "list", - "member": { - "shape": "DBParameterGroupStatus", - "locationName": "DBParameterGroup" - }, - "flattened": false - }, - "DBParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBParameterGroups": {"shape": "DBParameterGroupList", "flattened": false} - }, - "flattened": false - }, - "DBProxy": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "DBProxyArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "DBProxyStatus", "flattened": false}, - "EngineFamily": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": {"shape": "StringList", "flattened": false}, - "VpcSubnetIds": {"shape": "StringList", "flattened": false}, - "Auth": {"shape": "UserAuthConfigInfoList", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false}, - "RequireTLS": {"shape": "Boolean", "flattened": false}, - "IdleClientTimeout": {"shape": "Integer", "flattened": false}, - "DebugLogging": {"shape": "Boolean", "flattened": false}, - "CreatedDate": {"shape": "TStamp", "flattened": false}, - "UpdatedDate": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "DBProxyEndpoint": { - "type": "structure", - "members": { - "DBProxyEndpointName": {"shape": "String", "flattened": false}, - "DBProxyEndpointArn": {"shape": "String", "flattened": false}, - "DBProxyName": {"shape": "String", "flattened": false}, - "Status": {"shape": "DBProxyEndpointStatus", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": {"shape": "StringList", "flattened": false}, - "VpcSubnetIds": {"shape": "StringList", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false}, - "CreatedDate": {"shape": "TStamp", "flattened": false}, - "TargetRole": {"shape": "DBProxyEndpointTargetRole", "flattened": false}, - "IsDefault": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DBProxyEndpointList": { - "type": "list", - "member": {"shape": "DBProxyEndpoint"}, - "flattened": false - }, - "DBProxyEndpointName": {"type": "string", "flattened": false}, - "DBProxyEndpointStatus": {"type": "string", "flattened": false}, - "DBProxyEndpointTargetRole": {"type": "string", "flattened": false}, - "DBProxyList": { - "type": "list", - "member": {"shape": "DBProxy"}, - "flattened": false - }, - "DBProxyName": {"type": "string", "flattened": false}, - "DBProxyStatus": {"type": "string", "flattened": false}, - "DBProxyTarget": { - "type": "structure", - "members": { - "TargetArn": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false}, - "TrackedClusterId": {"shape": "String", "flattened": false}, - "RdsResourceId": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "Type": {"shape": "TargetType", "flattened": false}, - "Role": {"shape": "TargetRole", "flattened": false}, - "TargetHealth": {"shape": "TargetHealth", "flattened": false} - }, - "flattened": false - }, - "DBProxyTargetGroup": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "TargetGroupName": {"shape": "String", "flattened": false}, - "TargetGroupArn": {"shape": "String", "flattened": false}, - "IsDefault": {"shape": "Boolean", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "ConnectionPoolConfig": { - "shape": "ConnectionPoolConfigurationInfo", - "flattened": false - }, - "CreatedDate": {"shape": "TStamp", "flattened": false}, - "UpdatedDate": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "DBRecommendation": { - "type": "structure", - "members": { - "RecommendationId": {"shape": "String", "flattened": false}, - "TypeId": {"shape": "String", "flattened": false}, - "Severity": {"shape": "String", "flattened": false}, - "ResourceArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "CreatedTime": {"shape": "TStamp", "flattened": false}, - "UpdatedTime": {"shape": "TStamp", "flattened": false}, - "Detection": {"shape": "String", "flattened": false}, - "Recommendation": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Reason": {"shape": "String", "flattened": false}, - "RecommendedActions": { - "shape": "RecommendedActionList", - "flattened": false - }, - "Category": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "TypeDetection": {"shape": "String", "flattened": false}, - "TypeRecommendation": {"shape": "String", "flattened": false}, - "Impact": {"shape": "String", "flattened": false}, - "AdditionalInfo": {"shape": "String", "flattened": false}, - "Links": {"shape": "DocLinkList", "flattened": false}, - "IssueDetails": {"shape": "IssueDetails", "flattened": false} - }, - "flattened": false - }, - "DBRecommendationList": { - "type": "list", - "member": {"shape": "DBRecommendation"}, - "flattened": false - }, - "DBRecommendationMessage": { - "type": "structure", - "members": { - "DBRecommendation": {"shape": "DBRecommendation", "flattened": false} - }, - "flattened": false - }, - "DBRecommendationsMessage": { - "type": "structure", - "members": { - "DBRecommendations": { - "shape": "DBRecommendationList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroup": { - "type": "structure", - "members": { - "OwnerId": {"shape": "String", "flattened": false}, - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "EC2SecurityGroups": { - "shape": "EC2SecurityGroupList", - "flattened": false - }, - "IPRanges": {"shape": "IPRangeList", "flattened": false}, - "DBSecurityGroupArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembership": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "DBSecurityGroupMembership", - "locationName": "DBSecurityGroup" - }, - "flattened": false - }, - "DBSecurityGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSecurityGroups": {"shape": "DBSecurityGroups", "flattened": false} - }, - "flattened": false - }, - "DBSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "DBSecurityGroupName"}, - "flattened": false - }, - "DBSecurityGroups": { - "type": "list", - "member": {"shape": "DBSecurityGroup", "locationName": "DBSecurityGroup"}, - "flattened": false - }, - "DBShardGroup": { - "type": "structure", - "members": { - "DBShardGroupResourceId": {"shape": "String", "flattened": false}, - "DBShardGroupIdentifier": { - "shape": "DBShardGroupIdentifier", - "flattened": false - }, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "MaxACU": {"shape": "DoubleOptional", "flattened": false}, - "ComputeRedundancy": {"shape": "IntegerOptional", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DBShardGroupIdentifier": {"type": "string", "flattened": false}, - "DBShardGroupsList": { - "type": "list", - "member": {"shape": "DBShardGroup", "locationName": "DBShardGroup"}, - "flattened": false - }, - "DBSnapshot": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "Integer", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "InstanceCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "Integer", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false}, - "SourceDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "Encrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "DBSnapshotArn": {"shape": "String", "flattened": false}, - "Timezone": {"shape": "String", "flattened": false}, - "IAMDatabaseAuthenticationEnabled": { - "shape": "Boolean", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "DbiResourceId": {"shape": "String", "flattened": false}, - "TagList": {"shape": "TagList", "flattened": false}, - "OriginalSnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "SnapshotDatabaseTime": {"shape": "TStamp", "flattened": false}, - "SnapshotTarget": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "DBSystemId": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "Boolean", "flattened": false}, - "MultiTenant": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotAttribute": { - "type": "structure", - "members": { - "AttributeName": {"shape": "String", "flattened": false}, - "AttributeValues": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotAttributeList": { - "type": "list", - "member": { - "shape": "DBSnapshotAttribute", - "locationName": "DBSnapshotAttribute" - }, - "flattened": false - }, - "DBSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotAttributes": { - "shape": "DBSnapshotAttributeList", - "flattened": false - } - }, - "flattened": false - }, - "DBSnapshotList": { - "type": "list", - "member": {"shape": "DBSnapshot", "locationName": "DBSnapshot"}, - "flattened": false - }, - "DBSnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSnapshots": {"shape": "DBSnapshotList", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotTenantDatabase": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "TenantDatabaseCreateTime": {"shape": "TStamp", "flattened": false}, - "TenantDBName": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "TenantDatabaseResourceId": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "DBSnapshotTenantDatabaseARN": {"shape": "String", "flattened": false}, - "NcharCharacterSetName": {"shape": "String", "flattened": false}, - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "DBSnapshotTenantDatabasesList": { - "type": "list", - "member": { - "shape": "DBSnapshotTenantDatabase", - "locationName": "DBSnapshotTenantDatabase" - }, - "flattened": false - }, - "DBSnapshotTenantDatabasesMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSnapshotTenantDatabases": { - "shape": "DBSnapshotTenantDatabasesList", - "flattened": false - } - }, - "flattened": false - }, - "DBSubnetGroup": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false}, - "DBSubnetGroupArn": {"shape": "String", "flattened": false}, - "SupportedNetworkTypes": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "DBSubnetGroups": {"shape": "DBSubnetGroups", "flattened": false} - }, - "flattened": false - }, - "DBSubnetGroups": { - "type": "list", - "member": {"shape": "DBSubnetGroup", "locationName": "DBSubnetGroup"}, - "flattened": false - }, - "DataFilter": {"type": "string", "flattened": false}, - "DatabaseArn": {"type": "string", "flattened": false}, - "DeleteBlueGreenDeploymentRequest": { - "type": "structure", - "members": { - "BlueGreenDeploymentIdentifier": { - "shape": "BlueGreenDeploymentIdentifier", - "flattened": false - }, - "DeleteTarget": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DeleteBlueGreenDeploymentResponse": { - "type": "structure", - "members": { - "BlueGreenDeployment": { - "shape": "BlueGreenDeployment", - "flattened": false - } - }, - "flattened": false - }, - "DeleteCustomDBEngineVersionMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "CustomEngineName", "flattened": false}, - "EngineVersion": {"shape": "CustomEngineVersion", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterAutomatedBackupMessage": { - "type": "structure", - "members": { - "DbClusterResourceId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterAutomatedBackupResult": { - "type": "structure", - "members": { - "DBClusterAutomatedBackup": { - "shape": "DBClusterAutomatedBackup", - "flattened": false - } - }, - "flattened": false - }, - "DeleteDBClusterEndpointMessage": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DeleteAutomatedBackups": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterSnapshotMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBClusterSnapshotResult": { - "type": "structure", - "members": { - "DBClusterSnapshot": {"shape": "DBClusterSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceAutomatedBackupMessage": { - "type": "structure", - "members": { - "DbiResourceId": {"shape": "String", "flattened": false}, - "DBInstanceAutomatedBackupsArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceAutomatedBackupResult": { - "type": "structure", - "members": { - "DBInstanceAutomatedBackup": { - "shape": "DBInstanceAutomatedBackup", - "flattened": false - } - }, - "flattened": false - }, - "DeleteDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DeleteAutomatedBackups": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DeleteDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "DeleteDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBProxyEndpointRequest": { - "type": "structure", - "members": { - "DBProxyEndpointName": { - "shape": "DBProxyEndpointName", - "flattened": false - } - }, - "flattened": false - }, - "DeleteDBProxyEndpointResponse": { - "type": "structure", - "members": { - "DBProxyEndpoint": {"shape": "DBProxyEndpoint", "flattened": false} - }, - "flattened": false - }, - "DeleteDBProxyRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBProxyResponse": { - "type": "structure", - "members": { - "DBProxy": {"shape": "DBProxy", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSecurityGroupMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBShardGroupMessage": { - "type": "structure", - "members": { - "DBShardGroupIdentifier": { - "shape": "DBShardGroupIdentifier", - "flattened": false - } - }, - "flattened": false - }, - "DeleteDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "DeleteGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "DeleteIntegrationMessage": { - "type": "structure", - "members": { - "IntegrationIdentifier": { - "shape": "IntegrationIdentifier", - "flattened": false - } - }, - "flattened": false - }, - "DeleteOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteTenantDatabaseMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TenantDBName": {"shape": "String", "flattened": false}, - "SkipFinalSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalDBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteTenantDatabaseResult": { - "type": "structure", - "members": { - "TenantDatabase": {"shape": "TenantDatabase", "flattened": false} - }, - "flattened": false - }, - "DeregisterDBProxyTargetsRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "TargetGroupName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifiers": {"shape": "StringList", "flattened": false}, - "DBClusterIdentifiers": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "DeregisterDBProxyTargetsResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DescribeAccountAttributesMessage": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DescribeBlueGreenDeploymentsRequest": { - "type": "structure", - "members": { - "BlueGreenDeploymentIdentifier": { - "shape": "BlueGreenDeploymentIdentifier", - "flattened": false - }, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeBlueGreenDeploymentsResponse": { - "type": "structure", - "members": { - "BlueGreenDeployments": { - "shape": "BlueGreenDeploymentList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeCertificatesMessage": { - "type": "structure", - "members": { - "CertificateIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterAutomatedBackupsMessage": { - "type": "structure", - "members": { - "DbClusterResourceId": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterBacktracksMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "BacktrackIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterEndpointsMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterParametersMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterSnapshotAttributesMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClusterSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBClusterSnapshotAttributesResult": { - "shape": "DBClusterSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBClusterSnapshotsMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "IncludeShared": {"shape": "Boolean", "flattened": false}, - "IncludePublic": {"shape": "Boolean", "flattened": false}, - "DbClusterResourceId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBClustersMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "IncludeShared": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DescribeDBEngineVersionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DefaultOnly": {"shape": "Boolean", "flattened": false}, - "ListSupportedCharacterSets": { - "shape": "BooleanOptional", - "flattened": false - }, - "ListSupportedTimezones": { - "shape": "BooleanOptional", - "flattened": false - }, - "IncludeAll": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeDBInstanceAutomatedBackupsMessage": { - "type": "structure", - "members": { - "DbiResourceId": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DBInstanceAutomatedBackupsArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBInstancesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesDetails": { - "type": "structure", - "members": { - "LogFileName": {"shape": "String", "flattened": false}, - "LastWritten": {"shape": "Long", "flattened": false}, - "Size": {"shape": "Long", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesList": { - "type": "list", - "member": { - "shape": "DescribeDBLogFilesDetails", - "locationName": "DescribeDBLogFilesDetails" - }, - "flattened": false - }, - "DescribeDBLogFilesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "FilenameContains": {"shape": "String", "flattened": false}, - "FileLastWritten": {"shape": "Long", "flattened": false}, - "FileSize": {"shape": "Long", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBLogFilesResponse": { - "type": "structure", - "members": { - "DescribeDBLogFiles": { - "shape": "DescribeDBLogFilesList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParameterGroupsMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxiesRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxiesResponse": { - "type": "structure", - "members": { - "DBProxies": {"shape": "DBProxyList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxyEndpointsRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "DBProxyName", "flattened": false}, - "DBProxyEndpointName": { - "shape": "DBProxyEndpointName", - "flattened": false - }, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxyEndpointsResponse": { - "type": "structure", - "members": { - "DBProxyEndpoints": {"shape": "DBProxyEndpointList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxyTargetGroupsRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "TargetGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxyTargetGroupsResponse": { - "type": "structure", - "members": { - "TargetGroups": {"shape": "TargetGroupList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxyTargetsRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "TargetGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeDBProxyTargetsResponse": { - "type": "structure", - "members": { - "Targets": {"shape": "TargetList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBRecommendationsMessage": { - "type": "structure", - "members": { - "LastUpdatedAfter": {"shape": "TStamp", "flattened": false}, - "LastUpdatedBefore": {"shape": "TStamp", "flattened": false}, - "Locale": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSecurityGroupsMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBShardGroupsMessage": { - "type": "structure", - "members": { - "DBShardGroupIdentifier": { - "shape": "DBShardGroupIdentifier", - "flattened": false - }, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false} - }, - "flattened": false - }, - "DescribeDBShardGroupsResponse": { - "type": "structure", - "members": { - "DBShardGroups": {"shape": "DBShardGroupsList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSnapshotAttributesMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSnapshotAttributesResult": { - "type": "structure", - "members": { - "DBSnapshotAttributesResult": { - "shape": "DBSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "DescribeDBSnapshotTenantDatabasesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSnapshotsMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "IncludeShared": {"shape": "Boolean", "flattened": false}, - "IncludePublic": {"shape": "Boolean", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDBSubnetGroupsMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultClusterParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultClusterParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersMessage": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEngineDefaultParametersResult": { - "type": "structure", - "members": { - "EngineDefaults": {"shape": "EngineDefaults", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeExportTasksMessage": { - "type": "structure", - "members": { - "ExportTaskIdentifier": {"shape": "String", "flattened": false}, - "SourceArn": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "MaxRecords", "flattened": false}, - "SourceType": {"shape": "ExportSourceType", "flattened": false} - }, - "flattened": false - }, - "DescribeGlobalClustersMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeIntegrationsMessage": { - "type": "structure", - "members": { - "IntegrationIdentifier": { - "shape": "IntegrationIdentifier", - "flattened": false - }, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "Marker", "flattened": false} - }, - "flattened": false - }, - "DescribeIntegrationsResponse": { - "type": "structure", - "members": { - "Marker": {"shape": "Marker", "flattened": false}, - "Integrations": {"shape": "IntegrationList", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupOptionsMessage": { - "type": "structure", - "members": { - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOptionGroupsMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZoneGroup": {"shape": "String", "flattened": false}, - "Vpc": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribePendingMaintenanceActionsMessage": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesMessage": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "LeaseId": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeSourceRegionsMessage": { - "type": "structure", - "members": { - "RegionName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "DescribeTenantDatabasesMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TenantDBName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeValidDBInstanceModificationsMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeValidDBInstanceModificationsResult": { - "type": "structure", - "members": { - "ValidDBInstanceModificationsMessage": { - "shape": "ValidDBInstanceModificationsMessage", - "flattened": false - } - }, - "flattened": false - }, - "Description": {"type": "string", "flattened": false}, - "DisableHttpEndpointRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DisableHttpEndpointResponse": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false}, - "HttpEndpointEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DocLink": { - "type": "structure", - "members": { - "Text": {"shape": "String", "flattened": false}, - "Url": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DocLinkList": { - "type": "list", - "member": {"shape": "DocLink"}, - "flattened": false - }, - "DomainMembership": { - "type": "structure", - "members": { - "Domain": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "FQDN": {"shape": "String", "flattened": false}, - "IAMRoleName": {"shape": "String", "flattened": false}, - "OU": {"shape": "String", "flattened": false}, - "AuthSecretArn": {"shape": "String", "flattened": false}, - "DnsIps": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "DomainMembershipList": { - "type": "list", - "member": {"shape": "DomainMembership", "locationName": "DomainMembership"}, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "DoubleOptional": {"type": "double", "flattened": false}, - "DoubleRange": { - "type": "structure", - "members": { - "From": {"shape": "Double", "flattened": false}, - "To": {"shape": "Double", "flattened": false} - }, - "flattened": false - }, - "DoubleRangeList": { - "type": "list", - "member": {"shape": "DoubleRange", "locationName": "DoubleRange"}, - "flattened": false - }, - "DownloadDBLogFilePortionDetails": { - "type": "structure", - "members": { - "LogFileData": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "AdditionalDataPending": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "DownloadDBLogFilePortionMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "LogFileName": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "NumberOfLines": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroup": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroupList": { - "type": "list", - "member": {"shape": "EC2SecurityGroup", "locationName": "EC2SecurityGroup"}, - "flattened": false - }, - "EnableHttpEndpointRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EnableHttpEndpointResponse": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false}, - "HttpEndpointEnabled": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "EncryptionContextMap": { - "type": "map", - "key": {"shape": "String"}, - "value": {"shape": "String"}, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "HostedZoneId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EngineDefaults": { - "type": "structure", - "members": { - "DBParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "EngineFamily": {"type": "string", "flattened": false}, - "EngineModeList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false}, - "SourceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Enabled": {"shape": "Boolean", "flattened": false}, - "EventSubscriptionArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "ExportSourceType": {"type": "string", "flattened": false}, - "ExportTask": { - "type": "structure", - "members": { - "ExportTaskIdentifier": {"shape": "String", "flattened": false}, - "SourceArn": {"shape": "String", "flattened": false}, - "ExportOnly": {"shape": "StringList", "flattened": false}, - "SnapshotTime": {"shape": "TStamp", "flattened": false}, - "TaskStartTime": {"shape": "TStamp", "flattened": false}, - "TaskEndTime": {"shape": "TStamp", "flattened": false}, - "S3Bucket": {"shape": "String", "flattened": false}, - "S3Prefix": {"shape": "String", "flattened": false}, - "IamRoleArn": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "PercentProgress": {"shape": "Integer", "flattened": false}, - "TotalExtractedDataInGB": {"shape": "Integer", "flattened": false}, - "FailureCause": {"shape": "String", "flattened": false}, - "WarningMessage": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "ExportSourceType", "flattened": false} - }, - "flattened": false - }, - "ExportTasksList": { - "type": "list", - "member": {"shape": "ExportTask", "locationName": "ExportTask"}, - "flattened": false - }, - "ExportTasksMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ExportTasks": {"shape": "ExportTasksList", "flattened": false} - }, - "flattened": false - }, - "FailoverDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "FailoverDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "FailoverGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "TargetDbClusterIdentifier": { - "shape": "DBClusterIdentifier", - "flattened": false - }, - "AllowDataLoss": {"shape": "BooleanOptional", "flattened": false}, - "Switchover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "FailoverGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "FailoverState": { - "type": "structure", - "members": { - "Status": {"shape": "FailoverStatus", "flattened": false}, - "FromDbClusterArn": {"shape": "String", "flattened": false}, - "ToDbClusterArn": {"shape": "String", "flattened": false}, - "IsDataLossAllowed": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "FailoverStatus": {"type": "string", "flattened": false}, - "FeatureNameList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "Filter": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Values": {"shape": "FilterValueList", "flattened": false} - }, - "flattened": false - }, - "FilterList": { - "type": "list", - "member": {"shape": "Filter", "locationName": "Filter"}, - "flattened": false - }, - "FilterValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "Value"}, - "flattened": false - }, - "GlobalCluster": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": {"shape": "String", "flattened": false}, - "GlobalClusterResourceId": {"shape": "String", "flattened": false}, - "GlobalClusterArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "GlobalClusterMembers": { - "shape": "GlobalClusterMemberList", - "flattened": false - }, - "FailoverState": {"shape": "FailoverState", "flattened": false} - }, - "flattened": false - }, - "GlobalClusterIdentifier": {"type": "string", "flattened": false}, - "GlobalClusterList": { - "type": "list", - "member": {"shape": "GlobalCluster", "locationName": "GlobalClusterMember"}, - "flattened": false - }, - "GlobalClusterMember": { - "type": "structure", - "members": { - "DBClusterArn": {"shape": "String", "flattened": false}, - "Readers": {"shape": "ReadersArnList", "flattened": false}, - "IsWriter": {"shape": "Boolean", "flattened": false}, - "GlobalWriteForwardingStatus": { - "shape": "WriteForwardingStatus", - "flattened": false - }, - "SynchronizationStatus": { - "shape": "GlobalClusterMemberSynchronizationStatus", - "flattened": false - } - }, - "flattened": false - }, - "GlobalClusterMemberList": { - "type": "list", - "member": { - "shape": "GlobalClusterMember", - "locationName": "GlobalClusterMember" - }, - "flattened": false - }, - "GlobalClusterMemberSynchronizationStatus": { - "type": "string", - "flattened": false - }, - "GlobalClustersMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "GlobalClusters": {"shape": "GlobalClusterList", "flattened": false} - }, - "flattened": false - }, - "IAMAuthMode": {"type": "string", "flattened": false}, - "IPRange": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IPRangeList": { - "type": "list", - "member": {"shape": "IPRange", "locationName": "IPRange"}, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "Integration": { - "type": "structure", - "members": { - "SourceArn": {"shape": "SourceArn", "flattened": false}, - "TargetArn": {"shape": "Arn", "flattened": false}, - "IntegrationName": {"shape": "IntegrationName", "flattened": false}, - "IntegrationArn": {"shape": "IntegrationArn", "flattened": false}, - "KMSKeyId": {"shape": "String", "flattened": false}, - "AdditionalEncryptionContext": { - "shape": "EncryptionContextMap", - "flattened": false - }, - "Status": {"shape": "IntegrationStatus", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "CreateTime": {"shape": "TStamp", "flattened": false}, - "Errors": {"shape": "IntegrationErrorList", "flattened": false}, - "DataFilter": {"shape": "DataFilter", "flattened": false}, - "Description": {"shape": "IntegrationDescription", "flattened": false} - }, - "flattened": false - }, - "IntegrationArn": {"type": "string", "flattened": false}, - "IntegrationDescription": {"type": "string", "flattened": false}, - "IntegrationError": { - "type": "structure", - "members": { - "ErrorCode": {"shape": "String", "flattened": false}, - "ErrorMessage": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IntegrationErrorList": { - "type": "list", - "member": {"shape": "IntegrationError", "locationName": "IntegrationError"}, - "flattened": false - }, - "IntegrationIdentifier": {"type": "string", "flattened": false}, - "IntegrationList": { - "type": "list", - "member": {"shape": "Integration", "locationName": "Integration"}, - "flattened": false - }, - "IntegrationName": {"type": "string", "flattened": false}, - "IntegrationStatus": {"type": "string", "flattened": false}, - "IssueDetails": { - "type": "structure", - "members": { - "PerformanceIssueDetails": { - "shape": "PerformanceIssueDetails", - "flattened": false - } - }, - "flattened": false - }, - "KeyList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "KmsKeyIdOrArn": {"type": "string", "flattened": false}, - "LimitlessDatabase": { - "type": "structure", - "members": { - "Status": {"shape": "LimitlessDatabaseStatus", "flattened": false}, - "MinRequiredACU": {"shape": "DoubleOptional", "flattened": false} - }, - "flattened": false - }, - "LimitlessDatabaseStatus": {"type": "string", "flattened": false}, - "ListTagsForResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Filters": {"shape": "FilterList", "flattened": false} - }, - "flattened": false - }, - "LocalWriteForwardingStatus": {"type": "string", "flattened": false}, - "LogTypeList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "Long": {"type": "long", "flattened": false}, - "LongOptional": {"type": "long", "flattened": false}, - "Marker": {"type": "string", "flattened": false}, - "MasterUserSecret": { - "type": "structure", - "members": { - "SecretArn": {"shape": "String", "flattened": false}, - "SecretStatus": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "MaxRecords": {"type": "integer", "flattened": false}, - "Metric": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "References": {"shape": "MetricReferenceList", "flattened": false}, - "StatisticsDetails": {"shape": "String", "flattened": false}, - "MetricQuery": {"shape": "MetricQuery", "flattened": false} - }, - "flattened": false - }, - "MetricList": { - "type": "list", - "member": {"shape": "Metric"}, - "flattened": false - }, - "MetricQuery": { - "type": "structure", - "members": { - "PerformanceInsightsMetricQuery": { - "shape": "PerformanceInsightsMetricQuery", - "flattened": false - } - }, - "flattened": false - }, - "MetricReference": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "ReferenceDetails": {"shape": "ReferenceDetails", "flattened": false} - }, - "flattened": false - }, - "MetricReferenceList": { - "type": "list", - "member": {"shape": "MetricReference"}, - "flattened": false - }, - "MinimumEngineVersionPerAllowedValue": { - "type": "structure", - "members": { - "AllowedValue": {"shape": "String", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "MinimumEngineVersionPerAllowedValueList": { - "type": "list", - "member": { - "shape": "MinimumEngineVersionPerAllowedValue", - "locationName": "MinimumEngineVersionPerAllowedValue" - }, - "flattened": false - }, - "ModifyActivityStreamRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false}, - "AuditPolicyState": {"shape": "AuditPolicyState", "flattened": false} - }, - "flattened": false - }, - "ModifyActivityStreamResponse": { - "type": "structure", - "members": { - "KmsKeyId": {"shape": "String", "flattened": false}, - "KinesisStreamName": {"shape": "String", "flattened": false}, - "Status": {"shape": "ActivityStreamStatus", "flattened": false}, - "Mode": {"shape": "ActivityStreamMode", "flattened": false}, - "EngineNativeAuditFieldsIncluded": { - "shape": "BooleanOptional", - "flattened": false - }, - "PolicyStatus": { - "shape": "ActivityStreamPolicyStatus", - "flattened": false - } - }, - "flattened": false - }, - "ModifyCertificatesMessage": { - "type": "structure", - "members": { - "CertificateIdentifier": {"shape": "String", "flattened": false}, - "RemoveCustomerOverride": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyCertificatesResult": { - "type": "structure", - "members": { - "Certificate": {"shape": "Certificate", "flattened": false} - }, - "flattened": false - }, - "ModifyCurrentDBClusterCapacityMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "Capacity": {"shape": "IntegerOptional", "flattened": false}, - "SecondsBeforeTimeout": {"shape": "IntegerOptional", "flattened": false}, - "TimeoutAction": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyCustomDBEngineVersionMessage": { - "type": "structure", - "members": { - "Engine": {"shape": "CustomEngineName", "flattened": false}, - "EngineVersion": {"shape": "CustomEngineVersion", "flattened": false}, - "Description": {"shape": "Description", "flattened": false}, - "Status": {"shape": "CustomEngineVersionStatus", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterEndpointMessage": { - "type": "structure", - "members": { - "DBClusterEndpointIdentifier": {"shape": "String", "flattened": false}, - "EndpointType": {"shape": "String", "flattened": false}, - "StaticMembers": {"shape": "StringList", "flattened": false}, - "ExcludedMembers": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "NewDBClusterIdentifier": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "BacktrackWindow": {"shape": "LongOptional", "flattened": false}, - "CloudwatchLogsExportConfiguration": { - "shape": "CloudwatchLogsExportConfiguration", - "flattened": false - }, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "DBInstanceParameterGroupName": {"shape": "String", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "ScalingConfiguration": { - "shape": "ScalingConfiguration", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "EnableHttpEndpoint": {"shape": "BooleanOptional", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "EnableGlobalWriteForwarding": { - "shape": "BooleanOptional", - "flattened": false - }, - "DBClusterInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "NetworkType": {"shape": "String", "flattened": false}, - "ManageMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "RotateMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "MasterUserSecretKmsKeyId": {"shape": "String", "flattened": false}, - "EngineMode": {"shape": "String", "flattened": false}, - "AllowEngineModeChange": {"shape": "Boolean", "flattened": false}, - "EnableLocalWriteForwarding": { - "shape": "BooleanOptional", - "flattened": false - }, - "AwsBackupRecoveryPointArn": { - "shape": "AwsBackupRecoveryPointArn", - "flattened": false - }, - "EnableLimitlessDatabase": { - "shape": "BooleanOptional", - "flattened": false - }, - "CACertificateIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterSnapshotAttributeMessage": { - "type": "structure", - "members": { - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "AttributeName": {"shape": "String", "flattened": false}, - "ValuesToAdd": {"shape": "AttributeValueList", "flattened": false}, - "ValuesToRemove": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBClusterSnapshotAttributeResult": { - "type": "structure", - "members": { - "DBClusterSnapshotAttributesResult": { - "shape": "DBClusterSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "ModifyDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "NewDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainFqdn": {"shape": "String", "flattened": false}, - "DomainOu": {"shape": "String", "flattened": false}, - "DomainAuthSecretArn": {"shape": "String", "flattened": false}, - "DomainDnsIps": {"shape": "StringList", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "DBPortNumber": {"shape": "IntegerOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "DisableDomain": {"shape": "BooleanOptional", "flattened": false}, - "PromotionTier": {"shape": "IntegerOptional", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "CloudwatchLogsExportConfiguration": { - "shape": "CloudwatchLogsExportConfiguration", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "UseDefaultProcessorFeatures": { - "shape": "BooleanOptional", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "MaxAllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "CertificateRotationRestart": { - "shape": "BooleanOptional", - "flattened": false - }, - "ReplicaMode": {"shape": "ReplicaMode", "flattened": false}, - "EnableCustomerOwnedIp": {"shape": "BooleanOptional", "flattened": false}, - "AwsBackupRecoveryPointArn": { - "shape": "AwsBackupRecoveryPointArn", - "flattened": false - }, - "AutomationMode": {"shape": "AutomationMode", "flattened": false}, - "ResumeFullAutomationModeMinutes": { - "shape": "IntegerOptional", - "flattened": false - }, - "NetworkType": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "ManageMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "RotateMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "MasterUserSecretKmsKeyId": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "MultiTenant": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "ModifyDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBProxyEndpointRequest": { - "type": "structure", - "members": { - "DBProxyEndpointName": { - "shape": "DBProxyEndpointName", - "flattened": false - }, - "NewDBProxyEndpointName": { - "shape": "DBProxyEndpointName", - "flattened": false - }, - "VpcSecurityGroupIds": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBProxyEndpointResponse": { - "type": "structure", - "members": { - "DBProxyEndpoint": {"shape": "DBProxyEndpoint", "flattened": false} - }, - "flattened": false - }, - "ModifyDBProxyRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "NewDBProxyName": {"shape": "String", "flattened": false}, - "Auth": {"shape": "UserAuthConfigList", "flattened": false}, - "RequireTLS": {"shape": "BooleanOptional", "flattened": false}, - "IdleClientTimeout": {"shape": "IntegerOptional", "flattened": false}, - "DebugLogging": {"shape": "BooleanOptional", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "SecurityGroups": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBProxyResponse": { - "type": "structure", - "members": { - "DBProxy": {"shape": "DBProxy", "flattened": false} - }, - "flattened": false - }, - "ModifyDBProxyTargetGroupRequest": { - "type": "structure", - "members": { - "TargetGroupName": {"shape": "String", "flattened": false}, - "DBProxyName": {"shape": "String", "flattened": false}, - "ConnectionPoolConfig": { - "shape": "ConnectionPoolConfiguration", - "flattened": false - }, - "NewName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBProxyTargetGroupResponse": { - "type": "structure", - "members": { - "DBProxyTargetGroup": {"shape": "DBProxyTargetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyDBRecommendationMessage": { - "type": "structure", - "members": { - "RecommendationId": {"shape": "String", "flattened": false}, - "Locale": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "RecommendedActionUpdates": { - "shape": "RecommendedActionUpdateList", - "flattened": false - } - }, - "flattened": false - }, - "ModifyDBShardGroupMessage": { - "type": "structure", - "members": { - "DBShardGroupIdentifier": { - "shape": "DBShardGroupIdentifier", - "flattened": false - }, - "MaxACU": {"shape": "DoubleOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSnapshotAttributeMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "AttributeName": {"shape": "String", "flattened": false}, - "ValuesToAdd": {"shape": "AttributeValueList", "flattened": false}, - "ValuesToRemove": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSnapshotAttributeResult": { - "type": "structure", - "members": { - "DBSnapshotAttributesResult": { - "shape": "DBSnapshotAttributesResult", - "flattened": false - } - }, - "flattened": false - }, - "ModifyDBSnapshotMessage": { - "type": "structure", - "members": { - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSnapshotResult": { - "type": "structure", - "members": { - "DBSnapshot": {"shape": "DBSnapshot", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupMessage": { - "type": "structure", - "members": { - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DBSubnetGroupDescription": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyDBSubnetGroupResult": { - "type": "structure", - "members": { - "DBSubnetGroup": {"shape": "DBSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": {"shape": "String", "flattened": false}, - "NewGlobalClusterIdentifier": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AllowMajorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "ModifyGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "ModifyIntegrationMessage": { - "type": "structure", - "members": { - "IntegrationIdentifier": { - "shape": "IntegrationIdentifier", - "flattened": false - }, - "IntegrationName": {"shape": "IntegrationName", "flattened": false}, - "DataFilter": {"shape": "DataFilter", "flattened": false}, - "Description": {"shape": "IntegrationDescription", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupMessage": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionsToInclude": { - "shape": "OptionConfigurationList", - "flattened": false - }, - "OptionsToRemove": {"shape": "OptionNamesList", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ModifyOptionGroupResult": { - "type": "structure", - "members": { - "OptionGroup": {"shape": "OptionGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyTenantDatabaseMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TenantDBName": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "SensitiveString", "flattened": false}, - "NewTenantDBName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyTenantDatabaseResult": { - "type": "structure", - "members": { - "TenantDatabase": {"shape": "TenantDatabase", "flattened": false} - }, - "flattened": false - }, - "Option": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "OptionDescription": {"shape": "String", "flattened": false}, - "Persistent": {"shape": "Boolean", "flattened": false}, - "Permanent": {"shape": "Boolean", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "OptionVersion": {"shape": "String", "flattened": false}, - "OptionSettings": { - "shape": "OptionSettingConfigurationList", - "flattened": false - }, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - } - }, - "flattened": false - }, - "OptionConfiguration": { - "type": "structure", - "members": { - "OptionName": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "OptionVersion": {"shape": "String", "flattened": false}, - "DBSecurityGroupMemberships": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupMemberships": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "OptionSettings": {"shape": "OptionSettingsList", "flattened": false} - }, - "flattened": false - }, - "OptionConfigurationList": { - "type": "list", - "member": { - "shape": "OptionConfiguration", - "locationName": "OptionConfiguration" - }, - "flattened": false - }, - "OptionGroup": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "OptionGroupDescription": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "Options": {"shape": "OptionsList", "flattened": false}, - "AllowsVpcAndNonVpcInstanceMemberships": { - "shape": "Boolean", - "flattened": false - }, - "VpcId": {"shape": "String", "flattened": false}, - "OptionGroupArn": {"shape": "String", "flattened": false}, - "SourceOptionGroup": {"shape": "String", "flattened": false}, - "SourceAccountId": {"shape": "String", "flattened": false}, - "CopyTimestamp": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembership": { - "type": "structure", - "members": { - "OptionGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupMembershipList": { - "type": "list", - "member": { - "shape": "OptionGroupMembership", - "locationName": "OptionGroupMembership" - }, - "flattened": false - }, - "OptionGroupOption": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "EngineName": {"shape": "String", "flattened": false}, - "MajorEngineVersion": {"shape": "String", "flattened": false}, - "MinimumRequiredMinorEngineVersion": { - "shape": "String", - "flattened": false - }, - "PortRequired": {"shape": "Boolean", "flattened": false}, - "DefaultPort": {"shape": "IntegerOptional", "flattened": false}, - "OptionsDependedOn": {"shape": "OptionsDependedOn", "flattened": false}, - "OptionsConflictsWith": { - "shape": "OptionsConflictsWith", - "flattened": false - }, - "Persistent": {"shape": "Boolean", "flattened": false}, - "Permanent": {"shape": "Boolean", "flattened": false}, - "RequiresAutoMinorEngineVersionUpgrade": { - "shape": "Boolean", - "flattened": false - }, - "VpcOnly": {"shape": "Boolean", "flattened": false}, - "SupportsOptionVersionDowngrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "OptionGroupOptionSettings": { - "shape": "OptionGroupOptionSettingsList", - "flattened": false - }, - "OptionGroupOptionVersions": { - "shape": "OptionGroupOptionVersionsList", - "flattened": false - }, - "CopyableCrossAccount": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "OptionGroupOptionSetting": { - "type": "structure", - "members": { - "SettingName": {"shape": "String", "flattened": false}, - "SettingDescription": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "IsRequired": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersionPerAllowedValue": { - "shape": "MinimumEngineVersionPerAllowedValueList", - "flattened": false - } - }, - "flattened": false - }, - "OptionGroupOptionSettingsList": { - "type": "list", - "member": { - "shape": "OptionGroupOptionSetting", - "locationName": "OptionGroupOptionSetting" - }, - "flattened": false - }, - "OptionGroupOptionVersionsList": { - "type": "list", - "member": {"shape": "OptionVersion", "locationName": "OptionVersion"}, - "flattened": false - }, - "OptionGroupOptionsList": { - "type": "list", - "member": { - "shape": "OptionGroupOption", - "locationName": "OptionGroupOption" - }, - "flattened": false - }, - "OptionGroupOptionsMessage": { - "type": "structure", - "members": { - "OptionGroupOptions": { - "shape": "OptionGroupOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroups": { - "type": "structure", - "members": { - "OptionGroupsList": {"shape": "OptionGroupsList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OptionGroupsList": { - "type": "list", - "member": {"shape": "OptionGroup", "locationName": "OptionGroup"}, - "flattened": false - }, - "OptionNamesList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "OptionSetting": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false}, - "DefaultValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "IsCollection": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionSettingConfigurationList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionSettingsList": { - "type": "list", - "member": {"shape": "OptionSetting", "locationName": "OptionSetting"}, - "flattened": false - }, - "OptionVersion": { - "type": "structure", - "members": { - "Version": {"shape": "String", "flattened": false}, - "IsDefault": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OptionsConflictsWith": { - "type": "list", - "member": {"shape": "String", "locationName": "OptionConflictName"}, - "flattened": false - }, - "OptionsDependedOn": { - "type": "list", - "member": {"shape": "String", "locationName": "OptionName"}, - "flattened": false - }, - "OptionsList": { - "type": "list", - "member": {"shape": "Option", "locationName": "Option"}, - "flattened": false - }, - "OrderableDBInstanceOption": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "AvailabilityZoneGroup": {"shape": "String", "flattened": false}, - "AvailabilityZones": { - "shape": "AvailabilityZoneList", - "flattened": false - }, - "MultiAZCapable": {"shape": "Boolean", "flattened": false}, - "ReadReplicaCapable": {"shape": "Boolean", "flattened": false}, - "Vpc": {"shape": "Boolean", "flattened": false}, - "SupportsStorageEncryption": {"shape": "Boolean", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "SupportsIops": {"shape": "Boolean", "flattened": false}, - "SupportsEnhancedMonitoring": {"shape": "Boolean", "flattened": false}, - "SupportsIAMDatabaseAuthentication": { - "shape": "Boolean", - "flattened": false - }, - "SupportsPerformanceInsights": {"shape": "Boolean", "flattened": false}, - "MinStorageSize": {"shape": "IntegerOptional", "flattened": false}, - "MaxStorageSize": {"shape": "IntegerOptional", "flattened": false}, - "MinIopsPerDbInstance": {"shape": "IntegerOptional", "flattened": false}, - "MaxIopsPerDbInstance": {"shape": "IntegerOptional", "flattened": false}, - "MinIopsPerGib": {"shape": "DoubleOptional", "flattened": false}, - "MaxIopsPerGib": {"shape": "DoubleOptional", "flattened": false}, - "AvailableProcessorFeatures": { - "shape": "AvailableProcessorFeatureList", - "flattened": false - }, - "SupportedEngineModes": {"shape": "EngineModeList", "flattened": false}, - "SupportsStorageAutoscaling": { - "shape": "BooleanOptional", - "flattened": false - }, - "SupportsKerberosAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "OutpostCapable": {"shape": "Boolean", "flattened": false}, - "SupportedActivityStreamModes": { - "shape": "ActivityStreamModeList", - "flattened": false - }, - "SupportsGlobalDatabases": {"shape": "Boolean", "flattened": false}, - "SupportsClusters": {"shape": "Boolean", "flattened": false}, - "SupportedNetworkTypes": {"shape": "StringList", "flattened": false}, - "SupportsStorageThroughput": {"shape": "Boolean", "flattened": false}, - "MinStorageThroughputPerDbInstance": { - "shape": "IntegerOptional", - "flattened": false - }, - "MaxStorageThroughputPerDbInstance": { - "shape": "IntegerOptional", - "flattened": false - }, - "MinStorageThroughputPerIops": { - "shape": "DoubleOptional", - "flattened": false - }, - "MaxStorageThroughputPerIops": { - "shape": "DoubleOptional", - "flattened": false - }, - "SupportsDedicatedLogVolume": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "OrderableDBInstanceOptionsList": { - "type": "list", - "member": { - "shape": "OrderableDBInstanceOption", - "locationName": "OrderableDBInstanceOption" - }, - "flattened": false - }, - "OrderableDBInstanceOptionsMessage": { - "type": "structure", - "members": { - "OrderableDBInstanceOptions": { - "shape": "OrderableDBInstanceOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Outpost": { - "type": "structure", - "members": { - "Arn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false}, - "ApplyMethod": {"shape": "ApplyMethod", "flattened": false}, - "SupportedEngineModes": {"shape": "EngineModeList", "flattened": false} - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PendingCloudwatchLogsExports": { - "type": "structure", - "members": { - "LogTypesToEnable": {"shape": "LogTypeList", "flattened": false}, - "LogTypesToDisable": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "PendingMaintenanceAction": { - "type": "structure", - "members": { - "Action": {"shape": "String", "flattened": false}, - "AutoAppliedAfterDate": {"shape": "TStamp", "flattened": false}, - "ForcedApplyDate": {"shape": "TStamp", "flattened": false}, - "OptInStatus": {"shape": "String", "flattened": false}, - "CurrentApplyDate": {"shape": "TStamp", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PendingMaintenanceActionDetails": { - "type": "list", - "member": { - "shape": "PendingMaintenanceAction", - "locationName": "PendingMaintenanceAction" - }, - "flattened": false - }, - "PendingMaintenanceActions": { - "type": "list", - "member": { - "shape": "ResourcePendingMaintenanceActions", - "locationName": "ResourcePendingMaintenanceActions" - }, - "flattened": false - }, - "PendingMaintenanceActionsMessage": { - "type": "structure", - "members": { - "PendingMaintenanceActions": { - "shape": "PendingMaintenanceActions", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "DBInstanceClass": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PendingCloudwatchLogsExports": { - "shape": "PendingCloudwatchLogsExports", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "IAMDatabaseAuthenticationEnabled": { - "shape": "BooleanOptional", - "flattened": false - }, - "AutomationMode": {"shape": "AutomationMode", "flattened": false}, - "ResumeFullAutomationModeTime": {"shape": "TStamp", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "MultiTenant": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "PerformanceInsightsMetricDimensionGroup": { - "type": "structure", - "members": { - "Dimensions": {"shape": "StringList", "flattened": false}, - "Group": {"shape": "String", "flattened": false}, - "Limit": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "PerformanceInsightsMetricQuery": { - "type": "structure", - "members": { - "GroupBy": { - "shape": "PerformanceInsightsMetricDimensionGroup", - "flattened": false - }, - "Metric": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PerformanceIssueDetails": { - "type": "structure", - "members": { - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Metrics": {"shape": "MetricList", "flattened": false}, - "Analysis": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ProcessorFeature": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ProcessorFeatureList": { - "type": "list", - "member": {"shape": "ProcessorFeature", "locationName": "ProcessorFeature"}, - "flattened": false - }, - "PromoteReadReplicaDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PromoteReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "IntegerOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedDBInstancesOfferingResult": { - "type": "structure", - "members": { - "ReservedDBInstance": {"shape": "ReservedDBInstance", "flattened": false} - }, - "flattened": false - }, - "Range": { - "type": "structure", - "members": { - "From": {"shape": "Integer", "flattened": false}, - "To": {"shape": "Integer", "flattened": false}, - "Step": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "RangeList": { - "type": "list", - "member": {"shape": "Range", "locationName": "Range"}, - "flattened": false - }, - "RdsCustomClusterConfiguration": { - "type": "structure", - "members": { - "InterconnectSubnetId": {"shape": "String", "flattened": false}, - "TransitGatewayMulticastDomainId": { - "shape": "String", - "flattened": false - }, - "ReplicaMode": {"shape": "ReplicaMode", "flattened": false} - }, - "flattened": false - }, - "ReadReplicaDBClusterIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBClusterIdentifier" - }, - "flattened": false - }, - "ReadReplicaDBInstanceIdentifierList": { - "type": "list", - "member": { - "shape": "String", - "locationName": "ReadReplicaDBInstanceIdentifier" - }, - "flattened": false - }, - "ReadReplicaIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "ReadReplicaIdentifier"}, - "flattened": false - }, - "ReadersArnList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "RebootDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RebootDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "ForceFailover": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RebootDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RebootDBShardGroupMessage": { - "type": "structure", - "members": { - "DBShardGroupIdentifier": { - "shape": "DBShardGroupIdentifier", - "flattened": false - } - }, - "flattened": false - }, - "RecommendedAction": { - "type": "structure", - "members": { - "ActionId": {"shape": "String", "flattened": false}, - "Title": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Operation": {"shape": "String", "flattened": false}, - "Parameters": { - "shape": "RecommendedActionParameterList", - "flattened": false - }, - "ApplyModes": {"shape": "StringList", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "IssueDetails": {"shape": "IssueDetails", "flattened": false}, - "ContextAttributes": {"shape": "ContextAttributeList", "flattened": false} - }, - "flattened": false - }, - "RecommendedActionList": { - "type": "list", - "member": {"shape": "RecommendedAction"}, - "flattened": false - }, - "RecommendedActionParameter": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecommendedActionParameterList": { - "type": "list", - "member": {"shape": "RecommendedActionParameter"}, - "flattened": false - }, - "RecommendedActionUpdate": { - "type": "structure", - "members": { - "ActionId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecommendedActionUpdateList": { - "type": "list", - "member": {"shape": "RecommendedActionUpdate"}, - "flattened": false - }, - "RecurringCharge": { - "type": "structure", - "members": { - "RecurringChargeAmount": {"shape": "Double", "flattened": false}, - "RecurringChargeFrequency": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecurringChargeList": { - "type": "list", - "member": {"shape": "RecurringCharge", "locationName": "RecurringCharge"}, - "flattened": false - }, - "ReferenceDetails": { - "type": "structure", - "members": { - "ScalarReferenceDetails": { - "shape": "ScalarReferenceDetails", - "flattened": false - } - }, - "flattened": false - }, - "RegisterDBProxyTargetsRequest": { - "type": "structure", - "members": { - "DBProxyName": {"shape": "String", "flattened": false}, - "TargetGroupName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifiers": {"shape": "StringList", "flattened": false}, - "DBClusterIdentifiers": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "RegisterDBProxyTargetsResponse": { - "type": "structure", - "members": { - "DBProxyTargets": {"shape": "TargetList", "flattened": false} - }, - "flattened": false - }, - "RemoveFromGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": {"shape": "String", "flattened": false}, - "DbClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveFromGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "RemoveRoleFromDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveRoleFromDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RoleArn": {"shape": "String", "flattened": false}, - "FeatureName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SourceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "RemoveTagsFromResourceMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "KeyList", "flattened": false} - }, - "flattened": false - }, - "ReplicaMode": {"type": "string", "flattened": false}, - "ReservedDBInstance": { - "type": "structure", - "members": { - "ReservedDBInstanceId": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "DBInstanceCount": {"shape": "Integer", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "State": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false}, - "ReservedDBInstanceArn": {"shape": "String", "flattened": false}, - "LeaseId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstanceList": { - "type": "list", - "member": { - "shape": "ReservedDBInstance", - "locationName": "ReservedDBInstance" - }, - "flattened": false - }, - "ReservedDBInstanceMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstances": { - "shape": "ReservedDBInstanceList", - "flattened": false - } - }, - "flattened": false - }, - "ReservedDBInstancesOffering": { - "type": "structure", - "members": { - "ReservedDBInstancesOfferingId": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "ProductDescription": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "Boolean", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false} - }, - "flattened": false - }, - "ReservedDBInstancesOfferingList": { - "type": "list", - "member": { - "shape": "ReservedDBInstancesOffering", - "locationName": "ReservedDBInstancesOffering" - }, - "flattened": false - }, - "ReservedDBInstancesOfferingMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedDBInstancesOfferings": { - "shape": "ReservedDBInstancesOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "ResetDBClusterParameterGroupMessage": { - "type": "structure", - "members": { - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ResetDBParameterGroupMessage": { - "type": "structure", - "members": { - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ResourcePendingMaintenanceActions": { - "type": "structure", - "members": { - "ResourceIdentifier": {"shape": "String", "flattened": false}, - "PendingMaintenanceActionDetails": { - "shape": "PendingMaintenanceActionDetails", - "flattened": false - } - }, - "flattened": false - }, - "RestoreDBClusterFromS3Message": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "SourceEngine": {"shape": "String", "flattened": false}, - "SourceEngineVersion": {"shape": "String", "flattened": false}, - "S3BucketName": {"shape": "String", "flattened": false}, - "S3Prefix": {"shape": "String", "flattened": false}, - "S3IngestionRoleArn": {"shape": "String", "flattened": false}, - "BacktrackWindow": {"shape": "LongOptional", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "NetworkType": {"shape": "String", "flattened": false}, - "ManageMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "MasterUserSecretKmsKeyId": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterFromS3Result": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterFromSnapshotMessage": { - "type": "structure", - "members": { - "AvailabilityZones": {"shape": "AvailabilityZones", "flattened": false}, - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "DatabaseName": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "BacktrackWindow": {"shape": "LongOptional", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "EngineMode": {"shape": "String", "flattened": false}, - "ScalingConfiguration": { - "shape": "ScalingConfiguration", - "flattened": false - }, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "DBClusterInstanceClass": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "NetworkType": {"shape": "String", "flattened": false}, - "RdsCustomClusterConfiguration": { - "shape": "RdsCustomClusterConfiguration", - "flattened": false - }, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterFromSnapshotResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterToPointInTimeMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false}, - "RestoreType": {"shape": "String", "flattened": false}, - "SourceDBClusterIdentifier": {"shape": "String", "flattened": false}, - "RestoreToTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "BacktrackWindow": {"shape": "LongOptional", "flattened": false}, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "DBClusterParameterGroupName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "Domain": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "ScalingConfiguration": { - "shape": "ScalingConfiguration", - "flattened": false - }, - "EngineMode": {"shape": "String", "flattened": false}, - "DBClusterInstanceClass": {"shape": "String", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "shape": "ServerlessV2ScalingConfiguration", - "flattened": false - }, - "NetworkType": {"shape": "String", "flattened": false}, - "SourceDbClusterResourceId": {"shape": "String", "flattened": false}, - "RdsCustomClusterConfiguration": { - "shape": "RdsCustomClusterConfiguration", - "flattened": false - }, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBClusterToPointInTimeResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Domain": {"shape": "String", "flattened": false}, - "DomainFqdn": {"shape": "String", "flattened": false}, - "DomainOu": {"shape": "String", "flattened": false}, - "DomainAuthSecretArn": {"shape": "String", "flattened": false}, - "DomainDnsIps": {"shape": "StringList", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "UseDefaultProcessorFeatures": { - "shape": "BooleanOptional", - "flattened": false - }, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "EnableCustomerOwnedIp": {"shape": "BooleanOptional", "flattened": false}, - "CustomIamInstanceProfile": {"shape": "String", "flattened": false}, - "BackupTarget": {"shape": "String", "flattened": false}, - "NetworkType": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "DBClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromS3Message": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "String", "flattened": false}, - "DBSecurityGroups": { - "shape": "DBSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "PreferredBackupWindow": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "StorageEncrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "MonitoringInterval": {"shape": "IntegerOptional", "flattened": false}, - "MonitoringRoleArn": {"shape": "String", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "SourceEngine": {"shape": "String", "flattened": false}, - "SourceEngineVersion": {"shape": "String", "flattened": false}, - "S3BucketName": {"shape": "String", "flattened": false}, - "S3Prefix": {"shape": "String", "flattened": false}, - "S3IngestionRoleArn": {"shape": "String", "flattened": false}, - "EnablePerformanceInsights": { - "shape": "BooleanOptional", - "flattened": false - }, - "PerformanceInsightsKMSKeyId": {"shape": "String", "flattened": false}, - "PerformanceInsightsRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "UseDefaultProcessorFeatures": { - "shape": "BooleanOptional", - "flattened": false - }, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "MaxAllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "NetworkType": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "ManageMasterUserPassword": { - "shape": "BooleanOptional", - "flattened": false - }, - "MasterUserSecretKmsKeyId": {"shape": "String", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceFromS3Result": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeMessage": { - "type": "structure", - "members": { - "SourceDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TargetDBInstanceIdentifier": {"shape": "String", "flattened": false}, - "RestoreTime": {"shape": "TStamp", "flattened": false}, - "UseLatestRestorableTime": {"shape": "Boolean", "flattened": false}, - "DBInstanceClass": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "DBSubnetGroupName": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "AutoMinorVersionUpgrade": { - "shape": "BooleanOptional", - "flattened": false - }, - "LicenseModel": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Engine": {"shape": "String", "flattened": false}, - "Iops": {"shape": "IntegerOptional", "flattened": false}, - "OptionGroupName": {"shape": "String", "flattened": false}, - "CopyTagsToSnapshot": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "StorageType": {"shape": "String", "flattened": false}, - "TdeCredentialArn": {"shape": "String", "flattened": false}, - "TdeCredentialPassword": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "Domain": {"shape": "String", "flattened": false}, - "DomainIAMRoleName": {"shape": "String", "flattened": false}, - "DomainFqdn": {"shape": "String", "flattened": false}, - "DomainOu": {"shape": "String", "flattened": false}, - "DomainAuthSecretArn": {"shape": "String", "flattened": false}, - "DomainDnsIps": {"shape": "StringList", "flattened": false}, - "EnableIAMDatabaseAuthentication": { - "shape": "BooleanOptional", - "flattened": false - }, - "EnableCloudwatchLogsExports": { - "shape": "LogTypeList", - "flattened": false - }, - "ProcessorFeatures": { - "shape": "ProcessorFeatureList", - "flattened": false - }, - "UseDefaultProcessorFeatures": { - "shape": "BooleanOptional", - "flattened": false - }, - "DBParameterGroupName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "BooleanOptional", "flattened": false}, - "SourceDbiResourceId": {"shape": "String", "flattened": false}, - "MaxAllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "SourceDBInstanceAutomatedBackupsArn": { - "shape": "String", - "flattened": false - }, - "EnableCustomerOwnedIp": {"shape": "BooleanOptional", "flattened": false}, - "CustomIamInstanceProfile": {"shape": "String", "flattened": false}, - "BackupTarget": {"shape": "String", "flattened": false}, - "NetworkType": {"shape": "String", "flattened": false}, - "StorageThroughput": {"shape": "IntegerOptional", "flattened": false}, - "AllocatedStorage": {"shape": "IntegerOptional", "flattened": false}, - "DedicatedLogVolume": {"shape": "BooleanOptional", "flattened": false}, - "CACertificateIdentifier": {"shape": "String", "flattened": false}, - "EngineLifecycleSupport": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestoreDBInstanceToPointInTimeResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "RestoreWindow": { - "type": "structure", - "members": { - "EarliestTime": {"shape": "TStamp", "flattened": false}, - "LatestTime": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "DBSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupId": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeDBSecurityGroupIngressResult": { - "type": "structure", - "members": { - "DBSecurityGroup": {"shape": "DBSecurityGroup", "flattened": false} - }, - "flattened": false - }, - "ScalarReferenceDetails": { - "type": "structure", - "members": { - "Value": {"shape": "Double", "flattened": false} - }, - "flattened": false - }, - "ScalingConfiguration": { - "type": "structure", - "members": { - "MinCapacity": {"shape": "IntegerOptional", "flattened": false}, - "MaxCapacity": {"shape": "IntegerOptional", "flattened": false}, - "AutoPause": {"shape": "BooleanOptional", "flattened": false}, - "SecondsUntilAutoPause": {"shape": "IntegerOptional", "flattened": false}, - "TimeoutAction": {"shape": "String", "flattened": false}, - "SecondsBeforeTimeout": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "ScalingConfigurationInfo": { - "type": "structure", - "members": { - "MinCapacity": {"shape": "IntegerOptional", "flattened": false}, - "MaxCapacity": {"shape": "IntegerOptional", "flattened": false}, - "AutoPause": {"shape": "BooleanOptional", "flattened": false}, - "SecondsUntilAutoPause": {"shape": "IntegerOptional", "flattened": false}, - "TimeoutAction": {"shape": "String", "flattened": false}, - "SecondsBeforeTimeout": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "SensitiveString": {"type": "string", "flattened": false}, - "ServerlessV2ScalingConfiguration": { - "type": "structure", - "members": { - "MinCapacity": {"shape": "DoubleOptional", "flattened": false}, - "MaxCapacity": {"shape": "DoubleOptional", "flattened": false} - }, - "flattened": false - }, - "ServerlessV2ScalingConfigurationInfo": { - "type": "structure", - "members": { - "MinCapacity": {"shape": "DoubleOptional", "flattened": false}, - "MaxCapacity": {"shape": "DoubleOptional", "flattened": false} - }, - "flattened": false - }, - "SourceArn": {"type": "string", "flattened": false}, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceRegion": { - "type": "structure", - "members": { - "RegionName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SupportsDBInstanceAutomatedBackupsReplication": { - "shape": "Boolean", - "flattened": false - } - }, - "flattened": false - }, - "SourceRegionList": { - "type": "list", - "member": {"shape": "SourceRegion", "locationName": "SourceRegion"}, - "flattened": false - }, - "SourceRegionMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "SourceRegions": {"shape": "SourceRegionList", "flattened": false} - }, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "StartActivityStreamRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false}, - "Mode": {"shape": "ActivityStreamMode", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "BooleanOptional", "flattened": false}, - "EngineNativeAuditFieldsIncluded": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "StartActivityStreamResponse": { - "type": "structure", - "members": { - "KmsKeyId": {"shape": "String", "flattened": false}, - "KinesisStreamName": {"shape": "String", "flattened": false}, - "Status": {"shape": "ActivityStreamStatus", "flattened": false}, - "Mode": {"shape": "ActivityStreamMode", "flattened": false}, - "ApplyImmediately": {"shape": "Boolean", "flattened": false}, - "EngineNativeAuditFieldsIncluded": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "StartDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StartDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "StartDBInstanceAutomatedBackupsReplicationMessage": { - "type": "structure", - "members": { - "SourceDBInstanceArn": {"shape": "String", "flattened": false}, - "BackupRetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "PreSignedUrl": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StartDBInstanceAutomatedBackupsReplicationResult": { - "type": "structure", - "members": { - "DBInstanceAutomatedBackup": { - "shape": "DBInstanceAutomatedBackup", - "flattened": false - } - }, - "flattened": false - }, - "StartDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StartDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "StartExportTaskMessage": { - "type": "structure", - "members": { - "ExportTaskIdentifier": {"shape": "String", "flattened": false}, - "SourceArn": {"shape": "String", "flattened": false}, - "S3BucketName": {"shape": "String", "flattened": false}, - "IamRoleArn": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "S3Prefix": {"shape": "String", "flattened": false}, - "ExportOnly": {"shape": "StringList", "flattened": false} - }, - "flattened": false - }, - "StopActivityStreamRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false}, - "ApplyImmediately": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "StopActivityStreamResponse": { - "type": "structure", - "members": { - "KmsKeyId": {"shape": "String", "flattened": false}, - "KinesisStreamName": {"shape": "String", "flattened": false}, - "Status": {"shape": "ActivityStreamStatus", "flattened": false} - }, - "flattened": false - }, - "StopDBClusterMessage": { - "type": "structure", - "members": { - "DBClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StopDBClusterResult": { - "type": "structure", - "members": { - "DBCluster": {"shape": "DBCluster", "flattened": false} - }, - "flattened": false - }, - "StopDBInstanceAutomatedBackupsReplicationMessage": { - "type": "structure", - "members": { - "SourceDBInstanceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StopDBInstanceAutomatedBackupsReplicationResult": { - "type": "structure", - "members": { - "DBInstanceAutomatedBackup": { - "shape": "DBInstanceAutomatedBackup", - "flattened": false - } - }, - "flattened": false - }, - "StopDBInstanceMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "DBSnapshotIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "StopDBInstanceResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "String255": {"type": "string", "flattened": false}, - "StringList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetOutpost": {"shape": "Outpost", "flattened": false}, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SupportedCharacterSetsList": { - "type": "list", - "member": {"shape": "CharacterSet", "locationName": "CharacterSet"}, - "flattened": false - }, - "SupportedTimezonesList": { - "type": "list", - "member": {"shape": "Timezone", "locationName": "Timezone"}, - "flattened": false - }, - "SwitchoverBlueGreenDeploymentRequest": { - "type": "structure", - "members": { - "BlueGreenDeploymentIdentifier": { - "shape": "BlueGreenDeploymentIdentifier", - "flattened": false - }, - "SwitchoverTimeout": {"shape": "SwitchoverTimeout", "flattened": false} - }, - "flattened": false - }, - "SwitchoverBlueGreenDeploymentResponse": { - "type": "structure", - "members": { - "BlueGreenDeployment": { - "shape": "BlueGreenDeployment", - "flattened": false - } - }, - "flattened": false - }, - "SwitchoverDetail": { - "type": "structure", - "members": { - "SourceMember": {"shape": "DatabaseArn", "flattened": false}, - "TargetMember": {"shape": "DatabaseArn", "flattened": false}, - "Status": {"shape": "SwitchoverDetailStatus", "flattened": false} - }, - "flattened": false - }, - "SwitchoverDetailList": { - "type": "list", - "member": {"shape": "SwitchoverDetail"}, - "flattened": false - }, - "SwitchoverDetailStatus": {"type": "string", "flattened": false}, - "SwitchoverGlobalClusterMessage": { - "type": "structure", - "members": { - "GlobalClusterIdentifier": { - "shape": "GlobalClusterIdentifier", - "flattened": false - }, - "TargetDbClusterIdentifier": { - "shape": "DBClusterIdentifier", - "flattened": false - } - }, - "flattened": false - }, - "SwitchoverGlobalClusterResult": { - "type": "structure", - "members": { - "GlobalCluster": {"shape": "GlobalCluster", "flattened": false} - }, - "flattened": false - }, - "SwitchoverReadReplicaMessage": { - "type": "structure", - "members": { - "DBInstanceIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SwitchoverReadReplicaResult": { - "type": "structure", - "members": { - "DBInstance": {"shape": "DBInstance", "flattened": false} - }, - "flattened": false - }, - "SwitchoverTimeout": {"type": "integer", "flattened": false}, - "TStamp": {"type": "timestamp", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagListMessage": { - "type": "structure", - "members": { - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "TargetDBClusterParameterGroupName": {"type": "string", "flattened": false}, - "TargetDBInstanceClass": {"type": "string", "flattened": false}, - "TargetDBParameterGroupName": {"type": "string", "flattened": false}, - "TargetEngineVersion": {"type": "string", "flattened": false}, - "TargetGroupList": { - "type": "list", - "member": {"shape": "DBProxyTargetGroup"}, - "flattened": false - }, - "TargetHealth": { - "type": "structure", - "members": { - "State": {"shape": "TargetState", "flattened": false}, - "Reason": {"shape": "TargetHealthReason", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TargetHealthReason": {"type": "string", "flattened": false}, - "TargetList": { - "type": "list", - "member": {"shape": "DBProxyTarget"}, - "flattened": false - }, - "TargetRole": {"type": "string", "flattened": false}, - "TargetState": {"type": "string", "flattened": false}, - "TargetType": {"type": "string", "flattened": false}, - "TenantDatabase": { - "type": "structure", - "members": { - "TenantDatabaseCreateTime": {"shape": "TStamp", "flattened": false}, - "DBInstanceIdentifier": {"shape": "String", "flattened": false}, - "TenantDBName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DbiResourceId": {"shape": "String", "flattened": false}, - "TenantDatabaseResourceId": {"shape": "String", "flattened": false}, - "TenantDatabaseARN": {"shape": "String", "flattened": false}, - "CharacterSetName": {"shape": "String", "flattened": false}, - "NcharCharacterSetName": {"shape": "String", "flattened": false}, - "DeletionProtection": {"shape": "Boolean", "flattened": false}, - "PendingModifiedValues": { - "shape": "TenantDatabasePendingModifiedValues", - "flattened": false - }, - "TagList": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "TenantDatabasePendingModifiedValues": { - "type": "structure", - "members": { - "MasterUserPassword": {"shape": "SensitiveString", "flattened": false}, - "TenantDBName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TenantDatabasesList": { - "type": "list", - "member": {"shape": "TenantDatabase", "locationName": "TenantDatabase"}, - "flattened": false - }, - "TenantDatabasesMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "TenantDatabases": {"shape": "TenantDatabasesList", "flattened": false} - }, - "flattened": false - }, - "Timezone": { - "type": "structure", - "members": { - "TimezoneName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UpgradeTarget": { - "type": "structure", - "members": { - "Engine": {"shape": "String", "flattened": false}, - "EngineVersion": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "AutoUpgrade": {"shape": "Boolean", "flattened": false}, - "IsMajorVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "SupportedEngineModes": {"shape": "EngineModeList", "flattened": false}, - "SupportsParallelQuery": {"shape": "BooleanOptional", "flattened": false}, - "SupportsGlobalDatabases": { - "shape": "BooleanOptional", - "flattened": false - }, - "SupportsBabelfish": {"shape": "BooleanOptional", "flattened": false}, - "SupportsLimitlessDatabase": { - "shape": "BooleanOptional", - "flattened": false - }, - "SupportsLocalWriteForwarding": { - "shape": "BooleanOptional", - "flattened": false - }, - "SupportsIntegrations": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "UserAuthConfig": { - "type": "structure", - "members": { - "Description": {"shape": "String", "flattened": false}, - "UserName": {"shape": "String", "flattened": false}, - "AuthScheme": {"shape": "AuthScheme", "flattened": false}, - "SecretArn": {"shape": "String", "flattened": false}, - "IAMAuth": {"shape": "IAMAuthMode", "flattened": false}, - "ClientPasswordAuthType": { - "shape": "ClientPasswordAuthType", - "flattened": false - } - }, - "flattened": false - }, - "UserAuthConfigInfo": { - "type": "structure", - "members": { - "Description": {"shape": "String", "flattened": false}, - "UserName": {"shape": "String", "flattened": false}, - "AuthScheme": {"shape": "AuthScheme", "flattened": false}, - "SecretArn": {"shape": "String", "flattened": false}, - "IAMAuth": {"shape": "IAMAuthMode", "flattened": false}, - "ClientPasswordAuthType": { - "shape": "ClientPasswordAuthType", - "flattened": false - } - }, - "flattened": false - }, - "UserAuthConfigInfoList": { - "type": "list", - "member": {"shape": "UserAuthConfigInfo"}, - "flattened": false - }, - "UserAuthConfigList": { - "type": "list", - "member": {"shape": "UserAuthConfig"}, - "flattened": false - }, - "ValidDBInstanceModificationsMessage": { - "type": "structure", - "members": { - "Storage": {"shape": "ValidStorageOptionsList", "flattened": false}, - "ValidProcessorFeatures": { - "shape": "AvailableProcessorFeatureList", - "flattened": false - }, - "SupportsDedicatedLogVolume": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ValidStorageOptions": { - "type": "structure", - "members": { - "StorageType": {"shape": "String", "flattened": false}, - "StorageSize": {"shape": "RangeList", "flattened": false}, - "ProvisionedIops": {"shape": "RangeList", "flattened": false}, - "IopsToStorageRatio": {"shape": "DoubleRangeList", "flattened": false}, - "SupportsStorageAutoscaling": {"shape": "Boolean", "flattened": false}, - "ProvisionedStorageThroughput": { - "shape": "RangeList", - "flattened": false - }, - "StorageThroughputToIopsRatio": { - "shape": "DoubleRangeList", - "flattened": false - } - }, - "flattened": false - }, - "ValidStorageOptionsList": { - "type": "list", - "member": { - "shape": "ValidStorageOptions", - "locationName": "ValidStorageOptions" - }, - "flattened": false - }, - "ValidUpgradeTargetList": { - "type": "list", - "member": {"shape": "UpgradeTarget", "locationName": "UpgradeTarget"}, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroupMembership" - }, - "flattened": false - }, - "WriteForwardingStatus": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/redshift/v2012_12_01.dart b/aws_client/lib/src/generated/redshift/v2012_12_01.dart index c41fc15f0..878c189c4 100644 --- a/aws_client/lib/src/generated/redshift/v2012_12_01.dart +++ b/aws_client/lib/src/generated/redshift/v2012_12_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2012_12_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// This is an interface reference for Amazon Redshift. It contains @@ -33,7 +32,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// the Amazon Redshift Management Interfaces. class Redshift { final _s.QueryProtocol _protocol; - final Map shapes; Redshift({ required String region, @@ -41,7 +39,7 @@ class Redshift { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'redshift', @@ -50,9 +48,7 @@ class Redshift { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -87,9 +83,10 @@ class Redshift { required String reservedNodeId, required String targetReservedNodeOfferingId, }) async { - final $request = {}; - $request['ReservedNodeId'] = reservedNodeId; - $request['TargetReservedNodeOfferingId'] = targetReservedNodeOfferingId; + final $request = { + 'ReservedNodeId': reservedNodeId, + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + }; final $result = await _protocol.send( $request, action: 'AcceptReservedNodeExchange', @@ -97,8 +94,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AcceptReservedNodeExchangeInputMessage'], - shapes: shapes, resultWrapper: 'AcceptReservedNodeExchangeResult', ); return AcceptReservedNodeExchangeOutputMessage.fromXml($result); @@ -130,11 +125,12 @@ class Redshift { required String databaseName, required String partnerName, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DatabaseName'] = databaseName; - $request['PartnerName'] = partnerName; + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + 'DatabaseName': databaseName, + 'PartnerName': partnerName, + }; final $result = await _protocol.send( $request, action: 'AddPartner', @@ -142,8 +138,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PartnerIntegrationInputMessage'], - shapes: shapes, resultWrapper: 'AddPartnerResult', ); return PartnerIntegrationOutputMessage.fromXml($result); @@ -182,13 +176,14 @@ class Redshift { String? consumerArn, String? consumerRegion, }) async { - final $request = {}; - $request['DataShareArn'] = dataShareArn; - allowWrites?.also((arg) => $request['AllowWrites'] = arg); - associateEntireAccount - ?.also((arg) => $request['AssociateEntireAccount'] = arg); - consumerArn?.also((arg) => $request['ConsumerArn'] = arg); - consumerRegion?.also((arg) => $request['ConsumerRegion'] = arg); + final $request = { + 'DataShareArn': dataShareArn, + if (allowWrites != null) 'AllowWrites': allowWrites.toString(), + if (associateEntireAccount != null) + 'AssociateEntireAccount': associateEntireAccount.toString(), + if (consumerArn != null) 'ConsumerArn': consumerArn, + if (consumerRegion != null) 'ConsumerRegion': consumerRegion, + }; final $result = await _protocol.send( $request, action: 'AssociateDataShareConsumer', @@ -196,8 +191,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssociateDataShareConsumerMessage'], - shapes: shapes, resultWrapper: 'AssociateDataShareConsumerResult', ); return DataShare.fromXml($result); @@ -255,12 +248,14 @@ class Redshift { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeClusterSecurityGroupIngress', @@ -268,8 +263,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeClusterSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeClusterSecurityGroupIngressResult', ); return AuthorizeClusterSecurityGroupIngressResult.fromXml($result); @@ -298,10 +291,11 @@ class Redshift { required String dataShareArn, bool? allowWrites, }) async { - final $request = {}; - $request['ConsumerIdentifier'] = consumerIdentifier; - $request['DataShareArn'] = dataShareArn; - allowWrites?.also((arg) => $request['AllowWrites'] = arg); + final $request = { + 'ConsumerIdentifier': consumerIdentifier, + 'DataShareArn': dataShareArn, + if (allowWrites != null) 'AllowWrites': allowWrites.toString(), + }; final $result = await _protocol.send( $request, action: 'AuthorizeDataShare', @@ -309,8 +303,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDataShareMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDataShareResult', ); return DataShare.fromXml($result); @@ -338,10 +330,16 @@ class Redshift { String? clusterIdentifier, List? vpcIds, }) async { - final $request = {}; - $request['Account'] = account; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - vpcIds?.also((arg) => $request['VpcIds'] = arg); + final $request = { + 'Account': account, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (vpcIds != null) + if (vpcIds.isEmpty) + 'VpcIds': '' + else + for (var i1 = 0; i1 < vpcIds.length; i1++) + 'VpcIds.VpcIdentifier.${i1 + 1}': vpcIds[i1], + }; final $result = await _protocol.send( $request, action: 'AuthorizeEndpointAccess', @@ -349,8 +347,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'AuthorizeEndpointAccessResult', ); return EndpointAuthorization.fromXml($result); @@ -407,12 +403,13 @@ class Redshift { String? snapshotClusterIdentifier, String? snapshotIdentifier, }) async { - final $request = {}; - $request['AccountWithRestoreAccess'] = accountWithRestoreAccess; - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'AccountWithRestoreAccess': accountWithRestoreAccess, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'AuthorizeSnapshotAccess', @@ -420,8 +417,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeSnapshotAccessMessage'], - shapes: shapes, resultWrapper: 'AuthorizeSnapshotAccessResult', ); return AuthorizeSnapshotAccessResult.fromXml($result); @@ -436,8 +431,15 @@ class Redshift { Future batchDeleteClusterSnapshots({ required List identifiers, }) async { - final $request = {}; - $request['Identifiers'] = identifiers; + final $request = { + if (identifiers.isEmpty) + 'Identifiers': '' + else + for (var i1 = 0; i1 < identifiers.length; i1++) + for (var e3 in identifiers[i1].toQueryMap().entries) + 'Identifiers.DeleteClusterSnapshotMessage.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'BatchDeleteClusterSnapshots', @@ -445,8 +447,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDeleteClusterSnapshotsRequest'], - shapes: shapes, resultWrapper: 'BatchDeleteClusterSnapshotsResult', ); return BatchDeleteClusterSnapshotsResult.fromXml($result); @@ -479,11 +479,17 @@ class Redshift { bool? force, int? manualSnapshotRetentionPeriod, }) async { - final $request = {}; - $request['SnapshotIdentifierList'] = snapshotIdentifierList; - force?.also((arg) => $request['Force'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); + final $request = { + if (snapshotIdentifierList.isEmpty) + 'SnapshotIdentifierList': '' + else + for (var i1 = 0; i1 < snapshotIdentifierList.length; i1++) + 'SnapshotIdentifierList.String.${i1 + 1}': snapshotIdentifierList[i1], + if (force != null) 'Force': force.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + }; final $result = await _protocol.send( $request, action: 'BatchModifyClusterSnapshots', @@ -491,8 +497,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchModifyClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'BatchModifyClusterSnapshotsResult', ); return BatchModifyClusterSnapshotsOutputMessage.fromXml($result); @@ -511,8 +515,9 @@ class Redshift { Future cancelResize({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'CancelResize', @@ -520,8 +525,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelResizeMessage'], - shapes: shapes, resultWrapper: 'CancelResizeResult', ); return ResizeProgressMessage.fromXml($result); @@ -612,13 +615,15 @@ class Redshift { int? manualSnapshotRetentionPeriod, String? sourceSnapshotClusterIdentifier, }) async { - final $request = {}; - $request['SourceSnapshotIdentifier'] = sourceSnapshotIdentifier; - $request['TargetSnapshotIdentifier'] = targetSnapshotIdentifier; - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - sourceSnapshotClusterIdentifier - ?.also((arg) => $request['SourceSnapshotClusterIdentifier'] = arg); + final $request = { + 'SourceSnapshotIdentifier': sourceSnapshotIdentifier, + 'TargetSnapshotIdentifier': targetSnapshotIdentifier, + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (sourceSnapshotClusterIdentifier != null) + 'SourceSnapshotClusterIdentifier': sourceSnapshotClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'CopyClusterSnapshot', @@ -626,8 +631,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyClusterSnapshotResult', ); return CopyClusterSnapshotResult.fromXml($result); @@ -649,9 +652,10 @@ class Redshift { required String authenticationProfileContent, required String authenticationProfileName, }) async { - final $request = {}; - $request['AuthenticationProfileContent'] = authenticationProfileContent; - $request['AuthenticationProfileName'] = authenticationProfileName; + final $request = { + 'AuthenticationProfileContent': authenticationProfileContent, + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'CreateAuthenticationProfile', @@ -659,8 +663,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAuthenticationProfileMessage'], - shapes: shapes, resultWrapper: 'CreateAuthenticationProfileResult', ); return CreateAuthenticationProfileResult.fromXml($result); @@ -1143,59 +1145,89 @@ class Redshift { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['MasterUsername'] = masterUsername; - $request['NodeType'] = nodeType; - additionalInfo?.also((arg) => $request['AdditionalInfo'] = arg); - allowVersionUpgrade?.also((arg) => $request['AllowVersionUpgrade'] = arg); - aquaConfigurationStatus - ?.also((arg) => $request['AquaConfigurationStatus'] = arg.toValue()); - automatedSnapshotRetentionPeriod - ?.also((arg) => $request['AutomatedSnapshotRetentionPeriod'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - availabilityZoneRelocation - ?.also((arg) => $request['AvailabilityZoneRelocation'] = arg); - clusterParameterGroupName - ?.also((arg) => $request['ClusterParameterGroupName'] = arg); - clusterSecurityGroups - ?.also((arg) => $request['ClusterSecurityGroups'] = arg); - clusterSubnetGroupName - ?.also((arg) => $request['ClusterSubnetGroupName'] = arg); - clusterType?.also((arg) => $request['ClusterType'] = arg); - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - defaultIamRoleArn?.also((arg) => $request['DefaultIamRoleArn'] = arg); - elasticIp?.also((arg) => $request['ElasticIp'] = arg); - encrypted?.also((arg) => $request['Encrypted'] = arg); - enhancedVpcRouting?.also((arg) => $request['EnhancedVpcRouting'] = arg); - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - iamRoles?.also((arg) => $request['IamRoles'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - loadSampleData?.also((arg) => $request['LoadSampleData'] = arg); - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - manageMasterPassword?.also((arg) => $request['ManageMasterPassword'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - masterPasswordSecretKmsKeyId - ?.also((arg) => $request['MasterPasswordSecretKmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - redshiftIdcApplicationArn - ?.also((arg) => $request['RedshiftIdcApplicationArn'] = arg); - snapshotScheduleIdentifier - ?.also((arg) => $request['SnapshotScheduleIdentifier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'MasterUsername': masterUsername, + 'NodeType': nodeType, + if (additionalInfo != null) 'AdditionalInfo': additionalInfo, + if (allowVersionUpgrade != null) + 'AllowVersionUpgrade': allowVersionUpgrade.toString(), + if (aquaConfigurationStatus != null) + 'AquaConfigurationStatus': aquaConfigurationStatus.toValue(), + if (automatedSnapshotRetentionPeriod != null) + 'AutomatedSnapshotRetentionPeriod': + automatedSnapshotRetentionPeriod.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (availabilityZoneRelocation != null) + 'AvailabilityZoneRelocation': availabilityZoneRelocation.toString(), + if (clusterParameterGroupName != null) + 'ClusterParameterGroupName': clusterParameterGroupName, + if (clusterSecurityGroups != null) + if (clusterSecurityGroups.isEmpty) + 'ClusterSecurityGroups': '' + else + for (var i1 = 0; i1 < clusterSecurityGroups.length; i1++) + 'ClusterSecurityGroups.ClusterSecurityGroupName.${i1 + 1}': + clusterSecurityGroups[i1], + if (clusterSubnetGroupName != null) + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (clusterType != null) 'ClusterType': clusterType, + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (dBName != null) 'DBName': dBName, + if (defaultIamRoleArn != null) 'DefaultIamRoleArn': defaultIamRoleArn, + if (elasticIp != null) 'ElasticIp': elasticIp, + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (enhancedVpcRouting != null) + 'EnhancedVpcRouting': enhancedVpcRouting.toString(), + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (iamRoles != null) + if (iamRoles.isEmpty) + 'IamRoles': '' + else + for (var i1 = 0; i1 < iamRoles.length; i1++) + 'IamRoles.IamRoleArn.${i1 + 1}': iamRoles[i1], + if (ipAddressType != null) 'IpAddressType': ipAddressType, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (loadSampleData != null) 'LoadSampleData': loadSampleData, + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (manageMasterPassword != null) + 'ManageMasterPassword': manageMasterPassword.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (masterPasswordSecretKmsKeyId != null) + 'MasterPasswordSecretKmsKeyId': masterPasswordSecretKmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (port != null) 'Port': port.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (redshiftIdcApplicationArn != null) + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + if (snapshotScheduleIdentifier != null) + 'SnapshotScheduleIdentifier': snapshotScheduleIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateCluster', @@ -1203,8 +1235,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterMessage'], - shapes: shapes, resultWrapper: 'CreateClusterResult', ); return CreateClusterResult.fromXml($result); @@ -1274,11 +1304,18 @@ class Redshift { required String parameterGroupName, List? tags, }) async { - final $request = {}; - $request['Description'] = description; - $request['ParameterGroupFamily'] = parameterGroupFamily; - $request['ParameterGroupName'] = parameterGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Description': description, + 'ParameterGroupFamily': parameterGroupFamily, + 'ParameterGroupName': parameterGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterParameterGroup', @@ -1286,8 +1323,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateClusterParameterGroupResult', ); return CreateClusterParameterGroupResult.fromXml($result); @@ -1336,10 +1371,17 @@ class Redshift { required String description, List? tags, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterSecurityGroup', @@ -1347,8 +1389,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateClusterSecurityGroupResult', ); return CreateClusterSecurityGroupResult.fromXml($result); @@ -1412,12 +1452,20 @@ class Redshift { int? manualSnapshotRetentionPeriod, List? tags, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['SnapshotIdentifier'] = snapshotIdentifier; - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'SnapshotIdentifier': snapshotIdentifier, + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterSnapshot', @@ -1425,8 +1473,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateClusterSnapshotResult', ); return CreateClusterSnapshotResult.fromXml($result); @@ -1485,11 +1531,22 @@ class Redshift { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['ClusterSubnetGroupName'] = clusterSubnetGroupName; - $request['Description'] = description; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ClusterSubnetGroupName': clusterSubnetGroupName, + 'Description': description, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterSubnetGroup', @@ -1497,8 +1554,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateClusterSubnetGroupResult', ); return CreateClusterSubnetGroupResult.fromXml($result); @@ -1526,10 +1581,11 @@ class Redshift { required String customDomainCertificateArn, required String customDomainName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['CustomDomainCertificateArn'] = customDomainCertificateArn; - $request['CustomDomainName'] = customDomainName; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'CustomDomainCertificateArn': customDomainCertificateArn, + 'CustomDomainName': customDomainName, + }; final $result = await _protocol.send( $request, action: 'CreateCustomDomainAssociation', @@ -1537,8 +1593,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCustomDomainAssociationMessage'], - shapes: shapes, resultWrapper: 'CreateCustomDomainAssociationResult', ); return CreateCustomDomainAssociationResult.fromXml($result); @@ -1585,12 +1639,19 @@ class Redshift { String? resourceOwner, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['EndpointName'] = endpointName; - $request['SubnetGroupName'] = subnetGroupName; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'EndpointName': endpointName, + 'SubnetGroupName': subnetGroupName, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateEndpointAccess', @@ -1598,8 +1659,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'CreateEndpointAccessResult', ); return EndpointAccess.fromXml($result); @@ -1717,15 +1776,32 @@ class Redshift { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - severity?.also((arg) => $request['Severity'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (severity != null) 'Severity': severity, + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -1733,8 +1809,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -1769,9 +1843,16 @@ class Redshift { required String hsmClientCertificateIdentifier, List? tags, }) async { - final $request = {}; - $request['HsmClientCertificateIdentifier'] = hsmClientCertificateIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateHsmClientCertificate', @@ -1779,8 +1860,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateHsmClientCertificateMessage'], - shapes: shapes, resultWrapper: 'CreateHsmClientCertificateResult', ); return CreateHsmClientCertificateResult.fromXml($result); @@ -1835,14 +1914,21 @@ class Redshift { required String hsmServerPublicCertificate, List? tags, }) async { - final $request = {}; - $request['Description'] = description; - $request['HsmConfigurationIdentifier'] = hsmConfigurationIdentifier; - $request['HsmIpAddress'] = hsmIpAddress; - $request['HsmPartitionName'] = hsmPartitionName; - $request['HsmPartitionPassword'] = hsmPartitionPassword; - $request['HsmServerPublicCertificate'] = hsmServerPublicCertificate; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Description': description, + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + 'HsmIpAddress': hsmIpAddress, + 'HsmPartitionName': hsmPartitionName, + 'HsmPartitionPassword': hsmPartitionPassword, + 'HsmServerPublicCertificate': hsmServerPublicCertificate, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateHsmConfiguration', @@ -1850,8 +1936,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateHsmConfigurationMessage'], - shapes: shapes, resultWrapper: 'CreateHsmConfigurationResult', ); return CreateHsmConfigurationResult.fromXml($result); @@ -1902,15 +1986,27 @@ class Redshift { String? identityNamespace, List? serviceIntegrations, }) async { - final $request = {}; - $request['IamRoleArn'] = iamRoleArn; - $request['IdcDisplayName'] = idcDisplayName; - $request['IdcInstanceArn'] = idcInstanceArn; - $request['RedshiftIdcApplicationName'] = redshiftIdcApplicationName; - authorizedTokenIssuerList - ?.also((arg) => $request['AuthorizedTokenIssuerList'] = arg); - identityNamespace?.also((arg) => $request['IdentityNamespace'] = arg); - serviceIntegrations?.also((arg) => $request['ServiceIntegrations'] = arg); + final $request = { + 'IamRoleArn': iamRoleArn, + 'IdcDisplayName': idcDisplayName, + 'IdcInstanceArn': idcInstanceArn, + 'RedshiftIdcApplicationName': redshiftIdcApplicationName, + if (authorizedTokenIssuerList != null) + if (authorizedTokenIssuerList.isEmpty) + 'AuthorizedTokenIssuerList': '' + else + for (var i1 = 0; i1 < authorizedTokenIssuerList.length; i1++) + for (var e3 in authorizedTokenIssuerList[i1].toQueryMap().entries) + 'AuthorizedTokenIssuerList.member.${i1 + 1}.${e3.key}': e3.value, + if (identityNamespace != null) 'IdentityNamespace': identityNamespace, + if (serviceIntegrations != null) + if (serviceIntegrations.isEmpty) + 'ServiceIntegrations': '' + else + for (var i1 = 0; i1 < serviceIntegrations.length; i1++) + for (var e3 in serviceIntegrations[i1].toQueryMap().entries) + 'ServiceIntegrations.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateRedshiftIdcApplication', @@ -1918,8 +2014,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateRedshiftIdcApplicationMessage'], - shapes: shapes, resultWrapper: 'CreateRedshiftIdcApplicationResult', ); return CreateRedshiftIdcApplicationResult.fromXml($result); @@ -1983,16 +2077,18 @@ class Redshift { String? scheduledActionDescription, DateTime? startTime, }) async { - final $request = {}; - $request['IamRole'] = iamRole; - $request['Schedule'] = schedule; - $request['ScheduledActionName'] = scheduledActionName; - $request['TargetAction'] = targetAction; - enable?.also((arg) => $request['Enable'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - scheduledActionDescription - ?.also((arg) => $request['ScheduledActionDescription'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + 'IamRole': iamRole, + 'Schedule': schedule, + 'ScheduledActionName': scheduledActionName, + for (var e1 in targetAction.toQueryMap().entries) + 'TargetAction.${e1.key}': e1.value, + if (enable != null) 'Enable': enable.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (scheduledActionDescription != null) + 'ScheduledActionDescription': scheduledActionDescription, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'CreateScheduledAction', @@ -2000,8 +2096,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateScheduledActionMessage'], - shapes: shapes, resultWrapper: 'CreateScheduledActionResult', ); return ScheduledAction.fromXml($result); @@ -2059,10 +2153,17 @@ class Redshift { String? kmsKeyId, List? tags, }) async { - final $request = {}; - $request['SnapshotCopyGrantName'] = snapshotCopyGrantName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnapshotCopyGrantName': snapshotCopyGrantName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSnapshotCopyGrant', @@ -2070,8 +2171,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSnapshotCopyGrantMessage'], - shapes: shapes, resultWrapper: 'CreateSnapshotCopyGrantResult', ); return CreateSnapshotCopyGrantResult.fromXml($result); @@ -2114,13 +2213,28 @@ class Redshift { String? scheduleIdentifier, List? tags, }) async { - final $request = {}; - dryRun?.also((arg) => $request['DryRun'] = arg); - nextInvocations?.also((arg) => $request['NextInvocations'] = arg); - scheduleDefinitions?.also((arg) => $request['ScheduleDefinitions'] = arg); - scheduleDescription?.also((arg) => $request['ScheduleDescription'] = arg); - scheduleIdentifier?.also((arg) => $request['ScheduleIdentifier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (dryRun != null) 'DryRun': dryRun.toString(), + if (nextInvocations != null) + 'NextInvocations': nextInvocations.toString(), + if (scheduleDefinitions != null) + if (scheduleDefinitions.isEmpty) + 'ScheduleDefinitions': '' + else + for (var i1 = 0; i1 < scheduleDefinitions.length; i1++) + 'ScheduleDefinitions.ScheduleDefinition.${i1 + 1}': + scheduleDefinitions[i1], + if (scheduleDescription != null) + 'ScheduleDescription': scheduleDescription, + if (scheduleIdentifier != null) 'ScheduleIdentifier': scheduleIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSnapshotSchedule', @@ -2128,8 +2242,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSnapshotScheduleMessage'], - shapes: shapes, resultWrapper: 'CreateSnapshotScheduleResult', ); return SnapshotSchedule.fromXml($result); @@ -2164,9 +2276,15 @@ class Redshift { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'CreateTags', @@ -2174,8 +2292,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTagsMessage'], - shapes: shapes, ); } @@ -2231,14 +2347,21 @@ class Redshift { UsageLimitPeriod? period, List? tags, }) async { - final $request = {}; - $request['Amount'] = amount; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['FeatureType'] = featureType.toValue(); - $request['LimitType'] = limitType.toValue(); - breachAction?.also((arg) => $request['BreachAction'] = arg.toValue()); - period?.also((arg) => $request['Period'] = arg.toValue()); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Amount': amount.toString(), + 'ClusterIdentifier': clusterIdentifier, + 'FeatureType': featureType.toValue(), + 'LimitType': limitType.toValue(), + if (breachAction != null) 'BreachAction': breachAction.toValue(), + if (period != null) 'Period': period.toValue(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateUsageLimit', @@ -2246,8 +2369,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUsageLimitMessage'], - shapes: shapes, resultWrapper: 'CreateUsageLimitResult', ); return UsageLimit.fromXml($result); @@ -2270,9 +2391,10 @@ class Redshift { required String consumerIdentifier, required String dataShareArn, }) async { - final $request = {}; - $request['ConsumerIdentifier'] = consumerIdentifier; - $request['DataShareArn'] = dataShareArn; + final $request = { + 'ConsumerIdentifier': consumerIdentifier, + 'DataShareArn': dataShareArn, + }; final $result = await _protocol.send( $request, action: 'DeauthorizeDataShare', @@ -2280,8 +2402,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeauthorizeDataShareMessage'], - shapes: shapes, resultWrapper: 'DeauthorizeDataShareResult', ); return DataShare.fromXml($result); @@ -2297,8 +2417,9 @@ class Redshift { Future deleteAuthenticationProfile({ required String authenticationProfileName, }) async { - final $request = {}; - $request['AuthenticationProfileName'] = authenticationProfileName; + final $request = { + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'DeleteAuthenticationProfile', @@ -2306,8 +2427,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAuthenticationProfileMessage'], - shapes: shapes, resultWrapper: 'DeleteAuthenticationProfileResult', ); return DeleteAuthenticationProfileResult.fromXml($result); @@ -2405,14 +2524,16 @@ class Redshift { int? finalClusterSnapshotRetentionPeriod, bool? skipFinalClusterSnapshot, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - finalClusterSnapshotIdentifier - ?.also((arg) => $request['FinalClusterSnapshotIdentifier'] = arg); - finalClusterSnapshotRetentionPeriod - ?.also((arg) => $request['FinalClusterSnapshotRetentionPeriod'] = arg); - skipFinalClusterSnapshot - ?.also((arg) => $request['SkipFinalClusterSnapshot'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (finalClusterSnapshotIdentifier != null) + 'FinalClusterSnapshotIdentifier': finalClusterSnapshotIdentifier, + if (finalClusterSnapshotRetentionPeriod != null) + 'FinalClusterSnapshotRetentionPeriod': + finalClusterSnapshotRetentionPeriod.toString(), + if (skipFinalClusterSnapshot != null) + 'SkipFinalClusterSnapshot': skipFinalClusterSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteCluster', @@ -2420,8 +2541,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteClusterResult', ); return DeleteClusterResult.fromXml($result); @@ -2451,8 +2570,9 @@ class Redshift { Future deleteClusterParameterGroup({ required String parameterGroupName, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; + final $request = { + 'ParameterGroupName': parameterGroupName, + }; await _protocol.send( $request, action: 'DeleteClusterParameterGroup', @@ -2460,8 +2580,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -2483,8 +2601,9 @@ class Redshift { Future deleteClusterSecurityGroup({ required String clusterSecurityGroupName, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteClusterSecurityGroup', @@ -2492,8 +2611,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterSecurityGroupMessage'], - shapes: shapes, ); } @@ -2528,10 +2645,11 @@ class Redshift { required String snapshotIdentifier, String? snapshotClusterIdentifier, }) async { - final $request = {}; - $request['SnapshotIdentifier'] = snapshotIdentifier; - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); + final $request = { + 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteClusterSnapshot', @@ -2539,8 +2657,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteClusterSnapshotResult', ); return DeleteClusterSnapshotResult.fromXml($result); @@ -2557,8 +2673,9 @@ class Redshift { Future deleteClusterSubnetGroup({ required String clusterSubnetGroupName, }) async { - final $request = {}; - $request['ClusterSubnetGroupName'] = clusterSubnetGroupName; + final $request = { + 'ClusterSubnetGroupName': clusterSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteClusterSubnetGroup', @@ -2566,8 +2683,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterSubnetGroupMessage'], - shapes: shapes, ); } @@ -2588,9 +2703,10 @@ class Redshift { required String clusterIdentifier, required String customDomainName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['CustomDomainName'] = customDomainName; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'CustomDomainName': customDomainName, + }; await _protocol.send( $request, action: 'DeleteCustomDomainAssociation', @@ -2598,8 +2714,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCustomDomainAssociationMessage'], - shapes: shapes, ); } @@ -2616,8 +2730,9 @@ class Redshift { Future deleteEndpointAccess({ required String endpointName, }) async { - final $request = {}; - $request['EndpointName'] = endpointName; + final $request = { + 'EndpointName': endpointName, + }; final $result = await _protocol.send( $request, action: 'DeleteEndpointAccess', @@ -2625,8 +2740,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'DeleteEndpointAccessResult', ); return EndpointAccess.fromXml($result); @@ -2643,8 +2756,9 @@ class Redshift { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -2652,8 +2766,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, ); } @@ -2667,8 +2779,9 @@ class Redshift { Future deleteHsmClientCertificate({ required String hsmClientCertificateIdentifier, }) async { - final $request = {}; - $request['HsmClientCertificateIdentifier'] = hsmClientCertificateIdentifier; + final $request = { + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + }; await _protocol.send( $request, action: 'DeleteHsmClientCertificate', @@ -2676,8 +2789,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteHsmClientCertificateMessage'], - shapes: shapes, ); } @@ -2691,8 +2802,9 @@ class Redshift { Future deleteHsmConfiguration({ required String hsmConfigurationIdentifier, }) async { - final $request = {}; - $request['HsmConfigurationIdentifier'] = hsmConfigurationIdentifier; + final $request = { + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + }; await _protocol.send( $request, action: 'DeleteHsmConfiguration', @@ -2700,8 +2812,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteHsmConfigurationMessage'], - shapes: shapes, ); } @@ -2730,11 +2840,12 @@ class Redshift { required String databaseName, required String partnerName, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DatabaseName'] = databaseName; - $request['PartnerName'] = partnerName; + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + 'DatabaseName': databaseName, + 'PartnerName': partnerName, + }; final $result = await _protocol.send( $request, action: 'DeletePartner', @@ -2742,8 +2853,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PartnerIntegrationInputMessage'], - shapes: shapes, resultWrapper: 'DeletePartnerResult', ); return PartnerIntegrationOutputMessage.fromXml($result); @@ -2761,8 +2870,9 @@ class Redshift { Future deleteRedshiftIdcApplication({ required String redshiftIdcApplicationArn, }) async { - final $request = {}; - $request['RedshiftIdcApplicationArn'] = redshiftIdcApplicationArn; + final $request = { + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + }; await _protocol.send( $request, action: 'DeleteRedshiftIdcApplication', @@ -2770,8 +2880,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRedshiftIdcApplicationMessage'], - shapes: shapes, ); } @@ -2786,8 +2894,9 @@ class Redshift { Future deleteResourcePolicy({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; await _protocol.send( $request, action: 'DeleteResourcePolicy', @@ -2795,8 +2904,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteResourcePolicyMessage'], - shapes: shapes, ); } @@ -2810,8 +2917,9 @@ class Redshift { Future deleteScheduledAction({ required String scheduledActionName, }) async { - final $request = {}; - $request['ScheduledActionName'] = scheduledActionName; + final $request = { + 'ScheduledActionName': scheduledActionName, + }; await _protocol.send( $request, action: 'DeleteScheduledAction', @@ -2819,8 +2927,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteScheduledActionMessage'], - shapes: shapes, ); } @@ -2834,8 +2940,9 @@ class Redshift { Future deleteSnapshotCopyGrant({ required String snapshotCopyGrantName, }) async { - final $request = {}; - $request['SnapshotCopyGrantName'] = snapshotCopyGrantName; + final $request = { + 'SnapshotCopyGrantName': snapshotCopyGrantName, + }; await _protocol.send( $request, action: 'DeleteSnapshotCopyGrant', @@ -2843,8 +2950,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSnapshotCopyGrantMessage'], - shapes: shapes, ); } @@ -2858,8 +2963,9 @@ class Redshift { Future deleteSnapshotSchedule({ required String scheduleIdentifier, }) async { - final $request = {}; - $request['ScheduleIdentifier'] = scheduleIdentifier; + final $request = { + 'ScheduleIdentifier': scheduleIdentifier, + }; await _protocol.send( $request, action: 'DeleteSnapshotSchedule', @@ -2867,8 +2973,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSnapshotScheduleMessage'], - shapes: shapes, ); } @@ -2889,9 +2993,14 @@ class Redshift { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'DeleteTags', @@ -2899,8 +3008,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTagsMessage'], - shapes: shapes, ); } @@ -2914,8 +3021,9 @@ class Redshift { Future deleteUsageLimit({ required String usageLimitId, }) async { - final $request = {}; - $request['UsageLimitId'] = usageLimitId; + final $request = { + 'UsageLimitId': usageLimitId, + }; await _protocol.send( $request, action: 'DeleteUsageLimit', @@ -2923,8 +3031,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUsageLimitMessage'], - shapes: shapes, ); } @@ -2935,8 +3041,14 @@ class Redshift { Future describeAccountAttributes({ List? attributeNames, }) async { - final $request = {}; - attributeNames?.also((arg) => $request['AttributeNames'] = arg); + final $request = { + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeNames.AttributeName.${i1 + 1}': attributeNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeAccountAttributes', @@ -2944,8 +3056,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeAccountAttributesResult', ); return AccountAttributeList.fromXml($result); @@ -2962,9 +3072,10 @@ class Redshift { Future describeAuthenticationProfiles({ String? authenticationProfileName, }) async { - final $request = {}; - authenticationProfileName - ?.also((arg) => $request['AuthenticationProfileName'] = arg); + final $request = { + if (authenticationProfileName != null) + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'DescribeAuthenticationProfiles', @@ -2972,8 +3083,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAuthenticationProfilesMessage'], - shapes: shapes, resultWrapper: 'DescribeAuthenticationProfilesResult', ); return DescribeAuthenticationProfilesResult.fromXml($result); @@ -3017,10 +3126,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeClusterDbRevisions', @@ -3028,8 +3138,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterDbRevisionsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterDbRevisionsResult', ); return ClusterDbRevisionsMessage.fromXml($result); @@ -3109,12 +3217,23 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - parameterGroupName?.also((arg) => $request['ParameterGroupName'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (parameterGroupName != null) 'ParameterGroupName': parameterGroupName, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterParameterGroups', @@ -3122,8 +3241,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterParameterGroupsResult', ); return ClusterParameterGroupsMessage.fromXml($result); @@ -3184,11 +3301,12 @@ class Redshift { int? maxRecords, String? source, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'ParameterGroupName': parameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeClusterParameters', @@ -3196,8 +3314,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterParametersResult', ); return ClusterParameterGroupDetails.fromXml($result); @@ -3280,13 +3396,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterSecurityGroupName - ?.also((arg) => $request['ClusterSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterSecurityGroupName != null) + 'ClusterSecurityGroupName': clusterSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterSecurityGroups', @@ -3294,8 +3421,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterSecurityGroupsResult', ); return ClusterSecurityGroupMessage.fromXml($result); @@ -3445,20 +3570,38 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterExists?.also((arg) => $request['ClusterExists'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - ownerAccount?.also((arg) => $request['OwnerAccount'] = arg); - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); - sortingEntities?.also((arg) => $request['SortingEntities'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterExists != null) 'ClusterExists': clusterExists.toString(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (ownerAccount != null) 'OwnerAccount': ownerAccount, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotType != null) 'SnapshotType': snapshotType, + if (sortingEntities != null) + if (sortingEntities.isEmpty) + 'SortingEntities': '' + else + for (var i1 = 0; i1 < sortingEntities.length; i1++) + for (var e3 in sortingEntities[i1].toQueryMap().entries) + 'SortingEntities.SnapshotSortingEntity.${i1 + 1}.${e3.key}': + e3.value, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterSnapshots', @@ -3466,8 +3609,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterSnapshotsResult', ); return SnapshotMessage.fromXml($result); @@ -3539,13 +3680,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterSubnetGroupName - ?.also((arg) => $request['ClusterSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterSubnetGroupName != null) + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterSubnetGroups', @@ -3553,8 +3705,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterSubnetGroupsResult', ); return ClusterSubnetGroupMessage.fromXml($result); @@ -3584,10 +3734,12 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeClusterTracks', @@ -3595,8 +3747,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterTracksMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterTracksResult', ); return TrackListMessage.fromXml($result); @@ -3658,12 +3808,13 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - clusterParameterGroupFamily - ?.also((arg) => $request['ClusterParameterGroupFamily'] = arg); - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (clusterParameterGroupFamily != null) + 'ClusterParameterGroupFamily': clusterParameterGroupFamily, + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeClusterVersions', @@ -3671,8 +3822,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterVersionsResult', ); return ClusterVersionsMessage.fromXml($result); @@ -3751,12 +3900,23 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusters', @@ -3764,8 +3924,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeClustersResult', ); return ClustersMessage.fromXml($result); @@ -3794,12 +3952,13 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - customDomainCertificateArn - ?.also((arg) => $request['CustomDomainCertificateArn'] = arg); - customDomainName?.also((arg) => $request['CustomDomainName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (customDomainCertificateArn != null) + 'CustomDomainCertificateArn': customDomainCertificateArn, + if (customDomainName != null) 'CustomDomainName': customDomainName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCustomDomainAssociations', @@ -3807,8 +3966,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCustomDomainAssociationsMessage'], - shapes: shapes, resultWrapper: 'DescribeCustomDomainAssociationsResult', ); return CustomDomainAssociationsMessage.fromXml($result); @@ -3841,10 +3998,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - dataShareArn?.also((arg) => $request['DataShareArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dataShareArn != null) 'DataShareArn': dataShareArn, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDataShares', @@ -3852,8 +4010,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDataSharesMessage'], - shapes: shapes, resultWrapper: 'DescribeDataSharesResult', ); return DescribeDataSharesResult.fromXml($result); @@ -3894,11 +4050,12 @@ class Redshift { int? maxRecords, DataShareStatusForConsumer? status, }) async { - final $request = {}; - consumerArn?.also((arg) => $request['ConsumerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (consumerArn != null) 'ConsumerArn': consumerArn, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeDataSharesForConsumer', @@ -3906,8 +4063,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDataSharesForConsumerMessage'], - shapes: shapes, resultWrapper: 'DescribeDataSharesForConsumerResult', ); return DescribeDataSharesForConsumerResult.fromXml($result); @@ -3948,11 +4103,12 @@ class Redshift { String? producerArn, DataShareStatusForProducer? status, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - producerArn?.also((arg) => $request['ProducerArn'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (producerArn != null) 'ProducerArn': producerArn, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeDataSharesForProducer', @@ -3960,8 +4116,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDataSharesForProducerMessage'], - shapes: shapes, resultWrapper: 'DescribeDataSharesForProducerResult', ); return DescribeDataSharesForProducerResult.fromXml($result); @@ -4003,10 +4157,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['ParameterGroupFamily'] = parameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'ParameterGroupFamily': parameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDefaultClusterParameters', @@ -4014,8 +4169,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDefaultClusterParametersResult', ); return DescribeDefaultClusterParametersResult.fromXml($result); @@ -4058,13 +4211,14 @@ class Redshift { String? resourceOwner, String? vpcId, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - endpointName?.also((arg) => $request['EndpointName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - vpcId?.also((arg) => $request['VpcId'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (endpointName != null) 'EndpointName': endpointName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (vpcId != null) 'VpcId': vpcId, + }; final $result = await _protocol.send( $request, action: 'DescribeEndpointAccess', @@ -4072,8 +4226,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'DescribeEndpointAccessResult', ); return EndpointAccessList.fromXml($result); @@ -4116,12 +4268,13 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - account?.also((arg) => $request['Account'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - grantee?.also((arg) => $request['Grantee'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (account != null) 'Account': account, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (grantee != null) 'Grantee': grantee.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEndpointAuthorization', @@ -4129,8 +4282,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEndpointAuthorizationMessage'], - shapes: shapes, resultWrapper: 'DescribeEndpointAuthorizationResult', ); return EndpointAuthorizationList.fromXml($result); @@ -4151,8 +4302,9 @@ class Redshift { Future describeEventCategories({ String? sourceType, }) async { - final $request = {}; - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -4160,8 +4312,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -4232,12 +4382,23 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -4245,8 +4406,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -4364,14 +4523,15 @@ class Redshift { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -4379,8 +4539,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -4453,13 +4611,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeHsmClientCertificates', @@ -4467,8 +4636,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeHsmClientCertificatesMessage'], - shapes: shapes, resultWrapper: 'DescribeHsmClientCertificatesResult', ); return HsmClientCertificateMessage.fromXml($result); @@ -4541,13 +4708,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeHsmConfigurations', @@ -4555,8 +4733,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeHsmConfigurationsMessage'], - shapes: shapes, resultWrapper: 'DescribeHsmConfigurationsResult', ); return HsmConfigurationMessage.fromXml($result); @@ -4599,11 +4775,12 @@ class Redshift { int? maxRecords, String? targetArn, }) async { - final $request = {}; - integrationArn?.also((arg) => $request['IntegrationArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - targetArn?.also((arg) => $request['TargetArn'] = arg); + final $request = { + if (integrationArn != null) 'IntegrationArn': integrationArn, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (targetArn != null) 'TargetArn': targetArn, + }; final $result = await _protocol.send( $request, action: 'DescribeInboundIntegrations', @@ -4611,8 +4788,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInboundIntegrationsMessage'], - shapes: shapes, resultWrapper: 'DescribeInboundIntegrationsResult', ); return InboundIntegrationsMessage.fromXml($result); @@ -4631,8 +4806,9 @@ class Redshift { Future describeLoggingStatus({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeLoggingStatus', @@ -4640,8 +4816,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoggingStatusMessage'], - shapes: shapes, resultWrapper: 'DescribeLoggingStatusResult', ); return LoggingStatus.fromXml($result); @@ -4713,15 +4887,23 @@ class Redshift { String? snapshotArn, String? snapshotIdentifier, }) async { - final $request = {}; - $request['ActionType'] = actionType.toValue(); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - ownerAccount?.also((arg) => $request['OwnerAccount'] = arg); - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'ActionType': actionType.toValue(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.NodeConfigurationOptionsFilter.${i1 + 1}.${e3.key}': + e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (ownerAccount != null) 'OwnerAccount': ownerAccount, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeNodeConfigurationOptions', @@ -4729,8 +4911,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeNodeConfigurationOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeNodeConfigurationOptionsResult', ); return NodeConfigurationOptionsMessage.fromXml($result); @@ -4786,11 +4966,12 @@ class Redshift { int? maxRecords, String? nodeType, }) async { - final $request = {}; - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); + final $request = { + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nodeType != null) 'NodeType': nodeType, + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableClusterOptions', @@ -4798,8 +4979,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableClusterOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableClusterOptionsResult', ); return OrderableClusterOptionsMessage.fromXml($result); @@ -4832,11 +5011,12 @@ class Redshift { String? databaseName, String? partnerName, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - databaseName?.also((arg) => $request['DatabaseName'] = arg); - partnerName?.also((arg) => $request['PartnerName'] = arg); + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + if (databaseName != null) 'DatabaseName': databaseName, + if (partnerName != null) 'PartnerName': partnerName, + }; final $result = await _protocol.send( $request, action: 'DescribePartners', @@ -4844,8 +5024,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePartnersInputMessage'], - shapes: shapes, resultWrapper: 'DescribePartnersResult', ); return DescribePartnersOutputMessage.fromXml($result); @@ -4881,11 +5059,12 @@ class Redshift { int? maxRecords, String? redshiftIdcApplicationArn, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - redshiftIdcApplicationArn - ?.also((arg) => $request['RedshiftIdcApplicationArn'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (redshiftIdcApplicationArn != null) + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + }; final $result = await _protocol.send( $request, action: 'DescribeRedshiftIdcApplications', @@ -4893,8 +5072,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeRedshiftIdcApplicationsMessage'], - shapes: shapes, resultWrapper: 'DescribeRedshiftIdcApplicationsResult', ); return DescribeRedshiftIdcApplicationsResult.fromXml($result); @@ -4936,12 +5113,13 @@ class Redshift { String? reservedNodeExchangeRequestId, String? reservedNodeId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - reservedNodeExchangeRequestId - ?.also((arg) => $request['ReservedNodeExchangeRequestId'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (reservedNodeExchangeRequestId != null) + 'ReservedNodeExchangeRequestId': reservedNodeExchangeRequestId, + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedNodeExchangeStatus', @@ -4949,8 +5127,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedNodeExchangeStatusInputMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedNodeExchangeStatusResult', ); return DescribeReservedNodeExchangeStatusOutputMessage.fromXml($result); @@ -4999,11 +5175,12 @@ class Redshift { int? maxRecords, String? reservedNodeOfferingId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - reservedNodeOfferingId - ?.also((arg) => $request['ReservedNodeOfferingId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (reservedNodeOfferingId != null) + 'ReservedNodeOfferingId': reservedNodeOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedNodeOfferings', @@ -5011,8 +5188,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedNodeOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedNodeOfferingsResult', ); return ReservedNodeOfferingsMessage.fromXml($result); @@ -5050,10 +5225,11 @@ class Redshift { int? maxRecords, String? reservedNodeId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedNodes', @@ -5061,8 +5237,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedNodesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedNodesResult', ); return ReservedNodesMessage.fromXml($result); @@ -5090,8 +5264,9 @@ class Redshift { Future describeResize({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeResize', @@ -5099,8 +5274,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeResizeMessage'], - shapes: shapes, resultWrapper: 'DescribeResizeResult', ); return ResizeProgressMessage.fromXml($result); @@ -5161,16 +5334,24 @@ class Redshift { DateTime? startTime, ScheduledActionTypeValues? targetActionType, }) async { - final $request = {}; - active?.also((arg) => $request['Active'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - scheduledActionName?.also((arg) => $request['ScheduledActionName'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - targetActionType - ?.also((arg) => $request['TargetActionType'] = arg.toValue()); + final $request = { + if (active != null) 'Active': active.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.ScheduledActionFilter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (scheduledActionName != null) + 'ScheduledActionName': scheduledActionName, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (targetActionType != null) + 'TargetActionType': targetActionType.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeScheduledActions', @@ -5178,8 +5359,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScheduledActionsMessage'], - shapes: shapes, resultWrapper: 'DescribeScheduledActionsResult', ); return ScheduledActionsMessage.fromXml($result); @@ -5245,13 +5424,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotCopyGrantName - ?.also((arg) => $request['SnapshotCopyGrantName'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotCopyGrantName != null) + 'SnapshotCopyGrantName': snapshotCopyGrantName, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeSnapshotCopyGrants', @@ -5259,8 +5449,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSnapshotCopyGrantsMessage'], - shapes: shapes, resultWrapper: 'DescribeSnapshotCopyGrantsResult', ); return SnapshotCopyGrantMessage.fromXml($result); @@ -5304,13 +5492,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - scheduleIdentifier?.also((arg) => $request['ScheduleIdentifier'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (scheduleIdentifier != null) 'ScheduleIdentifier': scheduleIdentifier, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeSnapshotSchedules', @@ -5318,8 +5517,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSnapshotSchedulesMessage'], - shapes: shapes, resultWrapper: 'DescribeSnapshotSchedulesResult', ); return DescribeSnapshotSchedulesOutputMessage.fromXml($result); @@ -5327,7 +5524,7 @@ class Redshift { /// Returns account level backups storage size and provisional storage. Future describeStorage() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeStorage', @@ -5335,7 +5532,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeStorageResult', ); return CustomerStorageMessage.fromXml($result); @@ -5378,12 +5574,13 @@ class Redshift { int? maxRecords, String? tableRestoreRequestId, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tableRestoreRequestId - ?.also((arg) => $request['TableRestoreRequestId'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tableRestoreRequestId != null) + 'TableRestoreRequestId': tableRestoreRequestId, + }; final $result = await _protocol.send( $request, action: 'DescribeTableRestoreStatus', @@ -5391,8 +5588,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTableRestoreStatusMessage'], - shapes: shapes, resultWrapper: 'DescribeTableRestoreStatusResult', ); return TableRestoreStatusMessage.fromXml($result); @@ -5519,13 +5714,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceName?.also((arg) => $request['ResourceName'] = arg); - resourceType?.also((arg) => $request['ResourceType'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceName != null) 'ResourceName': resourceName, + if (resourceType != null) 'ResourceType': resourceType, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -5533,8 +5739,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsMessage'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return TaggedResourceListMessage.fromXml($result); @@ -5621,14 +5825,25 @@ class Redshift { List? tagValues, String? usageLimitId, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - featureType?.also((arg) => $request['FeatureType'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); - usageLimitId?.also((arg) => $request['UsageLimitId'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (featureType != null) 'FeatureType': featureType.toValue(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + if (usageLimitId != null) 'UsageLimitId': usageLimitId, + }; final $result = await _protocol.send( $request, action: 'DescribeUsageLimits', @@ -5636,8 +5851,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUsageLimitsMessage'], - shapes: shapes, resultWrapper: 'DescribeUsageLimitsResult', ); return UsageLimitList.fromXml($result); @@ -5657,8 +5870,9 @@ class Redshift { Future disableLogging({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DisableLogging', @@ -5666,8 +5880,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableLoggingMessage'], - shapes: shapes, resultWrapper: 'DisableLoggingResult', ); return LoggingStatus.fromXml($result); @@ -5696,8 +5908,9 @@ class Redshift { Future disableSnapshotCopy({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DisableSnapshotCopy', @@ -5705,8 +5918,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableSnapshotCopyMessage'], - shapes: shapes, resultWrapper: 'DisableSnapshotCopyResult', ); return DisableSnapshotCopyResult.fromXml($result); @@ -5739,12 +5950,13 @@ class Redshift { String? consumerRegion, bool? disassociateEntireAccount, }) async { - final $request = {}; - $request['DataShareArn'] = dataShareArn; - consumerArn?.also((arg) => $request['ConsumerArn'] = arg); - consumerRegion?.also((arg) => $request['ConsumerRegion'] = arg); - disassociateEntireAccount - ?.also((arg) => $request['DisassociateEntireAccount'] = arg); + final $request = { + 'DataShareArn': dataShareArn, + if (consumerArn != null) 'ConsumerArn': consumerArn, + if (consumerRegion != null) 'ConsumerRegion': consumerRegion, + if (disassociateEntireAccount != null) + 'DisassociateEntireAccount': disassociateEntireAccount.toString(), + }; final $result = await _protocol.send( $request, action: 'DisassociateDataShareConsumer', @@ -5752,8 +5964,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisassociateDataShareConsumerMessage'], - shapes: shapes, resultWrapper: 'DisassociateDataShareConsumerResult', ); return DataShare.fromXml($result); @@ -5837,13 +6047,19 @@ class Redshift { List? logExports, String? s3KeyPrefix, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - bucketName?.also((arg) => $request['BucketName'] = arg); - logDestinationType - ?.also((arg) => $request['LogDestinationType'] = arg.toValue()); - logExports?.also((arg) => $request['LogExports'] = arg); - s3KeyPrefix?.also((arg) => $request['S3KeyPrefix'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (bucketName != null) 'BucketName': bucketName, + if (logDestinationType != null) + 'LogDestinationType': logDestinationType.toValue(), + if (logExports != null) + if (logExports.isEmpty) + 'LogExports': '' + else + for (var i1 = 0; i1 < logExports.length; i1++) + 'LogExports.member.${i1 + 1}': logExports[i1], + if (s3KeyPrefix != null) 'S3KeyPrefix': s3KeyPrefix, + }; final $result = await _protocol.send( $request, action: 'EnableLogging', @@ -5851,8 +6067,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableLoggingMessage'], - shapes: shapes, resultWrapper: 'EnableLoggingResult', ); return LoggingStatus.fromXml($result); @@ -5914,14 +6128,17 @@ class Redshift { int? retentionPeriod, String? snapshotCopyGrantName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DestinationRegion'] = destinationRegion; - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - retentionPeriod?.also((arg) => $request['RetentionPeriod'] = arg); - snapshotCopyGrantName - ?.also((arg) => $request['SnapshotCopyGrantName'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'DestinationRegion': destinationRegion, + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (retentionPeriod != null) + 'RetentionPeriod': retentionPeriod.toString(), + if (snapshotCopyGrantName != null) + 'SnapshotCopyGrantName': snapshotCopyGrantName, + }; final $result = await _protocol.send( $request, action: 'EnableSnapshotCopy', @@ -5929,8 +6146,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableSnapshotCopyMessage'], - shapes: shapes, resultWrapper: 'EnableSnapshotCopyResult', ); return EnableSnapshotCopyResult.fromXml($result); @@ -5950,8 +6165,9 @@ class Redshift { Future failoverPrimaryCompute({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverPrimaryCompute', @@ -5959,8 +6175,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverPrimaryComputeInputMessage'], - shapes: shapes, resultWrapper: 'FailoverPrimaryComputeResult', ); return FailoverPrimaryComputeResult.fromXml($result); @@ -6124,14 +6338,21 @@ class Redshift { String? dbName, int? durationSeconds, }) async { - final $request = {}; - $request['DbUser'] = dbUser; - autoCreate?.also((arg) => $request['AutoCreate'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - customDomainName?.also((arg) => $request['CustomDomainName'] = arg); - dbGroups?.also((arg) => $request['DbGroups'] = arg); - dbName?.also((arg) => $request['DbName'] = arg); - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); + final $request = { + 'DbUser': dbUser, + if (autoCreate != null) 'AutoCreate': autoCreate.toString(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (customDomainName != null) 'CustomDomainName': customDomainName, + if (dbGroups != null) + if (dbGroups.isEmpty) + 'DbGroups': '' + else + for (var i1 = 0; i1 < dbGroups.length; i1++) + 'DbGroups.DbGroup.${i1 + 1}': dbGroups[i1], + if (dbName != null) 'DbName': dbName, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + }; final $result = await _protocol.send( $request, action: 'GetClusterCredentials', @@ -6139,8 +6360,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetClusterCredentialsMessage'], - shapes: shapes, resultWrapper: 'GetClusterCredentialsResult', ); return ClusterCredentials.fromXml($result); @@ -6187,11 +6406,13 @@ class Redshift { String? dbName, int? durationSeconds, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - customDomainName?.also((arg) => $request['CustomDomainName'] = arg); - dbName?.also((arg) => $request['DbName'] = arg); - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (customDomainName != null) 'CustomDomainName': customDomainName, + if (dbName != null) 'DbName': dbName, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + }; final $result = await _protocol.send( $request, action: 'GetClusterCredentialsWithIAM', @@ -6199,8 +6420,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetClusterCredentialsWithIAMMessage'], - shapes: shapes, resultWrapper: 'GetClusterCredentialsWithIAMResult', ); return ClusterExtendedCredentials.fromXml($result); @@ -6255,12 +6474,13 @@ class Redshift { int? maxRecords, String? snapshotIdentifier, }) async { - final $request = {}; - $request['ActionType'] = actionType.toValue(); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'ActionType': actionType.toValue(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'GetReservedNodeExchangeConfigurationOptions', @@ -6268,8 +6488,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetReservedNodeExchangeConfigurationOptionsInputMessage'], - shapes: shapes, resultWrapper: 'GetReservedNodeExchangeConfigurationOptionsResult', ); return GetReservedNodeExchangeConfigurationOptionsOutputMessage.fromXml( @@ -6303,10 +6521,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['ReservedNodeId'] = reservedNodeId; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'ReservedNodeId': reservedNodeId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'GetReservedNodeExchangeOfferings', @@ -6314,8 +6533,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetReservedNodeExchangeOfferingsInputMessage'], - shapes: shapes, resultWrapper: 'GetReservedNodeExchangeOfferingsResult', ); return GetReservedNodeExchangeOfferingsOutputMessage.fromXml($result); @@ -6333,8 +6550,9 @@ class Redshift { Future getResourcePolicy({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'GetResourcePolicy', @@ -6342,8 +6560,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetResourcePolicyMessage'], - shapes: shapes, resultWrapper: 'GetResourcePolicyResult', ); return GetResourcePolicyResult.fromXml($result); @@ -6386,11 +6602,12 @@ class Redshift { int? maxRecords, String? namespaceArn, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - namespaceArn?.also((arg) => $request['NamespaceArn'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (namespaceArn != null) 'NamespaceArn': namespaceArn, + }; final $result = await _protocol.send( $request, action: 'ListRecommendations', @@ -6398,8 +6615,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRecommendationsMessage'], - shapes: shapes, resultWrapper: 'ListRecommendationsResult', ); return ListRecommendationsResult.fromXml($result); @@ -6423,10 +6638,11 @@ class Redshift { required String clusterIdentifier, AquaConfigurationStatus? aquaConfigurationStatus, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - aquaConfigurationStatus - ?.also((arg) => $request['AquaConfigurationStatus'] = arg.toValue()); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (aquaConfigurationStatus != null) + 'AquaConfigurationStatus': aquaConfigurationStatus.toValue(), + }; final $result = await _protocol.send( $request, action: 'ModifyAquaConfiguration', @@ -6434,8 +6650,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyAquaInputMessage'], - shapes: shapes, resultWrapper: 'ModifyAquaConfigurationResult', ); return ModifyAquaOutputMessage.fromXml($result); @@ -6457,9 +6671,10 @@ class Redshift { required String authenticationProfileContent, required String authenticationProfileName, }) async { - final $request = {}; - $request['AuthenticationProfileContent'] = authenticationProfileContent; - $request['AuthenticationProfileName'] = authenticationProfileName; + final $request = { + 'AuthenticationProfileContent': authenticationProfileContent, + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'ModifyAuthenticationProfile', @@ -6467,8 +6682,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyAuthenticationProfileMessage'], - shapes: shapes, resultWrapper: 'ModifyAuthenticationProfileResult', ); return ModifyAuthenticationProfileResult.fromXml($result); @@ -6850,45 +7063,65 @@ class Redshift { bool? publiclyAccessible, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - allowVersionUpgrade?.also((arg) => $request['AllowVersionUpgrade'] = arg); - automatedSnapshotRetentionPeriod - ?.also((arg) => $request['AutomatedSnapshotRetentionPeriod'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - availabilityZoneRelocation - ?.also((arg) => $request['AvailabilityZoneRelocation'] = arg); - clusterParameterGroupName - ?.also((arg) => $request['ClusterParameterGroupName'] = arg); - clusterSecurityGroups - ?.also((arg) => $request['ClusterSecurityGroups'] = arg); - clusterType?.also((arg) => $request['ClusterType'] = arg); - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - elasticIp?.also((arg) => $request['ElasticIp'] = arg); - encrypted?.also((arg) => $request['Encrypted'] = arg); - enhancedVpcRouting?.also((arg) => $request['EnhancedVpcRouting'] = arg); - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - manageMasterPassword?.also((arg) => $request['ManageMasterPassword'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - masterPasswordSecretKmsKeyId - ?.also((arg) => $request['MasterPasswordSecretKmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newClusterIdentifier?.also((arg) => $request['NewClusterIdentifier'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (allowVersionUpgrade != null) + 'AllowVersionUpgrade': allowVersionUpgrade.toString(), + if (automatedSnapshotRetentionPeriod != null) + 'AutomatedSnapshotRetentionPeriod': + automatedSnapshotRetentionPeriod.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (availabilityZoneRelocation != null) + 'AvailabilityZoneRelocation': availabilityZoneRelocation.toString(), + if (clusterParameterGroupName != null) + 'ClusterParameterGroupName': clusterParameterGroupName, + if (clusterSecurityGroups != null) + if (clusterSecurityGroups.isEmpty) + 'ClusterSecurityGroups': '' + else + for (var i1 = 0; i1 < clusterSecurityGroups.length; i1++) + 'ClusterSecurityGroups.ClusterSecurityGroupName.${i1 + 1}': + clusterSecurityGroups[i1], + if (clusterType != null) 'ClusterType': clusterType, + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (elasticIp != null) 'ElasticIp': elasticIp, + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (enhancedVpcRouting != null) + 'EnhancedVpcRouting': enhancedVpcRouting.toString(), + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (ipAddressType != null) 'IpAddressType': ipAddressType, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (manageMasterPassword != null) + 'ManageMasterPassword': manageMasterPassword.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (masterPasswordSecretKmsKeyId != null) + 'MasterPasswordSecretKmsKeyId': masterPasswordSecretKmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newClusterIdentifier != null) + 'NewClusterIdentifier': newClusterIdentifier, + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (port != null) 'Port': port.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyCluster', @@ -6896,8 +7129,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterResult', ); return ModifyClusterResult.fromXml($result); @@ -6924,9 +7155,10 @@ class Redshift { required String clusterIdentifier, required String revisionTarget, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['RevisionTarget'] = revisionTarget; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'RevisionTarget': revisionTarget, + }; final $result = await _protocol.send( $request, action: 'ModifyClusterDbRevision', @@ -6934,8 +7166,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterDbRevisionMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterDbRevisionResult', ); return ModifyClusterDbRevisionResult.fromXml($result); @@ -6972,11 +7202,22 @@ class Redshift { String? defaultIamRoleArn, List? removeIamRoles, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - addIamRoles?.also((arg) => $request['AddIamRoles'] = arg); - defaultIamRoleArn?.also((arg) => $request['DefaultIamRoleArn'] = arg); - removeIamRoles?.also((arg) => $request['RemoveIamRoles'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (addIamRoles != null) + if (addIamRoles.isEmpty) + 'AddIamRoles': '' + else + for (var i1 = 0; i1 < addIamRoles.length; i1++) + 'AddIamRoles.IamRoleArn.${i1 + 1}': addIamRoles[i1], + if (defaultIamRoleArn != null) 'DefaultIamRoleArn': defaultIamRoleArn, + if (removeIamRoles != null) + if (removeIamRoles.isEmpty) + 'RemoveIamRoles': '' + else + for (var i1 = 0; i1 < removeIamRoles.length; i1++) + 'RemoveIamRoles.IamRoleArn.${i1 + 1}': removeIamRoles[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyClusterIamRoles', @@ -6984,8 +7225,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterIamRolesMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterIamRolesResult', ); return ModifyClusterIamRolesResult.fromXml($result); @@ -7024,17 +7263,20 @@ class Redshift { String? deferMaintenanceIdentifier, DateTime? deferMaintenanceStartTime, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - deferMaintenance?.also((arg) => $request['DeferMaintenance'] = arg); - deferMaintenanceDuration - ?.also((arg) => $request['DeferMaintenanceDuration'] = arg); - deferMaintenanceEndTime?.also( - (arg) => $request['DeferMaintenanceEndTime'] = _s.iso8601ToJson(arg)); - deferMaintenanceIdentifier - ?.also((arg) => $request['DeferMaintenanceIdentifier'] = arg); - deferMaintenanceStartTime?.also( - (arg) => $request['DeferMaintenanceStartTime'] = _s.iso8601ToJson(arg)); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (deferMaintenance != null) + 'DeferMaintenance': deferMaintenance.toString(), + if (deferMaintenanceDuration != null) + 'DeferMaintenanceDuration': deferMaintenanceDuration.toString(), + if (deferMaintenanceEndTime != null) + 'DeferMaintenanceEndTime': _s.iso8601ToJson(deferMaintenanceEndTime), + if (deferMaintenanceIdentifier != null) + 'DeferMaintenanceIdentifier': deferMaintenanceIdentifier, + if (deferMaintenanceStartTime != null) + 'DeferMaintenanceStartTime': + _s.iso8601ToJson(deferMaintenanceStartTime), + }; final $result = await _protocol.send( $request, action: 'ModifyClusterMaintenance', @@ -7042,8 +7284,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterMaintenanceMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterMaintenanceResult', ); return ModifyClusterMaintenanceResult.fromXml($result); @@ -7077,9 +7317,15 @@ class Redshift { required String parameterGroupName, required List parameters, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'ParameterGroupName': parameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyClusterParameterGroup', @@ -7087,8 +7333,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterParameterGroupResult', ); return ClusterParameterGroupNameMessage.fromXml($result); @@ -7123,11 +7367,13 @@ class Redshift { bool? force, int? manualSnapshotRetentionPeriod, }) async { - final $request = {}; - $request['SnapshotIdentifier'] = snapshotIdentifier; - force?.also((arg) => $request['Force'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); + final $request = { + 'SnapshotIdentifier': snapshotIdentifier, + if (force != null) 'Force': force.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyClusterSnapshot', @@ -7135,8 +7381,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterSnapshotResult', ); return ModifyClusterSnapshotResult.fromXml($result); @@ -7164,10 +7408,12 @@ class Redshift { bool? disassociateSchedule, String? scheduleIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - disassociateSchedule?.also((arg) => $request['DisassociateSchedule'] = arg); - scheduleIdentifier?.also((arg) => $request['ScheduleIdentifier'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (disassociateSchedule != null) + 'DisassociateSchedule': disassociateSchedule.toString(), + if (scheduleIdentifier != null) 'ScheduleIdentifier': scheduleIdentifier, + }; await _protocol.send( $request, action: 'ModifyClusterSnapshotSchedule', @@ -7175,8 +7421,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterSnapshotScheduleMessage'], - shapes: shapes, ); } @@ -7205,10 +7449,15 @@ class Redshift { required List subnetIds, String? description, }) async { - final $request = {}; - $request['ClusterSubnetGroupName'] = clusterSubnetGroupName; - $request['SubnetIds'] = subnetIds; - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'ModifyClusterSubnetGroup', @@ -7216,8 +7465,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterSubnetGroupResult', ); return ModifyClusterSubnetGroupResult.fromXml($result); @@ -7244,10 +7491,11 @@ class Redshift { required String customDomainCertificateArn, required String customDomainName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['CustomDomainCertificateArn'] = customDomainCertificateArn; - $request['CustomDomainName'] = customDomainName; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'CustomDomainCertificateArn': customDomainCertificateArn, + 'CustomDomainName': customDomainName, + }; final $result = await _protocol.send( $request, action: 'ModifyCustomDomainAssociation', @@ -7255,8 +7503,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCustomDomainAssociationMessage'], - shapes: shapes, resultWrapper: 'ModifyCustomDomainAssociationResult', ); return ModifyCustomDomainAssociationResult.fromXml($result); @@ -7281,9 +7527,16 @@ class Redshift { required String endpointName, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['EndpointName'] = endpointName; - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'EndpointName': endpointName, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyEndpointAccess', @@ -7291,8 +7544,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'ModifyEndpointAccessResult', ); return EndpointAccess.fromXml($result); @@ -7362,14 +7613,25 @@ class Redshift { List? sourceIds, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - severity?.also((arg) => $request['Severity'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (severity != null) 'Severity': severity, + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -7377,8 +7639,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -7423,14 +7683,26 @@ class Redshift { String? identityNamespace, List? serviceIntegrations, }) async { - final $request = {}; - $request['RedshiftIdcApplicationArn'] = redshiftIdcApplicationArn; - authorizedTokenIssuerList - ?.also((arg) => $request['AuthorizedTokenIssuerList'] = arg); - iamRoleArn?.also((arg) => $request['IamRoleArn'] = arg); - idcDisplayName?.also((arg) => $request['IdcDisplayName'] = arg); - identityNamespace?.also((arg) => $request['IdentityNamespace'] = arg); - serviceIntegrations?.also((arg) => $request['ServiceIntegrations'] = arg); + final $request = { + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + if (authorizedTokenIssuerList != null) + if (authorizedTokenIssuerList.isEmpty) + 'AuthorizedTokenIssuerList': '' + else + for (var i1 = 0; i1 < authorizedTokenIssuerList.length; i1++) + for (var e3 in authorizedTokenIssuerList[i1].toQueryMap().entries) + 'AuthorizedTokenIssuerList.member.${i1 + 1}.${e3.key}': e3.value, + if (iamRoleArn != null) 'IamRoleArn': iamRoleArn, + if (idcDisplayName != null) 'IdcDisplayName': idcDisplayName, + if (identityNamespace != null) 'IdentityNamespace': identityNamespace, + if (serviceIntegrations != null) + if (serviceIntegrations.isEmpty) + 'ServiceIntegrations': '' + else + for (var i1 = 0; i1 < serviceIntegrations.length; i1++) + for (var e3 in serviceIntegrations[i1].toQueryMap().entries) + 'ServiceIntegrations.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyRedshiftIdcApplication', @@ -7438,8 +7710,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyRedshiftIdcApplicationMessage'], - shapes: shapes, resultWrapper: 'ModifyRedshiftIdcApplicationResult', ); return ModifyRedshiftIdcApplicationResult.fromXml($result); @@ -7495,16 +7765,19 @@ class Redshift { DateTime? startTime, ScheduledActionType? targetAction, }) async { - final $request = {}; - $request['ScheduledActionName'] = scheduledActionName; - enable?.also((arg) => $request['Enable'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - iamRole?.also((arg) => $request['IamRole'] = arg); - schedule?.also((arg) => $request['Schedule'] = arg); - scheduledActionDescription - ?.also((arg) => $request['ScheduledActionDescription'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - targetAction?.also((arg) => $request['TargetAction'] = arg); + final $request = { + 'ScheduledActionName': scheduledActionName, + if (enable != null) 'Enable': enable.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (iamRole != null) 'IamRole': iamRole, + if (schedule != null) 'Schedule': schedule, + if (scheduledActionDescription != null) + 'ScheduledActionDescription': scheduledActionDescription, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (targetAction != null) + for (var e1 in targetAction.toQueryMap().entries) + 'TargetAction.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'ModifyScheduledAction', @@ -7512,8 +7785,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyScheduledActionMessage'], - shapes: shapes, resultWrapper: 'ModifyScheduledActionResult', ); return ScheduledAction.fromXml($result); @@ -7577,10 +7848,11 @@ class Redshift { required int retentionPeriod, bool? manual, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['RetentionPeriod'] = retentionPeriod; - manual?.also((arg) => $request['Manual'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'RetentionPeriod': retentionPeriod.toString(), + if (manual != null) 'Manual': manual.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifySnapshotCopyRetentionPeriod', @@ -7588,8 +7860,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifySnapshotCopyRetentionPeriodMessage'], - shapes: shapes, resultWrapper: 'ModifySnapshotCopyRetentionPeriodResult', ); return ModifySnapshotCopyRetentionPeriodResult.fromXml($result); @@ -7612,9 +7882,15 @@ class Redshift { required List scheduleDefinitions, required String scheduleIdentifier, }) async { - final $request = {}; - $request['ScheduleDefinitions'] = scheduleDefinitions; - $request['ScheduleIdentifier'] = scheduleIdentifier; + final $request = { + if (scheduleDefinitions.isEmpty) + 'ScheduleDefinitions': '' + else + for (var i1 = 0; i1 < scheduleDefinitions.length; i1++) + 'ScheduleDefinitions.ScheduleDefinition.${i1 + 1}': + scheduleDefinitions[i1], + 'ScheduleIdentifier': scheduleIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifySnapshotSchedule', @@ -7622,8 +7898,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifySnapshotScheduleMessage'], - shapes: shapes, resultWrapper: 'ModifySnapshotScheduleResult', ); return SnapshotSchedule.fromXml($result); @@ -7651,10 +7925,11 @@ class Redshift { int? amount, UsageLimitBreachAction? breachAction, }) async { - final $request = {}; - $request['UsageLimitId'] = usageLimitId; - amount?.also((arg) => $request['Amount'] = arg); - breachAction?.also((arg) => $request['BreachAction'] = arg.toValue()); + final $request = { + 'UsageLimitId': usageLimitId, + if (amount != null) 'Amount': amount.toString(), + if (breachAction != null) 'BreachAction': breachAction.toValue(), + }; final $result = await _protocol.send( $request, action: 'ModifyUsageLimit', @@ -7662,8 +7937,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyUsageLimitMessage'], - shapes: shapes, resultWrapper: 'ModifyUsageLimitResult', ); return UsageLimit.fromXml($result); @@ -7680,8 +7953,9 @@ class Redshift { Future pauseCluster({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'PauseCluster', @@ -7689,8 +7963,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PauseClusterMessage'], - shapes: shapes, resultWrapper: 'PauseClusterResult', ); return PauseClusterResult.fromXml($result); @@ -7723,9 +7995,10 @@ class Redshift { required String reservedNodeOfferingId, int? nodeCount, }) async { - final $request = {}; - $request['ReservedNodeOfferingId'] = reservedNodeOfferingId; - nodeCount?.also((arg) => $request['NodeCount'] = arg); + final $request = { + 'ReservedNodeOfferingId': reservedNodeOfferingId, + if (nodeCount != null) 'NodeCount': nodeCount.toString(), + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedNodeOffering', @@ -7733,8 +8006,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedNodeOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedNodeOfferingResult', ); return PurchaseReservedNodeOfferingResult.fromXml($result); @@ -7757,9 +8028,10 @@ class Redshift { required String policy, required String resourceArn, }) async { - final $request = {}; - $request['Policy'] = policy; - $request['ResourceArn'] = resourceArn; + final $request = { + 'Policy': policy, + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'PutResourcePolicy', @@ -7767,8 +8039,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutResourcePolicyMessage'], - shapes: shapes, resultWrapper: 'PutResourcePolicyResult', ); return PutResourcePolicyResult.fromXml($result); @@ -7792,8 +8062,9 @@ class Redshift { Future rebootCluster({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RebootCluster', @@ -7801,8 +8072,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootClusterMessage'], - shapes: shapes, resultWrapper: 'RebootClusterResult', ); return RebootClusterResult.fromXml($result); @@ -7817,8 +8086,9 @@ class Redshift { Future rejectDataShare({ required String dataShareArn, }) async { - final $request = {}; - $request['DataShareArn'] = dataShareArn; + final $request = { + 'DataShareArn': dataShareArn, + }; final $result = await _protocol.send( $request, action: 'RejectDataShare', @@ -7826,8 +8096,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RejectDataShareMessage'], - shapes: shapes, resultWrapper: 'RejectDataShareResult', ); return DataShare.fromXml($result); @@ -7861,10 +8129,18 @@ class Redshift { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'ParameterGroupName': parameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetClusterParameterGroup', @@ -7872,8 +8148,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetClusterParameterGroupResult', ); return ClusterParameterGroupNameMessage.fromXml($result); @@ -7974,15 +8248,16 @@ class Redshift { String? reservedNodeId, String? targetReservedNodeOfferingId, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - classic?.also((arg) => $request['Classic'] = arg); - clusterType?.also((arg) => $request['ClusterType'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); - targetReservedNodeOfferingId - ?.also((arg) => $request['TargetReservedNodeOfferingId'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (classic != null) 'Classic': classic.toString(), + if (clusterType != null) 'ClusterType': clusterType, + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + if (targetReservedNodeOfferingId != null) + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + }; final $result = await _protocol.send( $request, action: 'ResizeCluster', @@ -7990,8 +8265,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResizeClusterMessage'], - shapes: shapes, resultWrapper: 'ResizeClusterResult', ); return ResizeClusterResult.fromXml($result); @@ -8360,58 +8633,82 @@ class Redshift { String? targetReservedNodeOfferingId, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - additionalInfo?.also((arg) => $request['AdditionalInfo'] = arg); - allowVersionUpgrade?.also((arg) => $request['AllowVersionUpgrade'] = arg); - aquaConfigurationStatus - ?.also((arg) => $request['AquaConfigurationStatus'] = arg.toValue()); - automatedSnapshotRetentionPeriod - ?.also((arg) => $request['AutomatedSnapshotRetentionPeriod'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - availabilityZoneRelocation - ?.also((arg) => $request['AvailabilityZoneRelocation'] = arg); - clusterParameterGroupName - ?.also((arg) => $request['ClusterParameterGroupName'] = arg); - clusterSecurityGroups - ?.also((arg) => $request['ClusterSecurityGroups'] = arg); - clusterSubnetGroupName - ?.also((arg) => $request['ClusterSubnetGroupName'] = arg); - defaultIamRoleArn?.also((arg) => $request['DefaultIamRoleArn'] = arg); - elasticIp?.also((arg) => $request['ElasticIp'] = arg); - encrypted?.also((arg) => $request['Encrypted'] = arg); - enhancedVpcRouting?.also((arg) => $request['EnhancedVpcRouting'] = arg); - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - iamRoles?.also((arg) => $request['IamRoles'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - manageMasterPassword?.also((arg) => $request['ManageMasterPassword'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - masterPasswordSecretKmsKeyId - ?.also((arg) => $request['MasterPasswordSecretKmsKeyId'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - ownerAccount?.also((arg) => $request['OwnerAccount'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); - snapshotScheduleIdentifier - ?.also((arg) => $request['SnapshotScheduleIdentifier'] = arg); - targetReservedNodeOfferingId - ?.also((arg) => $request['TargetReservedNodeOfferingId'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (additionalInfo != null) 'AdditionalInfo': additionalInfo, + if (allowVersionUpgrade != null) + 'AllowVersionUpgrade': allowVersionUpgrade.toString(), + if (aquaConfigurationStatus != null) + 'AquaConfigurationStatus': aquaConfigurationStatus.toValue(), + if (automatedSnapshotRetentionPeriod != null) + 'AutomatedSnapshotRetentionPeriod': + automatedSnapshotRetentionPeriod.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (availabilityZoneRelocation != null) + 'AvailabilityZoneRelocation': availabilityZoneRelocation.toString(), + if (clusterParameterGroupName != null) + 'ClusterParameterGroupName': clusterParameterGroupName, + if (clusterSecurityGroups != null) + if (clusterSecurityGroups.isEmpty) + 'ClusterSecurityGroups': '' + else + for (var i1 = 0; i1 < clusterSecurityGroups.length; i1++) + 'ClusterSecurityGroups.ClusterSecurityGroupName.${i1 + 1}': + clusterSecurityGroups[i1], + if (clusterSubnetGroupName != null) + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (defaultIamRoleArn != null) 'DefaultIamRoleArn': defaultIamRoleArn, + if (elasticIp != null) 'ElasticIp': elasticIp, + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (enhancedVpcRouting != null) + 'EnhancedVpcRouting': enhancedVpcRouting.toString(), + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (iamRoles != null) + if (iamRoles.isEmpty) + 'IamRoles': '' + else + for (var i1 = 0; i1 < iamRoles.length; i1++) + 'IamRoles.IamRoleArn.${i1 + 1}': iamRoles[i1], + if (ipAddressType != null) 'IpAddressType': ipAddressType, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (manageMasterPassword != null) + 'ManageMasterPassword': manageMasterPassword.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (masterPasswordSecretKmsKeyId != null) + 'MasterPasswordSecretKmsKeyId': masterPasswordSecretKmsKeyId, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (ownerAccount != null) 'OwnerAccount': ownerAccount, + if (port != null) 'Port': port.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotScheduleIdentifier != null) + 'SnapshotScheduleIdentifier': snapshotScheduleIdentifier, + if (targetReservedNodeOfferingId != null) + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreFromClusterSnapshot', @@ -8419,8 +8716,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreFromClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreFromClusterSnapshotResult', ); return RestoreFromClusterSnapshotResult.fromXml($result); @@ -8497,17 +8792,19 @@ class Redshift { String? targetDatabaseName, String? targetSchemaName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['NewTableName'] = newTableName; - $request['SnapshotIdentifier'] = snapshotIdentifier; - $request['SourceDatabaseName'] = sourceDatabaseName; - $request['SourceTableName'] = sourceTableName; - enableCaseSensitiveIdentifier - ?.also((arg) => $request['EnableCaseSensitiveIdentifier'] = arg); - sourceSchemaName?.also((arg) => $request['SourceSchemaName'] = arg); - targetDatabaseName?.also((arg) => $request['TargetDatabaseName'] = arg); - targetSchemaName?.also((arg) => $request['TargetSchemaName'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'NewTableName': newTableName, + 'SnapshotIdentifier': snapshotIdentifier, + 'SourceDatabaseName': sourceDatabaseName, + 'SourceTableName': sourceTableName, + if (enableCaseSensitiveIdentifier != null) + 'EnableCaseSensitiveIdentifier': + enableCaseSensitiveIdentifier.toString(), + if (sourceSchemaName != null) 'SourceSchemaName': sourceSchemaName, + if (targetDatabaseName != null) 'TargetDatabaseName': targetDatabaseName, + if (targetSchemaName != null) 'TargetSchemaName': targetSchemaName, + }; final $result = await _protocol.send( $request, action: 'RestoreTableFromClusterSnapshot', @@ -8515,8 +8812,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreTableFromClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreTableFromClusterSnapshotResult', ); return RestoreTableFromClusterSnapshotResult.fromXml($result); @@ -8534,8 +8829,9 @@ class Redshift { Future resumeCluster({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ResumeCluster', @@ -8543,8 +8839,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResumeClusterMessage'], - shapes: shapes, resultWrapper: 'ResumeClusterResult', ); return ResumeClusterResult.fromXml($result); @@ -8593,12 +8887,14 @@ class Redshift { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeClusterSecurityGroupIngress', @@ -8606,8 +8902,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeClusterSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeClusterSecurityGroupIngressResult', ); return RevokeClusterSecurityGroupIngressResult.fromXml($result); @@ -8643,11 +8937,17 @@ class Redshift { bool? force, List? vpcIds, }) async { - final $request = {}; - account?.also((arg) => $request['Account'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - force?.also((arg) => $request['Force'] = arg); - vpcIds?.also((arg) => $request['VpcIds'] = arg); + final $request = { + if (account != null) 'Account': account, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (force != null) 'Force': force.toString(), + if (vpcIds != null) + if (vpcIds.isEmpty) + 'VpcIds': '' + else + for (var i1 = 0; i1 < vpcIds.length; i1++) + 'VpcIds.VpcIdentifier.${i1 + 1}': vpcIds[i1], + }; final $result = await _protocol.send( $request, action: 'RevokeEndpointAccess', @@ -8655,8 +8955,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'RevokeEndpointAccessResult', ); return EndpointAuthorization.fromXml($result); @@ -8698,12 +8996,13 @@ class Redshift { String? snapshotClusterIdentifier, String? snapshotIdentifier, }) async { - final $request = {}; - $request['AccountWithRestoreAccess'] = accountWithRestoreAccess; - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'AccountWithRestoreAccess': accountWithRestoreAccess, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'RevokeSnapshotAccess', @@ -8711,8 +9010,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeSnapshotAccessMessage'], - shapes: shapes, resultWrapper: 'RevokeSnapshotAccessResult', ); return RevokeSnapshotAccessResult.fromXml($result); @@ -8734,8 +9031,9 @@ class Redshift { Future rotateEncryptionKey({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RotateEncryptionKey', @@ -8743,8 +9041,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RotateEncryptionKeyMessage'], - shapes: shapes, resultWrapper: 'RotateEncryptionKeyResult', ); return RotateEncryptionKeyResult.fromXml($result); @@ -8784,13 +9080,14 @@ class Redshift { required PartnerIntegrationStatus status, String? statusMessage, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DatabaseName'] = databaseName; - $request['PartnerName'] = partnerName; - $request['Status'] = status.toValue(); - statusMessage?.also((arg) => $request['StatusMessage'] = arg); + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + 'DatabaseName': databaseName, + 'PartnerName': partnerName, + 'Status': status.toValue(), + if (statusMessage != null) 'StatusMessage': statusMessage, + }; final $result = await _protocol.send( $request, action: 'UpdatePartnerStatus', @@ -8798,8 +9095,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdatePartnerStatusInputMessage'], - shapes: shapes, resultWrapper: 'UpdatePartnerStatusResult', ); return PartnerIntegrationOutputMessage.fromXml($result); @@ -9267,6 +9562,22 @@ class AuthorizedTokenIssuer { 'TrustedTokenIssuerArn': trustedTokenIssuerArn, }; } + + Map toQueryMap() { + final authorizedAudiencesList = this.authorizedAudiencesList; + final trustedTokenIssuerArn = this.trustedTokenIssuerArn; + return { + if (authorizedAudiencesList != null) + if (authorizedAudiencesList.isEmpty) + 'AuthorizedAudiencesList': '' + else + for (var i1 = 0; i1 < authorizedAudiencesList.length; i1++) + 'AuthorizedAudiencesList.member.${i1 + 1}': + authorizedAudiencesList[i1], + if (trustedTokenIssuerArn != null) + 'TrustedTokenIssuerArn': trustedTokenIssuerArn, + }; + } } /// Describes an availability zone. @@ -11947,6 +12258,16 @@ class DeleteClusterSnapshotMessage { 'SnapshotClusterIdentifier': snapshotClusterIdentifier, }; } + + Map toQueryMap() { + final snapshotIdentifier = this.snapshotIdentifier; + final snapshotClusterIdentifier = this.snapshotClusterIdentifier; + return { + 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + }; + } } class DeleteClusterSnapshotResult { @@ -13613,6 +13934,13 @@ class LakeFormationQuery { 'Authorization': authorization.toValue(), }; } + + Map toQueryMap() { + final authorization = this.authorization; + return { + 'Authorization': authorization.toValue(), + }; + } } /// A list of scopes set up for Lake Formation integration. @@ -13637,6 +13965,15 @@ class LakeFormationScopeUnion { if (lakeFormationQuery != null) 'LakeFormationQuery': lakeFormationQuery, }; } + + Map toQueryMap() { + final lakeFormationQuery = this.lakeFormationQuery; + return { + if (lakeFormationQuery != null) + for (var e1 in lakeFormationQuery.toQueryMap().entries) + 'LakeFormationQuery.${e1.key}': e1.value, + }; + } } class ListRecommendationsResult { @@ -14281,6 +14618,22 @@ class NodeConfigurationOptionsFilter { if (values != null) 'Value': values, }; } + + Map toQueryMap() { + final name = this.name; + final operator = this.operator; + final values = this.values; + return { + if (name != null) 'Name': name.toValue(), + if (operator != null) 'Operator': operator.toValue(), + if (values != null) + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.item.${i1 + 1}': values[i1], + }; + } } enum NodeConfigurationOptionsFilterName { @@ -14592,6 +14945,30 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType.toValue(), + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } enum ParameterApplyType { @@ -14769,6 +15146,13 @@ class PauseClusterMessage { 'ClusterIdentifier': clusterIdentifier, }; } + + Map toQueryMap() { + final clusterIdentifier = this.clusterIdentifier; + return { + 'ClusterIdentifier': clusterIdentifier, + }; + } } class PauseClusterResult { @@ -15947,6 +16331,26 @@ class ResizeClusterMessage { 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, }; } + + Map toQueryMap() { + final clusterIdentifier = this.clusterIdentifier; + final classic = this.classic; + final clusterType = this.clusterType; + final nodeType = this.nodeType; + final numberOfNodes = this.numberOfNodes; + final reservedNodeId = this.reservedNodeId; + final targetReservedNodeOfferingId = this.targetReservedNodeOfferingId; + return { + 'ClusterIdentifier': clusterIdentifier, + if (classic != null) 'Classic': classic.toString(), + if (clusterType != null) 'ClusterType': clusterType, + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + if (targetReservedNodeOfferingId != null) + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + }; + } } class ResizeClusterResult { @@ -16351,6 +16755,13 @@ class ResumeClusterMessage { 'ClusterIdentifier': clusterIdentifier, }; } + + Map toQueryMap() { + final clusterIdentifier = this.clusterIdentifier; + return { + 'ClusterIdentifier': clusterIdentifier, + }; + } } class ResumeClusterResult { @@ -16644,6 +17055,19 @@ class ScheduledActionFilter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name.toValue(), + if (values.isEmpty) + 'item': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'item.item.${i1 + 1}': values[i1], + }; + } } enum ScheduledActionFilterName { @@ -16743,6 +17167,23 @@ class ScheduledActionType { if (resumeCluster != null) 'ResumeCluster': resumeCluster, }; } + + Map toQueryMap() { + final pauseCluster = this.pauseCluster; + final resizeCluster = this.resizeCluster; + final resumeCluster = this.resumeCluster; + return { + if (pauseCluster != null) + for (var e1 in pauseCluster.toQueryMap().entries) + 'PauseCluster.${e1.key}': e1.value, + if (resizeCluster != null) + for (var e1 in resizeCluster.toQueryMap().entries) + 'ResizeCluster.${e1.key}': e1.value, + if (resumeCluster != null) + for (var e1 in resumeCluster.toQueryMap().entries) + 'ResumeCluster.${e1.key}': e1.value, + }; + } } enum ScheduledActionTypeValues { @@ -16899,6 +17340,19 @@ class ServiceIntegrationsUnion { if (lakeFormation != null) 'LakeFormation': lakeFormation, }; } + + Map toQueryMap() { + final lakeFormation = this.lakeFormation; + return { + if (lakeFormation != null) + if (lakeFormation.isEmpty) + 'LakeFormation': '' + else + for (var i1 = 0; i1 < lakeFormation.length; i1++) + for (var e3 in lakeFormation[i1].toQueryMap().entries) + 'LakeFormation.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a snapshot. @@ -17563,6 +18017,15 @@ class SnapshotSortingEntity { if (sortOrder != null) 'SortOrder': sortOrder.toValue(), }; } + + Map toQueryMap() { + final attribute = this.attribute; + final sortOrder = this.sortOrder; + return { + 'Attribute': attribute.toValue(), + if (sortOrder != null) 'SortOrder': sortOrder.toValue(), + }; + } } enum SortByOrder { @@ -17950,6 +18413,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// A tag and its associated resource. diff --git a/aws_client/lib/src/generated/redshift/v2012_12_01.meta.dart b/aws_client/lib/src/generated/redshift/v2012_12_01.meta.dart deleted file mode 100644 index 4a8d03b7c..000000000 --- a/aws_client/lib/src/generated/redshift/v2012_12_01.meta.dart +++ /dev/null @@ -1,4203 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AcceptReservedNodeExchangeInputMessage": { - "type": "structure", - "members": { - "ReservedNodeId": {"shape": "String", "flattened": false}, - "TargetReservedNodeOfferingId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AcceptReservedNodeExchangeOutputMessage": { - "type": "structure", - "members": { - "ExchangedReservedNode": {"shape": "ReservedNode", "flattened": false} - }, - "flattened": false - }, - "AccountAttribute": { - "type": "structure", - "members": { - "AttributeName": {"shape": "String", "flattened": false}, - "AttributeValues": {"shape": "AttributeValueList", "flattened": false} - }, - "flattened": false - }, - "AccountAttributeList": { - "type": "structure", - "members": { - "AccountAttributes": {"shape": "AttributeList", "flattened": false} - }, - "flattened": false - }, - "AccountWithRestoreAccess": { - "type": "structure", - "members": { - "AccountId": {"shape": "String", "flattened": false}, - "AccountAlias": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AccountsWithRestoreAccessList": { - "type": "list", - "member": { - "shape": "AccountWithRestoreAccess", - "locationName": "AccountWithRestoreAccess" - }, - "flattened": false - }, - "ActionType": {"type": "string", "flattened": false}, - "AquaConfiguration": { - "type": "structure", - "members": { - "AquaStatus": {"shape": "AquaStatus", "flattened": false}, - "AquaConfigurationStatus": { - "shape": "AquaConfigurationStatus", - "flattened": false - } - }, - "flattened": false - }, - "AquaConfigurationStatus": {"type": "string", "flattened": false}, - "AquaStatus": {"type": "string", "flattened": false}, - "AssociateDataShareConsumerMessage": { - "type": "structure", - "members": { - "DataShareArn": {"shape": "String", "flattened": false}, - "AssociateEntireAccount": { - "shape": "BooleanOptional", - "flattened": false - }, - "ConsumerArn": {"shape": "String", "flattened": false}, - "ConsumerRegion": {"shape": "String", "flattened": false}, - "AllowWrites": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "AssociatedClusterList": { - "type": "list", - "member": { - "shape": "ClusterAssociatedToSchedule", - "locationName": "ClusterAssociatedToSchedule" - }, - "flattened": false - }, - "Association": { - "type": "structure", - "members": { - "CustomDomainCertificateArn": {"shape": "String", "flattened": false}, - "CustomDomainCertificateExpiryDate": { - "shape": "TStamp", - "flattened": false - }, - "CertificateAssociations": { - "shape": "CertificateAssociationList", - "flattened": false - } - }, - "flattened": false - }, - "AssociationList": { - "type": "list", - "member": {"shape": "Association", "locationName": "Association"}, - "flattened": false - }, - "AttributeList": { - "type": "list", - "member": {"shape": "AccountAttribute", "locationName": "AccountAttribute"}, - "flattened": false - }, - "AttributeNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "AttributeName"}, - "flattened": false - }, - "AttributeValueList": { - "type": "list", - "member": { - "shape": "AttributeValueTarget", - "locationName": "AttributeValueTarget" - }, - "flattened": false - }, - "AttributeValueTarget": { - "type": "structure", - "members": { - "AttributeValue": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthenticationProfile": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - }, - "AuthenticationProfileContent": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthenticationProfileList": { - "type": "list", - "member": {"shape": "AuthenticationProfile"}, - "flattened": false - }, - "AuthenticationProfileNameString": {"type": "string", "flattened": false}, - "AuthorizationStatus": {"type": "string", "flattened": false}, - "AuthorizeClusterSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "ClusterSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeClusterSecurityGroupIngressResult": { - "type": "structure", - "members": { - "ClusterSecurityGroup": { - "shape": "ClusterSecurityGroup", - "flattened": false - } - }, - "flattened": false - }, - "AuthorizeDataShareMessage": { - "type": "structure", - "members": { - "DataShareArn": {"shape": "String", "flattened": false}, - "ConsumerIdentifier": {"shape": "String", "flattened": false}, - "AllowWrites": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "AuthorizeEndpointAccessMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "Account": {"shape": "String", "flattened": false}, - "VpcIds": {"shape": "VpcIdentifierList", "flattened": false} - }, - "flattened": false - }, - "AuthorizeSnapshotAccessMessage": { - "type": "structure", - "members": { - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotArn": {"shape": "String", "flattened": false}, - "SnapshotClusterIdentifier": {"shape": "String", "flattened": false}, - "AccountWithRestoreAccess": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AuthorizeSnapshotAccessResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "AuthorizedAudienceList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "AuthorizedTokenIssuer": { - "type": "structure", - "members": { - "TrustedTokenIssuerArn": {"shape": "String", "flattened": false}, - "AuthorizedAudiencesList": { - "shape": "AuthorizedAudienceList", - "flattened": false - } - }, - "flattened": false - }, - "AuthorizedTokenIssuerList": { - "type": "list", - "member": {"shape": "AuthorizedTokenIssuer"}, - "flattened": false - }, - "AvailabilityZone": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "SupportedPlatforms": { - "shape": "SupportedPlatformsList", - "flattened": false - } - }, - "flattened": false - }, - "AvailabilityZoneList": { - "type": "list", - "member": {"shape": "AvailabilityZone", "locationName": "AvailabilityZone"}, - "flattened": false - }, - "BatchDeleteClusterSnapshotsRequest": { - "type": "structure", - "members": { - "Identifiers": { - "shape": "DeleteClusterSnapshotMessageList", - "flattened": false - } - }, - "flattened": false - }, - "BatchDeleteClusterSnapshotsResult": { - "type": "structure", - "members": { - "Resources": {"shape": "SnapshotIdentifierList", "flattened": false}, - "Errors": {"shape": "BatchSnapshotOperationErrorList", "flattened": false} - }, - "flattened": false - }, - "BatchModifyClusterSnapshotsMessage": { - "type": "structure", - "members": { - "SnapshotIdentifierList": { - "shape": "SnapshotIdentifierList", - "flattened": false - }, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "Force": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "BatchModifyClusterSnapshotsOutputMessage": { - "type": "structure", - "members": { - "Resources": {"shape": "SnapshotIdentifierList", "flattened": false}, - "Errors": {"shape": "BatchSnapshotOperationErrors", "flattened": false} - }, - "flattened": false - }, - "BatchSnapshotOperationErrorList": { - "type": "list", - "member": { - "shape": "SnapshotErrorMessage", - "locationName": "SnapshotErrorMessage" - }, - "flattened": false - }, - "BatchSnapshotOperationErrors": { - "type": "list", - "member": { - "shape": "SnapshotErrorMessage", - "locationName": "SnapshotErrorMessage" - }, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "BooleanOptional": {"type": "boolean", "flattened": false}, - "CancelResizeMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CertificateAssociation": { - "type": "structure", - "members": { - "CustomDomainName": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CertificateAssociationList": { - "type": "list", - "member": { - "shape": "CertificateAssociation", - "locationName": "CertificateAssociation" - }, - "flattened": false - }, - "Cluster": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "ClusterStatus": {"shape": "String", "flattened": false}, - "ClusterAvailabilityStatus": {"shape": "String", "flattened": false}, - "ModifyStatus": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "Endpoint": {"shape": "Endpoint", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "AutomatedSnapshotRetentionPeriod": { - "shape": "Integer", - "flattened": false - }, - "ManualSnapshotRetentionPeriod": {"shape": "Integer", "flattened": false}, - "ClusterSecurityGroups": { - "shape": "ClusterSecurityGroupMembershipList", - "flattened": false - }, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "ClusterParameterGroups": { - "shape": "ClusterParameterGroupStatusList", - "flattened": false - }, - "ClusterSubnetGroupName": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "PendingModifiedValues": { - "shape": "PendingModifiedValues", - "flattened": false - }, - "ClusterVersion": {"shape": "String", "flattened": false}, - "AllowVersionUpgrade": {"shape": "Boolean", "flattened": false}, - "NumberOfNodes": {"shape": "Integer", "flattened": false}, - "PubliclyAccessible": {"shape": "Boolean", "flattened": false}, - "Encrypted": {"shape": "Boolean", "flattened": false}, - "RestoreStatus": {"shape": "RestoreStatus", "flattened": false}, - "DataTransferProgress": { - "shape": "DataTransferProgress", - "flattened": false - }, - "HsmStatus": {"shape": "HsmStatus", "flattened": false}, - "ClusterSnapshotCopyStatus": { - "shape": "ClusterSnapshotCopyStatus", - "flattened": false - }, - "ClusterPublicKey": {"shape": "String", "flattened": false}, - "ClusterNodes": {"shape": "ClusterNodesList", "flattened": false}, - "ElasticIpStatus": {"shape": "ElasticIpStatus", "flattened": false}, - "ClusterRevisionNumber": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnhancedVpcRouting": {"shape": "Boolean", "flattened": false}, - "IamRoles": {"shape": "ClusterIamRoleList", "flattened": false}, - "PendingActions": {"shape": "PendingActionsList", "flattened": false}, - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "ElasticResizeNumberOfNodeOptions": { - "shape": "String", - "flattened": false - }, - "DeferredMaintenanceWindows": { - "shape": "DeferredMaintenanceWindowsList", - "flattened": false - }, - "SnapshotScheduleIdentifier": {"shape": "String", "flattened": false}, - "SnapshotScheduleState": {"shape": "ScheduleState", "flattened": false}, - "ExpectedNextSnapshotScheduleTime": { - "shape": "TStamp", - "flattened": false - }, - "ExpectedNextSnapshotScheduleTimeStatus": { - "shape": "String", - "flattened": false - }, - "NextMaintenanceWindowStartTime": {"shape": "TStamp", "flattened": false}, - "ResizeInfo": {"shape": "ResizeInfo", "flattened": false}, - "AvailabilityZoneRelocationStatus": { - "shape": "String", - "flattened": false - }, - "ClusterNamespaceArn": {"shape": "String", "flattened": false}, - "TotalStorageCapacityInMegaBytes": { - "shape": "LongOptional", - "flattened": false - }, - "AquaConfiguration": {"shape": "AquaConfiguration", "flattened": false}, - "DefaultIamRoleArn": {"shape": "String", "flattened": false}, - "ReservedNodeExchangeStatus": { - "shape": "ReservedNodeExchangeStatus", - "flattened": false - }, - "CustomDomainName": {"shape": "String", "flattened": false}, - "CustomDomainCertificateArn": {"shape": "String", "flattened": false}, - "CustomDomainCertificateExpiryDate": { - "shape": "TStamp", - "flattened": false - }, - "MasterPasswordSecretArn": {"shape": "String", "flattened": false}, - "MasterPasswordSecretKmsKeyId": {"shape": "String", "flattened": false}, - "IpAddressType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "String", "flattened": false}, - "MultiAZSecondary": {"shape": "SecondaryClusterInfo", "flattened": false} - }, - "flattened": false - }, - "ClusterAssociatedToSchedule": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ScheduleAssociationState": {"shape": "ScheduleState", "flattened": false} - }, - "flattened": false - }, - "ClusterCredentials": { - "type": "structure", - "members": { - "DbUser": {"shape": "String", "flattened": false}, - "DbPassword": {"shape": "SensitiveString", "flattened": false}, - "Expiration": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "ClusterDbRevision": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "CurrentDatabaseRevision": {"shape": "String", "flattened": false}, - "DatabaseRevisionReleaseDate": {"shape": "TStamp", "flattened": false}, - "RevisionTargets": {"shape": "RevisionTargetsList", "flattened": false} - }, - "flattened": false - }, - "ClusterDbRevisionsList": { - "type": "list", - "member": { - "shape": "ClusterDbRevision", - "locationName": "ClusterDbRevision" - }, - "flattened": false - }, - "ClusterDbRevisionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ClusterDbRevisions": { - "shape": "ClusterDbRevisionsList", - "flattened": false - } - }, - "flattened": false - }, - "ClusterExtendedCredentials": { - "type": "structure", - "members": { - "DbUser": {"shape": "String", "flattened": false}, - "DbPassword": {"shape": "SensitiveString", "flattened": false}, - "Expiration": {"shape": "TStamp", "flattened": false}, - "NextRefreshTime": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "ClusterIamRole": { - "type": "structure", - "members": { - "IamRoleArn": {"shape": "String", "flattened": false}, - "ApplyStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterIamRoleList": { - "type": "list", - "member": {"shape": "ClusterIamRole", "locationName": "ClusterIamRole"}, - "flattened": false - }, - "ClusterList": { - "type": "list", - "member": {"shape": "Cluster", "locationName": "Cluster"}, - "flattened": false - }, - "ClusterNode": { - "type": "structure", - "members": { - "NodeRole": {"shape": "String", "flattened": false}, - "PrivateIPAddress": {"shape": "String", "flattened": false}, - "PublicIPAddress": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterNodesList": { - "type": "list", - "member": {"shape": "ClusterNode"}, - "flattened": false - }, - "ClusterParameterGroup": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ClusterParameterGroupDetails": { - "type": "structure", - "members": { - "Parameters": {"shape": "ParametersList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterParameterGroupNameMessage": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterGroupStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterParameterGroupStatus": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false}, - "ClusterParameterStatusList": { - "shape": "ClusterParameterStatusList", - "flattened": false - } - }, - "flattened": false - }, - "ClusterParameterGroupStatusList": { - "type": "list", - "member": { - "shape": "ClusterParameterGroupStatus", - "locationName": "ClusterParameterGroup" - }, - "flattened": false - }, - "ClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ParameterGroups": {"shape": "ParameterGroupList", "flattened": false} - }, - "flattened": false - }, - "ClusterParameterStatus": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterApplyStatus": {"shape": "String", "flattened": false}, - "ParameterApplyErrorDescription": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterParameterStatusList": { - "type": "list", - "member": {"shape": "ClusterParameterStatus"}, - "flattened": false - }, - "ClusterSecurityGroup": { - "type": "structure", - "members": { - "ClusterSecurityGroupName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "EC2SecurityGroups": { - "shape": "EC2SecurityGroupList", - "flattened": false - }, - "IPRanges": {"shape": "IPRangeList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ClusterSecurityGroupMembership": { - "type": "structure", - "members": { - "ClusterSecurityGroupName": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "ClusterSecurityGroupMembership", - "locationName": "ClusterSecurityGroup" - }, - "flattened": false - }, - "ClusterSecurityGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ClusterSecurityGroups": { - "shape": "ClusterSecurityGroups", - "flattened": false - } - }, - "flattened": false - }, - "ClusterSecurityGroupNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "ClusterSecurityGroupName"}, - "flattened": false - }, - "ClusterSecurityGroups": { - "type": "list", - "member": { - "shape": "ClusterSecurityGroup", - "locationName": "ClusterSecurityGroup" - }, - "flattened": false - }, - "ClusterSnapshotCopyStatus": { - "type": "structure", - "members": { - "DestinationRegion": {"shape": "String", "flattened": false}, - "RetentionPeriod": {"shape": "Long", "flattened": false}, - "ManualSnapshotRetentionPeriod": {"shape": "Integer", "flattened": false}, - "SnapshotCopyGrantName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterSubnetGroup": { - "type": "structure", - "members": { - "ClusterSubnetGroupName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "SubnetGroupStatus": {"shape": "String", "flattened": false}, - "Subnets": {"shape": "SubnetList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "SupportedClusterIpAddressTypes": { - "shape": "ValueStringList", - "flattened": false - } - }, - "flattened": false - }, - "ClusterSubnetGroupMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ClusterSubnetGroups": { - "shape": "ClusterSubnetGroups", - "flattened": false - } - }, - "flattened": false - }, - "ClusterSubnetGroups": { - "type": "list", - "member": { - "shape": "ClusterSubnetGroup", - "locationName": "ClusterSubnetGroup" - }, - "flattened": false - }, - "ClusterVersion": { - "type": "structure", - "members": { - "ClusterVersion": {"shape": "String", "flattened": false}, - "ClusterParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ClusterVersionList": { - "type": "list", - "member": {"shape": "ClusterVersion", "locationName": "ClusterVersion"}, - "flattened": false - }, - "ClusterVersionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ClusterVersions": {"shape": "ClusterVersionList", "flattened": false} - }, - "flattened": false - }, - "ClustersMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Clusters": {"shape": "ClusterList", "flattened": false} - }, - "flattened": false - }, - "CopyClusterSnapshotMessage": { - "type": "structure", - "members": { - "SourceSnapshotIdentifier": {"shape": "String", "flattened": false}, - "SourceSnapshotClusterIdentifier": { - "shape": "String", - "flattened": false - }, - "TargetSnapshotIdentifier": {"shape": "String", "flattened": false}, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - } - }, - "flattened": false - }, - "CopyClusterSnapshotResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "CreateAuthenticationProfileMessage": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - }, - "AuthenticationProfileContent": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateAuthenticationProfileResult": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - }, - "AuthenticationProfileContent": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateClusterMessage": { - "type": "structure", - "members": { - "DBName": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ClusterType": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "MasterUserPassword": {"shape": "SensitiveString", "flattened": false}, - "ClusterSecurityGroups": { - "shape": "ClusterSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "ClusterSubnetGroupName": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "ClusterParameterGroupName": {"shape": "String", "flattened": false}, - "AutomatedSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "ClusterVersion": {"shape": "String", "flattened": false}, - "AllowVersionUpgrade": {"shape": "BooleanOptional", "flattened": false}, - "NumberOfNodes": {"shape": "IntegerOptional", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "Encrypted": {"shape": "BooleanOptional", "flattened": false}, - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false}, - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false}, - "ElasticIp": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EnhancedVpcRouting": {"shape": "BooleanOptional", "flattened": false}, - "AdditionalInfo": {"shape": "String", "flattened": false}, - "IamRoles": {"shape": "IamRoleArnList", "flattened": false}, - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "SnapshotScheduleIdentifier": {"shape": "String", "flattened": false}, - "AvailabilityZoneRelocation": { - "shape": "BooleanOptional", - "flattened": false - }, - "AquaConfigurationStatus": { - "shape": "AquaConfigurationStatus", - "flattened": false - }, - "DefaultIamRoleArn": {"shape": "String", "flattened": false}, - "LoadSampleData": {"shape": "String", "flattened": false}, - "ManageMasterPassword": {"shape": "BooleanOptional", "flattened": false}, - "MasterPasswordSecretKmsKeyId": {"shape": "String", "flattened": false}, - "IpAddressType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false}, - "RedshiftIdcApplicationArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateClusterParameterGroupMessage": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "ParameterGroupFamily": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateClusterParameterGroupResult": { - "type": "structure", - "members": { - "ClusterParameterGroup": { - "shape": "ClusterParameterGroup", - "flattened": false - } - }, - "flattened": false - }, - "CreateClusterResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "CreateClusterSecurityGroupMessage": { - "type": "structure", - "members": { - "ClusterSecurityGroupName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateClusterSecurityGroupResult": { - "type": "structure", - "members": { - "ClusterSecurityGroup": { - "shape": "ClusterSecurityGroup", - "flattened": false - } - }, - "flattened": false - }, - "CreateClusterSnapshotMessage": { - "type": "structure", - "members": { - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateClusterSnapshotResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "CreateClusterSubnetGroupMessage": { - "type": "structure", - "members": { - "ClusterSubnetGroupName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateClusterSubnetGroupResult": { - "type": "structure", - "members": { - "ClusterSubnetGroup": {"shape": "ClusterSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "CreateCustomDomainAssociationMessage": { - "type": "structure", - "members": { - "CustomDomainName": { - "shape": "CustomDomainNameString", - "flattened": false - }, - "CustomDomainCertificateArn": { - "shape": "CustomDomainCertificateArnString", - "flattened": false - }, - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateCustomDomainAssociationResult": { - "type": "structure", - "members": { - "CustomDomainName": { - "shape": "CustomDomainNameString", - "flattened": false - }, - "CustomDomainCertificateArn": { - "shape": "CustomDomainCertificateArnString", - "flattened": false - }, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "CustomDomainCertExpiryTime": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreateEndpointAccessMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ResourceOwner": {"shape": "String", "flattened": false}, - "EndpointName": {"shape": "String", "flattened": false}, - "SubnetGroupName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - } - }, - "flattened": false - }, - "CreateEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Severity": {"shape": "String", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "CreateHsmClientCertificateMessage": { - "type": "structure", - "members": { - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateHsmClientCertificateResult": { - "type": "structure", - "members": { - "HsmClientCertificate": { - "shape": "HsmClientCertificate", - "flattened": false - } - }, - "flattened": false - }, - "CreateHsmConfigurationMessage": { - "type": "structure", - "members": { - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "HsmIpAddress": {"shape": "String", "flattened": false}, - "HsmPartitionName": {"shape": "String", "flattened": false}, - "HsmPartitionPassword": {"shape": "String", "flattened": false}, - "HsmServerPublicCertificate": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateHsmConfigurationResult": { - "type": "structure", - "members": { - "HsmConfiguration": {"shape": "HsmConfiguration", "flattened": false} - }, - "flattened": false - }, - "CreateRedshiftIdcApplicationMessage": { - "type": "structure", - "members": { - "IdcInstanceArn": {"shape": "String", "flattened": false}, - "RedshiftIdcApplicationName": { - "shape": "RedshiftIdcApplicationName", - "flattened": false - }, - "IdentityNamespace": { - "shape": "IdentityNamespaceString", - "flattened": false - }, - "IdcDisplayName": {"shape": "IdcDisplayNameString", "flattened": false}, - "IamRoleArn": {"shape": "String", "flattened": false}, - "AuthorizedTokenIssuerList": { - "shape": "AuthorizedTokenIssuerList", - "flattened": false - }, - "ServiceIntegrations": { - "shape": "ServiceIntegrationList", - "flattened": false - } - }, - "flattened": false - }, - "CreateRedshiftIdcApplicationResult": { - "type": "structure", - "members": { - "RedshiftIdcApplication": { - "shape": "RedshiftIdcApplication", - "flattened": false - } - }, - "flattened": false - }, - "CreateScheduledActionMessage": { - "type": "structure", - "members": { - "ScheduledActionName": {"shape": "String", "flattened": false}, - "TargetAction": {"shape": "ScheduledActionType", "flattened": false}, - "Schedule": {"shape": "String", "flattened": false}, - "IamRole": {"shape": "String", "flattened": false}, - "ScheduledActionDescription": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Enable": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "CreateSnapshotCopyGrantMessage": { - "type": "structure", - "members": { - "SnapshotCopyGrantName": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateSnapshotCopyGrantResult": { - "type": "structure", - "members": { - "SnapshotCopyGrant": {"shape": "SnapshotCopyGrant", "flattened": false} - }, - "flattened": false - }, - "CreateSnapshotScheduleMessage": { - "type": "structure", - "members": { - "ScheduleDefinitions": { - "shape": "ScheduleDefinitionList", - "flattened": false - }, - "ScheduleIdentifier": {"shape": "String", "flattened": false}, - "ScheduleDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "DryRun": {"shape": "BooleanOptional", "flattened": false}, - "NextInvocations": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "CreateTagsMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CreateUsageLimitMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "FeatureType": {"shape": "UsageLimitFeatureType", "flattened": false}, - "LimitType": {"shape": "UsageLimitLimitType", "flattened": false}, - "Amount": {"shape": "Long", "flattened": false}, - "Period": {"shape": "UsageLimitPeriod", "flattened": false}, - "BreachAction": {"shape": "UsageLimitBreachAction", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "CustomDomainAssociationsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Associations": {"shape": "AssociationList", "flattened": false} - }, - "flattened": false - }, - "CustomDomainCertificateArnString": {"type": "string", "flattened": false}, - "CustomDomainNameString": {"type": "string", "flattened": false}, - "CustomerStorageMessage": { - "type": "structure", - "members": { - "TotalBackupSizeInMegaBytes": {"shape": "Double", "flattened": false}, - "TotalProvisionedStorageInMegaBytes": { - "shape": "Double", - "flattened": false - } - }, - "flattened": false - }, - "DataShare": { - "type": "structure", - "members": { - "DataShareArn": {"shape": "String", "flattened": false}, - "ProducerArn": {"shape": "String", "flattened": false}, - "AllowPubliclyAccessibleConsumers": { - "shape": "Boolean", - "flattened": false - }, - "DataShareAssociations": { - "shape": "DataShareAssociationList", - "flattened": false - }, - "ManagedBy": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DataShareAssociation": { - "type": "structure", - "members": { - "ConsumerIdentifier": {"shape": "String", "flattened": false}, - "Status": {"shape": "DataShareStatus", "flattened": false}, - "ConsumerRegion": {"shape": "String", "flattened": false}, - "CreatedDate": {"shape": "TStamp", "flattened": false}, - "StatusChangeDate": {"shape": "TStamp", "flattened": false}, - "ProducerAllowedWrites": {"shape": "BooleanOptional", "flattened": false}, - "ConsumerAcceptedWrites": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "DataShareAssociationList": { - "type": "list", - "member": {"shape": "DataShareAssociation"}, - "flattened": false - }, - "DataShareList": { - "type": "list", - "member": {"shape": "DataShare"}, - "flattened": false - }, - "DataShareStatus": {"type": "string", "flattened": false}, - "DataShareStatusForConsumer": {"type": "string", "flattened": false}, - "DataShareStatusForProducer": {"type": "string", "flattened": false}, - "DataTransferProgress": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CurrentRateInMegaBytesPerSecond": { - "shape": "DoubleOptional", - "flattened": false - }, - "TotalDataInMegaBytes": {"shape": "Long", "flattened": false}, - "DataTransferredInMegaBytes": {"shape": "Long", "flattened": false}, - "EstimatedTimeToCompletionInSeconds": { - "shape": "LongOptional", - "flattened": false - }, - "ElapsedTimeInSeconds": {"shape": "LongOptional", "flattened": false} - }, - "flattened": false - }, - "DbGroupList": { - "type": "list", - "member": {"shape": "String", "locationName": "DbGroup"}, - "flattened": false - }, - "DeauthorizeDataShareMessage": { - "type": "structure", - "members": { - "DataShareArn": {"shape": "String", "flattened": false}, - "ConsumerIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DefaultClusterParameters": { - "type": "structure", - "members": { - "ParameterGroupFamily": {"shape": "String", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "DeferredMaintenanceWindow": { - "type": "structure", - "members": { - "DeferMaintenanceIdentifier": {"shape": "String", "flattened": false}, - "DeferMaintenanceStartTime": {"shape": "TStamp", "flattened": false}, - "DeferMaintenanceEndTime": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "DeferredMaintenanceWindowsList": { - "type": "list", - "member": { - "shape": "DeferredMaintenanceWindow", - "locationName": "DeferredMaintenanceWindow" - }, - "flattened": false - }, - "DeleteAuthenticationProfileMessage": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - } - }, - "flattened": false - }, - "DeleteAuthenticationProfileResult": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - } - }, - "flattened": false - }, - "DeleteClusterMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SkipFinalClusterSnapshot": {"shape": "Boolean", "flattened": false}, - "FinalClusterSnapshotIdentifier": {"shape": "String", "flattened": false}, - "FinalClusterSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - } - }, - "flattened": false - }, - "DeleteClusterParameterGroupMessage": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteClusterResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "DeleteClusterSecurityGroupMessage": { - "type": "structure", - "members": { - "ClusterSecurityGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteClusterSnapshotMessage": { - "type": "structure", - "members": { - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteClusterSnapshotMessageList": { - "type": "list", - "member": { - "shape": "DeleteClusterSnapshotMessage", - "locationName": "DeleteClusterSnapshotMessage" - }, - "flattened": false - }, - "DeleteClusterSnapshotResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "DeleteClusterSubnetGroupMessage": { - "type": "structure", - "members": { - "ClusterSubnetGroupName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteCustomDomainAssociationMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "CustomDomainName": { - "shape": "CustomDomainNameString", - "flattened": false - } - }, - "flattened": false - }, - "DeleteEndpointAccessMessage": { - "type": "structure", - "members": { - "EndpointName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteHsmClientCertificateMessage": { - "type": "structure", - "members": { - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteHsmConfigurationMessage": { - "type": "structure", - "members": { - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteRedshiftIdcApplicationMessage": { - "type": "structure", - "members": { - "RedshiftIdcApplicationArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteResourcePolicyMessage": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteScheduledActionMessage": { - "type": "structure", - "members": { - "ScheduledActionName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteSnapshotCopyGrantMessage": { - "type": "structure", - "members": { - "SnapshotCopyGrantName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteSnapshotScheduleMessage": { - "type": "structure", - "members": { - "ScheduleIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteTagsMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false} - }, - "flattened": false - }, - "DeleteUsageLimitMessage": { - "type": "structure", - "members": { - "UsageLimitId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeAccountAttributesMessage": { - "type": "structure", - "members": { - "AttributeNames": {"shape": "AttributeNameList", "flattened": false} - }, - "flattened": false - }, - "DescribeAuthenticationProfilesMessage": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - } - }, - "flattened": false - }, - "DescribeAuthenticationProfilesResult": { - "type": "structure", - "members": { - "AuthenticationProfiles": { - "shape": "AuthenticationProfileList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeClusterDbRevisionsMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeClusterParameterGroupsMessage": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeClusterParametersMessage": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeClusterSecurityGroupsMessage": { - "type": "structure", - "members": { - "ClusterSecurityGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeClusterSnapshotsMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotArn": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "OwnerAccount": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false}, - "ClusterExists": {"shape": "BooleanOptional", "flattened": false}, - "SortingEntities": { - "shape": "SnapshotSortingEntityList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeClusterSubnetGroupsMessage": { - "type": "structure", - "members": { - "ClusterSubnetGroupName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeClusterTracksMessage": { - "type": "structure", - "members": { - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeClusterVersionsMessage": { - "type": "structure", - "members": { - "ClusterVersion": {"shape": "String", "flattened": false}, - "ClusterParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeClustersMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeCustomDomainAssociationsMessage": { - "type": "structure", - "members": { - "CustomDomainName": { - "shape": "CustomDomainNameString", - "flattened": false - }, - "CustomDomainCertificateArn": { - "shape": "CustomDomainCertificateArnString", - "flattened": false - }, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDataSharesForConsumerMessage": { - "type": "structure", - "members": { - "ConsumerArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "DataShareStatusForConsumer", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDataSharesForConsumerResult": { - "type": "structure", - "members": { - "DataShares": {"shape": "DataShareList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDataSharesForProducerMessage": { - "type": "structure", - "members": { - "ProducerArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "DataShareStatusForProducer", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDataSharesForProducerResult": { - "type": "structure", - "members": { - "DataShares": {"shape": "DataShareList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDataSharesMessage": { - "type": "structure", - "members": { - "DataShareArn": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDataSharesResult": { - "type": "structure", - "members": { - "DataShares": {"shape": "DataShareList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDefaultClusterParametersMessage": { - "type": "structure", - "members": { - "ParameterGroupFamily": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeDefaultClusterParametersResult": { - "type": "structure", - "members": { - "DefaultClusterParameters": { - "shape": "DefaultClusterParameters", - "flattened": false - } - }, - "flattened": false - }, - "DescribeEndpointAccessMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ResourceOwner": {"shape": "String", "flattened": false}, - "EndpointName": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEndpointAuthorizationMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "Account": {"shape": "String", "flattened": false}, - "Grantee": {"shape": "BooleanOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventCategoriesMessage": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeEventSubscriptionsMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeEventsMessage": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "IntegerOptional", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeHsmClientCertificatesMessage": { - "type": "structure", - "members": { - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeHsmConfigurationsMessage": { - "type": "structure", - "members": { - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeInboundIntegrationsMessage": { - "type": "structure", - "members": { - "IntegrationArn": {"shape": "String", "flattened": false}, - "TargetArn": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeLoggingStatusMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeNodeConfigurationOptionsMessage": { - "type": "structure", - "members": { - "ActionType": {"shape": "ActionType", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotArn": {"shape": "String", "flattened": false}, - "OwnerAccount": {"shape": "String", "flattened": false}, - "Filters": { - "shape": "NodeConfigurationOptionsFilterList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeOrderableClusterOptionsMessage": { - "type": "structure", - "members": { - "ClusterVersion": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribePartnersInputMessage": { - "type": "structure", - "members": { - "AccountId": {"shape": "PartnerIntegrationAccountId", "flattened": false}, - "ClusterIdentifier": { - "shape": "PartnerIntegrationClusterIdentifier", - "flattened": false - }, - "DatabaseName": { - "shape": "PartnerIntegrationDatabaseName", - "flattened": false - }, - "PartnerName": { - "shape": "PartnerIntegrationPartnerName", - "flattened": false - } - }, - "flattened": false - }, - "DescribePartnersOutputMessage": { - "type": "structure", - "members": { - "PartnerIntegrationInfoList": { - "shape": "PartnerIntegrationInfoList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeRedshiftIdcApplicationsMessage": { - "type": "structure", - "members": { - "RedshiftIdcApplicationArn": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeRedshiftIdcApplicationsResult": { - "type": "structure", - "members": { - "RedshiftIdcApplications": { - "shape": "RedshiftIdcApplicationList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedNodeExchangeStatusInputMessage": { - "type": "structure", - "members": { - "ReservedNodeId": {"shape": "String", "flattened": false}, - "ReservedNodeExchangeRequestId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedNodeExchangeStatusOutputMessage": { - "type": "structure", - "members": { - "ReservedNodeExchangeStatusDetails": { - "shape": "ReservedNodeExchangeStatusList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedNodeOfferingsMessage": { - "type": "structure", - "members": { - "ReservedNodeOfferingId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeReservedNodesMessage": { - "type": "structure", - "members": { - "ReservedNodeId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeResizeMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeScheduledActionsMessage": { - "type": "structure", - "members": { - "ScheduledActionName": {"shape": "String", "flattened": false}, - "TargetActionType": { - "shape": "ScheduledActionTypeValues", - "flattened": false - }, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Active": {"shape": "BooleanOptional", "flattened": false}, - "Filters": {"shape": "ScheduledActionFilterList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeSnapshotCopyGrantsMessage": { - "type": "structure", - "members": { - "SnapshotCopyGrantName": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeSnapshotSchedulesMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ScheduleIdentifier": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "DescribeSnapshotSchedulesOutputMessage": { - "type": "structure", - "members": { - "SnapshotSchedules": { - "shape": "SnapshotScheduleList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeTableRestoreStatusMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "TableRestoreRequestId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DescribeTagsMessage": { - "type": "structure", - "members": { - "ResourceName": {"shape": "String", "flattened": false}, - "ResourceType": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DescribeUsageLimitsMessage": { - "type": "structure", - "members": { - "UsageLimitId": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "FeatureType": {"shape": "UsageLimitFeatureType", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false}, - "TagValues": {"shape": "TagValueList", "flattened": false} - }, - "flattened": false - }, - "DisableLoggingMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DisableSnapshotCopyMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DisableSnapshotCopyResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "DisassociateDataShareConsumerMessage": { - "type": "structure", - "members": { - "DataShareArn": {"shape": "String", "flattened": false}, - "DisassociateEntireAccount": { - "shape": "BooleanOptional", - "flattened": false - }, - "ConsumerArn": {"shape": "String", "flattened": false}, - "ConsumerRegion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Double": {"type": "double", "flattened": false}, - "DoubleOptional": {"type": "double", "flattened": false}, - "EC2SecurityGroup": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "EC2SecurityGroupList": { - "type": "list", - "member": {"shape": "EC2SecurityGroup", "locationName": "EC2SecurityGroup"}, - "flattened": false - }, - "ElasticIpStatus": { - "type": "structure", - "members": { - "ElasticIp": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EligibleTracksToUpdateList": { - "type": "list", - "member": {"shape": "UpdateTarget", "locationName": "UpdateTarget"}, - "flattened": false - }, - "EnableLoggingMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "BucketName": {"shape": "String", "flattened": false}, - "S3KeyPrefix": {"shape": "String", "flattened": false}, - "LogDestinationType": {"shape": "LogDestinationType", "flattened": false}, - "LogExports": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "EnableSnapshotCopyMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "DestinationRegion": {"shape": "String", "flattened": false}, - "RetentionPeriod": {"shape": "IntegerOptional", "flattened": false}, - "SnapshotCopyGrantName": {"shape": "String", "flattened": false}, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - } - }, - "flattened": false - }, - "EnableSnapshotCopyResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "Address": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "VpcEndpoints": {"shape": "VpcEndpointsList", "flattened": false} - }, - "flattened": false - }, - "EndpointAccess": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ResourceOwner": {"shape": "String", "flattened": false}, - "SubnetGroupName": {"shape": "String", "flattened": false}, - "EndpointStatus": {"shape": "String", "flattened": false}, - "EndpointName": {"shape": "String", "flattened": false}, - "EndpointCreateTime": {"shape": "TStamp", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "Address": {"shape": "String", "flattened": false}, - "VpcSecurityGroups": { - "shape": "VpcSecurityGroupMembershipList", - "flattened": false - }, - "VpcEndpoint": {"shape": "VpcEndpoint", "flattened": false} - }, - "flattened": false - }, - "EndpointAccessList": { - "type": "structure", - "members": { - "EndpointAccessList": {"shape": "EndpointAccesses", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EndpointAccesses": { - "type": "list", - "member": {"shape": "EndpointAccess"}, - "flattened": false - }, - "EndpointAuthorization": { - "type": "structure", - "members": { - "Grantor": {"shape": "String", "flattened": false}, - "Grantee": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "AuthorizeTime": {"shape": "TStamp", "flattened": false}, - "ClusterStatus": {"shape": "String", "flattened": false}, - "Status": {"shape": "AuthorizationStatus", "flattened": false}, - "AllowedAllVPCs": {"shape": "Boolean", "flattened": false}, - "AllowedVPCs": {"shape": "VpcIdentifierList", "flattened": false}, - "EndpointCount": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "EndpointAuthorizationList": { - "type": "structure", - "members": { - "EndpointAuthorizationList": { - "shape": "EndpointAuthorizations", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EndpointAuthorizations": { - "type": "list", - "member": {"shape": "EndpointAuthorization"}, - "flattened": false - }, - "Event": { - "type": "structure", - "members": { - "SourceIdentifier": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "SourceType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Severity": {"shape": "String", "flattened": false}, - "Date": {"shape": "TStamp", "flattened": false}, - "EventId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesList": { - "type": "list", - "member": {"shape": "String", "locationName": "EventCategory"}, - "flattened": false - }, - "EventCategoriesMap": { - "type": "structure", - "members": { - "SourceType": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventInfoMapList", "flattened": false} - }, - "flattened": false - }, - "EventCategoriesMapList": { - "type": "list", - "member": { - "shape": "EventCategoriesMap", - "locationName": "EventCategoriesMap" - }, - "flattened": false - }, - "EventCategoriesMessage": { - "type": "structure", - "members": { - "EventCategoriesMapList": { - "shape": "EventCategoriesMapList", - "flattened": false - } - }, - "flattened": false - }, - "EventInfoMap": { - "type": "structure", - "members": { - "EventId": {"shape": "String", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "EventDescription": {"shape": "String", "flattened": false}, - "Severity": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "EventInfoMapList": { - "type": "list", - "member": {"shape": "EventInfoMap", "locationName": "EventInfoMap"}, - "flattened": false - }, - "EventList": { - "type": "list", - "member": {"shape": "Event", "locationName": "Event"}, - "flattened": false - }, - "EventSubscription": { - "type": "structure", - "members": { - "CustomerAwsId": {"shape": "String", "flattened": false}, - "CustSubscriptionId": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "SubscriptionCreationTime": {"shape": "TStamp", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIdsList": {"shape": "SourceIdsList", "flattened": false}, - "EventCategoriesList": { - "shape": "EventCategoriesList", - "flattened": false - }, - "Severity": {"shape": "String", "flattened": false}, - "Enabled": {"shape": "Boolean", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "EventSubscriptionsList": { - "type": "list", - "member": { - "shape": "EventSubscription", - "locationName": "EventSubscription" - }, - "flattened": false - }, - "EventSubscriptionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "EventSubscriptionsList": { - "shape": "EventSubscriptionsList", - "flattened": false - } - }, - "flattened": false - }, - "EventsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Events": {"shape": "EventList", "flattened": false} - }, - "flattened": false - }, - "FailoverPrimaryComputeInputMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "FailoverPrimaryComputeResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "GetClusterCredentialsMessage": { - "type": "structure", - "members": { - "DbUser": {"shape": "String", "flattened": false}, - "DbName": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "DurationSeconds": {"shape": "IntegerOptional", "flattened": false}, - "AutoCreate": {"shape": "BooleanOptional", "flattened": false}, - "DbGroups": {"shape": "DbGroupList", "flattened": false}, - "CustomDomainName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GetClusterCredentialsWithIAMMessage": { - "type": "structure", - "members": { - "DbName": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "DurationSeconds": {"shape": "IntegerOptional", "flattened": false}, - "CustomDomainName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GetReservedNodeExchangeConfigurationOptionsInputMessage": { - "type": "structure", - "members": { - "ActionType": { - "shape": "ReservedNodeExchangeActionType", - "flattened": false - }, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GetReservedNodeExchangeConfigurationOptionsOutputMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedNodeConfigurationOptionList": { - "shape": "ReservedNodeConfigurationOptionList", - "flattened": false - } - }, - "flattened": false - }, - "GetReservedNodeExchangeOfferingsInputMessage": { - "type": "structure", - "members": { - "ReservedNodeId": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GetReservedNodeExchangeOfferingsOutputMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedNodeOfferings": { - "shape": "ReservedNodeOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "GetResourcePolicyMessage": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GetResourcePolicyResult": { - "type": "structure", - "members": { - "ResourcePolicy": {"shape": "ResourcePolicy", "flattened": false} - }, - "flattened": false - }, - "HsmClientCertificate": { - "type": "structure", - "members": { - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false}, - "HsmClientCertificatePublicKey": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "HsmClientCertificateList": { - "type": "list", - "member": { - "shape": "HsmClientCertificate", - "locationName": "HsmClientCertificate" - }, - "flattened": false - }, - "HsmClientCertificateMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "HsmClientCertificates": { - "shape": "HsmClientCertificateList", - "flattened": false - } - }, - "flattened": false - }, - "HsmConfiguration": { - "type": "structure", - "members": { - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "HsmIpAddress": {"shape": "String", "flattened": false}, - "HsmPartitionName": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "HsmConfigurationList": { - "type": "list", - "member": {"shape": "HsmConfiguration", "locationName": "HsmConfiguration"}, - "flattened": false - }, - "HsmConfigurationMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "HsmConfigurations": {"shape": "HsmConfigurationList", "flattened": false} - }, - "flattened": false - }, - "HsmStatus": { - "type": "structure", - "members": { - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false}, - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IPRange": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "IPRangeList": { - "type": "list", - "member": {"shape": "IPRange", "locationName": "IPRange"}, - "flattened": false - }, - "IamRoleArnList": { - "type": "list", - "member": {"shape": "String", "locationName": "IamRoleArn"}, - "flattened": false - }, - "IdcDisplayNameString": {"type": "string", "flattened": false}, - "IdentityNamespaceString": {"type": "string", "flattened": false}, - "ImpactRankingType": {"type": "string", "flattened": false}, - "ImportTablesCompleted": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ImportTablesInProgress": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ImportTablesNotStarted": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "InboundIntegration": { - "type": "structure", - "members": { - "IntegrationArn": {"shape": "String", "flattened": false}, - "SourceArn": {"shape": "String", "flattened": false}, - "TargetArn": {"shape": "String", "flattened": false}, - "Status": {"shape": "ZeroETLIntegrationStatus", "flattened": false}, - "Errors": {"shape": "IntegrationErrorList", "flattened": false}, - "CreateTime": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "InboundIntegrationList": { - "type": "list", - "member": { - "shape": "InboundIntegration", - "locationName": "InboundIntegration" - }, - "flattened": false - }, - "InboundIntegrationsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "InboundIntegrations": { - "shape": "InboundIntegrationList", - "flattened": false - } - }, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "IntegerOptional": {"type": "integer", "flattened": false}, - "IntegrationError": { - "type": "structure", - "members": { - "ErrorCode": {"shape": "String", "flattened": false}, - "ErrorMessage": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "IntegrationErrorList": { - "type": "list", - "member": {"shape": "IntegrationError", "locationName": "IntegrationError"}, - "flattened": false - }, - "LakeFormationQuery": { - "type": "structure", - "members": { - "Authorization": {"shape": "ServiceAuthorization", "flattened": false} - }, - "flattened": false - }, - "LakeFormationScopeUnion": { - "type": "structure", - "members": { - "LakeFormationQuery": {"shape": "LakeFormationQuery", "flattened": false} - }, - "flattened": false - }, - "LakeFormationServiceIntegrations": { - "type": "list", - "member": {"shape": "LakeFormationScopeUnion"}, - "flattened": false - }, - "ListRecommendationsMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "NamespaceArn": {"shape": "String", "flattened": false}, - "MaxRecords": {"shape": "IntegerOptional", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListRecommendationsResult": { - "type": "structure", - "members": { - "Recommendations": {"shape": "RecommendationList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "LogDestinationType": {"type": "string", "flattened": false}, - "LogTypeList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "LoggingStatus": { - "type": "structure", - "members": { - "LoggingEnabled": {"shape": "Boolean", "flattened": false}, - "BucketName": {"shape": "String", "flattened": false}, - "S3KeyPrefix": {"shape": "String", "flattened": false}, - "LastSuccessfulDeliveryTime": {"shape": "TStamp", "flattened": false}, - "LastFailureTime": {"shape": "TStamp", "flattened": false}, - "LastFailureMessage": {"shape": "String", "flattened": false}, - "LogDestinationType": {"shape": "LogDestinationType", "flattened": false}, - "LogExports": {"shape": "LogTypeList", "flattened": false} - }, - "flattened": false - }, - "Long": {"type": "long", "flattened": false}, - "LongOptional": {"type": "long", "flattened": false}, - "MaintenanceTrack": { - "type": "structure", - "members": { - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "DatabaseVersion": {"shape": "String", "flattened": false}, - "UpdateTargets": { - "shape": "EligibleTracksToUpdateList", - "flattened": false - } - }, - "flattened": false - }, - "Mode": {"type": "string", "flattened": false}, - "ModifyAquaInputMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "AquaConfigurationStatus": { - "shape": "AquaConfigurationStatus", - "flattened": false - } - }, - "flattened": false - }, - "ModifyAquaOutputMessage": { - "type": "structure", - "members": { - "AquaConfiguration": {"shape": "AquaConfiguration", "flattened": false} - }, - "flattened": false - }, - "ModifyAuthenticationProfileMessage": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - }, - "AuthenticationProfileContent": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyAuthenticationProfileResult": { - "type": "structure", - "members": { - "AuthenticationProfileName": { - "shape": "AuthenticationProfileNameString", - "flattened": false - }, - "AuthenticationProfileContent": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterDbRevisionMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "RevisionTarget": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterDbRevisionResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterIamRolesMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "AddIamRoles": {"shape": "IamRoleArnList", "flattened": false}, - "RemoveIamRoles": {"shape": "IamRoleArnList", "flattened": false}, - "DefaultIamRoleArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterIamRolesResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterMaintenanceMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "DeferMaintenance": {"shape": "BooleanOptional", "flattened": false}, - "DeferMaintenanceIdentifier": {"shape": "String", "flattened": false}, - "DeferMaintenanceStartTime": {"shape": "TStamp", "flattened": false}, - "DeferMaintenanceEndTime": {"shape": "TStamp", "flattened": false}, - "DeferMaintenanceDuration": { - "shape": "IntegerOptional", - "flattened": false - } - }, - "flattened": false - }, - "ModifyClusterMaintenanceResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ClusterType": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "NumberOfNodes": {"shape": "IntegerOptional", "flattened": false}, - "ClusterSecurityGroups": { - "shape": "ClusterSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "MasterUserPassword": {"shape": "SensitiveString", "flattened": false}, - "ClusterParameterGroupName": {"shape": "String", "flattened": false}, - "AutomatedSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "ClusterVersion": {"shape": "String", "flattened": false}, - "AllowVersionUpgrade": {"shape": "BooleanOptional", "flattened": false}, - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false}, - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false}, - "NewClusterIdentifier": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "ElasticIp": {"shape": "String", "flattened": false}, - "EnhancedVpcRouting": {"shape": "BooleanOptional", "flattened": false}, - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "Encrypted": {"shape": "BooleanOptional", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "AvailabilityZoneRelocation": { - "shape": "BooleanOptional", - "flattened": false - }, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "ManageMasterPassword": {"shape": "BooleanOptional", "flattened": false}, - "MasterPasswordSecretKmsKeyId": {"shape": "String", "flattened": false}, - "IpAddressType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterParameterGroupMessage": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterSnapshotMessage": { - "type": "structure", - "members": { - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "Force": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterSnapshotResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterSnapshotScheduleMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ScheduleIdentifier": {"shape": "String", "flattened": false}, - "DisassociateSchedule": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterSubnetGroupMessage": { - "type": "structure", - "members": { - "ClusterSubnetGroupName": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "SubnetIds": {"shape": "SubnetIdentifierList", "flattened": false} - }, - "flattened": false - }, - "ModifyClusterSubnetGroupResult": { - "type": "structure", - "members": { - "ClusterSubnetGroup": {"shape": "ClusterSubnetGroup", "flattened": false} - }, - "flattened": false - }, - "ModifyCustomDomainAssociationMessage": { - "type": "structure", - "members": { - "CustomDomainName": { - "shape": "CustomDomainNameString", - "flattened": false - }, - "CustomDomainCertificateArn": { - "shape": "CustomDomainCertificateArnString", - "flattened": false - }, - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyCustomDomainAssociationResult": { - "type": "structure", - "members": { - "CustomDomainName": { - "shape": "CustomDomainNameString", - "flattened": false - }, - "CustomDomainCertificateArn": { - "shape": "CustomDomainCertificateArnString", - "flattened": false - }, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "CustomDomainCertExpiryTime": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ModifyEndpointAccessMessage": { - "type": "structure", - "members": { - "EndpointName": {"shape": "String", "flattened": false}, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - } - }, - "flattened": false - }, - "ModifyEventSubscriptionMessage": { - "type": "structure", - "members": { - "SubscriptionName": {"shape": "String", "flattened": false}, - "SnsTopicArn": {"shape": "String", "flattened": false}, - "SourceType": {"shape": "String", "flattened": false}, - "SourceIds": {"shape": "SourceIdsList", "flattened": false}, - "EventCategories": {"shape": "EventCategoriesList", "flattened": false}, - "Severity": {"shape": "String", "flattened": false}, - "Enabled": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifyEventSubscriptionResult": { - "type": "structure", - "members": { - "EventSubscription": {"shape": "EventSubscription", "flattened": false} - }, - "flattened": false - }, - "ModifyRedshiftIdcApplicationMessage": { - "type": "structure", - "members": { - "RedshiftIdcApplicationArn": {"shape": "String", "flattened": false}, - "IdentityNamespace": { - "shape": "IdentityNamespaceString", - "flattened": false - }, - "IamRoleArn": {"shape": "String", "flattened": false}, - "IdcDisplayName": {"shape": "IdcDisplayNameString", "flattened": false}, - "AuthorizedTokenIssuerList": { - "shape": "AuthorizedTokenIssuerList", - "flattened": false - }, - "ServiceIntegrations": { - "shape": "ServiceIntegrationList", - "flattened": false - } - }, - "flattened": false - }, - "ModifyRedshiftIdcApplicationResult": { - "type": "structure", - "members": { - "RedshiftIdcApplication": { - "shape": "RedshiftIdcApplication", - "flattened": false - } - }, - "flattened": false - }, - "ModifyScheduledActionMessage": { - "type": "structure", - "members": { - "ScheduledActionName": {"shape": "String", "flattened": false}, - "TargetAction": {"shape": "ScheduledActionType", "flattened": false}, - "Schedule": {"shape": "String", "flattened": false}, - "IamRole": {"shape": "String", "flattened": false}, - "ScheduledActionDescription": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false}, - "Enable": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "ModifySnapshotCopyRetentionPeriodMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "RetentionPeriod": {"shape": "Integer", "flattened": false}, - "Manual": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ModifySnapshotCopyRetentionPeriodResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "ModifySnapshotScheduleMessage": { - "type": "structure", - "members": { - "ScheduleIdentifier": {"shape": "String", "flattened": false}, - "ScheduleDefinitions": { - "shape": "ScheduleDefinitionList", - "flattened": false - } - }, - "flattened": false - }, - "ModifyUsageLimitMessage": { - "type": "structure", - "members": { - "UsageLimitId": {"shape": "String", "flattened": false}, - "Amount": {"shape": "LongOptional", "flattened": false}, - "BreachAction": {"shape": "UsageLimitBreachAction", "flattened": false} - }, - "flattened": false - }, - "NetworkInterface": { - "type": "structure", - "members": { - "NetworkInterfaceId": {"shape": "String", "flattened": false}, - "SubnetId": {"shape": "String", "flattened": false}, - "PrivateIpAddress": {"shape": "String", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "Ipv6Address": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "NetworkInterfaceList": { - "type": "list", - "member": {"shape": "NetworkInterface", "locationName": "NetworkInterface"}, - "flattened": false - }, - "NodeConfigurationOption": { - "type": "structure", - "members": { - "NodeType": {"shape": "String", "flattened": false}, - "NumberOfNodes": {"shape": "Integer", "flattened": false}, - "EstimatedDiskUtilizationPercent": { - "shape": "DoubleOptional", - "flattened": false - }, - "Mode": {"shape": "Mode", "flattened": false} - }, - "flattened": false - }, - "NodeConfigurationOptionList": { - "type": "list", - "member": { - "shape": "NodeConfigurationOption", - "locationName": "NodeConfigurationOption" - }, - "flattened": false - }, - "NodeConfigurationOptionsFilter": { - "type": "structure", - "members": { - "Name": { - "shape": "NodeConfigurationOptionsFilterName", - "flattened": false - }, - "Operator": {"shape": "OperatorType", "flattened": false}, - "Values": {"shape": "ValueStringList", "flattened": false} - }, - "flattened": false - }, - "NodeConfigurationOptionsFilterList": { - "type": "list", - "member": { - "shape": "NodeConfigurationOptionsFilter", - "locationName": "NodeConfigurationOptionsFilter" - }, - "flattened": false - }, - "NodeConfigurationOptionsFilterName": {"type": "string", "flattened": false}, - "NodeConfigurationOptionsMessage": { - "type": "structure", - "members": { - "NodeConfigurationOptionList": { - "shape": "NodeConfigurationOptionList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "OperatorType": {"type": "string", "flattened": false}, - "OrderableClusterOption": { - "type": "structure", - "members": { - "ClusterVersion": {"shape": "String", "flattened": false}, - "ClusterType": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "AvailabilityZones": {"shape": "AvailabilityZoneList", "flattened": false} - }, - "flattened": false - }, - "OrderableClusterOptionsList": { - "type": "list", - "member": { - "shape": "OrderableClusterOption", - "locationName": "OrderableClusterOption" - }, - "flattened": false - }, - "OrderableClusterOptionsMessage": { - "type": "structure", - "members": { - "OrderableClusterOptions": { - "shape": "OrderableClusterOptionsList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Parameter": { - "type": "structure", - "members": { - "ParameterName": {"shape": "String", "flattened": false}, - "ParameterValue": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Source": {"shape": "String", "flattened": false}, - "DataType": {"shape": "String", "flattened": false}, - "AllowedValues": {"shape": "String", "flattened": false}, - "ApplyType": {"shape": "ParameterApplyType", "flattened": false}, - "IsModifiable": {"shape": "Boolean", "flattened": false}, - "MinimumEngineVersion": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ParameterApplyType": {"type": "string", "flattened": false}, - "ParameterGroupList": { - "type": "list", - "member": { - "shape": "ClusterParameterGroup", - "locationName": "ClusterParameterGroup" - }, - "flattened": false - }, - "ParametersList": { - "type": "list", - "member": {"shape": "Parameter", "locationName": "Parameter"}, - "flattened": false - }, - "PartnerIntegrationAccountId": {"type": "string", "flattened": false}, - "PartnerIntegrationClusterIdentifier": {"type": "string", "flattened": false}, - "PartnerIntegrationDatabaseName": {"type": "string", "flattened": false}, - "PartnerIntegrationInfo": { - "type": "structure", - "members": { - "DatabaseName": { - "shape": "PartnerIntegrationDatabaseName", - "flattened": false - }, - "PartnerName": { - "shape": "PartnerIntegrationPartnerName", - "flattened": false - }, - "Status": {"shape": "PartnerIntegrationStatus", "flattened": false}, - "StatusMessage": { - "shape": "PartnerIntegrationStatusMessage", - "flattened": false - }, - "CreatedAt": {"shape": "TStamp", "flattened": false}, - "UpdatedAt": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "PartnerIntegrationInfoList": { - "type": "list", - "member": { - "shape": "PartnerIntegrationInfo", - "locationName": "PartnerIntegrationInfo" - }, - "flattened": false - }, - "PartnerIntegrationInputMessage": { - "type": "structure", - "members": { - "AccountId": {"shape": "PartnerIntegrationAccountId", "flattened": false}, - "ClusterIdentifier": { - "shape": "PartnerIntegrationClusterIdentifier", - "flattened": false - }, - "DatabaseName": { - "shape": "PartnerIntegrationDatabaseName", - "flattened": false - }, - "PartnerName": { - "shape": "PartnerIntegrationPartnerName", - "flattened": false - } - }, - "flattened": false - }, - "PartnerIntegrationOutputMessage": { - "type": "structure", - "members": { - "DatabaseName": { - "shape": "PartnerIntegrationDatabaseName", - "flattened": false - }, - "PartnerName": { - "shape": "PartnerIntegrationPartnerName", - "flattened": false - } - }, - "flattened": false - }, - "PartnerIntegrationPartnerName": {"type": "string", "flattened": false}, - "PartnerIntegrationStatus": {"type": "string", "flattened": false}, - "PartnerIntegrationStatusMessage": {"type": "string", "flattened": false}, - "PauseClusterMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PauseClusterResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "PendingActionsList": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "PendingModifiedValues": { - "type": "structure", - "members": { - "MasterUserPassword": {"shape": "SensitiveString", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "NumberOfNodes": {"shape": "IntegerOptional", "flattened": false}, - "ClusterType": {"shape": "String", "flattened": false}, - "ClusterVersion": {"shape": "String", "flattened": false}, - "AutomatedSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "EnhancedVpcRouting": {"shape": "BooleanOptional", "flattened": false}, - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "EncryptionType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedNodeOfferingMessage": { - "type": "structure", - "members": { - "ReservedNodeOfferingId": {"shape": "String", "flattened": false}, - "NodeCount": {"shape": "IntegerOptional", "flattened": false} - }, - "flattened": false - }, - "PurchaseReservedNodeOfferingResult": { - "type": "structure", - "members": { - "ReservedNode": {"shape": "ReservedNode", "flattened": false} - }, - "flattened": false - }, - "PutResourcePolicyMessage": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false}, - "Policy": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PutResourcePolicyResult": { - "type": "structure", - "members": { - "ResourcePolicy": {"shape": "ResourcePolicy", "flattened": false} - }, - "flattened": false - }, - "RebootClusterMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RebootClusterResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "Recommendation": { - "type": "structure", - "members": { - "Id": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "NamespaceArn": {"shape": "String", "flattened": false}, - "CreatedAt": {"shape": "TStamp", "flattened": false}, - "RecommendationType": {"shape": "String", "flattened": false}, - "Title": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "Observation": {"shape": "String", "flattened": false}, - "ImpactRanking": {"shape": "ImpactRankingType", "flattened": false}, - "RecommendationText": {"shape": "String", "flattened": false}, - "RecommendedActions": { - "shape": "RecommendedActionList", - "flattened": false - }, - "ReferenceLinks": {"shape": "ReferenceLinkList", "flattened": false} - }, - "flattened": false - }, - "RecommendationList": { - "type": "list", - "member": {"shape": "Recommendation", "locationName": "Recommendation"}, - "flattened": false - }, - "RecommendedAction": { - "type": "structure", - "members": { - "Text": {"shape": "String", "flattened": false}, - "Database": {"shape": "String", "flattened": false}, - "Command": {"shape": "String", "flattened": false}, - "Type": {"shape": "RecommendedActionType", "flattened": false} - }, - "flattened": false - }, - "RecommendedActionList": { - "type": "list", - "member": { - "shape": "RecommendedAction", - "locationName": "RecommendedAction" - }, - "flattened": false - }, - "RecommendedActionType": {"type": "string", "flattened": false}, - "RecurringCharge": { - "type": "structure", - "members": { - "RecurringChargeAmount": {"shape": "Double", "flattened": false}, - "RecurringChargeFrequency": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RecurringChargeList": { - "type": "list", - "member": {"shape": "RecurringCharge", "locationName": "RecurringCharge"}, - "flattened": false - }, - "RedshiftIdcApplication": { - "type": "structure", - "members": { - "IdcInstanceArn": {"shape": "String", "flattened": false}, - "RedshiftIdcApplicationName": { - "shape": "RedshiftIdcApplicationName", - "flattened": false - }, - "RedshiftIdcApplicationArn": {"shape": "String", "flattened": false}, - "IdentityNamespace": { - "shape": "IdentityNamespaceString", - "flattened": false - }, - "IdcDisplayName": {"shape": "IdcDisplayNameString", "flattened": false}, - "IamRoleArn": {"shape": "String", "flattened": false}, - "IdcManagedApplicationArn": {"shape": "String", "flattened": false}, - "IdcOnboardStatus": {"shape": "String", "flattened": false}, - "AuthorizedTokenIssuerList": { - "shape": "AuthorizedTokenIssuerList", - "flattened": false - }, - "ServiceIntegrations": { - "shape": "ServiceIntegrationList", - "flattened": false - } - }, - "flattened": false - }, - "RedshiftIdcApplicationList": { - "type": "list", - "member": {"shape": "RedshiftIdcApplication"}, - "flattened": false - }, - "RedshiftIdcApplicationName": {"type": "string", "flattened": false}, - "ReferenceLink": { - "type": "structure", - "members": { - "Text": {"shape": "String", "flattened": false}, - "Link": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ReferenceLinkList": { - "type": "list", - "member": {"shape": "ReferenceLink", "locationName": "ReferenceLink"}, - "flattened": false - }, - "RejectDataShareMessage": { - "type": "structure", - "members": { - "DataShareArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ReservedNode": { - "type": "structure", - "members": { - "ReservedNodeId": {"shape": "String", "flattened": false}, - "ReservedNodeOfferingId": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "StartTime": {"shape": "TStamp", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "NodeCount": {"shape": "Integer", "flattened": false}, - "State": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false}, - "ReservedNodeOfferingType": { - "shape": "ReservedNodeOfferingType", - "flattened": false - } - }, - "flattened": false - }, - "ReservedNodeConfigurationOption": { - "type": "structure", - "members": { - "SourceReservedNode": {"shape": "ReservedNode", "flattened": false}, - "TargetReservedNodeCount": {"shape": "Integer", "flattened": false}, - "TargetReservedNodeOffering": { - "shape": "ReservedNodeOffering", - "flattened": false - } - }, - "flattened": false - }, - "ReservedNodeConfigurationOptionList": { - "type": "list", - "member": { - "shape": "ReservedNodeConfigurationOption", - "locationName": "ReservedNodeConfigurationOption" - }, - "flattened": false - }, - "ReservedNodeExchangeActionType": {"type": "string", "flattened": false}, - "ReservedNodeExchangeStatus": { - "type": "structure", - "members": { - "ReservedNodeExchangeRequestId": {"shape": "String", "flattened": false}, - "Status": {"shape": "ReservedNodeExchangeStatusType", "flattened": false}, - "RequestTime": {"shape": "TStamp", "flattened": false}, - "SourceReservedNodeId": {"shape": "String", "flattened": false}, - "SourceReservedNodeType": {"shape": "String", "flattened": false}, - "SourceReservedNodeCount": {"shape": "Integer", "flattened": false}, - "TargetReservedNodeOfferingId": {"shape": "String", "flattened": false}, - "TargetReservedNodeType": {"shape": "String", "flattened": false}, - "TargetReservedNodeCount": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "ReservedNodeExchangeStatusList": { - "type": "list", - "member": { - "shape": "ReservedNodeExchangeStatus", - "locationName": "ReservedNodeExchangeStatus" - }, - "flattened": false - }, - "ReservedNodeExchangeStatusType": {"type": "string", "flattened": false}, - "ReservedNodeList": { - "type": "list", - "member": {"shape": "ReservedNode", "locationName": "ReservedNode"}, - "flattened": false - }, - "ReservedNodeOffering": { - "type": "structure", - "members": { - "ReservedNodeOfferingId": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "Duration": {"shape": "Integer", "flattened": false}, - "FixedPrice": {"shape": "Double", "flattened": false}, - "UsagePrice": {"shape": "Double", "flattened": false}, - "CurrencyCode": {"shape": "String", "flattened": false}, - "OfferingType": {"shape": "String", "flattened": false}, - "RecurringCharges": {"shape": "RecurringChargeList", "flattened": false}, - "ReservedNodeOfferingType": { - "shape": "ReservedNodeOfferingType", - "flattened": false - } - }, - "flattened": false - }, - "ReservedNodeOfferingList": { - "type": "list", - "member": { - "shape": "ReservedNodeOffering", - "locationName": "ReservedNodeOffering" - }, - "flattened": false - }, - "ReservedNodeOfferingType": {"type": "string", "flattened": false}, - "ReservedNodeOfferingsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedNodeOfferings": { - "shape": "ReservedNodeOfferingList", - "flattened": false - } - }, - "flattened": false - }, - "ReservedNodesMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ReservedNodes": {"shape": "ReservedNodeList", "flattened": false} - }, - "flattened": false - }, - "ResetClusterParameterGroupMessage": { - "type": "structure", - "members": { - "ParameterGroupName": {"shape": "String", "flattened": false}, - "ResetAllParameters": {"shape": "Boolean", "flattened": false}, - "Parameters": {"shape": "ParametersList", "flattened": false} - }, - "flattened": false - }, - "ResizeClusterMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "ClusterType": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "NumberOfNodes": {"shape": "IntegerOptional", "flattened": false}, - "Classic": {"shape": "BooleanOptional", "flattened": false}, - "ReservedNodeId": {"shape": "String", "flattened": false}, - "TargetReservedNodeOfferingId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ResizeClusterResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "ResizeInfo": { - "type": "structure", - "members": { - "ResizeType": {"shape": "String", "flattened": false}, - "AllowCancelResize": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ResizeProgressMessage": { - "type": "structure", - "members": { - "TargetNodeType": {"shape": "String", "flattened": false}, - "TargetNumberOfNodes": {"shape": "IntegerOptional", "flattened": false}, - "TargetClusterType": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "ImportTablesCompleted": { - "shape": "ImportTablesCompleted", - "flattened": false - }, - "ImportTablesInProgress": { - "shape": "ImportTablesInProgress", - "flattened": false - }, - "ImportTablesNotStarted": { - "shape": "ImportTablesNotStarted", - "flattened": false - }, - "AvgResizeRateInMegaBytesPerSecond": { - "shape": "DoubleOptional", - "flattened": false - }, - "TotalResizeDataInMegaBytes": { - "shape": "LongOptional", - "flattened": false - }, - "ProgressInMegaBytes": {"shape": "LongOptional", "flattened": false}, - "ElapsedTimeInSeconds": {"shape": "LongOptional", "flattened": false}, - "EstimatedTimeToCompletionInSeconds": { - "shape": "LongOptional", - "flattened": false - }, - "ResizeType": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "TargetEncryptionType": {"shape": "String", "flattened": false}, - "DataTransferProgressPercent": { - "shape": "DoubleOptional", - "flattened": false - } - }, - "flattened": false - }, - "ResourcePolicy": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "String", "flattened": false}, - "Policy": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RestorableNodeTypeList": { - "type": "list", - "member": {"shape": "String", "locationName": "NodeType"}, - "flattened": false - }, - "RestoreFromClusterSnapshotMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotArn": {"shape": "String", "flattened": false}, - "SnapshotClusterIdentifier": {"shape": "String", "flattened": false}, - "Port": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "AllowVersionUpgrade": {"shape": "BooleanOptional", "flattened": false}, - "ClusterSubnetGroupName": {"shape": "String", "flattened": false}, - "PubliclyAccessible": {"shape": "BooleanOptional", "flattened": false}, - "OwnerAccount": {"shape": "String", "flattened": false}, - "HsmClientCertificateIdentifier": {"shape": "String", "flattened": false}, - "HsmConfigurationIdentifier": {"shape": "String", "flattened": false}, - "ElasticIp": {"shape": "String", "flattened": false}, - "ClusterParameterGroupName": {"shape": "String", "flattened": false}, - "ClusterSecurityGroups": { - "shape": "ClusterSecurityGroupNameList", - "flattened": false - }, - "VpcSecurityGroupIds": { - "shape": "VpcSecurityGroupIdList", - "flattened": false - }, - "PreferredMaintenanceWindow": {"shape": "String", "flattened": false}, - "AutomatedSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "KmsKeyId": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "EnhancedVpcRouting": {"shape": "BooleanOptional", "flattened": false}, - "AdditionalInfo": {"shape": "String", "flattened": false}, - "IamRoles": {"shape": "IamRoleArnList", "flattened": false}, - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "SnapshotScheduleIdentifier": {"shape": "String", "flattened": false}, - "NumberOfNodes": {"shape": "IntegerOptional", "flattened": false}, - "AvailabilityZoneRelocation": { - "shape": "BooleanOptional", - "flattened": false - }, - "AquaConfigurationStatus": { - "shape": "AquaConfigurationStatus", - "flattened": false - }, - "DefaultIamRoleArn": {"shape": "String", "flattened": false}, - "ReservedNodeId": {"shape": "String", "flattened": false}, - "TargetReservedNodeOfferingId": {"shape": "String", "flattened": false}, - "Encrypted": {"shape": "BooleanOptional", "flattened": false}, - "ManageMasterPassword": {"shape": "BooleanOptional", "flattened": false}, - "MasterPasswordSecretKmsKeyId": {"shape": "String", "flattened": false}, - "IpAddressType": {"shape": "String", "flattened": false}, - "MultiAZ": {"shape": "BooleanOptional", "flattened": false} - }, - "flattened": false - }, - "RestoreFromClusterSnapshotResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "RestoreStatus": { - "type": "structure", - "members": { - "Status": {"shape": "String", "flattened": false}, - "CurrentRestoreRateInMegaBytesPerSecond": { - "shape": "Double", - "flattened": false - }, - "SnapshotSizeInMegaBytes": {"shape": "Long", "flattened": false}, - "ProgressInMegaBytes": {"shape": "Long", "flattened": false}, - "ElapsedTimeInSeconds": {"shape": "Long", "flattened": false}, - "EstimatedTimeToCompletionInSeconds": { - "shape": "Long", - "flattened": false - } - }, - "flattened": false - }, - "RestoreTableFromClusterSnapshotMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SourceDatabaseName": {"shape": "String", "flattened": false}, - "SourceSchemaName": {"shape": "String", "flattened": false}, - "SourceTableName": {"shape": "String", "flattened": false}, - "TargetDatabaseName": {"shape": "String", "flattened": false}, - "TargetSchemaName": {"shape": "String", "flattened": false}, - "NewTableName": {"shape": "String", "flattened": false}, - "EnableCaseSensitiveIdentifier": { - "shape": "BooleanOptional", - "flattened": false - } - }, - "flattened": false - }, - "RestoreTableFromClusterSnapshotResult": { - "type": "structure", - "members": { - "TableRestoreStatus": {"shape": "TableRestoreStatus", "flattened": false} - }, - "flattened": false - }, - "ResumeClusterMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ResumeClusterResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "RevisionTarget": { - "type": "structure", - "members": { - "DatabaseRevision": {"shape": "String", "flattened": false}, - "Description": {"shape": "String", "flattened": false}, - "DatabaseRevisionReleaseDate": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "RevisionTargetsList": { - "type": "list", - "member": {"shape": "RevisionTarget", "locationName": "RevisionTarget"}, - "flattened": false - }, - "RevokeClusterSecurityGroupIngressMessage": { - "type": "structure", - "members": { - "ClusterSecurityGroupName": {"shape": "String", "flattened": false}, - "CIDRIP": {"shape": "String", "flattened": false}, - "EC2SecurityGroupName": {"shape": "String", "flattened": false}, - "EC2SecurityGroupOwnerId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeClusterSecurityGroupIngressResult": { - "type": "structure", - "members": { - "ClusterSecurityGroup": { - "shape": "ClusterSecurityGroup", - "flattened": false - } - }, - "flattened": false - }, - "RevokeEndpointAccessMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "Account": {"shape": "String", "flattened": false}, - "VpcIds": {"shape": "VpcIdentifierList", "flattened": false}, - "Force": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "RevokeSnapshotAccessMessage": { - "type": "structure", - "members": { - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotArn": {"shape": "String", "flattened": false}, - "SnapshotClusterIdentifier": {"shape": "String", "flattened": false}, - "AccountWithRestoreAccess": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RevokeSnapshotAccessResult": { - "type": "structure", - "members": { - "Snapshot": {"shape": "Snapshot", "flattened": false} - }, - "flattened": false - }, - "RotateEncryptionKeyMessage": { - "type": "structure", - "members": { - "ClusterIdentifier": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "RotateEncryptionKeyResult": { - "type": "structure", - "members": { - "Cluster": {"shape": "Cluster", "flattened": false} - }, - "flattened": false - }, - "ScheduleDefinitionList": { - "type": "list", - "member": {"shape": "String", "locationName": "ScheduleDefinition"}, - "flattened": false - }, - "ScheduleState": {"type": "string", "flattened": false}, - "ScheduledAction": { - "type": "structure", - "members": { - "ScheduledActionName": {"shape": "String", "flattened": false}, - "TargetAction": {"shape": "ScheduledActionType", "flattened": false}, - "Schedule": {"shape": "String", "flattened": false}, - "IamRole": {"shape": "String", "flattened": false}, - "ScheduledActionDescription": {"shape": "String", "flattened": false}, - "State": {"shape": "ScheduledActionState", "flattened": false}, - "NextInvocations": { - "shape": "ScheduledActionTimeList", - "flattened": false - }, - "StartTime": {"shape": "TStamp", "flattened": false}, - "EndTime": {"shape": "TStamp", "flattened": false} - }, - "flattened": false - }, - "ScheduledActionFilter": { - "type": "structure", - "members": { - "Name": {"shape": "ScheduledActionFilterName", "flattened": false}, - "Values": {"shape": "ValueStringList", "flattened": false} - }, - "flattened": false - }, - "ScheduledActionFilterList": { - "type": "list", - "member": { - "shape": "ScheduledActionFilter", - "locationName": "ScheduledActionFilter" - }, - "flattened": false - }, - "ScheduledActionFilterName": {"type": "string", "flattened": false}, - "ScheduledActionList": { - "type": "list", - "member": {"shape": "ScheduledAction", "locationName": "ScheduledAction"}, - "flattened": false - }, - "ScheduledActionState": {"type": "string", "flattened": false}, - "ScheduledActionTimeList": { - "type": "list", - "member": {"shape": "TStamp", "locationName": "ScheduledActionTime"}, - "flattened": false - }, - "ScheduledActionType": { - "type": "structure", - "members": { - "ResizeCluster": {"shape": "ResizeClusterMessage", "flattened": false}, - "PauseCluster": {"shape": "PauseClusterMessage", "flattened": false}, - "ResumeCluster": {"shape": "ResumeClusterMessage", "flattened": false} - }, - "flattened": false - }, - "ScheduledActionTypeValues": {"type": "string", "flattened": false}, - "ScheduledActionsMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "ScheduledActions": {"shape": "ScheduledActionList", "flattened": false} - }, - "flattened": false - }, - "ScheduledSnapshotTimeList": { - "type": "list", - "member": {"shape": "TStamp", "locationName": "SnapshotTime"}, - "flattened": false - }, - "SecondaryClusterInfo": { - "type": "structure", - "members": { - "AvailabilityZone": {"shape": "String", "flattened": false}, - "ClusterNodes": {"shape": "ClusterNodesList", "flattened": false} - }, - "flattened": false - }, - "SensitiveString": {"type": "string", "flattened": false}, - "ServiceAuthorization": {"type": "string", "flattened": false}, - "ServiceIntegrationList": { - "type": "list", - "member": {"shape": "ServiceIntegrationsUnion"}, - "flattened": false - }, - "ServiceIntegrationsUnion": { - "type": "structure", - "members": { - "LakeFormation": { - "shape": "LakeFormationServiceIntegrations", - "flattened": false - } - }, - "flattened": false - }, - "Snapshot": { - "type": "structure", - "members": { - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotCreateTime": {"shape": "TStamp", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Port": {"shape": "Integer", "flattened": false}, - "AvailabilityZone": {"shape": "String", "flattened": false}, - "ClusterCreateTime": {"shape": "TStamp", "flattened": false}, - "MasterUsername": {"shape": "String", "flattened": false}, - "ClusterVersion": {"shape": "String", "flattened": false}, - "EngineFullVersion": {"shape": "String", "flattened": false}, - "SnapshotType": {"shape": "String", "flattened": false}, - "NodeType": {"shape": "String", "flattened": false}, - "NumberOfNodes": {"shape": "Integer", "flattened": false}, - "DBName": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "Encrypted": {"shape": "Boolean", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "EncryptedWithHSM": {"shape": "Boolean", "flattened": false}, - "AccountsWithRestoreAccess": { - "shape": "AccountsWithRestoreAccessList", - "flattened": false - }, - "OwnerAccount": {"shape": "String", "flattened": false}, - "TotalBackupSizeInMegaBytes": {"shape": "Double", "flattened": false}, - "ActualIncrementalBackupSizeInMegaBytes": { - "shape": "Double", - "flattened": false - }, - "BackupProgressInMegaBytes": {"shape": "Double", "flattened": false}, - "CurrentBackupRateInMegaBytesPerSecond": { - "shape": "Double", - "flattened": false - }, - "EstimatedSecondsToCompletion": {"shape": "Long", "flattened": false}, - "ElapsedTimeInSeconds": {"shape": "Long", "flattened": false}, - "SourceRegion": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "RestorableNodeTypes": { - "shape": "RestorableNodeTypeList", - "flattened": false - }, - "EnhancedVpcRouting": {"shape": "Boolean", "flattened": false}, - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "ManualSnapshotRetentionPeriod": { - "shape": "IntegerOptional", - "flattened": false - }, - "ManualSnapshotRemainingDays": { - "shape": "IntegerOptional", - "flattened": false - }, - "SnapshotRetentionStartTime": {"shape": "TStamp", "flattened": false}, - "MasterPasswordSecretArn": {"shape": "String", "flattened": false}, - "MasterPasswordSecretKmsKeyId": {"shape": "String", "flattened": false}, - "SnapshotArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SnapshotAttributeToSortBy": {"type": "string", "flattened": false}, - "SnapshotCopyGrant": { - "type": "structure", - "members": { - "SnapshotCopyGrantName": {"shape": "String", "flattened": false}, - "KmsKeyId": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "SnapshotCopyGrantList": { - "type": "list", - "member": { - "shape": "SnapshotCopyGrant", - "locationName": "SnapshotCopyGrant" - }, - "flattened": false - }, - "SnapshotCopyGrantMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "SnapshotCopyGrants": { - "shape": "SnapshotCopyGrantList", - "flattened": false - } - }, - "flattened": false - }, - "SnapshotErrorMessage": { - "type": "structure", - "members": { - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SnapshotClusterIdentifier": {"shape": "String", "flattened": false}, - "FailureCode": {"shape": "String", "flattened": false}, - "FailureReason": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SnapshotIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "String"}, - "flattened": false - }, - "SnapshotList": { - "type": "list", - "member": {"shape": "Snapshot", "locationName": "Snapshot"}, - "flattened": false - }, - "SnapshotMessage": { - "type": "structure", - "members": { - "Marker": {"shape": "String", "flattened": false}, - "Snapshots": {"shape": "SnapshotList", "flattened": false} - }, - "flattened": false - }, - "SnapshotSchedule": { - "type": "structure", - "members": { - "ScheduleDefinitions": { - "shape": "ScheduleDefinitionList", - "flattened": false - }, - "ScheduleIdentifier": {"shape": "String", "flattened": false}, - "ScheduleDescription": {"shape": "String", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "NextInvocations": { - "shape": "ScheduledSnapshotTimeList", - "flattened": false - }, - "AssociatedClusterCount": { - "shape": "IntegerOptional", - "flattened": false - }, - "AssociatedClusters": { - "shape": "AssociatedClusterList", - "flattened": false - } - }, - "flattened": false - }, - "SnapshotScheduleList": { - "type": "list", - "member": {"shape": "SnapshotSchedule", "locationName": "SnapshotSchedule"}, - "flattened": false - }, - "SnapshotSortingEntity": { - "type": "structure", - "members": { - "Attribute": {"shape": "SnapshotAttributeToSortBy", "flattened": false}, - "SortOrder": {"shape": "SortByOrder", "flattened": false} - }, - "flattened": false - }, - "SnapshotSortingEntityList": { - "type": "list", - "member": { - "shape": "SnapshotSortingEntity", - "locationName": "SnapshotSortingEntity" - }, - "flattened": false - }, - "SortByOrder": {"type": "string", "flattened": false}, - "SourceIdsList": { - "type": "list", - "member": {"shape": "String", "locationName": "SourceId"}, - "flattened": false - }, - "SourceType": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false}, - "Subnet": { - "type": "structure", - "members": { - "SubnetIdentifier": {"shape": "String", "flattened": false}, - "SubnetAvailabilityZone": { - "shape": "AvailabilityZone", - "flattened": false - }, - "SubnetStatus": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SubnetIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "SubnetIdentifier"}, - "flattened": false - }, - "SubnetList": { - "type": "list", - "member": {"shape": "Subnet", "locationName": "Subnet"}, - "flattened": false - }, - "SupportedOperation": { - "type": "structure", - "members": { - "OperationName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SupportedOperationList": { - "type": "list", - "member": { - "shape": "SupportedOperation", - "locationName": "SupportedOperation" - }, - "flattened": false - }, - "SupportedPlatform": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "SupportedPlatformsList": { - "type": "list", - "member": { - "shape": "SupportedPlatform", - "locationName": "SupportedPlatform" - }, - "flattened": false - }, - "TStamp": {"type": "timestamp", "flattened": false}, - "TableRestoreStatus": { - "type": "structure", - "members": { - "TableRestoreRequestId": {"shape": "String", "flattened": false}, - "Status": {"shape": "TableRestoreStatusType", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "RequestTime": {"shape": "TStamp", "flattened": false}, - "ProgressInMegaBytes": {"shape": "LongOptional", "flattened": false}, - "TotalDataInMegaBytes": {"shape": "LongOptional", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "SnapshotIdentifier": {"shape": "String", "flattened": false}, - "SourceDatabaseName": {"shape": "String", "flattened": false}, - "SourceSchemaName": {"shape": "String", "flattened": false}, - "SourceTableName": {"shape": "String", "flattened": false}, - "TargetDatabaseName": {"shape": "String", "flattened": false}, - "TargetSchemaName": {"shape": "String", "flattened": false}, - "NewTableName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TableRestoreStatusList": { - "type": "list", - "member": { - "shape": "TableRestoreStatus", - "locationName": "TableRestoreStatus" - }, - "flattened": false - }, - "TableRestoreStatusMessage": { - "type": "structure", - "members": { - "TableRestoreStatusDetails": { - "shape": "TableRestoreStatusList", - "flattened": false - }, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TableRestoreStatusType": {"type": "string", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TagKeyList": { - "type": "list", - "member": {"shape": "String", "locationName": "TagKey"}, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag", "locationName": "Tag"}, - "flattened": false - }, - "TagValueList": { - "type": "list", - "member": {"shape": "String", "locationName": "TagValue"}, - "flattened": false - }, - "TaggedResource": { - "type": "structure", - "members": { - "Tag": {"shape": "Tag", "flattened": false}, - "ResourceName": {"shape": "String", "flattened": false}, - "ResourceType": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TaggedResourceList": { - "type": "list", - "member": {"shape": "TaggedResource", "locationName": "TaggedResource"}, - "flattened": false - }, - "TaggedResourceListMessage": { - "type": "structure", - "members": { - "TaggedResources": {"shape": "TaggedResourceList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "TrackList": { - "type": "list", - "member": {"shape": "MaintenanceTrack", "locationName": "MaintenanceTrack"}, - "flattened": false - }, - "TrackListMessage": { - "type": "structure", - "members": { - "MaintenanceTracks": {"shape": "TrackList", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UpdatePartnerStatusInputMessage": { - "type": "structure", - "members": { - "AccountId": {"shape": "PartnerIntegrationAccountId", "flattened": false}, - "ClusterIdentifier": { - "shape": "PartnerIntegrationClusterIdentifier", - "flattened": false - }, - "DatabaseName": { - "shape": "PartnerIntegrationDatabaseName", - "flattened": false - }, - "PartnerName": { - "shape": "PartnerIntegrationPartnerName", - "flattened": false - }, - "Status": {"shape": "PartnerIntegrationStatus", "flattened": false}, - "StatusMessage": { - "shape": "PartnerIntegrationStatusMessage", - "flattened": false - } - }, - "flattened": false - }, - "UpdateTarget": { - "type": "structure", - "members": { - "MaintenanceTrackName": {"shape": "String", "flattened": false}, - "DatabaseVersion": {"shape": "String", "flattened": false}, - "SupportedOperations": { - "shape": "SupportedOperationList", - "flattened": false - } - }, - "flattened": false - }, - "UsageLimit": { - "type": "structure", - "members": { - "UsageLimitId": {"shape": "String", "flattened": false}, - "ClusterIdentifier": {"shape": "String", "flattened": false}, - "FeatureType": {"shape": "UsageLimitFeatureType", "flattened": false}, - "LimitType": {"shape": "UsageLimitLimitType", "flattened": false}, - "Amount": {"shape": "Long", "flattened": false}, - "Period": {"shape": "UsageLimitPeriod", "flattened": false}, - "BreachAction": {"shape": "UsageLimitBreachAction", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "UsageLimitBreachAction": {"type": "string", "flattened": false}, - "UsageLimitFeatureType": {"type": "string", "flattened": false}, - "UsageLimitLimitType": {"type": "string", "flattened": false}, - "UsageLimitList": { - "type": "structure", - "members": { - "UsageLimits": {"shape": "UsageLimits", "flattened": false}, - "Marker": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "UsageLimitPeriod": {"type": "string", "flattened": false}, - "UsageLimits": { - "type": "list", - "member": {"shape": "UsageLimit"}, - "flattened": false - }, - "ValueStringList": { - "type": "list", - "member": {"shape": "String", "locationName": "item"}, - "flattened": false - }, - "VpcEndpoint": { - "type": "structure", - "members": { - "VpcEndpointId": {"shape": "String", "flattened": false}, - "VpcId": {"shape": "String", "flattened": false}, - "NetworkInterfaces": {"shape": "NetworkInterfaceList", "flattened": false} - }, - "flattened": false - }, - "VpcEndpointsList": { - "type": "list", - "member": {"shape": "VpcEndpoint", "locationName": "VpcEndpoint"}, - "flattened": false - }, - "VpcIdentifierList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcIdentifier"}, - "flattened": false - }, - "VpcSecurityGroupIdList": { - "type": "list", - "member": {"shape": "String", "locationName": "VpcSecurityGroupId"}, - "flattened": false - }, - "VpcSecurityGroupMembership": { - "type": "structure", - "members": { - "VpcSecurityGroupId": {"shape": "String", "flattened": false}, - "Status": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "VpcSecurityGroupMembershipList": { - "type": "list", - "member": { - "shape": "VpcSecurityGroupMembership", - "locationName": "VpcSecurityGroup" - }, - "flattened": false - }, - "ZeroETLIntegrationStatus": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/ses/v2010_12_01.dart b/aws_client/lib/src/generated/ses/v2010_12_01.dart index 09addf700..b813b5ba3 100644 --- a/aws_client/lib/src/generated/ses/v2010_12_01.dart +++ b/aws_client/lib/src/generated/ses/v2010_12_01.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2010_12_01.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// This document contains reference information for the shapes; Ses({ required String region, @@ -44,7 +42,7 @@ class Ses { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'email', @@ -54,9 +52,7 @@ class Ses { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -104,9 +100,10 @@ class Ses { required String originalRuleSetName, required String ruleSetName, }) async { - final $request = {}; - $request['OriginalRuleSetName'] = originalRuleSetName; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'OriginalRuleSetName': originalRuleSetName, + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'CloneReceiptRuleSet', @@ -114,8 +111,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CloneReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'CloneReceiptRuleSetResult', ); } @@ -138,8 +133,10 @@ class Ses { Future createConfigurationSet({ required ConfigurationSet configurationSet, }) async { - final $request = {}; - $request['ConfigurationSet'] = configurationSet; + final $request = { + for (var e1 in configurationSet.toQueryMap().entries) + 'ConfigurationSet.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateConfigurationSet', @@ -147,8 +144,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationSetRequest'], - shapes: shapes, resultWrapper: 'CreateConfigurationSetResult', ); } @@ -185,9 +180,11 @@ class Ses { required String configurationSetName, required EventDestination eventDestination, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['EventDestination'] = eventDestination; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in eventDestination.toQueryMap().entries) + 'EventDestination.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateConfigurationSetEventDestination', @@ -195,8 +192,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationSetEventDestinationRequest'], - shapes: shapes, resultWrapper: 'CreateConfigurationSetEventDestinationResult', ); } @@ -222,9 +217,11 @@ class Ses { required String configurationSetName, required TrackingOptions trackingOptions, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['TrackingOptions'] = trackingOptions; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in trackingOptions.toQueryMap().entries) + 'TrackingOptions.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateConfigurationSetTrackingOptions', @@ -232,8 +229,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationSetTrackingOptionsRequest'], - shapes: shapes, resultWrapper: 'CreateConfigurationSetTrackingOptionsResult', ); } @@ -284,13 +279,14 @@ class Ses { required String templateName, required String templateSubject, }) async { - final $request = {}; - $request['FailureRedirectionURL'] = failureRedirectionURL; - $request['FromEmailAddress'] = fromEmailAddress; - $request['SuccessRedirectionURL'] = successRedirectionURL; - $request['TemplateContent'] = templateContent; - $request['TemplateName'] = templateName; - $request['TemplateSubject'] = templateSubject; + final $request = { + 'FailureRedirectionURL': failureRedirectionURL, + 'FromEmailAddress': fromEmailAddress, + 'SuccessRedirectionURL': successRedirectionURL, + 'TemplateContent': templateContent, + 'TemplateName': templateName, + 'TemplateSubject': templateSubject, + }; await _protocol.send( $request, action: 'CreateCustomVerificationEmailTemplate', @@ -298,8 +294,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCustomVerificationEmailTemplateRequest'], - shapes: shapes, ); } @@ -321,8 +315,9 @@ class Ses { Future createReceiptFilter({ required ReceiptFilter filter, }) async { - final $request = {}; - $request['Filter'] = filter; + final $request = { + for (var e1 in filter.toQueryMap().entries) 'Filter.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateReceiptFilter', @@ -330,8 +325,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReceiptFilterRequest'], - shapes: shapes, resultWrapper: 'CreateReceiptFilterResult', ); } @@ -368,10 +361,11 @@ class Ses { required String ruleSetName, String? after, }) async { - final $request = {}; - $request['Rule'] = rule; - $request['RuleSetName'] = ruleSetName; - after?.also((arg) => $request['After'] = arg); + final $request = { + for (var e1 in rule.toQueryMap().entries) 'Rule.${e1.key}': e1.value, + 'RuleSetName': ruleSetName, + if (after != null) 'After': after, + }; await _protocol.send( $request, action: 'CreateReceiptRule', @@ -379,8 +373,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'CreateReceiptRuleResult', ); } @@ -415,8 +407,9 @@ class Ses { Future createReceiptRuleSet({ required String ruleSetName, }) async { - final $request = {}; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'CreateReceiptRuleSet', @@ -424,8 +417,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'CreateReceiptRuleSetResult', ); } @@ -448,8 +439,10 @@ class Ses { Future createTemplate({ required Template template, }) async { - final $request = {}; - $request['Template'] = template; + final $request = { + for (var e1 in template.toQueryMap().entries) + 'Template.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateTemplate', @@ -457,8 +450,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTemplateRequest'], - shapes: shapes, resultWrapper: 'CreateTemplateResult', ); } @@ -478,8 +469,9 @@ class Ses { Future deleteConfigurationSet({ required String configurationSetName, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; + final $request = { + 'ConfigurationSetName': configurationSetName, + }; await _protocol.send( $request, action: 'DeleteConfigurationSet', @@ -487,8 +479,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationSetRequest'], - shapes: shapes, resultWrapper: 'DeleteConfigurationSetResult', ); } @@ -515,9 +505,10 @@ class Ses { required String configurationSetName, required String eventDestinationName, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['EventDestinationName'] = eventDestinationName; + final $request = { + 'ConfigurationSetName': configurationSetName, + 'EventDestinationName': eventDestinationName, + }; await _protocol.send( $request, action: 'DeleteConfigurationSetEventDestination', @@ -525,8 +516,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationSetEventDestinationRequest'], - shapes: shapes, resultWrapper: 'DeleteConfigurationSetEventDestinationResult', ); } @@ -554,8 +543,9 @@ class Ses { Future deleteConfigurationSetTrackingOptions({ required String configurationSetName, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; + final $request = { + 'ConfigurationSetName': configurationSetName, + }; await _protocol.send( $request, action: 'DeleteConfigurationSetTrackingOptions', @@ -563,8 +553,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationSetTrackingOptionsRequest'], - shapes: shapes, resultWrapper: 'DeleteConfigurationSetTrackingOptionsResult', ); } @@ -583,8 +571,9 @@ class Ses { Future deleteCustomVerificationEmailTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; await _protocol.send( $request, action: 'DeleteCustomVerificationEmailTemplate', @@ -592,8 +581,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCustomVerificationEmailTemplateRequest'], - shapes: shapes, ); } @@ -608,8 +595,9 @@ class Ses { Future deleteIdentity({ required String identity, }) async { - final $request = {}; - $request['Identity'] = identity; + final $request = { + 'Identity': identity, + }; await _protocol.send( $request, action: 'DeleteIdentity', @@ -617,8 +605,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIdentityRequest'], - shapes: shapes, resultWrapper: 'DeleteIdentityResult', ); } @@ -652,9 +638,10 @@ class Ses { required String identity, required String policyName, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['PolicyName'] = policyName; + final $request = { + 'Identity': identity, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'DeleteIdentityPolicy', @@ -662,8 +649,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIdentityPolicyRequest'], - shapes: shapes, resultWrapper: 'DeleteIdentityPolicyResult', ); } @@ -681,8 +666,9 @@ class Ses { Future deleteReceiptFilter({ required String filterName, }) async { - final $request = {}; - $request['FilterName'] = filterName; + final $request = { + 'FilterName': filterName, + }; await _protocol.send( $request, action: 'DeleteReceiptFilter', @@ -690,8 +676,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReceiptFilterRequest'], - shapes: shapes, resultWrapper: 'DeleteReceiptFilterResult', ); } @@ -715,9 +699,10 @@ class Ses { required String ruleName, required String ruleSetName, }) async { - final $request = {}; - $request['RuleName'] = ruleName; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleName': ruleName, + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'DeleteReceiptRule', @@ -725,8 +710,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'DeleteReceiptRuleResult', ); } @@ -749,8 +732,9 @@ class Ses { Future deleteReceiptRuleSet({ required String ruleSetName, }) async { - final $request = {}; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'DeleteReceiptRuleSet', @@ -758,8 +742,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'DeleteReceiptRuleSetResult', ); } @@ -773,8 +755,9 @@ class Ses { Future deleteTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; await _protocol.send( $request, action: 'DeleteTemplate', @@ -782,8 +765,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTemplateRequest'], - shapes: shapes, resultWrapper: 'DeleteTemplateResult', ); } @@ -796,8 +777,9 @@ class Ses { Future deleteVerifiedEmailAddress({ required String emailAddress, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; + final $request = { + 'EmailAddress': emailAddress, + }; await _protocol.send( $request, action: 'DeleteVerifiedEmailAddress', @@ -805,8 +787,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteVerifiedEmailAddressRequest'], - shapes: shapes, ); } @@ -820,7 +800,7 @@ class Ses { /// You can execute this operation no more than once per second. Future describeActiveReceiptRuleSet() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeActiveReceiptRuleSet', @@ -828,8 +808,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeActiveReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'DescribeActiveReceiptRuleSetResult', ); return DescribeActiveReceiptRuleSetResponse.fromXml($result); @@ -853,11 +831,16 @@ class Ses { required String configurationSetName, List? configurationSetAttributeNames, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - configurationSetAttributeNames?.also((arg) => - $request['ConfigurationSetAttributeNames'] = - arg.map((e) => e.toValue()).toList()); + final $request = { + 'ConfigurationSetName': configurationSetName, + if (configurationSetAttributeNames != null) + if (configurationSetAttributeNames.isEmpty) + 'ConfigurationSetAttributeNames': '' + else + for (var i1 = 0; i1 < configurationSetAttributeNames.length; i1++) + 'ConfigurationSetAttributeNames.member.${i1 + 1}': + configurationSetAttributeNames[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeConfigurationSet', @@ -865,8 +848,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeConfigurationSetRequest'], - shapes: shapes, resultWrapper: 'DescribeConfigurationSetResult', ); return DescribeConfigurationSetResponse.fromXml($result); @@ -892,9 +873,10 @@ class Ses { required String ruleName, required String ruleSetName, }) async { - final $request = {}; - $request['RuleName'] = ruleName; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleName': ruleName, + 'RuleSetName': ruleSetName, + }; final $result = await _protocol.send( $request, action: 'DescribeReceiptRule', @@ -902,8 +884,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'DescribeReceiptRuleResult', ); return DescribeReceiptRuleResponse.fromXml($result); @@ -924,8 +904,9 @@ class Ses { Future describeReceiptRuleSet({ required String ruleSetName, }) async { - final $request = {}; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleSetName': ruleSetName, + }; final $result = await _protocol.send( $request, action: 'DescribeReceiptRuleSet', @@ -933,8 +914,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'DescribeReceiptRuleSetResult', ); return DescribeReceiptRuleSetResponse.fromXml($result); @@ -945,7 +924,7 @@ class Ses { /// /// You can execute this operation no more than once per second. Future getAccountSendingEnabled() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetAccountSendingEnabled', @@ -953,7 +932,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetAccountSendingEnabledResult', ); return GetAccountSendingEnabledResponse.fromXml($result); @@ -977,8 +955,9 @@ class Ses { getCustomVerificationEmailTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'GetCustomVerificationEmailTemplate', @@ -986,8 +965,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetCustomVerificationEmailTemplateRequest'], - shapes: shapes, resultWrapper: 'GetCustomVerificationEmailTemplateResult', ); return GetCustomVerificationEmailTemplateResponse.fromXml($result); @@ -1029,8 +1006,13 @@ class Ses { Future getIdentityDkimAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityDkimAttributes', @@ -1038,8 +1020,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityDkimAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityDkimAttributesResult', ); return GetIdentityDkimAttributesResponse.fromXml($result); @@ -1057,8 +1037,13 @@ class Ses { getIdentityMailFromDomainAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityMailFromDomainAttributes', @@ -1066,8 +1051,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityMailFromDomainAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityMailFromDomainAttributesResult', ); return GetIdentityMailFromDomainAttributesResponse.fromXml($result); @@ -1092,8 +1075,13 @@ class Ses { getIdentityNotificationAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityNotificationAttributes', @@ -1101,8 +1089,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityNotificationAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityNotificationAttributesResult', ); return GetIdentityNotificationAttributesResponse.fromXml($result); @@ -1141,9 +1127,14 @@ class Ses { required String identity, required List policyNames, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['PolicyNames'] = policyNames; + final $request = { + 'Identity': identity, + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityPolicies', @@ -1151,8 +1142,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityPoliciesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityPoliciesResult', ); return GetIdentityPoliciesResponse.fromXml($result); @@ -1187,8 +1176,13 @@ class Ses { getIdentityVerificationAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityVerificationAttributes', @@ -1196,8 +1190,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityVerificationAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityVerificationAttributesResult', ); return GetIdentityVerificationAttributesResponse.fromXml($result); @@ -1207,7 +1199,7 @@ class Ses { /// /// You can execute this operation no more than once per second. Future getSendQuota() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetSendQuota', @@ -1215,7 +1207,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetSendQuotaResult', ); return GetSendQuotaResponse.fromXml($result); @@ -1228,7 +1219,7 @@ class Ses { /// /// You can execute this operation no more than once per second. Future getSendStatistics() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetSendStatistics', @@ -1236,7 +1227,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetSendStatisticsResult', ); return GetSendStatisticsResponse.fromXml($result); @@ -1254,8 +1244,9 @@ class Ses { Future getTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'GetTemplate', @@ -1263,8 +1254,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTemplateRequest'], - shapes: shapes, resultWrapper: 'GetTemplateResult', ); return GetTemplateResponse.fromXml($result); @@ -1296,9 +1285,10 @@ class Ses { int? maxItems, String? nextToken, }) async { - final $request = {}; - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListConfigurationSets', @@ -1306,8 +1296,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListConfigurationSetsRequest'], - shapes: shapes, resultWrapper: 'ListConfigurationSetsResult', ); return ListConfigurationSetsResponse.fromXml($result); @@ -1343,9 +1331,10 @@ class Ses { 1, 50, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListCustomVerificationEmailTemplates', @@ -1353,8 +1342,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListCustomVerificationEmailTemplatesRequest'], - shapes: shapes, resultWrapper: 'ListCustomVerificationEmailTemplatesResult', ); return ListCustomVerificationEmailTemplatesResponse.fromXml($result); @@ -1392,10 +1379,11 @@ class Ses { int? maxItems, String? nextToken, }) async { - final $request = {}; - identityType?.also((arg) => $request['IdentityType'] = arg.toValue()); - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (identityType != null) 'IdentityType': identityType.toValue(), + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListIdentities', @@ -1403,8 +1391,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListIdentitiesRequest'], - shapes: shapes, resultWrapper: 'ListIdentitiesResult', ); return ListIdentitiesResponse.fromXml($result); @@ -1437,8 +1423,9 @@ class Ses { Future listIdentityPolicies({ required String identity, }) async { - final $request = {}; - $request['Identity'] = identity; + final $request = { + 'Identity': identity, + }; final $result = await _protocol.send( $request, action: 'ListIdentityPolicies', @@ -1446,8 +1433,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListIdentityPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListIdentityPoliciesResult', ); return ListIdentityPoliciesResponse.fromXml($result); @@ -1462,7 +1447,7 @@ class Ses { /// /// You can execute this operation no more than once per second. Future listReceiptFilters() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListReceiptFilters', @@ -1470,8 +1455,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListReceiptFiltersRequest'], - shapes: shapes, resultWrapper: 'ListReceiptFiltersResult', ); return ListReceiptFiltersResponse.fromXml($result); @@ -1495,8 +1478,9 @@ class Ses { Future listReceiptRuleSets({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListReceiptRuleSets', @@ -1504,8 +1488,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListReceiptRuleSetsRequest'], - shapes: shapes, resultWrapper: 'ListReceiptRuleSetsResult', ); return ListReceiptRuleSetsResponse.fromXml($result); @@ -1529,9 +1511,10 @@ class Ses { int? maxItems, String? nextToken, }) async { - final $request = {}; - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListTemplates', @@ -1539,8 +1522,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTemplatesRequest'], - shapes: shapes, resultWrapper: 'ListTemplatesResult', ); return ListTemplatesResponse.fromXml($result); @@ -1550,7 +1531,7 @@ class Ses { /// email addresses and domains associated with your account. Future listVerifiedEmailAddresses() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListVerifiedEmailAddresses', @@ -1558,7 +1539,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'ListVerifiedEmailAddressesResult', ); return ListVerifiedEmailAddressesResponse.fromXml($result); @@ -1579,9 +1559,12 @@ class Ses { required String configurationSetName, DeliveryOptions? deliveryOptions, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - deliveryOptions?.also((arg) => $request['DeliveryOptions'] = arg); + final $request = { + 'ConfigurationSetName': configurationSetName, + if (deliveryOptions != null) + for (var e1 in deliveryOptions.toQueryMap().entries) + 'DeliveryOptions.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'PutConfigurationSetDeliveryOptions', @@ -1589,8 +1572,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutConfigurationSetDeliveryOptionsRequest'], - shapes: shapes, resultWrapper: 'PutConfigurationSetDeliveryOptionsResult', ); } @@ -1637,10 +1618,11 @@ class Ses { required String policy, required String policyName, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['Policy'] = policy; - $request['PolicyName'] = policyName; + final $request = { + 'Identity': identity, + 'Policy': policy, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'PutIdentityPolicy', @@ -1648,8 +1630,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutIdentityPolicyRequest'], - shapes: shapes, resultWrapper: 'PutIdentityPolicyResult', ); } @@ -1678,9 +1658,14 @@ class Ses { required List ruleNames, required String ruleSetName, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; - $request['RuleSetName'] = ruleSetName; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'ReorderReceiptRuleSet', @@ -1688,8 +1673,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ReorderReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'ReorderReceiptRuleSetResult', ); } @@ -1746,13 +1729,21 @@ class Ses { String? explanation, MessageDsn? messageDsn, }) async { - final $request = {}; - $request['BounceSender'] = bounceSender; - $request['BouncedRecipientInfoList'] = bouncedRecipientInfoList; - $request['OriginalMessageId'] = originalMessageId; - bounceSenderArn?.also((arg) => $request['BounceSenderArn'] = arg); - explanation?.also((arg) => $request['Explanation'] = arg); - messageDsn?.also((arg) => $request['MessageDsn'] = arg); + final $request = { + 'BounceSender': bounceSender, + if (bouncedRecipientInfoList.isEmpty) + 'BouncedRecipientInfoList': '' + else + for (var i1 = 0; i1 < bouncedRecipientInfoList.length; i1++) + for (var e3 in bouncedRecipientInfoList[i1].toQueryMap().entries) + 'BouncedRecipientInfoList.member.${i1 + 1}.${e3.key}': e3.value, + 'OriginalMessageId': originalMessageId, + if (bounceSenderArn != null) 'BounceSenderArn': bounceSenderArn, + if (explanation != null) 'Explanation': explanation, + if (messageDsn != null) + for (var e1 in messageDsn.toQueryMap().entries) + 'MessageDsn.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'SendBounce', @@ -1760,8 +1751,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendBounceRequest'], - shapes: shapes, resultWrapper: 'SendBounceResult', ); return SendBounceResponse.fromXml($result); @@ -1939,18 +1928,37 @@ class Ses { String? sourceArn, String? templateArn, }) async { - final $request = {}; - $request['Destinations'] = destinations; - $request['Source'] = source; - $request['Template'] = template; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - defaultTags?.also((arg) => $request['DefaultTags'] = arg); - defaultTemplateData?.also((arg) => $request['DefaultTemplateData'] = arg); - replyToAddresses?.also((arg) => $request['ReplyToAddresses'] = arg); - returnPath?.also((arg) => $request['ReturnPath'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - templateArn?.also((arg) => $request['TemplateArn'] = arg); + final $request = { + if (destinations.isEmpty) + 'Destinations': '' + else + for (var i1 = 0; i1 < destinations.length; i1++) + for (var e3 in destinations[i1].toQueryMap().entries) + 'Destinations.member.${i1 + 1}.${e3.key}': e3.value, + 'Source': source, + 'Template': template, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (defaultTags != null) + if (defaultTags.isEmpty) + 'DefaultTags': '' + else + for (var i1 = 0; i1 < defaultTags.length; i1++) + for (var e3 in defaultTags[i1].toQueryMap().entries) + 'DefaultTags.member.${i1 + 1}.${e3.key}': e3.value, + if (defaultTemplateData != null) + 'DefaultTemplateData': defaultTemplateData, + if (replyToAddresses != null) + if (replyToAddresses.isEmpty) + 'ReplyToAddresses': '' + else + for (var i1 = 0; i1 < replyToAddresses.length; i1++) + 'ReplyToAddresses.member.${i1 + 1}': replyToAddresses[i1], + if (returnPath != null) 'ReturnPath': returnPath, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (sourceArn != null) 'SourceArn': sourceArn, + if (templateArn != null) 'TemplateArn': templateArn, + }; final $result = await _protocol.send( $request, action: 'SendBulkTemplatedEmail', @@ -1958,8 +1966,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendBulkTemplatedEmailRequest'], - shapes: shapes, resultWrapper: 'SendBulkTemplatedEmailResult', ); return SendBulkTemplatedEmailResponse.fromXml($result); @@ -1999,10 +2005,12 @@ class Ses { required String templateName, String? configurationSetName, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; - $request['TemplateName'] = templateName; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); + final $request = { + 'EmailAddress': emailAddress, + 'TemplateName': templateName, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + }; final $result = await _protocol.send( $request, action: 'SendCustomVerificationEmail', @@ -2010,8 +2018,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendCustomVerificationEmailRequest'], - shapes: shapes, resultWrapper: 'SendCustomVerificationEmailResult', ); return SendCustomVerificationEmailResponse.fromXml($result); @@ -2173,16 +2179,31 @@ class Ses { String? sourceArn, List? tags, }) async { - final $request = {}; - $request['Destination'] = destination; - $request['Message'] = message; - $request['Source'] = source; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - replyToAddresses?.also((arg) => $request['ReplyToAddresses'] = arg); - returnPath?.also((arg) => $request['ReturnPath'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + for (var e1 in destination.toQueryMap().entries) + 'Destination.${e1.key}': e1.value, + for (var e1 in message.toQueryMap().entries) + 'Message.${e1.key}': e1.value, + 'Source': source, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (replyToAddresses != null) + if (replyToAddresses.isEmpty) + 'ReplyToAddresses': '' + else + for (var i1 = 0; i1 < replyToAddresses.length; i1++) + 'ReplyToAddresses.member.${i1 + 1}': replyToAddresses[i1], + if (returnPath != null) 'ReturnPath': returnPath, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (sourceArn != null) 'SourceArn': sourceArn, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'SendEmail', @@ -2190,8 +2211,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendEmailRequest'], - shapes: shapes, resultWrapper: 'SendEmailResult', ); return SendEmailResponse.fromXml($result); @@ -2464,15 +2483,29 @@ class Ses { String? sourceArn, List? tags, }) async { - final $request = {}; - $request['RawMessage'] = rawMessage; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - destinations?.also((arg) => $request['Destinations'] = arg); - fromArn?.also((arg) => $request['FromArn'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - source?.also((arg) => $request['Source'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + for (var e1 in rawMessage.toQueryMap().entries) + 'RawMessage.${e1.key}': e1.value, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (destinations != null) + if (destinations.isEmpty) + 'Destinations': '' + else + for (var i1 = 0; i1 < destinations.length; i1++) + 'Destinations.member.${i1 + 1}': destinations[i1], + if (fromArn != null) 'FromArn': fromArn, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (source != null) 'Source': source, + if (sourceArn != null) 'SourceArn': sourceArn, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'SendRawEmail', @@ -2480,8 +2513,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendRawEmailRequest'], - shapes: shapes, resultWrapper: 'SendRawEmailResult', ); return SendRawEmailResponse.fromXml($result); @@ -2665,18 +2696,32 @@ class Ses { List? tags, String? templateArn, }) async { - final $request = {}; - $request['Destination'] = destination; - $request['Source'] = source; - $request['Template'] = template; - $request['TemplateData'] = templateData; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - replyToAddresses?.also((arg) => $request['ReplyToAddresses'] = arg); - returnPath?.also((arg) => $request['ReturnPath'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateArn?.also((arg) => $request['TemplateArn'] = arg); + final $request = { + for (var e1 in destination.toQueryMap().entries) + 'Destination.${e1.key}': e1.value, + 'Source': source, + 'Template': template, + 'TemplateData': templateData, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (replyToAddresses != null) + if (replyToAddresses.isEmpty) + 'ReplyToAddresses': '' + else + for (var i1 = 0; i1 < replyToAddresses.length; i1++) + 'ReplyToAddresses.member.${i1 + 1}': replyToAddresses[i1], + if (returnPath != null) 'ReturnPath': returnPath, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (sourceArn != null) 'SourceArn': sourceArn, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateArn != null) 'TemplateArn': templateArn, + }; final $result = await _protocol.send( $request, action: 'SendTemplatedEmail', @@ -2684,8 +2729,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendTemplatedEmailRequest'], - shapes: shapes, resultWrapper: 'SendTemplatedEmailResult', ); return SendTemplatedEmailResponse.fromXml($result); @@ -2710,8 +2753,9 @@ class Ses { Future setActiveReceiptRuleSet({ String? ruleSetName, }) async { - final $request = {}; - ruleSetName?.also((arg) => $request['RuleSetName'] = arg); + final $request = { + if (ruleSetName != null) 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'SetActiveReceiptRuleSet', @@ -2719,8 +2763,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetActiveReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'SetActiveReceiptRuleSetResult', ); } @@ -2756,9 +2798,10 @@ class Ses { required bool dkimEnabled, required String identity, }) async { - final $request = {}; - $request['DkimEnabled'] = dkimEnabled; - $request['Identity'] = identity; + final $request = { + 'DkimEnabled': dkimEnabled.toString(), + 'Identity': identity, + }; await _protocol.send( $request, action: 'SetIdentityDkimEnabled', @@ -2766,8 +2809,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityDkimEnabledRequest'], - shapes: shapes, resultWrapper: 'SetIdentityDkimEnabledResult', ); } @@ -2804,9 +2845,10 @@ class Ses { required bool forwardingEnabled, required String identity, }) async { - final $request = {}; - $request['ForwardingEnabled'] = forwardingEnabled; - $request['Identity'] = identity; + final $request = { + 'ForwardingEnabled': forwardingEnabled.toString(), + 'Identity': identity, + }; await _protocol.send( $request, action: 'SetIdentityFeedbackForwardingEnabled', @@ -2814,8 +2856,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityFeedbackForwardingEnabledRequest'], - shapes: shapes, resultWrapper: 'SetIdentityFeedbackForwardingEnabledResult', ); } @@ -2852,10 +2892,11 @@ class Ses { required String identity, required NotificationType notificationType, }) async { - final $request = {}; - $request['Enabled'] = enabled; - $request['Identity'] = identity; - $request['NotificationType'] = notificationType.toValue(); + final $request = { + 'Enabled': enabled.toString(), + 'Identity': identity, + 'NotificationType': notificationType.toValue(), + }; await _protocol.send( $request, action: 'SetIdentityHeadersInNotificationsEnabled', @@ -2863,8 +2904,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityHeadersInNotificationsEnabledRequest'], - shapes: shapes, resultWrapper: 'SetIdentityHeadersInNotificationsEnabledResult', ); } @@ -2909,11 +2948,12 @@ class Ses { BehaviorOnMXFailure? behaviorOnMXFailure, String? mailFromDomain, }) async { - final $request = {}; - $request['Identity'] = identity; - behaviorOnMXFailure - ?.also((arg) => $request['BehaviorOnMXFailure'] = arg.toValue()); - mailFromDomain?.also((arg) => $request['MailFromDomain'] = arg); + final $request = { + 'Identity': identity, + if (behaviorOnMXFailure != null) + 'BehaviorOnMXFailure': behaviorOnMXFailure.toValue(), + if (mailFromDomain != null) 'MailFromDomain': mailFromDomain, + }; await _protocol.send( $request, action: 'SetIdentityMailFromDomain', @@ -2921,8 +2961,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityMailFromDomainRequest'], - shapes: shapes, resultWrapper: 'SetIdentityMailFromDomainResult', ); } @@ -2964,10 +3002,11 @@ class Ses { required NotificationType notificationType, String? snsTopic, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['NotificationType'] = notificationType.toValue(); - snsTopic?.also((arg) => $request['SnsTopic'] = arg); + final $request = { + 'Identity': identity, + 'NotificationType': notificationType.toValue(), + if (snsTopic != null) 'SnsTopic': snsTopic, + }; await _protocol.send( $request, action: 'SetIdentityNotificationTopic', @@ -2975,8 +3014,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityNotificationTopicRequest'], - shapes: shapes, resultWrapper: 'SetIdentityNotificationTopicResult', ); } @@ -3007,10 +3044,11 @@ class Ses { required String ruleSetName, String? after, }) async { - final $request = {}; - $request['RuleName'] = ruleName; - $request['RuleSetName'] = ruleSetName; - after?.also((arg) => $request['After'] = arg); + final $request = { + 'RuleName': ruleName, + 'RuleSetName': ruleSetName, + if (after != null) 'After': after, + }; await _protocol.send( $request, action: 'SetReceiptRulePosition', @@ -3018,8 +3056,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetReceiptRulePositionRequest'], - shapes: shapes, resultWrapper: 'SetReceiptRulePositionResult', ); } @@ -3044,9 +3080,10 @@ class Ses { required String templateData, required String templateName, }) async { - final $request = {}; - $request['TemplateData'] = templateData; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateData': templateData, + 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'TestRenderTemplate', @@ -3054,8 +3091,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestRenderTemplateRequest'], - shapes: shapes, resultWrapper: 'TestRenderTemplateResult', ); return TestRenderTemplateResponse.fromXml($result); @@ -3076,8 +3111,9 @@ class Ses { Future updateAccountSendingEnabled({ bool? enabled, }) async { - final $request = {}; - enabled?.also((arg) => $request['Enabled'] = arg); + final $request = { + if (enabled != null) 'Enabled': enabled.toString(), + }; await _protocol.send( $request, action: 'UpdateAccountSendingEnabled', @@ -3085,8 +3121,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAccountSendingEnabledRequest'], - shapes: shapes, ); } @@ -3120,9 +3154,11 @@ class Ses { required String configurationSetName, required EventDestination eventDestination, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['EventDestination'] = eventDestination; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in eventDestination.toQueryMap().entries) + 'EventDestination.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'UpdateConfigurationSetEventDestination', @@ -3130,8 +3166,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetEventDestinationRequest'], - shapes: shapes, resultWrapper: 'UpdateConfigurationSetEventDestinationResult', ); } @@ -3157,9 +3191,10 @@ class Ses { required String configurationSetName, required bool enabled, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['Enabled'] = enabled; + final $request = { + 'ConfigurationSetName': configurationSetName, + 'Enabled': enabled.toString(), + }; await _protocol.send( $request, action: 'UpdateConfigurationSetReputationMetricsEnabled', @@ -3167,8 +3202,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetReputationMetricsEnabledRequest'], - shapes: shapes, ); } @@ -3193,9 +3226,10 @@ class Ses { required String configurationSetName, required bool enabled, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['Enabled'] = enabled; + final $request = { + 'ConfigurationSetName': configurationSetName, + 'Enabled': enabled.toString(), + }; await _protocol.send( $request, action: 'UpdateConfigurationSetSendingEnabled', @@ -3203,8 +3237,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetSendingEnabledRequest'], - shapes: shapes, ); } @@ -3228,9 +3260,11 @@ class Ses { required String configurationSetName, required TrackingOptions trackingOptions, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['TrackingOptions'] = trackingOptions; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in trackingOptions.toQueryMap().entries) + 'TrackingOptions.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'UpdateConfigurationSetTrackingOptions', @@ -3238,8 +3272,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetTrackingOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateConfigurationSetTrackingOptionsResult', ); } @@ -3289,15 +3321,16 @@ class Ses { String? templateContent, String? templateSubject, }) async { - final $request = {}; - $request['TemplateName'] = templateName; - failureRedirectionURL - ?.also((arg) => $request['FailureRedirectionURL'] = arg); - fromEmailAddress?.also((arg) => $request['FromEmailAddress'] = arg); - successRedirectionURL - ?.also((arg) => $request['SuccessRedirectionURL'] = arg); - templateContent?.also((arg) => $request['TemplateContent'] = arg); - templateSubject?.also((arg) => $request['TemplateSubject'] = arg); + final $request = { + 'TemplateName': templateName, + if (failureRedirectionURL != null) + 'FailureRedirectionURL': failureRedirectionURL, + if (fromEmailAddress != null) 'FromEmailAddress': fromEmailAddress, + if (successRedirectionURL != null) + 'SuccessRedirectionURL': successRedirectionURL, + if (templateContent != null) 'TemplateContent': templateContent, + if (templateSubject != null) 'TemplateSubject': templateSubject, + }; await _protocol.send( $request, action: 'UpdateCustomVerificationEmailTemplate', @@ -3305,8 +3338,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateCustomVerificationEmailTemplateRequest'], - shapes: shapes, ); } @@ -3334,9 +3365,10 @@ class Ses { required ReceiptRule rule, required String ruleSetName, }) async { - final $request = {}; - $request['Rule'] = rule; - $request['RuleSetName'] = ruleSetName; + final $request = { + for (var e1 in rule.toQueryMap().entries) 'Rule.${e1.key}': e1.value, + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'UpdateReceiptRule', @@ -3344,8 +3376,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'UpdateReceiptRuleResult', ); } @@ -3363,8 +3393,10 @@ class Ses { Future updateTemplate({ required Template template, }) async { - final $request = {}; - $request['Template'] = template; + final $request = { + for (var e1 in template.toQueryMap().entries) + 'Template.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'UpdateTemplate', @@ -3372,8 +3404,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateTemplateRequest'], - shapes: shapes, resultWrapper: 'UpdateTemplateResult', ); } @@ -3425,8 +3455,9 @@ class Ses { Future verifyDomainDkim({ required String domain, }) async { - final $request = {}; - $request['Domain'] = domain; + final $request = { + 'Domain': domain, + }; final $result = await _protocol.send( $request, action: 'VerifyDomainDkim', @@ -3434,8 +3465,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyDomainDkimRequest'], - shapes: shapes, resultWrapper: 'VerifyDomainDkimResult', ); return VerifyDomainDkimResponse.fromXml($result); @@ -3454,8 +3483,9 @@ class Ses { Future verifyDomainIdentity({ required String domain, }) async { - final $request = {}; - $request['Domain'] = domain; + final $request = { + 'Domain': domain, + }; final $result = await _protocol.send( $request, action: 'VerifyDomainIdentity', @@ -3463,8 +3493,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyDomainIdentityRequest'], - shapes: shapes, resultWrapper: 'VerifyDomainIdentityResult', ); return VerifyDomainIdentityResponse.fromXml($result); @@ -3478,8 +3506,9 @@ class Ses { Future verifyEmailAddress({ required String emailAddress, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; + final $request = { + 'EmailAddress': emailAddress, + }; await _protocol.send( $request, action: 'VerifyEmailAddress', @@ -3487,8 +3516,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyEmailAddressRequest'], - shapes: shapes, ); } @@ -3504,8 +3531,9 @@ class Ses { Future verifyEmailIdentity({ required String emailAddress, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; + final $request = { + 'EmailAddress': emailAddress, + }; await _protocol.send( $request, action: 'VerifyEmailIdentity', @@ -3513,8 +3541,6 @@ class Ses { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyEmailIdentityRequest'], - shapes: shapes, resultWrapper: 'VerifyEmailIdentityResult', ); } @@ -3556,6 +3582,15 @@ class AddHeaderAction { 'HeaderValue': headerValue, }; } + + Map toQueryMap() { + final headerName = this.headerName; + final headerValue = this.headerValue; + return { + 'HeaderName': headerName, + 'HeaderValue': headerValue, + }; + } } enum BehaviorOnMXFailure { @@ -3612,6 +3647,17 @@ class Body { if (text != null) 'Text': text, }; } + + Map toQueryMap() { + final html = this.html; + final text = this.text; + return { + if (html != null) + for (var e1 in html.toQueryMap().entries) 'Html.${e1.key}': e1.value, + if (text != null) + for (var e1 in text.toQueryMap().entries) 'Text.${e1.key}': e1.value, + }; + } } /// When included in a receipt rule, this action rejects the received email by @@ -3679,6 +3725,21 @@ class BounceAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final message = this.message; + final sender = this.sender; + final smtpReplyCode = this.smtpReplyCode; + final statusCode = this.statusCode; + final topicArn = this.topicArn; + return { + 'Message': message, + 'Sender': sender, + 'SmtpReplyCode': smtpReplyCode, + if (statusCode != null) 'StatusCode': statusCode, + if (topicArn != null) 'TopicArn': topicArn, + }; + } } enum BounceType { @@ -3775,6 +3836,21 @@ class BouncedRecipientInfo { if (recipientDsnFields != null) 'RecipientDsnFields': recipientDsnFields, }; } + + Map toQueryMap() { + final recipient = this.recipient; + final bounceType = this.bounceType; + final recipientArn = this.recipientArn; + final recipientDsnFields = this.recipientDsnFields; + return { + 'Recipient': recipient, + if (bounceType != null) 'BounceType': bounceType.toValue(), + if (recipientArn != null) 'RecipientArn': recipientArn, + if (recipientDsnFields != null) + for (var e1 in recipientDsnFields.toQueryMap().entries) + 'RecipientDsnFields.${e1.key}': e1.value, + }; + } } /// An array that contains one or more Destinations, as well as the tags and @@ -3810,6 +3886,25 @@ class BulkEmailDestination { 'ReplacementTemplateData': replacementTemplateData, }; } + + Map toQueryMap() { + final destination = this.destination; + final replacementTags = this.replacementTags; + final replacementTemplateData = this.replacementTemplateData; + return { + for (var e1 in destination.toQueryMap().entries) + 'Destination.${e1.key}': e1.value, + if (replacementTags != null) + if (replacementTags.isEmpty) + 'ReplacementTags': '' + else + for (var i1 = 0; i1 < replacementTags.length; i1++) + for (var e3 in replacementTags[i1].toQueryMap().entries) + 'ReplacementTags.member.${i1 + 1}.${e3.key}': e3.value, + if (replacementTemplateData != null) + 'ReplacementTemplateData': replacementTemplateData, + }; + } } /// An object that contains the response from the @@ -4049,6 +4144,18 @@ class CloudWatchDestination { 'DimensionConfigurations': dimensionConfigurations, }; } + + Map toQueryMap() { + final dimensionConfigurations = this.dimensionConfigurations; + return { + if (dimensionConfigurations.isEmpty) + 'DimensionConfigurations': '' + else + for (var i1 = 0; i1 < dimensionConfigurations.length; i1++) + for (var e3 in dimensionConfigurations[i1].toQueryMap().entries) + 'DimensionConfigurations.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Contains the dimension configuration to use when you publish email sending @@ -4123,6 +4230,17 @@ class CloudWatchDimensionConfiguration { 'DimensionValueSource': dimensionValueSource.toValue(), }; } + + Map toQueryMap() { + final defaultDimensionValue = this.defaultDimensionValue; + final dimensionName = this.dimensionName; + final dimensionValueSource = this.dimensionValueSource; + return { + 'DefaultDimensionValue': defaultDimensionValue, + 'DimensionName': dimensionName, + 'DimensionValueSource': dimensionValueSource.toValue(), + }; + } } /// The name of the configuration set. @@ -4164,6 +4282,13 @@ class ConfigurationSet { 'Name': name, }; } + + Map toQueryMap() { + final name = this.name; + return { + 'Name': name, + }; + } } enum ConfigurationSetAttribute { @@ -4229,6 +4354,15 @@ class Content { if (charset != null) 'Charset': charset, }; } + + Map toQueryMap() { + final data = this.data; + final charset = this.charset; + return { + 'Data': data, + if (charset != null) 'Charset': charset, + }; + } } /// An empty element returned on a successful request. @@ -4572,6 +4706,13 @@ class DeliveryOptions { if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), }; } + + Map toQueryMap() { + final tlsPolicy = this.tlsPolicy; + return { + if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), + }; + } } /// Represents the metadata and receipt rules for the receipt rule set that is @@ -4774,6 +4915,32 @@ class Destination { if (toAddresses != null) 'ToAddresses': toAddresses, }; } + + Map toQueryMap() { + final bccAddresses = this.bccAddresses; + final ccAddresses = this.ccAddresses; + final toAddresses = this.toAddresses; + return { + if (bccAddresses != null) + if (bccAddresses.isEmpty) + 'BccAddresses': '' + else + for (var i1 = 0; i1 < bccAddresses.length; i1++) + 'BccAddresses.member.${i1 + 1}': bccAddresses[i1], + if (ccAddresses != null) + if (ccAddresses.isEmpty) + 'CcAddresses': '' + else + for (var i1 = 0; i1 < ccAddresses.length; i1++) + 'CcAddresses.member.${i1 + 1}': ccAddresses[i1], + if (toAddresses != null) + if (toAddresses.isEmpty) + 'ToAddresses': '' + else + for (var i1 = 0; i1 < toAddresses.length; i1++) + 'ToAddresses.member.${i1 + 1}': toAddresses[i1], + }; + } } enum DimensionValueSource { @@ -4980,6 +5147,34 @@ class EventDestination { if (sNSDestination != null) 'SNSDestination': sNSDestination, }; } + + Map toQueryMap() { + final matchingEventTypes = this.matchingEventTypes; + final name = this.name; + final cloudWatchDestination = this.cloudWatchDestination; + final enabled = this.enabled; + final kinesisFirehoseDestination = this.kinesisFirehoseDestination; + final sNSDestination = this.sNSDestination; + return { + if (matchingEventTypes.isEmpty) + 'MatchingEventTypes': '' + else + for (var i1 = 0; i1 < matchingEventTypes.length; i1++) + 'MatchingEventTypes.member.${i1 + 1}': + matchingEventTypes[i1].toValue(), + 'Name': name, + if (cloudWatchDestination != null) + for (var e1 in cloudWatchDestination.toQueryMap().entries) + 'CloudWatchDestination.${e1.key}': e1.value, + if (enabled != null) 'Enabled': enabled.toString(), + if (kinesisFirehoseDestination != null) + for (var e1 in kinesisFirehoseDestination.toQueryMap().entries) + 'KinesisFirehoseDestination.${e1.key}': e1.value, + if (sNSDestination != null) + for (var e1 in sNSDestination.toQueryMap().entries) + 'SNSDestination.${e1.key}': e1.value, + }; + } } enum EventType { @@ -5069,6 +5264,15 @@ class ExtensionField { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } /// Represents a request to return the email sending status for your Amazon SES @@ -5739,6 +5943,15 @@ class KinesisFirehoseDestination { 'IAMRoleARN': iAMRoleARN, }; } + + Map toQueryMap() { + final deliveryStreamARN = this.deliveryStreamARN; + final iAMRoleARN = this.iAMRoleARN; + return { + 'DeliveryStreamARN': deliveryStreamARN, + 'IAMRoleARN': iAMRoleARN, + }; + } } /// When included in a receipt rule, this action calls an Amazon Web Services @@ -5815,6 +6028,17 @@ class LambdaAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final functionArn = this.functionArn; + final invocationType = this.invocationType; + final topicArn = this.topicArn; + return { + 'FunctionArn': functionArn, + if (invocationType != null) 'InvocationType': invocationType.toValue(), + if (topicArn != null) 'TopicArn': topicArn, + }; + } } /// A list of configuration sets associated with your Amazon Web Services @@ -6097,6 +6321,16 @@ class Message { 'Subject': subject, }; } + + Map toQueryMap() { + final body = this.body; + final subject = this.subject; + return { + for (var e1 in body.toQueryMap().entries) 'Body.${e1.key}': e1.value, + for (var e1 in subject.toQueryMap().entries) + 'Subject.${e1.key}': e1.value, + }; + } } /// Message-related information to include in the Delivery Status Notification @@ -6135,6 +6369,23 @@ class MessageDsn { if (extensionFields != null) 'ExtensionFields': extensionFields, }; } + + Map toQueryMap() { + final reportingMta = this.reportingMta; + final arrivalDate = this.arrivalDate; + final extensionFields = this.extensionFields; + return { + 'ReportingMta': reportingMta, + if (arrivalDate != null) 'ArrivalDate': _s.iso8601ToJson(arrivalDate), + if (extensionFields != null) + if (extensionFields.isEmpty) + 'ExtensionFields': '' + else + for (var i1 = 0; i1 < extensionFields.length; i1++) + for (var e3 in extensionFields[i1].toQueryMap().entries) + 'ExtensionFields.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Contains the name and value of a tag that you can provide to @@ -6185,6 +6436,15 @@ class MessageTag { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } enum NotificationType { @@ -6283,6 +6543,13 @@ class RawMessage { 'Data': base64Encode(data), }; } + + Map toQueryMap() { + final data = this.data; + return { + 'Data': base64Encode(data), + }; + } } /// An action that Amazon SES can take when it receives an email on behalf of @@ -6366,6 +6633,39 @@ class ReceiptAction { if (workmailAction != null) 'WorkmailAction': workmailAction, }; } + + Map toQueryMap() { + final addHeaderAction = this.addHeaderAction; + final bounceAction = this.bounceAction; + final lambdaAction = this.lambdaAction; + final s3Action = this.s3Action; + final sNSAction = this.sNSAction; + final stopAction = this.stopAction; + final workmailAction = this.workmailAction; + return { + if (addHeaderAction != null) + for (var e1 in addHeaderAction.toQueryMap().entries) + 'AddHeaderAction.${e1.key}': e1.value, + if (bounceAction != null) + for (var e1 in bounceAction.toQueryMap().entries) + 'BounceAction.${e1.key}': e1.value, + if (lambdaAction != null) + for (var e1 in lambdaAction.toQueryMap().entries) + 'LambdaAction.${e1.key}': e1.value, + if (s3Action != null) + for (var e1 in s3Action.toQueryMap().entries) + 'S3Action.${e1.key}': e1.value, + if (sNSAction != null) + for (var e1 in sNSAction.toQueryMap().entries) + 'SNSAction.${e1.key}': e1.value, + if (stopAction != null) + for (var e1 in stopAction.toQueryMap().entries) + 'StopAction.${e1.key}': e1.value, + if (workmailAction != null) + for (var e1 in workmailAction.toQueryMap().entries) + 'WorkmailAction.${e1.key}': e1.value, + }; + } } /// A receipt IP address filter enables you to specify whether to accept or @@ -6415,6 +6715,16 @@ class ReceiptFilter { 'Name': name, }; } + + Map toQueryMap() { + final ipFilter = this.ipFilter; + final name = this.name; + return { + for (var e1 in ipFilter.toQueryMap().entries) + 'IpFilter.${e1.key}': e1.value, + 'Name': name, + }; + } } enum ReceiptFilterPolicy { @@ -6482,6 +6792,15 @@ class ReceiptIpFilter { 'Policy': policy.toValue(), }; } + + Map toQueryMap() { + final cidr = this.cidr; + final policy = this.policy; + return { + 'Cidr': cidr, + 'Policy': policy.toValue(), + }; + } } /// Receipt rules enable you to specify which actions Amazon SES should take @@ -6574,6 +6893,34 @@ class ReceiptRule { if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), }; } + + Map toQueryMap() { + final name = this.name; + final actions = this.actions; + final enabled = this.enabled; + final recipients = this.recipients; + final scanEnabled = this.scanEnabled; + final tlsPolicy = this.tlsPolicy; + return { + 'Name': name, + if (actions != null) + if (actions.isEmpty) + 'Actions': '' + else + for (var i1 = 0; i1 < actions.length; i1++) + for (var e3 in actions[i1].toQueryMap().entries) + 'Actions.member.${i1 + 1}.${e3.key}': e3.value, + if (enabled != null) 'Enabled': enabled.toString(), + if (recipients != null) + if (recipients.isEmpty) + 'Recipients': '' + else + for (var i1 = 0; i1 < recipients.length; i1++) + 'Recipients.member.${i1 + 1}': recipients[i1], + if (scanEnabled != null) 'ScanEnabled': scanEnabled.toString(), + if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), + }; + } } /// Information about a receipt rule set. @@ -6705,6 +7052,32 @@ class RecipientDsnFields { if (remoteMta != null) 'RemoteMta': remoteMta, }; } + + Map toQueryMap() { + final action = this.action; + final status = this.status; + final diagnosticCode = this.diagnosticCode; + final extensionFields = this.extensionFields; + final finalRecipient = this.finalRecipient; + final lastAttemptDate = this.lastAttemptDate; + final remoteMta = this.remoteMta; + return { + 'Action': action.toValue(), + 'Status': status, + if (diagnosticCode != null) 'DiagnosticCode': diagnosticCode, + if (extensionFields != null) + if (extensionFields.isEmpty) + 'ExtensionFields': '' + else + for (var i1 = 0; i1 < extensionFields.length; i1++) + for (var e3 in extensionFields[i1].toQueryMap().entries) + 'ExtensionFields.member.${i1 + 1}.${e3.key}': e3.value, + if (finalRecipient != null) 'FinalRecipient': finalRecipient, + if (lastAttemptDate != null) + 'LastAttemptDate': _s.iso8601ToJson(lastAttemptDate), + if (remoteMta != null) 'RemoteMta': remoteMta, + }; + } } /// An empty element returned on a successful request. @@ -6888,6 +7261,19 @@ class S3Action { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final bucketName = this.bucketName; + final kmsKeyArn = this.kmsKeyArn; + final objectKeyPrefix = this.objectKeyPrefix; + final topicArn = this.topicArn; + return { + 'BucketName': bucketName, + if (kmsKeyArn != null) 'KmsKeyArn': kmsKeyArn, + if (objectKeyPrefix != null) 'ObjectKeyPrefix': objectKeyPrefix, + if (topicArn != null) 'TopicArn': topicArn, + }; + } } /// When included in a receipt rule, this action publishes a notification to @@ -6949,6 +7335,15 @@ class SNSAction { if (encoding != null) 'Encoding': encoding.toValue(), }; } + + Map toQueryMap() { + final topicArn = this.topicArn; + final encoding = this.encoding; + return { + 'TopicArn': topicArn, + if (encoding != null) 'Encoding': encoding.toValue(), + }; + } } enum SNSActionEncoding { @@ -7013,6 +7408,13 @@ class SNSDestination { 'TopicARN': topicARN, }; } + + Map toQueryMap() { + final topicARN = this.topicARN; + return { + 'TopicARN': topicARN, + }; + } } /// Represents a unique message ID. @@ -7346,6 +7748,15 @@ class StopAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final scope = this.scope; + final topicArn = this.topicArn; + return { + 'Scope': scope.toValue(), + if (topicArn != null) 'TopicArn': topicArn, + }; + } } enum StopScope { @@ -7416,6 +7827,19 @@ class Template { if (textPart != null) 'TextPart': textPart, }; } + + Map toQueryMap() { + final templateName = this.templateName; + final htmlPart = this.htmlPart; + final subjectPart = this.subjectPart; + final textPart = this.textPart; + return { + 'TemplateName': templateName, + if (htmlPart != null) 'HtmlPart': htmlPart, + if (subjectPart != null) 'SubjectPart': subjectPart, + if (textPart != null) 'TextPart': textPart, + }; + } } /// Contains information about an email template. @@ -7528,6 +7952,14 @@ class TrackingOptions { 'CustomRedirectDomain': customRedirectDomain, }; } + + Map toQueryMap() { + final customRedirectDomain = this.customRedirectDomain; + return { + if (customRedirectDomain != null) + 'CustomRedirectDomain': customRedirectDomain, + }; + } } /// An empty element returned on a successful request. @@ -7765,6 +8197,15 @@ class WorkmailAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final organizationArn = this.organizationArn; + final topicArn = this.topicArn; + return { + 'OrganizationArn': organizationArn, + if (topicArn != null) 'TopicArn': topicArn, + }; + } } class AccountSendingPausedException extends _s.GenericAwsException { diff --git a/aws_client/lib/src/generated/ses/v2010_12_01.meta.dart b/aws_client/lib/src/generated/ses/v2010_12_01.meta.dart deleted file mode 100644 index f59a723ff..000000000 --- a/aws_client/lib/src/generated/ses/v2010_12_01.meta.dart +++ /dev/null @@ -1,1679 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AddHeaderAction": { - "type": "structure", - "members": { - "HeaderName": {"shape": "HeaderName", "flattened": false}, - "HeaderValue": {"shape": "HeaderValue", "flattened": false} - }, - "flattened": false - }, - "Address": {"type": "string", "flattened": false}, - "AddressList": { - "type": "list", - "member": {"shape": "Address"}, - "flattened": false - }, - "AmazonResourceName": {"type": "string", "flattened": false}, - "ArrivalDate": {"type": "timestamp", "flattened": false}, - "BehaviorOnMXFailure": {"type": "string", "flattened": false}, - "Body": { - "type": "structure", - "members": { - "Text": {"shape": "Content", "flattened": false}, - "Html": {"shape": "Content", "flattened": false} - }, - "flattened": false - }, - "BounceAction": { - "type": "structure", - "members": { - "TopicArn": {"shape": "AmazonResourceName", "flattened": false}, - "SmtpReplyCode": {"shape": "BounceSmtpReplyCode", "flattened": false}, - "StatusCode": {"shape": "BounceStatusCode", "flattened": false}, - "Message": {"shape": "BounceMessage", "flattened": false}, - "Sender": {"shape": "Address", "flattened": false} - }, - "flattened": false - }, - "BounceMessage": {"type": "string", "flattened": false}, - "BounceSmtpReplyCode": {"type": "string", "flattened": false}, - "BounceStatusCode": {"type": "string", "flattened": false}, - "BounceType": {"type": "string", "flattened": false}, - "BouncedRecipientInfo": { - "type": "structure", - "members": { - "Recipient": {"shape": "Address", "flattened": false}, - "RecipientArn": {"shape": "AmazonResourceName", "flattened": false}, - "BounceType": {"shape": "BounceType", "flattened": false}, - "RecipientDsnFields": {"shape": "RecipientDsnFields", "flattened": false} - }, - "flattened": false - }, - "BouncedRecipientInfoList": { - "type": "list", - "member": {"shape": "BouncedRecipientInfo"}, - "flattened": false - }, - "BulkEmailDestination": { - "type": "structure", - "members": { - "Destination": {"shape": "Destination", "flattened": false}, - "ReplacementTags": {"shape": "MessageTagList", "flattened": false}, - "ReplacementTemplateData": {"shape": "TemplateData", "flattened": false} - }, - "flattened": false - }, - "BulkEmailDestinationList": { - "type": "list", - "member": {"shape": "BulkEmailDestination"}, - "flattened": false - }, - "BulkEmailDestinationStatus": { - "type": "structure", - "members": { - "Status": {"shape": "BulkEmailStatus", "flattened": false}, - "Error": {"shape": "Error", "flattened": false}, - "MessageId": {"shape": "MessageId", "flattened": false} - }, - "flattened": false - }, - "BulkEmailDestinationStatusList": { - "type": "list", - "member": {"shape": "BulkEmailDestinationStatus"}, - "flattened": false - }, - "BulkEmailStatus": {"type": "string", "flattened": false}, - "Charset": {"type": "string", "flattened": false}, - "Cidr": {"type": "string", "flattened": false}, - "CloneReceiptRuleSetRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false}, - "OriginalRuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false} - }, - "flattened": false - }, - "CloneReceiptRuleSetResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CloudWatchDestination": { - "type": "structure", - "members": { - "DimensionConfigurations": { - "shape": "CloudWatchDimensionConfigurations", - "flattened": false - } - }, - "flattened": false - }, - "CloudWatchDimensionConfiguration": { - "type": "structure", - "members": { - "DimensionName": {"shape": "DimensionName", "flattened": false}, - "DimensionValueSource": { - "shape": "DimensionValueSource", - "flattened": false - }, - "DefaultDimensionValue": { - "shape": "DefaultDimensionValue", - "flattened": false - } - }, - "flattened": false - }, - "CloudWatchDimensionConfigurations": { - "type": "list", - "member": {"shape": "CloudWatchDimensionConfiguration"}, - "flattened": false - }, - "ConfigurationSet": { - "type": "structure", - "members": { - "Name": {"shape": "ConfigurationSetName", "flattened": false} - }, - "flattened": false - }, - "ConfigurationSetAttribute": {"type": "string", "flattened": false}, - "ConfigurationSetAttributeList": { - "type": "list", - "member": {"shape": "ConfigurationSetAttribute"}, - "flattened": false - }, - "ConfigurationSetName": {"type": "string", "flattened": false}, - "ConfigurationSets": { - "type": "list", - "member": {"shape": "ConfigurationSet"}, - "flattened": false - }, - "Content": { - "type": "structure", - "members": { - "Data": {"shape": "MessageData", "flattened": false}, - "Charset": {"shape": "Charset", "flattened": false} - }, - "flattened": false - }, - "Counter": {"type": "long", "flattened": false}, - "CreateConfigurationSetEventDestinationRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "EventDestination": {"shape": "EventDestination", "flattened": false} - }, - "flattened": false - }, - "CreateConfigurationSetEventDestinationResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateConfigurationSetRequest": { - "type": "structure", - "members": { - "ConfigurationSet": {"shape": "ConfigurationSet", "flattened": false} - }, - "flattened": false - }, - "CreateConfigurationSetResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateConfigurationSetTrackingOptionsRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "TrackingOptions": {"shape": "TrackingOptions", "flattened": false} - }, - "flattened": false - }, - "CreateConfigurationSetTrackingOptionsResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateCustomVerificationEmailTemplateRequest": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "FromEmailAddress": {"shape": "FromAddress", "flattened": false}, - "TemplateSubject": {"shape": "Subject", "flattened": false}, - "TemplateContent": {"shape": "TemplateContent", "flattened": false}, - "SuccessRedirectionURL": { - "shape": "SuccessRedirectionURL", - "flattened": false - }, - "FailureRedirectionURL": { - "shape": "FailureRedirectionURL", - "flattened": false - } - }, - "flattened": false - }, - "CreateReceiptFilterRequest": { - "type": "structure", - "members": { - "Filter": {"shape": "ReceiptFilter", "flattened": false} - }, - "flattened": false - }, - "CreateReceiptFilterResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateReceiptRuleRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false}, - "After": {"shape": "ReceiptRuleName", "flattened": false}, - "Rule": {"shape": "ReceiptRule", "flattened": false} - }, - "flattened": false - }, - "CreateReceiptRuleResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateReceiptRuleSetRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false} - }, - "flattened": false - }, - "CreateReceiptRuleSetResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateTemplateRequest": { - "type": "structure", - "members": { - "Template": {"shape": "Template", "flattened": false} - }, - "flattened": false - }, - "CreateTemplateResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CustomMailFromStatus": {"type": "string", "flattened": false}, - "CustomRedirectDomain": {"type": "string", "flattened": false}, - "CustomVerificationEmailTemplate": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "FromEmailAddress": {"shape": "FromAddress", "flattened": false}, - "TemplateSubject": {"shape": "Subject", "flattened": false}, - "SuccessRedirectionURL": { - "shape": "SuccessRedirectionURL", - "flattened": false - }, - "FailureRedirectionURL": { - "shape": "FailureRedirectionURL", - "flattened": false - } - }, - "flattened": false - }, - "CustomVerificationEmailTemplates": { - "type": "list", - "member": {"shape": "CustomVerificationEmailTemplate"}, - "flattened": false - }, - "DefaultDimensionValue": {"type": "string", "flattened": false}, - "DeleteConfigurationSetEventDestinationRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "EventDestinationName": { - "shape": "EventDestinationName", - "flattened": false - } - }, - "flattened": false - }, - "DeleteConfigurationSetEventDestinationResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteConfigurationSetRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - } - }, - "flattened": false - }, - "DeleteConfigurationSetResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteConfigurationSetTrackingOptionsRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - } - }, - "flattened": false - }, - "DeleteConfigurationSetTrackingOptionsResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteCustomVerificationEmailTemplateRequest": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false} - }, - "flattened": false - }, - "DeleteIdentityPolicyRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "PolicyName": {"shape": "PolicyName", "flattened": false} - }, - "flattened": false - }, - "DeleteIdentityPolicyResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteIdentityRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false} - }, - "flattened": false - }, - "DeleteIdentityResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteReceiptFilterRequest": { - "type": "structure", - "members": { - "FilterName": {"shape": "ReceiptFilterName", "flattened": false} - }, - "flattened": false - }, - "DeleteReceiptFilterResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteReceiptRuleRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false}, - "RuleName": {"shape": "ReceiptRuleName", "flattened": false} - }, - "flattened": false - }, - "DeleteReceiptRuleResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteReceiptRuleSetRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false} - }, - "flattened": false - }, - "DeleteReceiptRuleSetResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteTemplateRequest": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false} - }, - "flattened": false - }, - "DeleteTemplateResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteVerifiedEmailAddressRequest": { - "type": "structure", - "members": { - "EmailAddress": {"shape": "Address", "flattened": false} - }, - "flattened": false - }, - "DeliveryOptions": { - "type": "structure", - "members": { - "TlsPolicy": {"shape": "TlsPolicy", "flattened": false} - }, - "flattened": false - }, - "DescribeActiveReceiptRuleSetRequest": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DescribeActiveReceiptRuleSetResponse": { - "type": "structure", - "members": { - "Metadata": {"shape": "ReceiptRuleSetMetadata", "flattened": false}, - "Rules": {"shape": "ReceiptRulesList", "flattened": false} - }, - "flattened": false - }, - "DescribeConfigurationSetRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "ConfigurationSetAttributeNames": { - "shape": "ConfigurationSetAttributeList", - "flattened": false - } - }, - "flattened": false - }, - "DescribeConfigurationSetResponse": { - "type": "structure", - "members": { - "ConfigurationSet": {"shape": "ConfigurationSet", "flattened": false}, - "EventDestinations": {"shape": "EventDestinations", "flattened": false}, - "TrackingOptions": {"shape": "TrackingOptions", "flattened": false}, - "DeliveryOptions": {"shape": "DeliveryOptions", "flattened": false}, - "ReputationOptions": {"shape": "ReputationOptions", "flattened": false} - }, - "flattened": false - }, - "DescribeReceiptRuleRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false}, - "RuleName": {"shape": "ReceiptRuleName", "flattened": false} - }, - "flattened": false - }, - "DescribeReceiptRuleResponse": { - "type": "structure", - "members": { - "Rule": {"shape": "ReceiptRule", "flattened": false} - }, - "flattened": false - }, - "DescribeReceiptRuleSetRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false} - }, - "flattened": false - }, - "DescribeReceiptRuleSetResponse": { - "type": "structure", - "members": { - "Metadata": {"shape": "ReceiptRuleSetMetadata", "flattened": false}, - "Rules": {"shape": "ReceiptRulesList", "flattened": false} - }, - "flattened": false - }, - "Destination": { - "type": "structure", - "members": { - "ToAddresses": {"shape": "AddressList", "flattened": false}, - "CcAddresses": {"shape": "AddressList", "flattened": false}, - "BccAddresses": {"shape": "AddressList", "flattened": false} - }, - "flattened": false - }, - "DiagnosticCode": {"type": "string", "flattened": false}, - "DimensionName": {"type": "string", "flattened": false}, - "DimensionValueSource": {"type": "string", "flattened": false}, - "DkimAttributes": { - "type": "map", - "key": {"shape": "Identity"}, - "value": {"shape": "IdentityDkimAttributes"}, - "flattened": false - }, - "Domain": {"type": "string", "flattened": false}, - "DsnAction": {"type": "string", "flattened": false}, - "DsnStatus": {"type": "string", "flattened": false}, - "Enabled": {"type": "boolean", "flattened": false}, - "Error": {"type": "string", "flattened": false}, - "EventDestination": { - "type": "structure", - "members": { - "Name": {"shape": "EventDestinationName", "flattened": false}, - "Enabled": {"shape": "Enabled", "flattened": false}, - "MatchingEventTypes": {"shape": "EventTypes", "flattened": false}, - "KinesisFirehoseDestination": { - "shape": "KinesisFirehoseDestination", - "flattened": false - }, - "CloudWatchDestination": { - "shape": "CloudWatchDestination", - "flattened": false - }, - "SNSDestination": {"shape": "SNSDestination", "flattened": false} - }, - "flattened": false - }, - "EventDestinationName": {"type": "string", "flattened": false}, - "EventDestinations": { - "type": "list", - "member": {"shape": "EventDestination"}, - "flattened": false - }, - "EventType": {"type": "string", "flattened": false}, - "EventTypes": { - "type": "list", - "member": {"shape": "EventType"}, - "flattened": false - }, - "Explanation": {"type": "string", "flattened": false}, - "ExtensionField": { - "type": "structure", - "members": { - "Name": {"shape": "ExtensionFieldName", "flattened": false}, - "Value": {"shape": "ExtensionFieldValue", "flattened": false} - }, - "flattened": false - }, - "ExtensionFieldList": { - "type": "list", - "member": {"shape": "ExtensionField"}, - "flattened": false - }, - "ExtensionFieldName": {"type": "string", "flattened": false}, - "ExtensionFieldValue": {"type": "string", "flattened": false}, - "FailureRedirectionURL": {"type": "string", "flattened": false}, - "FromAddress": {"type": "string", "flattened": false}, - "GetAccountSendingEnabledResponse": { - "type": "structure", - "members": { - "Enabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "GetCustomVerificationEmailTemplateRequest": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false} - }, - "flattened": false - }, - "GetCustomVerificationEmailTemplateResponse": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "FromEmailAddress": {"shape": "FromAddress", "flattened": false}, - "TemplateSubject": {"shape": "Subject", "flattened": false}, - "TemplateContent": {"shape": "TemplateContent", "flattened": false}, - "SuccessRedirectionURL": { - "shape": "SuccessRedirectionURL", - "flattened": false - }, - "FailureRedirectionURL": { - "shape": "FailureRedirectionURL", - "flattened": false - } - }, - "flattened": false - }, - "GetIdentityDkimAttributesRequest": { - "type": "structure", - "members": { - "Identities": {"shape": "IdentityList", "flattened": false} - }, - "flattened": false - }, - "GetIdentityDkimAttributesResponse": { - "type": "structure", - "members": { - "DkimAttributes": {"shape": "DkimAttributes", "flattened": false} - }, - "flattened": false - }, - "GetIdentityMailFromDomainAttributesRequest": { - "type": "structure", - "members": { - "Identities": {"shape": "IdentityList", "flattened": false} - }, - "flattened": false - }, - "GetIdentityMailFromDomainAttributesResponse": { - "type": "structure", - "members": { - "MailFromDomainAttributes": { - "shape": "MailFromDomainAttributes", - "flattened": false - } - }, - "flattened": false - }, - "GetIdentityNotificationAttributesRequest": { - "type": "structure", - "members": { - "Identities": {"shape": "IdentityList", "flattened": false} - }, - "flattened": false - }, - "GetIdentityNotificationAttributesResponse": { - "type": "structure", - "members": { - "NotificationAttributes": { - "shape": "NotificationAttributes", - "flattened": false - } - }, - "flattened": false - }, - "GetIdentityPoliciesRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "PolicyNames": {"shape": "PolicyNameList", "flattened": false} - }, - "flattened": false - }, - "GetIdentityPoliciesResponse": { - "type": "structure", - "members": { - "Policies": {"shape": "PolicyMap", "flattened": false} - }, - "flattened": false - }, - "GetIdentityVerificationAttributesRequest": { - "type": "structure", - "members": { - "Identities": {"shape": "IdentityList", "flattened": false} - }, - "flattened": false - }, - "GetIdentityVerificationAttributesResponse": { - "type": "structure", - "members": { - "VerificationAttributes": { - "shape": "VerificationAttributes", - "flattened": false - } - }, - "flattened": false - }, - "GetSendQuotaResponse": { - "type": "structure", - "members": { - "Max24HourSend": {"shape": "Max24HourSend", "flattened": false}, - "MaxSendRate": {"shape": "MaxSendRate", "flattened": false}, - "SentLast24Hours": {"shape": "SentLast24Hours", "flattened": false} - }, - "flattened": false - }, - "GetSendStatisticsResponse": { - "type": "structure", - "members": { - "SendDataPoints": {"shape": "SendDataPointList", "flattened": false} - }, - "flattened": false - }, - "GetTemplateRequest": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false} - }, - "flattened": false - }, - "GetTemplateResponse": { - "type": "structure", - "members": { - "Template": {"shape": "Template", "flattened": false} - }, - "flattened": false - }, - "HeaderName": {"type": "string", "flattened": false}, - "HeaderValue": {"type": "string", "flattened": false}, - "HtmlPart": {"type": "string", "flattened": false}, - "Identity": {"type": "string", "flattened": false}, - "IdentityDkimAttributes": { - "type": "structure", - "members": { - "DkimEnabled": {"shape": "Enabled", "flattened": false}, - "DkimVerificationStatus": { - "shape": "VerificationStatus", - "flattened": false - }, - "DkimTokens": {"shape": "VerificationTokenList", "flattened": false} - }, - "flattened": false - }, - "IdentityList": { - "type": "list", - "member": {"shape": "Identity"}, - "flattened": false - }, - "IdentityMailFromDomainAttributes": { - "type": "structure", - "members": { - "MailFromDomain": {"shape": "MailFromDomainName", "flattened": false}, - "MailFromDomainStatus": { - "shape": "CustomMailFromStatus", - "flattened": false - }, - "BehaviorOnMXFailure": { - "shape": "BehaviorOnMXFailure", - "flattened": false - } - }, - "flattened": false - }, - "IdentityNotificationAttributes": { - "type": "structure", - "members": { - "BounceTopic": {"shape": "NotificationTopic", "flattened": false}, - "ComplaintTopic": {"shape": "NotificationTopic", "flattened": false}, - "DeliveryTopic": {"shape": "NotificationTopic", "flattened": false}, - "ForwardingEnabled": {"shape": "Enabled", "flattened": false}, - "HeadersInBounceNotificationsEnabled": { - "shape": "Enabled", - "flattened": false - }, - "HeadersInComplaintNotificationsEnabled": { - "shape": "Enabled", - "flattened": false - }, - "HeadersInDeliveryNotificationsEnabled": { - "shape": "Enabled", - "flattened": false - } - }, - "flattened": false - }, - "IdentityType": {"type": "string", "flattened": false}, - "IdentityVerificationAttributes": { - "type": "structure", - "members": { - "VerificationStatus": {"shape": "VerificationStatus", "flattened": false}, - "VerificationToken": {"shape": "VerificationToken", "flattened": false} - }, - "flattened": false - }, - "InvocationType": {"type": "string", "flattened": false}, - "KinesisFirehoseDestination": { - "type": "structure", - "members": { - "IAMRoleARN": {"shape": "AmazonResourceName", "flattened": false}, - "DeliveryStreamARN": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "LambdaAction": { - "type": "structure", - "members": { - "TopicArn": {"shape": "AmazonResourceName", "flattened": false}, - "FunctionArn": {"shape": "AmazonResourceName", "flattened": false}, - "InvocationType": {"shape": "InvocationType", "flattened": false} - }, - "flattened": false - }, - "LastAttemptDate": {"type": "timestamp", "flattened": false}, - "LastFreshStart": {"type": "timestamp", "flattened": false}, - "ListConfigurationSetsRequest": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxItems": {"shape": "MaxItems", "flattened": false} - }, - "flattened": false - }, - "ListConfigurationSetsResponse": { - "type": "structure", - "members": { - "ConfigurationSets": {"shape": "ConfigurationSets", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListCustomVerificationEmailTemplatesRequest": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxResults": {"shape": "MaxResults", "flattened": false} - }, - "flattened": false - }, - "ListCustomVerificationEmailTemplatesResponse": { - "type": "structure", - "members": { - "CustomVerificationEmailTemplates": { - "shape": "CustomVerificationEmailTemplates", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListIdentitiesRequest": { - "type": "structure", - "members": { - "IdentityType": {"shape": "IdentityType", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxItems": {"shape": "MaxItems", "flattened": false} - }, - "flattened": false - }, - "ListIdentitiesResponse": { - "type": "structure", - "members": { - "Identities": {"shape": "IdentityList", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListIdentityPoliciesRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false} - }, - "flattened": false - }, - "ListIdentityPoliciesResponse": { - "type": "structure", - "members": { - "PolicyNames": {"shape": "PolicyNameList", "flattened": false} - }, - "flattened": false - }, - "ListReceiptFiltersRequest": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ListReceiptFiltersResponse": { - "type": "structure", - "members": { - "Filters": {"shape": "ReceiptFilterList", "flattened": false} - }, - "flattened": false - }, - "ListReceiptRuleSetsRequest": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListReceiptRuleSetsResponse": { - "type": "structure", - "members": { - "RuleSets": {"shape": "ReceiptRuleSetsLists", "flattened": false}, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListTemplatesRequest": { - "type": "structure", - "members": { - "NextToken": {"shape": "NextToken", "flattened": false}, - "MaxItems": {"shape": "MaxItems", "flattened": false} - }, - "flattened": false - }, - "ListTemplatesResponse": { - "type": "structure", - "members": { - "TemplatesMetadata": { - "shape": "TemplateMetadataList", - "flattened": false - }, - "NextToken": {"shape": "NextToken", "flattened": false} - }, - "flattened": false - }, - "ListVerifiedEmailAddressesResponse": { - "type": "structure", - "members": { - "VerifiedEmailAddresses": {"shape": "AddressList", "flattened": false} - }, - "flattened": false - }, - "MailFromDomainAttributes": { - "type": "map", - "key": {"shape": "Identity"}, - "value": {"shape": "IdentityMailFromDomainAttributes"}, - "flattened": false - }, - "MailFromDomainName": {"type": "string", "flattened": false}, - "Max24HourSend": {"type": "double", "flattened": false}, - "MaxItems": {"type": "integer", "flattened": false}, - "MaxResults": {"type": "integer", "flattened": false}, - "MaxSendRate": {"type": "double", "flattened": false}, - "Message": { - "type": "structure", - "members": { - "Subject": {"shape": "Content", "flattened": false}, - "Body": {"shape": "Body", "flattened": false} - }, - "flattened": false - }, - "MessageData": {"type": "string", "flattened": false}, - "MessageDsn": { - "type": "structure", - "members": { - "ReportingMta": {"shape": "ReportingMta", "flattened": false}, - "ArrivalDate": {"shape": "ArrivalDate", "flattened": false}, - "ExtensionFields": {"shape": "ExtensionFieldList", "flattened": false} - }, - "flattened": false - }, - "MessageId": {"type": "string", "flattened": false}, - "MessageTag": { - "type": "structure", - "members": { - "Name": {"shape": "MessageTagName", "flattened": false}, - "Value": {"shape": "MessageTagValue", "flattened": false} - }, - "flattened": false - }, - "MessageTagList": { - "type": "list", - "member": {"shape": "MessageTag"}, - "flattened": false - }, - "MessageTagName": {"type": "string", "flattened": false}, - "MessageTagValue": {"type": "string", "flattened": false}, - "NextToken": {"type": "string", "flattened": false}, - "NotificationAttributes": { - "type": "map", - "key": {"shape": "Identity"}, - "value": {"shape": "IdentityNotificationAttributes"}, - "flattened": false - }, - "NotificationTopic": {"type": "string", "flattened": false}, - "NotificationType": {"type": "string", "flattened": false}, - "Policy": {"type": "string", "flattened": false}, - "PolicyMap": { - "type": "map", - "key": {"shape": "PolicyName"}, - "value": {"shape": "Policy"}, - "flattened": false - }, - "PolicyName": {"type": "string", "flattened": false}, - "PolicyNameList": { - "type": "list", - "member": {"shape": "PolicyName"}, - "flattened": false - }, - "PutConfigurationSetDeliveryOptionsRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "DeliveryOptions": {"shape": "DeliveryOptions", "flattened": false} - }, - "flattened": false - }, - "PutConfigurationSetDeliveryOptionsResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "PutIdentityPolicyRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "PolicyName": {"shape": "PolicyName", "flattened": false}, - "Policy": {"shape": "Policy", "flattened": false} - }, - "flattened": false - }, - "PutIdentityPolicyResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "RawMessage": { - "type": "structure", - "members": { - "Data": {"shape": "RawMessageData", "flattened": false} - }, - "flattened": false - }, - "RawMessageData": {"type": "blob", "flattened": false}, - "ReceiptAction": { - "type": "structure", - "members": { - "S3Action": {"shape": "S3Action", "flattened": false}, - "BounceAction": {"shape": "BounceAction", "flattened": false}, - "WorkmailAction": {"shape": "WorkmailAction", "flattened": false}, - "LambdaAction": {"shape": "LambdaAction", "flattened": false}, - "StopAction": {"shape": "StopAction", "flattened": false}, - "AddHeaderAction": {"shape": "AddHeaderAction", "flattened": false}, - "SNSAction": {"shape": "SNSAction", "flattened": false} - }, - "flattened": false - }, - "ReceiptActionsList": { - "type": "list", - "member": {"shape": "ReceiptAction"}, - "flattened": false - }, - "ReceiptFilter": { - "type": "structure", - "members": { - "Name": {"shape": "ReceiptFilterName", "flattened": false}, - "IpFilter": {"shape": "ReceiptIpFilter", "flattened": false} - }, - "flattened": false - }, - "ReceiptFilterList": { - "type": "list", - "member": {"shape": "ReceiptFilter"}, - "flattened": false - }, - "ReceiptFilterName": {"type": "string", "flattened": false}, - "ReceiptFilterPolicy": {"type": "string", "flattened": false}, - "ReceiptIpFilter": { - "type": "structure", - "members": { - "Policy": {"shape": "ReceiptFilterPolicy", "flattened": false}, - "Cidr": {"shape": "Cidr", "flattened": false} - }, - "flattened": false - }, - "ReceiptRule": { - "type": "structure", - "members": { - "Name": {"shape": "ReceiptRuleName", "flattened": false}, - "Enabled": {"shape": "Enabled", "flattened": false}, - "TlsPolicy": {"shape": "TlsPolicy", "flattened": false}, - "Recipients": {"shape": "RecipientsList", "flattened": false}, - "Actions": {"shape": "ReceiptActionsList", "flattened": false}, - "ScanEnabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "ReceiptRuleName": {"type": "string", "flattened": false}, - "ReceiptRuleNamesList": { - "type": "list", - "member": {"shape": "ReceiptRuleName"}, - "flattened": false - }, - "ReceiptRuleSetMetadata": { - "type": "structure", - "members": { - "Name": {"shape": "ReceiptRuleSetName", "flattened": false}, - "CreatedTimestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "ReceiptRuleSetName": {"type": "string", "flattened": false}, - "ReceiptRuleSetsLists": { - "type": "list", - "member": {"shape": "ReceiptRuleSetMetadata"}, - "flattened": false - }, - "ReceiptRulesList": { - "type": "list", - "member": {"shape": "ReceiptRule"}, - "flattened": false - }, - "Recipient": {"type": "string", "flattened": false}, - "RecipientDsnFields": { - "type": "structure", - "members": { - "FinalRecipient": {"shape": "Address", "flattened": false}, - "Action": {"shape": "DsnAction", "flattened": false}, - "RemoteMta": {"shape": "RemoteMta", "flattened": false}, - "Status": {"shape": "DsnStatus", "flattened": false}, - "DiagnosticCode": {"shape": "DiagnosticCode", "flattened": false}, - "LastAttemptDate": {"shape": "LastAttemptDate", "flattened": false}, - "ExtensionFields": {"shape": "ExtensionFieldList", "flattened": false} - }, - "flattened": false - }, - "RecipientsList": { - "type": "list", - "member": {"shape": "Recipient"}, - "flattened": false - }, - "RemoteMta": {"type": "string", "flattened": false}, - "RenderedTemplate": {"type": "string", "flattened": false}, - "ReorderReceiptRuleSetRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false}, - "RuleNames": {"shape": "ReceiptRuleNamesList", "flattened": false} - }, - "flattened": false - }, - "ReorderReceiptRuleSetResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "ReportingMta": {"type": "string", "flattened": false}, - "ReputationOptions": { - "type": "structure", - "members": { - "SendingEnabled": {"shape": "Enabled", "flattened": false}, - "ReputationMetricsEnabled": {"shape": "Enabled", "flattened": false}, - "LastFreshStart": {"shape": "LastFreshStart", "flattened": false} - }, - "flattened": false - }, - "S3Action": { - "type": "structure", - "members": { - "TopicArn": {"shape": "AmazonResourceName", "flattened": false}, - "BucketName": {"shape": "S3BucketName", "flattened": false}, - "ObjectKeyPrefix": {"shape": "S3KeyPrefix", "flattened": false}, - "KmsKeyArn": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "S3BucketName": {"type": "string", "flattened": false}, - "S3KeyPrefix": {"type": "string", "flattened": false}, - "SNSAction": { - "type": "structure", - "members": { - "TopicArn": {"shape": "AmazonResourceName", "flattened": false}, - "Encoding": {"shape": "SNSActionEncoding", "flattened": false} - }, - "flattened": false - }, - "SNSActionEncoding": {"type": "string", "flattened": false}, - "SNSDestination": { - "type": "structure", - "members": { - "TopicARN": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "SendBounceRequest": { - "type": "structure", - "members": { - "OriginalMessageId": {"shape": "MessageId", "flattened": false}, - "BounceSender": {"shape": "Address", "flattened": false}, - "Explanation": {"shape": "Explanation", "flattened": false}, - "MessageDsn": {"shape": "MessageDsn", "flattened": false}, - "BouncedRecipientInfoList": { - "shape": "BouncedRecipientInfoList", - "flattened": false - }, - "BounceSenderArn": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "SendBounceResponse": { - "type": "structure", - "members": { - "MessageId": {"shape": "MessageId", "flattened": false} - }, - "flattened": false - }, - "SendBulkTemplatedEmailRequest": { - "type": "structure", - "members": { - "Source": {"shape": "Address", "flattened": false}, - "SourceArn": {"shape": "AmazonResourceName", "flattened": false}, - "ReplyToAddresses": {"shape": "AddressList", "flattened": false}, - "ReturnPath": {"shape": "Address", "flattened": false}, - "ReturnPathArn": {"shape": "AmazonResourceName", "flattened": false}, - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "DefaultTags": {"shape": "MessageTagList", "flattened": false}, - "Template": {"shape": "TemplateName", "flattened": false}, - "TemplateArn": {"shape": "AmazonResourceName", "flattened": false}, - "DefaultTemplateData": {"shape": "TemplateData", "flattened": false}, - "Destinations": {"shape": "BulkEmailDestinationList", "flattened": false} - }, - "flattened": false - }, - "SendBulkTemplatedEmailResponse": { - "type": "structure", - "members": { - "Status": {"shape": "BulkEmailDestinationStatusList", "flattened": false} - }, - "flattened": false - }, - "SendCustomVerificationEmailRequest": { - "type": "structure", - "members": { - "EmailAddress": {"shape": "Address", "flattened": false}, - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - } - }, - "flattened": false - }, - "SendCustomVerificationEmailResponse": { - "type": "structure", - "members": { - "MessageId": {"shape": "MessageId", "flattened": false} - }, - "flattened": false - }, - "SendDataPoint": { - "type": "structure", - "members": { - "Timestamp": {"shape": "Timestamp", "flattened": false}, - "DeliveryAttempts": {"shape": "Counter", "flattened": false}, - "Bounces": {"shape": "Counter", "flattened": false}, - "Complaints": {"shape": "Counter", "flattened": false}, - "Rejects": {"shape": "Counter", "flattened": false} - }, - "flattened": false - }, - "SendDataPointList": { - "type": "list", - "member": {"shape": "SendDataPoint"}, - "flattened": false - }, - "SendEmailRequest": { - "type": "structure", - "members": { - "Source": {"shape": "Address", "flattened": false}, - "Destination": {"shape": "Destination", "flattened": false}, - "Message": {"shape": "Message", "flattened": false}, - "ReplyToAddresses": {"shape": "AddressList", "flattened": false}, - "ReturnPath": {"shape": "Address", "flattened": false}, - "SourceArn": {"shape": "AmazonResourceName", "flattened": false}, - "ReturnPathArn": {"shape": "AmazonResourceName", "flattened": false}, - "Tags": {"shape": "MessageTagList", "flattened": false}, - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - } - }, - "flattened": false - }, - "SendEmailResponse": { - "type": "structure", - "members": { - "MessageId": {"shape": "MessageId", "flattened": false} - }, - "flattened": false - }, - "SendRawEmailRequest": { - "type": "structure", - "members": { - "Source": {"shape": "Address", "flattened": false}, - "Destinations": {"shape": "AddressList", "flattened": false}, - "RawMessage": {"shape": "RawMessage", "flattened": false}, - "FromArn": {"shape": "AmazonResourceName", "flattened": false}, - "SourceArn": {"shape": "AmazonResourceName", "flattened": false}, - "ReturnPathArn": {"shape": "AmazonResourceName", "flattened": false}, - "Tags": {"shape": "MessageTagList", "flattened": false}, - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - } - }, - "flattened": false - }, - "SendRawEmailResponse": { - "type": "structure", - "members": { - "MessageId": {"shape": "MessageId", "flattened": false} - }, - "flattened": false - }, - "SendTemplatedEmailRequest": { - "type": "structure", - "members": { - "Source": {"shape": "Address", "flattened": false}, - "Destination": {"shape": "Destination", "flattened": false}, - "ReplyToAddresses": {"shape": "AddressList", "flattened": false}, - "ReturnPath": {"shape": "Address", "flattened": false}, - "SourceArn": {"shape": "AmazonResourceName", "flattened": false}, - "ReturnPathArn": {"shape": "AmazonResourceName", "flattened": false}, - "Tags": {"shape": "MessageTagList", "flattened": false}, - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "Template": {"shape": "TemplateName", "flattened": false}, - "TemplateArn": {"shape": "AmazonResourceName", "flattened": false}, - "TemplateData": {"shape": "TemplateData", "flattened": false} - }, - "flattened": false - }, - "SendTemplatedEmailResponse": { - "type": "structure", - "members": { - "MessageId": {"shape": "MessageId", "flattened": false} - }, - "flattened": false - }, - "SentLast24Hours": {"type": "double", "flattened": false}, - "SetActiveReceiptRuleSetRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false} - }, - "flattened": false - }, - "SetActiveReceiptRuleSetResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetIdentityDkimEnabledRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "DkimEnabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "SetIdentityDkimEnabledResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetIdentityFeedbackForwardingEnabledRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "ForwardingEnabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "SetIdentityFeedbackForwardingEnabledResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetIdentityHeadersInNotificationsEnabledRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "NotificationType": {"shape": "NotificationType", "flattened": false}, - "Enabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "SetIdentityHeadersInNotificationsEnabledResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetIdentityMailFromDomainRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "MailFromDomain": {"shape": "MailFromDomainName", "flattened": false}, - "BehaviorOnMXFailure": { - "shape": "BehaviorOnMXFailure", - "flattened": false - } - }, - "flattened": false - }, - "SetIdentityMailFromDomainResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetIdentityNotificationTopicRequest": { - "type": "structure", - "members": { - "Identity": {"shape": "Identity", "flattened": false}, - "NotificationType": {"shape": "NotificationType", "flattened": false}, - "SnsTopic": {"shape": "NotificationTopic", "flattened": false} - }, - "flattened": false - }, - "SetIdentityNotificationTopicResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetReceiptRulePositionRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false}, - "RuleName": {"shape": "ReceiptRuleName", "flattened": false}, - "After": {"shape": "ReceiptRuleName", "flattened": false} - }, - "flattened": false - }, - "SetReceiptRulePositionResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "StopAction": { - "type": "structure", - "members": { - "Scope": {"shape": "StopScope", "flattened": false}, - "TopicArn": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "StopScope": {"type": "string", "flattened": false}, - "Subject": {"type": "string", "flattened": false}, - "SubjectPart": {"type": "string", "flattened": false}, - "SuccessRedirectionURL": {"type": "string", "flattened": false}, - "Template": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "SubjectPart": {"shape": "SubjectPart", "flattened": false}, - "TextPart": {"shape": "TextPart", "flattened": false}, - "HtmlPart": {"shape": "HtmlPart", "flattened": false} - }, - "flattened": false - }, - "TemplateContent": {"type": "string", "flattened": false}, - "TemplateData": {"type": "string", "flattened": false}, - "TemplateMetadata": { - "type": "structure", - "members": { - "Name": {"shape": "TemplateName", "flattened": false}, - "CreatedTimestamp": {"shape": "Timestamp", "flattened": false} - }, - "flattened": false - }, - "TemplateMetadataList": { - "type": "list", - "member": {"shape": "TemplateMetadata"}, - "flattened": false - }, - "TemplateName": {"type": "string", "flattened": false}, - "TestRenderTemplateRequest": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "TemplateData": {"shape": "TemplateData", "flattened": false} - }, - "flattened": false - }, - "TestRenderTemplateResponse": { - "type": "structure", - "members": { - "RenderedTemplate": {"shape": "RenderedTemplate", "flattened": false} - }, - "flattened": false - }, - "TextPart": {"type": "string", "flattened": false}, - "Timestamp": {"type": "timestamp", "flattened": false}, - "TlsPolicy": {"type": "string", "flattened": false}, - "TrackingOptions": { - "type": "structure", - "members": { - "CustomRedirectDomain": { - "shape": "CustomRedirectDomain", - "flattened": false - } - }, - "flattened": false - }, - "UpdateAccountSendingEnabledRequest": { - "type": "structure", - "members": { - "Enabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "UpdateConfigurationSetEventDestinationRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "EventDestination": {"shape": "EventDestination", "flattened": false} - }, - "flattened": false - }, - "UpdateConfigurationSetEventDestinationResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "UpdateConfigurationSetReputationMetricsEnabledRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "Enabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "UpdateConfigurationSetSendingEnabledRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "Enabled": {"shape": "Enabled", "flattened": false} - }, - "flattened": false - }, - "UpdateConfigurationSetTrackingOptionsRequest": { - "type": "structure", - "members": { - "ConfigurationSetName": { - "shape": "ConfigurationSetName", - "flattened": false - }, - "TrackingOptions": {"shape": "TrackingOptions", "flattened": false} - }, - "flattened": false - }, - "UpdateConfigurationSetTrackingOptionsResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "UpdateCustomVerificationEmailTemplateRequest": { - "type": "structure", - "members": { - "TemplateName": {"shape": "TemplateName", "flattened": false}, - "FromEmailAddress": {"shape": "FromAddress", "flattened": false}, - "TemplateSubject": {"shape": "Subject", "flattened": false}, - "TemplateContent": {"shape": "TemplateContent", "flattened": false}, - "SuccessRedirectionURL": { - "shape": "SuccessRedirectionURL", - "flattened": false - }, - "FailureRedirectionURL": { - "shape": "FailureRedirectionURL", - "flattened": false - } - }, - "flattened": false - }, - "UpdateReceiptRuleRequest": { - "type": "structure", - "members": { - "RuleSetName": {"shape": "ReceiptRuleSetName", "flattened": false}, - "Rule": {"shape": "ReceiptRule", "flattened": false} - }, - "flattened": false - }, - "UpdateReceiptRuleResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "UpdateTemplateRequest": { - "type": "structure", - "members": { - "Template": {"shape": "Template", "flattened": false} - }, - "flattened": false - }, - "UpdateTemplateResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "VerificationAttributes": { - "type": "map", - "key": {"shape": "Identity"}, - "value": {"shape": "IdentityVerificationAttributes"}, - "flattened": false - }, - "VerificationStatus": {"type": "string", "flattened": false}, - "VerificationToken": {"type": "string", "flattened": false}, - "VerificationTokenList": { - "type": "list", - "member": {"shape": "VerificationToken"}, - "flattened": false - }, - "VerifyDomainDkimRequest": { - "type": "structure", - "members": { - "Domain": {"shape": "Domain", "flattened": false} - }, - "flattened": false - }, - "VerifyDomainDkimResponse": { - "type": "structure", - "members": { - "DkimTokens": {"shape": "VerificationTokenList", "flattened": false} - }, - "flattened": false - }, - "VerifyDomainIdentityRequest": { - "type": "structure", - "members": { - "Domain": {"shape": "Domain", "flattened": false} - }, - "flattened": false - }, - "VerifyDomainIdentityResponse": { - "type": "structure", - "members": { - "VerificationToken": {"shape": "VerificationToken", "flattened": false} - }, - "flattened": false - }, - "VerifyEmailAddressRequest": { - "type": "structure", - "members": { - "EmailAddress": {"shape": "Address", "flattened": false} - }, - "flattened": false - }, - "VerifyEmailIdentityRequest": { - "type": "structure", - "members": { - "EmailAddress": {"shape": "Address", "flattened": false} - }, - "flattened": false - }, - "VerifyEmailIdentityResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "WorkmailAction": { - "type": "structure", - "members": { - "TopicArn": {"shape": "AmazonResourceName", "flattened": false}, - "OrganizationArn": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/simple_db/v2009_04_15.dart b/aws_client/lib/src/generated/simple_db/v2009_04_15.dart index 64d2beea4..9430c0c7f 100644 --- a/aws_client/lib/src/generated/simple_db/v2009_04_15.dart +++ b/aws_client/lib/src/generated/simple_db/v2009_04_15.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2009_04_15.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon SimpleDB is a web service providing the core database functions of @@ -39,7 +38,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// for more information. class SimpleDB { final _s.QueryProtocol _protocol; - final Map shapes; SimpleDB({ required String region, @@ -47,7 +45,7 @@ class SimpleDB { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'sdb', @@ -56,9 +54,7 @@ class SimpleDB { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -106,9 +102,15 @@ class SimpleDB { required String domainName, required List items, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Items'] = items; + final $request = { + 'DomainName': domainName, + if (items.isEmpty) + 'Items': '' + else + for (var i1 = 0; i1 < items.length; i1++) + for (var e2 in items[i1].toQueryMap().entries) + 'Item.${i1 + 1}.${e2.key}': e2.value, + }; await _protocol.send( $request, action: 'BatchDeleteAttributes', @@ -116,8 +118,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDeleteAttributesRequest'], - shapes: shapes, ); } @@ -194,9 +194,15 @@ class SimpleDB { required String domainName, required List items, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Items'] = items; + final $request = { + 'DomainName': domainName, + if (items.isEmpty) + 'Items': '' + else + for (var i1 = 0; i1 < items.length; i1++) + for (var e2 in items[i1].toQueryMap().entries) + 'Item.${i1 + 1}.${e2.key}': e2.value, + }; await _protocol.send( $request, action: 'BatchPutAttributes', @@ -204,8 +210,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchPutAttributesRequest'], - shapes: shapes, ); } @@ -232,8 +236,9 @@ class SimpleDB { Future createDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; await _protocol.send( $request, action: 'CreateDomain', @@ -241,8 +246,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDomainRequest'], - shapes: shapes, ); } @@ -288,11 +291,20 @@ class SimpleDB { List? attributes, UpdateCondition? expected, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ItemName'] = itemName; - attributes?.also((arg) => $request['Attributes'] = arg); - expected?.also((arg) => $request['Expected'] = arg); + final $request = { + 'DomainName': domainName, + 'ItemName': itemName, + if (attributes != null) + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + if (expected != null) + for (var e1 in expected.toQueryMap().entries) + 'Expected.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'DeleteAttributes', @@ -300,8 +312,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAttributesRequest'], - shapes: shapes, ); } @@ -320,8 +330,9 @@ class SimpleDB { Future deleteDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; await _protocol.send( $request, action: 'DeleteDomain', @@ -329,8 +340,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDomainRequest'], - shapes: shapes, ); } @@ -346,8 +355,9 @@ class SimpleDB { Future domainMetadata({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DomainMetadata', @@ -355,8 +365,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DomainMetadataRequest'], - shapes: shapes, resultWrapper: 'DomainMetadataResult', ); return DomainMetadataResult.fromXml($result); @@ -397,11 +405,17 @@ class SimpleDB { List? attributeNames, bool? consistentRead, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ItemName'] = itemName; - attributeNames?.also((arg) => $request['AttributeNames'] = arg); - consistentRead?.also((arg) => $request['ConsistentRead'] = arg); + final $request = { + 'DomainName': domainName, + 'ItemName': itemName, + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeName.${i1 + 1}': attributeNames[i1], + if (consistentRead != null) 'ConsistentRead': consistentRead.toString(), + }; final $result = await _protocol.send( $request, action: 'GetAttributes', @@ -409,8 +423,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAttributesRequest'], - shapes: shapes, resultWrapper: 'GetAttributesResult', ); return GetAttributesResult.fromXml($result); @@ -439,9 +451,11 @@ class SimpleDB { int? maxNumberOfDomains, String? nextToken, }) async { - final $request = {}; - maxNumberOfDomains?.also((arg) => $request['MaxNumberOfDomains'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxNumberOfDomains != null) + 'MaxNumberOfDomains': maxNumberOfDomains.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListDomains', @@ -449,8 +463,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListDomainsRequest'], - shapes: shapes, resultWrapper: 'ListDomainsResult', ); return ListDomainsResult.fromXml($result); @@ -526,11 +538,19 @@ class SimpleDB { required String itemName, UpdateCondition? expected, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['DomainName'] = domainName; - $request['ItemName'] = itemName; - expected?.also((arg) => $request['Expected'] = arg); + final $request = { + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + 'DomainName': domainName, + 'ItemName': itemName, + if (expected != null) + for (var e1 in expected.toQueryMap().entries) + 'Expected.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'PutAttributes', @@ -538,8 +558,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutAttributesRequest'], - shapes: shapes, ); } @@ -585,10 +603,11 @@ class SimpleDB { bool? consistentRead, String? nextToken, }) async { - final $request = {}; - $request['SelectExpression'] = selectExpression; - consistentRead?.also((arg) => $request['ConsistentRead'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'SelectExpression': selectExpression, + if (consistentRead != null) 'ConsistentRead': consistentRead.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'Select', @@ -596,8 +615,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SelectRequest'], - shapes: shapes, resultWrapper: 'SelectResult', ); return SelectResult.fromXml($result); @@ -693,6 +710,15 @@ class DeletableAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + if (value != null) 'Value': value, + }; + } } class DeletableItem { @@ -712,6 +738,21 @@ class DeletableItem { if (attributes != null) 'Attributes': attributes, }; } + + Map toQueryMap() { + final name = this.name; + final attributes = this.attributes; + return { + 'ItemName': name, + if (attributes != null) + if (attributes.isEmpty) + 'Attribute': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + }; + } } class DomainMetadataResult { @@ -1194,6 +1235,17 @@ class ReplaceableAttribute { if (replace != null) 'Replace': replace, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + final replace = this.replace; + return { + 'Name': name, + 'Value': value, + if (replace != null) 'Replace': replace.toString(), + }; + } } /// @@ -1217,6 +1269,20 @@ class ReplaceableItem { 'ItemName': name, }; } + + Map toQueryMap() { + final attributes = this.attributes; + final name = this.name; + return { + if (attributes.isEmpty) + 'Attribute': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + 'ItemName': name, + }; + } } /// A timeout occurred when attempting to query the specified domain with @@ -1327,6 +1393,17 @@ class UpdateCondition { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final exists = this.exists; + final name = this.name; + final value = this.value; + return { + if (exists != null) 'Exists': exists.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } final _exceptionFns = { diff --git a/aws_client/lib/src/generated/simple_db/v2009_04_15.meta.dart b/aws_client/lib/src/generated/simple_db/v2009_04_15.meta.dart deleted file mode 100644 index fad2f2be3..000000000 --- a/aws_client/lib/src/generated/simple_db/v2009_04_15.meta.dart +++ /dev/null @@ -1,348 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "Attribute": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "AlternateNameEncoding": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false}, - "AlternateValueEncoding": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "AttributeDoesNotExist": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "AttributeList": { - "type": "list", - "member": {"shape": "Attribute", "locationName": "Attribute"}, - "flattened": true - }, - "AttributeNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "AttributeName"}, - "flattened": true - }, - "BatchDeleteAttributesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false}, - "Items": {"shape": "DeletableItemList", "flattened": false} - }, - "flattened": false - }, - "BatchPutAttributesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false}, - "Items": {"shape": "ReplaceableItemList", "flattened": false} - }, - "flattened": false - }, - "Boolean": {"type": "boolean", "flattened": false}, - "CreateDomainRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeletableAttribute": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeletableAttributeList": { - "type": "list", - "member": {"shape": "DeletableAttribute", "locationName": "Attribute"}, - "flattened": true - }, - "DeletableItem": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "DeletableAttributeList", "flattened": false} - }, - "flattened": false - }, - "DeletableItemList": { - "type": "list", - "member": {"shape": "DeletableItem", "locationName": "Item"}, - "flattened": true - }, - "DeleteAttributesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false}, - "ItemName": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "DeletableAttributeList", "flattened": false}, - "Expected": {"shape": "UpdateCondition", "flattened": false} - }, - "flattened": false - }, - "DeleteDomainRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DomainMetadataRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DomainMetadataResult": { - "type": "structure", - "members": { - "ItemCount": {"shape": "Integer", "flattened": false}, - "ItemNamesSizeBytes": {"shape": "Long", "flattened": false}, - "AttributeNameCount": {"shape": "Integer", "flattened": false}, - "AttributeNamesSizeBytes": {"shape": "Long", "flattened": false}, - "AttributeValueCount": {"shape": "Integer", "flattened": false}, - "AttributeValuesSizeBytes": {"shape": "Long", "flattened": false}, - "Timestamp": {"shape": "Integer", "flattened": false} - }, - "flattened": false - }, - "DomainNameList": { - "type": "list", - "member": {"shape": "String", "locationName": "DomainName"}, - "flattened": true - }, - "DuplicateItemName": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "Float": {"type": "float", "flattened": false}, - "GetAttributesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false}, - "ItemName": {"shape": "String", "flattened": false}, - "AttributeNames": {"shape": "AttributeNameList", "flattened": false}, - "ConsistentRead": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "GetAttributesResult": { - "type": "structure", - "members": { - "Attributes": {"shape": "AttributeList", "flattened": false} - }, - "flattened": false - }, - "Integer": {"type": "integer", "flattened": false}, - "InvalidNextToken": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "InvalidNumberPredicates": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "InvalidNumberValueTests": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "InvalidParameterValue": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "InvalidQueryExpression": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "Item": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "AlternateNameEncoding": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "AttributeList", "flattened": false} - }, - "flattened": false - }, - "ItemList": { - "type": "list", - "member": {"shape": "Item", "locationName": "Item"}, - "flattened": true - }, - "ListDomainsRequest": { - "type": "structure", - "members": { - "MaxNumberOfDomains": {"shape": "Integer", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListDomainsResult": { - "type": "structure", - "members": { - "DomainNames": {"shape": "DomainNameList", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "Long": {"type": "long", "flattened": false}, - "MissingParameter": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "NoSuchDomain": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "NumberDomainAttributesExceeded": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "NumberDomainBytesExceeded": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "NumberDomainsExceeded": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "NumberItemAttributesExceeded": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "NumberSubmittedAttributesExceeded": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "NumberSubmittedItemsExceeded": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "PutAttributesRequest": { - "type": "structure", - "members": { - "DomainName": {"shape": "String", "flattened": false}, - "ItemName": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "ReplaceableAttributeList", "flattened": false}, - "Expected": {"shape": "UpdateCondition", "flattened": false} - }, - "flattened": false - }, - "ReplaceableAttribute": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false}, - "Replace": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "ReplaceableAttributeList": { - "type": "list", - "member": {"shape": "ReplaceableAttribute", "locationName": "Attribute"}, - "flattened": true - }, - "ReplaceableItem": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "ReplaceableAttributeList", "flattened": false} - }, - "flattened": false - }, - "ReplaceableItemList": { - "type": "list", - "member": {"shape": "ReplaceableItem", "locationName": "Item"}, - "flattened": true - }, - "RequestTimeout": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "SelectRequest": { - "type": "structure", - "members": { - "SelectExpression": {"shape": "String", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false}, - "ConsistentRead": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - }, - "SelectResult": { - "type": "structure", - "members": { - "Items": {"shape": "ItemList", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "TooManyRequestedAttributes": { - "type": "structure", - "members": { - "BoxUsage": {"shape": "Float", "flattened": false} - }, - "flattened": false - }, - "UpdateCondition": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Value": {"shape": "String", "flattened": false}, - "Exists": {"shape": "Boolean", "flattened": false} - }, - "flattened": false - } -}; diff --git a/aws_client/lib/src/generated/sns/v2010_03_31.dart b/aws_client/lib/src/generated/sns/v2010_03_31.dart index d5421ed90..124ea2eb2 100644 --- a/aws_client/lib/src/generated/sns/v2010_03_31.dart +++ b/aws_client/lib/src/generated/sns/v2010_03_31.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2010_03_31.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Amazon Simple Notification Service (Amazon SNS) is a web service that @@ -31,7 +30,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// Guide. class Sns { final _s.QueryProtocol _protocol; - final Map shapes; Sns({ required String region, @@ -39,7 +37,7 @@ class Sns { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'sns', @@ -48,9 +46,7 @@ class Sns { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -97,11 +93,20 @@ class Sns { required String label, required String topicArn, }) async { - final $request = {}; - $request['AWSAccountId'] = awsAccountId; - $request['ActionName'] = actionName; - $request['Label'] = label; - $request['TopicArn'] = topicArn; + final $request = { + if (awsAccountId.isEmpty) + 'AWSAccountId': '' + else + for (var i1 = 0; i1 < awsAccountId.length; i1++) + 'AWSAccountId.member.${i1 + 1}': awsAccountId[i1], + if (actionName.isEmpty) + 'ActionName': '' + else + for (var i1 = 0; i1 < actionName.length; i1++) + 'ActionName.member.${i1 + 1}': actionName[i1], + 'Label': label, + 'TopicArn': topicArn, + }; await _protocol.send( $request, action: 'AddPermission', @@ -109,8 +114,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddPermissionInput'], - shapes: shapes, ); } @@ -131,8 +134,9 @@ class Sns { Future checkIfPhoneNumberIsOptedOut({ required String phoneNumber, }) async { - final $request = {}; - $request['phoneNumber'] = phoneNumber; + final $request = { + 'phoneNumber': phoneNumber, + }; final $result = await _protocol.send( $request, action: 'CheckIfPhoneNumberIsOptedOut', @@ -140,8 +144,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CheckIfPhoneNumberIsOptedOutInput'], - shapes: shapes, resultWrapper: 'CheckIfPhoneNumberIsOptedOutResult', ); return CheckIfPhoneNumberIsOptedOutResponse.fromXml($result); @@ -179,11 +181,12 @@ class Sns { required String topicArn, String? authenticateOnUnsubscribe, }) async { - final $request = {}; - $request['Token'] = token; - $request['TopicArn'] = topicArn; - authenticateOnUnsubscribe - ?.also((arg) => $request['AuthenticateOnUnsubscribe'] = arg); + final $request = { + 'Token': token, + 'TopicArn': topicArn, + if (authenticateOnUnsubscribe != null) + 'AuthenticateOnUnsubscribe': authenticateOnUnsubscribe, + }; final $result = await _protocol.send( $request, action: 'ConfirmSubscription', @@ -191,8 +194,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ConfirmSubscriptionInput'], - shapes: shapes, resultWrapper: 'ConfirmSubscriptionResult', ); return ConfirmSubscriptionResponse.fromXml($result); @@ -279,10 +280,14 @@ class Sns { required String name, required String platform, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['Name'] = name; - $request['Platform'] = platform; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + 'Name': name, + 'Platform': platform, + }; final $result = await _protocol.send( $request, action: 'CreatePlatformApplication', @@ -290,8 +295,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePlatformApplicationInput'], - shapes: shapes, resultWrapper: 'CreatePlatformApplicationResult', ); return CreatePlatformApplicationResponse.fromXml($result); @@ -348,11 +351,16 @@ class Sns { Map? attributes, String? customUserData, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; - $request['Token'] = token; - attributes?.also((arg) => $request['Attributes'] = arg); - customUserData?.also((arg) => $request['CustomUserData'] = arg); + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + 'Token': token, + if (attributes != null) + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + if (customUserData != null) 'CustomUserData': customUserData, + }; final $result = await _protocol.send( $request, action: 'CreatePlatformEndpoint', @@ -360,8 +368,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePlatformEndpointInput'], - shapes: shapes, resultWrapper: 'CreatePlatformEndpointResult', ); return CreateEndpointResponse.fromXml($result); @@ -400,9 +406,10 @@ class Sns { required String phoneNumber, LanguageCodeString? languageCode, }) async { - final $request = {}; - $request['PhoneNumber'] = phoneNumber; - languageCode?.also((arg) => $request['LanguageCode'] = arg.toValue()); + final $request = { + 'PhoneNumber': phoneNumber, + if (languageCode != null) 'LanguageCode': languageCode.toValue(), + }; await _protocol.send( $request, action: 'CreateSMSSandboxPhoneNumber', @@ -410,8 +417,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSMSSandboxPhoneNumberInput'], - shapes: shapes, resultWrapper: 'CreateSMSSandboxPhoneNumberResult', ); } @@ -559,11 +564,23 @@ class Sns { String? dataProtectionPolicy, List? tags, }) async { - final $request = {}; - $request['Name'] = name; - attributes?.also((arg) => $request['Attributes'] = arg); - dataProtectionPolicy?.also((arg) => $request['DataProtectionPolicy'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Name': name, + if (attributes != null) + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + if (dataProtectionPolicy != null) + 'DataProtectionPolicy': dataProtectionPolicy, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateTopic', @@ -571,8 +588,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTopicInput'], - shapes: shapes, resultWrapper: 'CreateTopicResult', ); return CreateTopicResponse.fromXml($result); @@ -595,8 +610,9 @@ class Sns { Future deleteEndpoint({ required String endpointArn, }) async { - final $request = {}; - $request['EndpointArn'] = endpointArn; + final $request = { + 'EndpointArn': endpointArn, + }; await _protocol.send( $request, action: 'DeleteEndpoint', @@ -604,8 +620,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEndpointInput'], - shapes: shapes, ); } @@ -625,8 +639,9 @@ class Sns { Future deletePlatformApplication({ required String platformApplicationArn, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + }; await _protocol.send( $request, action: 'DeletePlatformApplication', @@ -634,8 +649,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePlatformApplicationInput'], - shapes: shapes, ); } @@ -665,8 +678,9 @@ class Sns { Future deleteSMSSandboxPhoneNumber({ required String phoneNumber, }) async { - final $request = {}; - $request['PhoneNumber'] = phoneNumber; + final $request = { + 'PhoneNumber': phoneNumber, + }; await _protocol.send( $request, action: 'DeleteSMSSandboxPhoneNumber', @@ -674,8 +688,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSMSSandboxPhoneNumberInput'], - shapes: shapes, resultWrapper: 'DeleteSMSSandboxPhoneNumberResult', ); } @@ -699,8 +711,9 @@ class Sns { Future deleteTopic({ required String topicArn, }) async { - final $request = {}; - $request['TopicArn'] = topicArn; + final $request = { + 'TopicArn': topicArn, + }; await _protocol.send( $request, action: 'DeleteTopic', @@ -708,8 +721,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTopicInput'], - shapes: shapes, ); } @@ -732,8 +743,9 @@ class Sns { Future getDataProtectionPolicy({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'GetDataProtectionPolicy', @@ -741,8 +753,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetDataProtectionPolicyInput'], - shapes: shapes, resultWrapper: 'GetDataProtectionPolicyResult', ); return GetDataProtectionPolicyResponse.fromXml($result); @@ -764,8 +774,9 @@ class Sns { Future getEndpointAttributes({ required String endpointArn, }) async { - final $request = {}; - $request['EndpointArn'] = endpointArn; + final $request = { + 'EndpointArn': endpointArn, + }; final $result = await _protocol.send( $request, action: 'GetEndpointAttributes', @@ -773,8 +784,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetEndpointAttributesInput'], - shapes: shapes, resultWrapper: 'GetEndpointAttributesResult', ); return GetEndpointAttributesResponse.fromXml($result); @@ -798,8 +807,9 @@ class Sns { getPlatformApplicationAttributes({ required String platformApplicationArn, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + }; final $result = await _protocol.send( $request, action: 'GetPlatformApplicationAttributes', @@ -807,8 +817,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPlatformApplicationAttributesInput'], - shapes: shapes, resultWrapper: 'GetPlatformApplicationAttributesResult', ); return GetPlatformApplicationAttributesResponse.fromXml($result); @@ -835,8 +843,14 @@ class Sns { Future getSMSAttributes({ List? attributes, }) async { - final $request = {}; - attributes?.also((arg) => $request['attributes'] = arg); + final $request = { + if (attributes != null) + if (attributes.isEmpty) + 'attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + 'attributes.member.${i1 + 1}': attributes[i1], + }; final $result = await _protocol.send( $request, action: 'GetSMSAttributes', @@ -844,8 +858,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSMSAttributesInput'], - shapes: shapes, resultWrapper: 'GetSMSAttributesResult', ); return GetSMSAttributesResponse.fromXml($result); @@ -869,7 +881,7 @@ class Sns { /// May throw [InternalErrorException]. /// May throw [ThrottledException]. Future getSMSSandboxAccountStatus() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetSMSSandboxAccountStatus', @@ -877,8 +889,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSMSSandboxAccountStatusInput'], - shapes: shapes, resultWrapper: 'GetSMSSandboxAccountStatusResult', ); return GetSMSSandboxAccountStatusResult.fromXml($result); @@ -896,8 +906,9 @@ class Sns { Future getSubscriptionAttributes({ required String subscriptionArn, }) async { - final $request = {}; - $request['SubscriptionArn'] = subscriptionArn; + final $request = { + 'SubscriptionArn': subscriptionArn, + }; final $result = await _protocol.send( $request, action: 'GetSubscriptionAttributes', @@ -905,8 +916,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSubscriptionAttributesInput'], - shapes: shapes, resultWrapper: 'GetSubscriptionAttributesResult', ); return GetSubscriptionAttributesResponse.fromXml($result); @@ -926,8 +935,9 @@ class Sns { Future getTopicAttributes({ required String topicArn, }) async { - final $request = {}; - $request['TopicArn'] = topicArn; + final $request = { + 'TopicArn': topicArn, + }; final $result = await _protocol.send( $request, action: 'GetTopicAttributes', @@ -935,8 +945,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTopicAttributesInput'], - shapes: shapes, resultWrapper: 'GetTopicAttributesResult', ); return GetTopicAttributesResponse.fromXml($result); @@ -974,9 +982,10 @@ class Sns { required String platformApplicationArn, String? nextToken, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListEndpointsByPlatformApplication', @@ -984,8 +993,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListEndpointsByPlatformApplicationInput'], - shapes: shapes, resultWrapper: 'ListEndpointsByPlatformApplicationResult', ); return ListEndpointsByPlatformApplicationResponse.fromXml($result); @@ -1019,9 +1026,10 @@ class Sns { 1, 30, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListOriginationNumbers', @@ -1029,8 +1037,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListOriginationNumbersRequest'], - shapes: shapes, resultWrapper: 'ListOriginationNumbersResult', ); return ListOriginationNumbersResult.fromXml($result); @@ -1059,8 +1065,9 @@ class Sns { Future listPhoneNumbersOptedOut({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['nextToken'] = arg); + final $request = { + if (nextToken != null) 'nextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPhoneNumbersOptedOut', @@ -1068,8 +1075,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPhoneNumbersOptedOutInput'], - shapes: shapes, resultWrapper: 'ListPhoneNumbersOptedOutResult', ); return ListPhoneNumbersOptedOutResponse.fromXml($result); @@ -1100,8 +1105,9 @@ class Sns { Future listPlatformApplications({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPlatformApplications', @@ -1109,8 +1115,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPlatformApplicationsInput'], - shapes: shapes, resultWrapper: 'ListPlatformApplicationsResult', ); return ListPlatformApplicationsResponse.fromXml($result); @@ -1152,9 +1156,10 @@ class Sns { 1, 100, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListSMSSandboxPhoneNumbers', @@ -1162,8 +1167,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSMSSandboxPhoneNumbersInput'], - shapes: shapes, resultWrapper: 'ListSMSSandboxPhoneNumbersResult', ); return ListSMSSandboxPhoneNumbersResult.fromXml($result); @@ -1186,8 +1189,9 @@ class Sns { Future listSubscriptions({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListSubscriptions', @@ -1195,8 +1199,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSubscriptionsInput'], - shapes: shapes, resultWrapper: 'ListSubscriptionsResult', ); return ListSubscriptionsResponse.fromXml($result); @@ -1225,9 +1227,10 @@ class Sns { required String topicArn, String? nextToken, }) async { - final $request = {}; - $request['TopicArn'] = topicArn; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'TopicArn': topicArn, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListSubscriptionsByTopic', @@ -1235,8 +1238,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSubscriptionsByTopicInput'], - shapes: shapes, resultWrapper: 'ListSubscriptionsByTopicResult', ); return ListSubscriptionsByTopicResponse.fromXml($result); @@ -1258,8 +1259,9 @@ class Sns { Future listTagsForResource({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1267,8 +1269,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceRequest'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return ListTagsForResourceResponse.fromXml($result); @@ -1290,8 +1290,9 @@ class Sns { Future listTopics({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListTopics', @@ -1299,8 +1300,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTopicsInput'], - shapes: shapes, resultWrapper: 'ListTopicsResult', ); return ListTopicsResponse.fromXml($result); @@ -1321,8 +1320,9 @@ class Sns { Future optInPhoneNumber({ required String phoneNumber, }) async { - final $request = {}; - $request['phoneNumber'] = phoneNumber; + final $request = { + 'phoneNumber': phoneNumber, + }; await _protocol.send( $request, action: 'OptInPhoneNumber', @@ -1330,8 +1330,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['OptInPhoneNumberInput'], - shapes: shapes, resultWrapper: 'OptInPhoneNumberResult', ); } @@ -1539,17 +1537,23 @@ class Sns { String? targetArn, String? topicArn, }) async { - final $request = {}; - $request['Message'] = message; - messageAttributes?.also((arg) => $request['MessageAttributes'] = arg); - messageDeduplicationId - ?.also((arg) => $request['MessageDeduplicationId'] = arg); - messageGroupId?.also((arg) => $request['MessageGroupId'] = arg); - messageStructure?.also((arg) => $request['MessageStructure'] = arg); - phoneNumber?.also((arg) => $request['PhoneNumber'] = arg); - subject?.also((arg) => $request['Subject'] = arg); - targetArn?.also((arg) => $request['TargetArn'] = arg); - topicArn?.also((arg) => $request['TopicArn'] = arg); + final $request = { + 'Message': message, + if (messageAttributes != null) + for (var e1 in messageAttributes.entries.toList().asMap().entries) ...{ + 'MessageAttributes.entry.${e1.key + 1}.Name': e1.value.key, + for (var e4 in e1.value.value.toQueryMap().entries) + 'MessageAttributes.entry.${e1.key + 1}.Value.${e4.key}': e4.value, + }, + if (messageDeduplicationId != null) + 'MessageDeduplicationId': messageDeduplicationId, + if (messageGroupId != null) 'MessageGroupId': messageGroupId, + if (messageStructure != null) 'MessageStructure': messageStructure, + if (phoneNumber != null) 'PhoneNumber': phoneNumber, + if (subject != null) 'Subject': subject, + if (targetArn != null) 'TargetArn': targetArn, + if (topicArn != null) 'TopicArn': topicArn, + }; final $result = await _protocol.send( $request, action: 'Publish', @@ -1557,8 +1561,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PublishInput'], - shapes: shapes, resultWrapper: 'PublishResult', ); return PublishResponse.fromXml($result); @@ -1626,9 +1628,15 @@ class Sns { required List publishBatchRequestEntries, required String topicArn, }) async { - final $request = {}; - $request['PublishBatchRequestEntries'] = publishBatchRequestEntries; - $request['TopicArn'] = topicArn; + final $request = { + if (publishBatchRequestEntries.isEmpty) + 'PublishBatchRequestEntries': '' + else + for (var i1 = 0; i1 < publishBatchRequestEntries.length; i1++) + for (var e3 in publishBatchRequestEntries[i1].toQueryMap().entries) + 'PublishBatchRequestEntries.member.${i1 + 1}.${e3.key}': e3.value, + 'TopicArn': topicArn, + }; final $result = await _protocol.send( $request, action: 'PublishBatch', @@ -1636,8 +1644,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PublishBatchInput'], - shapes: shapes, resultWrapper: 'PublishBatchResult', ); return PublishBatchResponse.fromXml($result); @@ -1670,9 +1676,10 @@ class Sns { required String dataProtectionPolicy, required String resourceArn, }) async { - final $request = {}; - $request['DataProtectionPolicy'] = dataProtectionPolicy; - $request['ResourceArn'] = resourceArn; + final $request = { + 'DataProtectionPolicy': dataProtectionPolicy, + 'ResourceArn': resourceArn, + }; await _protocol.send( $request, action: 'PutDataProtectionPolicy', @@ -1680,8 +1687,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutDataProtectionPolicyInput'], - shapes: shapes, ); } @@ -1707,9 +1712,10 @@ class Sns { required String label, required String topicArn, }) async { - final $request = {}; - $request['Label'] = label; - $request['TopicArn'] = topicArn; + final $request = { + 'Label': label, + 'TopicArn': topicArn, + }; await _protocol.send( $request, action: 'RemovePermission', @@ -1717,8 +1723,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemovePermissionInput'], - shapes: shapes, ); } @@ -1763,9 +1767,13 @@ class Sns { required Map attributes, required String endpointArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['EndpointArn'] = endpointArn; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + 'EndpointArn': endpointArn, + }; await _protocol.send( $request, action: 'SetEndpointAttributes', @@ -1773,8 +1781,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetEndpointAttributesInput'], - shapes: shapes, ); } @@ -1905,9 +1911,13 @@ class Sns { required Map attributes, required String platformApplicationArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['PlatformApplicationArn'] = platformApplicationArn; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + 'PlatformApplicationArn': platformApplicationArn, + }; await _protocol.send( $request, action: 'SetPlatformApplicationAttributes', @@ -1915,8 +1925,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetPlatformApplicationAttributesInput'], - shapes: shapes, ); } @@ -2037,8 +2045,12 @@ class Sns { Future setSMSAttributes({ required Map attributes, }) async { - final $request = {}; - $request['attributes'] = attributes; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'attributes.entry.${e1.key + 1}.key': e1.value.key, + 'attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + }; await _protocol.send( $request, action: 'SetSMSAttributes', @@ -2046,8 +2058,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSMSAttributesInput'], - shapes: shapes, resultWrapper: 'SetSMSAttributesResult', ); } @@ -2140,10 +2150,11 @@ class Sns { required String subscriptionArn, String? attributeValue, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['SubscriptionArn'] = subscriptionArn; - attributeValue?.also((arg) => $request['AttributeValue'] = arg); + final $request = { + 'AttributeName': attributeName, + 'SubscriptionArn': subscriptionArn, + if (attributeValue != null) 'AttributeValue': attributeValue, + }; await _protocol.send( $request, action: 'SetSubscriptionAttributes', @@ -2151,8 +2162,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSubscriptionAttributesInput'], - shapes: shapes, ); } @@ -2382,10 +2391,11 @@ class Sns { required String topicArn, String? attributeValue, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['TopicArn'] = topicArn; - attributeValue?.also((arg) => $request['AttributeValue'] = arg); + final $request = { + 'AttributeName': attributeName, + 'TopicArn': topicArn, + if (attributeValue != null) 'AttributeValue': attributeValue, + }; await _protocol.send( $request, action: 'SetTopicAttributes', @@ -2393,8 +2403,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetTopicAttributesInput'], - shapes: shapes, ); } @@ -2619,13 +2627,18 @@ class Sns { String? endpoint, bool? returnSubscriptionArn, }) async { - final $request = {}; - $request['Protocol'] = protocol; - $request['TopicArn'] = topicArn; - attributes?.also((arg) => $request['Attributes'] = arg); - endpoint?.also((arg) => $request['Endpoint'] = arg); - returnSubscriptionArn - ?.also((arg) => $request['ReturnSubscriptionArn'] = arg); + final $request = { + 'Protocol': protocol, + 'TopicArn': topicArn, + if (attributes != null) + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + if (endpoint != null) 'Endpoint': endpoint, + if (returnSubscriptionArn != null) + 'ReturnSubscriptionArn': returnSubscriptionArn.toString(), + }; final $result = await _protocol.send( $request, action: 'Subscribe', @@ -2633,8 +2646,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SubscribeInput'], - shapes: shapes, resultWrapper: 'SubscribeResult', ); return SubscribeResponse.fromXml($result); @@ -2688,9 +2699,15 @@ class Sns { required String resourceArn, required List tags, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - $request['Tags'] = tags; + final $request = { + 'ResourceArn': resourceArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagResource', @@ -2698,8 +2715,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagResourceRequest'], - shapes: shapes, resultWrapper: 'TagResourceResult', ); } @@ -2730,8 +2745,9 @@ class Sns { Future unsubscribe({ required String subscriptionArn, }) async { - final $request = {}; - $request['SubscriptionArn'] = subscriptionArn; + final $request = { + 'SubscriptionArn': subscriptionArn, + }; await _protocol.send( $request, action: 'Unsubscribe', @@ -2739,8 +2755,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UnsubscribeInput'], - shapes: shapes, ); } @@ -2765,9 +2779,14 @@ class Sns { required String resourceArn, required List tagKeys, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceArn': resourceArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagResource', @@ -2775,8 +2794,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagResourceRequest'], - shapes: shapes, resultWrapper: 'UntagResourceResult', ); } @@ -2812,9 +2829,10 @@ class Sns { required String oneTimePassword, required String phoneNumber, }) async { - final $request = {}; - $request['OneTimePassword'] = oneTimePassword; - $request['PhoneNumber'] = phoneNumber; + final $request = { + 'OneTimePassword': oneTimePassword, + 'PhoneNumber': phoneNumber, + }; await _protocol.send( $request, action: 'VerifySMSSandboxPhoneNumber', @@ -2822,8 +2840,6 @@ class Sns { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifySMSSandboxPhoneNumberInput'], - shapes: shapes, resultWrapper: 'VerifySMSSandboxPhoneNumberResult', ); } @@ -3945,6 +3961,17 @@ class MessageAttributeValue { if (stringValue != null) 'StringValue': stringValue, }; } + + Map toQueryMap() { + final dataType = this.dataType; + final binaryValue = this.binaryValue; + final stringValue = this.stringValue; + return { + 'DataType': dataType, + if (binaryValue != null) 'BinaryValue': base64Encode(binaryValue), + if (stringValue != null) 'StringValue': stringValue, + }; + } } /// Enum listing out all supported number capabilities. @@ -4256,6 +4283,31 @@ class PublishBatchRequestEntry { if (subject != null) 'Subject': subject, }; } + + Map toQueryMap() { + final id = this.id; + final message = this.message; + final messageAttributes = this.messageAttributes; + final messageDeduplicationId = this.messageDeduplicationId; + final messageGroupId = this.messageGroupId; + final messageStructure = this.messageStructure; + final subject = this.subject; + return { + 'Id': id, + 'Message': message, + if (messageAttributes != null) + for (var e1 in messageAttributes.entries.toList().asMap().entries) ...{ + 'MessageAttributes.entry.${e1.key + 1}.Name': e1.value.key, + for (var e4 in e1.value.value.toQueryMap().entries) + 'MessageAttributes.entry.${e1.key + 1}.Value.${e4.key}': e4.value, + }, + if (messageDeduplicationId != null) + 'MessageDeduplicationId': messageDeduplicationId, + if (messageGroupId != null) 'MessageGroupId': messageGroupId, + if (messageStructure != null) 'MessageStructure': messageStructure, + if (subject != null) 'Subject': subject, + }; + } } class PublishBatchResponse { @@ -4600,6 +4652,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } class TagResourceResponse { diff --git a/aws_client/lib/src/generated/sns/v2010_03_31.meta.dart b/aws_client/lib/src/generated/sns/v2010_03_31.meta.dart deleted file mode 100644 index f2411a6ba..000000000 --- a/aws_client/lib/src/generated/sns/v2010_03_31.meta.dart +++ /dev/null @@ -1,823 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "ActionsList": { - "type": "list", - "member": {"shape": "action"}, - "flattened": false - }, - "AddPermissionInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "Label": {"shape": "label", "flattened": false}, - "AWSAccountId": {"shape": "DelegatesList", "flattened": false}, - "ActionName": {"shape": "ActionsList", "flattened": false} - }, - "flattened": false - }, - "AmazonResourceName": {"type": "string", "flattened": false}, - "BatchResultErrorEntry": { - "type": "structure", - "members": { - "Id": {"shape": "String", "flattened": false}, - "Code": {"shape": "String", "flattened": false}, - "Message": {"shape": "String", "flattened": false}, - "SenderFault": {"shape": "boolean", "flattened": false} - }, - "flattened": false - }, - "BatchResultErrorEntryList": { - "type": "list", - "member": {"shape": "BatchResultErrorEntry"}, - "flattened": false - }, - "Binary": {"type": "blob", "flattened": false}, - "CheckIfPhoneNumberIsOptedOutInput": { - "type": "structure", - "members": { - "phoneNumber": {"shape": "PhoneNumber", "flattened": false} - }, - "flattened": false - }, - "CheckIfPhoneNumberIsOptedOutResponse": { - "type": "structure", - "members": { - "isOptedOut": {"shape": "boolean", "flattened": false} - }, - "flattened": false - }, - "ConfirmSubscriptionInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "Token": {"shape": "token", "flattened": false}, - "AuthenticateOnUnsubscribe": { - "shape": "authenticateOnUnsubscribe", - "flattened": false - } - }, - "flattened": false - }, - "ConfirmSubscriptionResponse": { - "type": "structure", - "members": { - "SubscriptionArn": {"shape": "subscriptionARN", "flattened": false} - }, - "flattened": false - }, - "CreateEndpointResponse": { - "type": "structure", - "members": { - "EndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreatePlatformApplicationInput": { - "type": "structure", - "members": { - "Name": {"shape": "String", "flattened": false}, - "Platform": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "CreatePlatformApplicationResponse": { - "type": "structure", - "members": { - "PlatformApplicationArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "CreatePlatformEndpointInput": { - "type": "structure", - "members": { - "PlatformApplicationArn": {"shape": "String", "flattened": false}, - "Token": {"shape": "String", "flattened": false}, - "CustomUserData": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "CreateSMSSandboxPhoneNumberInput": { - "type": "structure", - "members": { - "PhoneNumber": {"shape": "PhoneNumberString", "flattened": false}, - "LanguageCode": {"shape": "LanguageCodeString", "flattened": false} - }, - "flattened": false - }, - "CreateSMSSandboxPhoneNumberResult": { - "type": "structure", - "members": {}, - "flattened": false - }, - "CreateTopicInput": { - "type": "structure", - "members": { - "Name": {"shape": "topicName", "flattened": false}, - "Attributes": {"shape": "TopicAttributesMap", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false}, - "DataProtectionPolicy": {"shape": "attributeValue", "flattened": false} - }, - "flattened": false - }, - "CreateTopicResponse": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false} - }, - "flattened": false - }, - "DelegatesList": { - "type": "list", - "member": {"shape": "delegate"}, - "flattened": false - }, - "DeleteEndpointInput": { - "type": "structure", - "members": { - "EndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeletePlatformApplicationInput": { - "type": "structure", - "members": { - "PlatformApplicationArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "DeleteSMSSandboxPhoneNumberInput": { - "type": "structure", - "members": { - "PhoneNumber": {"shape": "PhoneNumberString", "flattened": false} - }, - "flattened": false - }, - "DeleteSMSSandboxPhoneNumberResult": { - "type": "structure", - "members": {}, - "flattened": false - }, - "DeleteTopicInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false} - }, - "flattened": false - }, - "Endpoint": { - "type": "structure", - "members": { - "EndpointArn": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "GetDataProtectionPolicyInput": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "topicARN", "flattened": false} - }, - "flattened": false - }, - "GetDataProtectionPolicyResponse": { - "type": "structure", - "members": { - "DataProtectionPolicy": {"shape": "attributeValue", "flattened": false} - }, - "flattened": false - }, - "GetEndpointAttributesInput": { - "type": "structure", - "members": { - "EndpointArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GetEndpointAttributesResponse": { - "type": "structure", - "members": { - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "GetPlatformApplicationAttributesInput": { - "type": "structure", - "members": { - "PlatformApplicationArn": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "GetPlatformApplicationAttributesResponse": { - "type": "structure", - "members": { - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "GetSMSAttributesInput": { - "type": "structure", - "members": { - "attributes": {"shape": "ListString", "flattened": false} - }, - "flattened": false - }, - "GetSMSAttributesResponse": { - "type": "structure", - "members": { - "attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "GetSMSSandboxAccountStatusInput": { - "type": "structure", - "members": {}, - "flattened": false - }, - "GetSMSSandboxAccountStatusResult": { - "type": "structure", - "members": { - "IsInSandbox": {"shape": "boolean", "flattened": false} - }, - "flattened": false - }, - "GetSubscriptionAttributesInput": { - "type": "structure", - "members": { - "SubscriptionArn": {"shape": "subscriptionARN", "flattened": false} - }, - "flattened": false - }, - "GetSubscriptionAttributesResponse": { - "type": "structure", - "members": { - "Attributes": {"shape": "SubscriptionAttributesMap", "flattened": false} - }, - "flattened": false - }, - "GetTopicAttributesInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false} - }, - "flattened": false - }, - "GetTopicAttributesResponse": { - "type": "structure", - "members": { - "Attributes": {"shape": "TopicAttributesMap", "flattened": false} - }, - "flattened": false - }, - "Iso2CountryCode": {"type": "string", "flattened": false}, - "LanguageCodeString": {"type": "string", "flattened": false}, - "ListEndpointsByPlatformApplicationInput": { - "type": "structure", - "members": { - "PlatformApplicationArn": {"shape": "String", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListEndpointsByPlatformApplicationResponse": { - "type": "structure", - "members": { - "Endpoints": {"shape": "ListOfEndpoints", "flattened": false}, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListOfEndpoints": { - "type": "list", - "member": {"shape": "Endpoint"}, - "flattened": false - }, - "ListOfPlatformApplications": { - "type": "list", - "member": {"shape": "PlatformApplication"}, - "flattened": false - }, - "ListOriginationNumbersRequest": { - "type": "structure", - "members": { - "NextToken": {"shape": "nextToken", "flattened": false}, - "MaxResults": { - "shape": "MaxItemsListOriginationNumbers", - "flattened": false - } - }, - "flattened": false - }, - "ListOriginationNumbersResult": { - "type": "structure", - "members": { - "NextToken": {"shape": "nextToken", "flattened": false}, - "PhoneNumbers": { - "shape": "PhoneNumberInformationList", - "flattened": false - } - }, - "flattened": false - }, - "ListPhoneNumbersOptedOutInput": { - "type": "structure", - "members": { - "nextToken": {"shape": "string", "flattened": false} - }, - "flattened": false - }, - "ListPhoneNumbersOptedOutResponse": { - "type": "structure", - "members": { - "phoneNumbers": {"shape": "PhoneNumberList", "flattened": false}, - "nextToken": {"shape": "string", "flattened": false} - }, - "flattened": false - }, - "ListPlatformApplicationsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListPlatformApplicationsResponse": { - "type": "structure", - "members": { - "PlatformApplications": { - "shape": "ListOfPlatformApplications", - "flattened": false - }, - "NextToken": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "ListSMSSandboxPhoneNumbersInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "nextToken", "flattened": false}, - "MaxResults": {"shape": "MaxItems", "flattened": false} - }, - "flattened": false - }, - "ListSMSSandboxPhoneNumbersResult": { - "type": "structure", - "members": { - "PhoneNumbers": { - "shape": "SMSSandboxPhoneNumberList", - "flattened": false - }, - "NextToken": {"shape": "string", "flattened": false} - }, - "flattened": false - }, - "ListString": { - "type": "list", - "member": {"shape": "String"}, - "flattened": false - }, - "ListSubscriptionsByTopicInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "NextToken": {"shape": "nextToken", "flattened": false} - }, - "flattened": false - }, - "ListSubscriptionsByTopicResponse": { - "type": "structure", - "members": { - "Subscriptions": {"shape": "SubscriptionsList", "flattened": false}, - "NextToken": {"shape": "nextToken", "flattened": false} - }, - "flattened": false - }, - "ListSubscriptionsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "nextToken", "flattened": false} - }, - "flattened": false - }, - "ListSubscriptionsResponse": { - "type": "structure", - "members": { - "Subscriptions": {"shape": "SubscriptionsList", "flattened": false}, - "NextToken": {"shape": "nextToken", "flattened": false} - }, - "flattened": false - }, - "ListTagsForResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "AmazonResourceName", "flattened": false} - }, - "flattened": false - }, - "ListTagsForResourceResponse": { - "type": "structure", - "members": { - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "ListTopicsInput": { - "type": "structure", - "members": { - "NextToken": {"shape": "nextToken", "flattened": false} - }, - "flattened": false - }, - "ListTopicsResponse": { - "type": "structure", - "members": { - "Topics": {"shape": "TopicsList", "flattened": false}, - "NextToken": {"shape": "nextToken", "flattened": false} - }, - "flattened": false - }, - "MapStringToString": { - "type": "map", - "key": {"shape": "String"}, - "value": {"shape": "String"}, - "flattened": false - }, - "MaxItems": {"type": "integer", "flattened": false}, - "MaxItemsListOriginationNumbers": {"type": "integer", "flattened": false}, - "MessageAttributeMap": { - "type": "map", - "key": {"shape": "String", "locationName": "Name"}, - "value": {"shape": "MessageAttributeValue", "locationName": "Value"}, - "flattened": false - }, - "MessageAttributeValue": { - "type": "structure", - "members": { - "DataType": {"shape": "String", "flattened": false}, - "StringValue": {"shape": "String", "flattened": false}, - "BinaryValue": {"shape": "Binary", "flattened": false} - }, - "flattened": false - }, - "NumberCapability": {"type": "string", "flattened": false}, - "NumberCapabilityList": { - "type": "list", - "member": {"shape": "NumberCapability"}, - "flattened": false - }, - "OTPCode": {"type": "string", "flattened": false}, - "OptInPhoneNumberInput": { - "type": "structure", - "members": { - "phoneNumber": {"shape": "PhoneNumber", "flattened": false} - }, - "flattened": false - }, - "OptInPhoneNumberResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "PhoneNumber": {"type": "string", "flattened": false}, - "PhoneNumberInformation": { - "type": "structure", - "members": { - "CreatedAt": {"shape": "Timestamp", "flattened": false}, - "PhoneNumber": {"shape": "PhoneNumber", "flattened": false}, - "Status": {"shape": "String", "flattened": false}, - "Iso2CountryCode": {"shape": "Iso2CountryCode", "flattened": false}, - "RouteType": {"shape": "RouteType", "flattened": false}, - "NumberCapabilities": { - "shape": "NumberCapabilityList", - "flattened": false - } - }, - "flattened": false - }, - "PhoneNumberInformationList": { - "type": "list", - "member": {"shape": "PhoneNumberInformation"}, - "flattened": false - }, - "PhoneNumberList": { - "type": "list", - "member": {"shape": "PhoneNumber"}, - "flattened": false - }, - "PhoneNumberString": {"type": "string", "flattened": false}, - "PlatformApplication": { - "type": "structure", - "members": { - "PlatformApplicationArn": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "PublishBatchInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "PublishBatchRequestEntries": { - "shape": "PublishBatchRequestEntryList", - "flattened": false - } - }, - "flattened": false - }, - "PublishBatchRequestEntry": { - "type": "structure", - "members": { - "Id": {"shape": "String", "flattened": false}, - "Message": {"shape": "message", "flattened": false}, - "Subject": {"shape": "subject", "flattened": false}, - "MessageStructure": {"shape": "messageStructure", "flattened": false}, - "MessageAttributes": {"shape": "MessageAttributeMap", "flattened": false}, - "MessageDeduplicationId": {"shape": "String", "flattened": false}, - "MessageGroupId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PublishBatchRequestEntryList": { - "type": "list", - "member": {"shape": "PublishBatchRequestEntry"}, - "flattened": false - }, - "PublishBatchResponse": { - "type": "structure", - "members": { - "Successful": { - "shape": "PublishBatchResultEntryList", - "flattened": false - }, - "Failed": {"shape": "BatchResultErrorEntryList", "flattened": false} - }, - "flattened": false - }, - "PublishBatchResultEntry": { - "type": "structure", - "members": { - "Id": {"shape": "String", "flattened": false}, - "MessageId": {"shape": "messageId", "flattened": false}, - "SequenceNumber": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PublishBatchResultEntryList": { - "type": "list", - "member": {"shape": "PublishBatchResultEntry"}, - "flattened": false - }, - "PublishInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "TargetArn": {"shape": "String", "flattened": false}, - "PhoneNumber": {"shape": "PhoneNumber", "flattened": false}, - "Message": {"shape": "message", "flattened": false}, - "Subject": {"shape": "subject", "flattened": false}, - "MessageStructure": {"shape": "messageStructure", "flattened": false}, - "MessageAttributes": {"shape": "MessageAttributeMap", "flattened": false}, - "MessageDeduplicationId": {"shape": "String", "flattened": false}, - "MessageGroupId": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PublishResponse": { - "type": "structure", - "members": { - "MessageId": {"shape": "messageId", "flattened": false}, - "SequenceNumber": {"shape": "String", "flattened": false} - }, - "flattened": false - }, - "PutDataProtectionPolicyInput": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "topicARN", "flattened": false}, - "DataProtectionPolicy": {"shape": "attributeValue", "flattened": false} - }, - "flattened": false - }, - "RemovePermissionInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "Label": {"shape": "label", "flattened": false} - }, - "flattened": false - }, - "RouteType": {"type": "string", "flattened": false}, - "SMSSandboxPhoneNumber": { - "type": "structure", - "members": { - "PhoneNumber": {"shape": "PhoneNumberString", "flattened": false}, - "Status": { - "shape": "SMSSandboxPhoneNumberVerificationStatus", - "flattened": false - } - }, - "flattened": false - }, - "SMSSandboxPhoneNumberList": { - "type": "list", - "member": {"shape": "SMSSandboxPhoneNumber"}, - "flattened": false - }, - "SMSSandboxPhoneNumberVerificationStatus": { - "type": "string", - "flattened": false - }, - "SetEndpointAttributesInput": { - "type": "structure", - "members": { - "EndpointArn": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "SetPlatformApplicationAttributesInput": { - "type": "structure", - "members": { - "PlatformApplicationArn": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "SetSMSAttributesInput": { - "type": "structure", - "members": { - "attributes": {"shape": "MapStringToString", "flattened": false} - }, - "flattened": false - }, - "SetSMSAttributesResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "SetSubscriptionAttributesInput": { - "type": "structure", - "members": { - "SubscriptionArn": {"shape": "subscriptionARN", "flattened": false}, - "AttributeName": {"shape": "attributeName", "flattened": false}, - "AttributeValue": {"shape": "attributeValue", "flattened": false} - }, - "flattened": false - }, - "SetTopicAttributesInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "AttributeName": {"shape": "attributeName", "flattened": false}, - "AttributeValue": {"shape": "attributeValue", "flattened": false} - }, - "flattened": false - }, - "String": {"type": "string", "flattened": false}, - "SubscribeInput": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false}, - "Protocol": {"shape": "protocol", "flattened": false}, - "Endpoint": {"shape": "endpoint", "flattened": false}, - "Attributes": {"shape": "SubscriptionAttributesMap", "flattened": false}, - "ReturnSubscriptionArn": {"shape": "boolean", "flattened": false} - }, - "flattened": false - }, - "SubscribeResponse": { - "type": "structure", - "members": { - "SubscriptionArn": {"shape": "subscriptionARN", "flattened": false} - }, - "flattened": false - }, - "Subscription": { - "type": "structure", - "members": { - "SubscriptionArn": {"shape": "subscriptionARN", "flattened": false}, - "Owner": {"shape": "account", "flattened": false}, - "Protocol": {"shape": "protocol", "flattened": false}, - "Endpoint": {"shape": "endpoint", "flattened": false}, - "TopicArn": {"shape": "topicARN", "flattened": false} - }, - "flattened": false - }, - "SubscriptionAttributesMap": { - "type": "map", - "key": {"shape": "attributeName"}, - "value": {"shape": "attributeValue"}, - "flattened": false - }, - "SubscriptionsList": { - "type": "list", - "member": {"shape": "Subscription"}, - "flattened": false - }, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "TagKey", "flattened": false}, - "Value": {"shape": "TagValue", "flattened": false} - }, - "flattened": false - }, - "TagKey": {"type": "string", "flattened": false}, - "TagKeyList": { - "type": "list", - "member": {"shape": "TagKey"}, - "flattened": false - }, - "TagList": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "TagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "AmazonResourceName", "flattened": false}, - "Tags": {"shape": "TagList", "flattened": false} - }, - "flattened": false - }, - "TagResourceResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "TagValue": {"type": "string", "flattened": false}, - "Timestamp": {"type": "timestamp", "flattened": false}, - "Topic": { - "type": "structure", - "members": { - "TopicArn": {"shape": "topicARN", "flattened": false} - }, - "flattened": false - }, - "TopicAttributesMap": { - "type": "map", - "key": {"shape": "attributeName"}, - "value": {"shape": "attributeValue"}, - "flattened": false - }, - "TopicsList": { - "type": "list", - "member": {"shape": "Topic"}, - "flattened": false - }, - "UnsubscribeInput": { - "type": "structure", - "members": { - "SubscriptionArn": {"shape": "subscriptionARN", "flattened": false} - }, - "flattened": false - }, - "UntagResourceRequest": { - "type": "structure", - "members": { - "ResourceArn": {"shape": "AmazonResourceName", "flattened": false}, - "TagKeys": {"shape": "TagKeyList", "flattened": false} - }, - "flattened": false - }, - "UntagResourceResponse": { - "type": "structure", - "members": {}, - "flattened": false - }, - "VerifySMSSandboxPhoneNumberInput": { - "type": "structure", - "members": { - "PhoneNumber": {"shape": "PhoneNumberString", "flattened": false}, - "OneTimePassword": {"shape": "OTPCode", "flattened": false} - }, - "flattened": false - }, - "VerifySMSSandboxPhoneNumberResult": { - "type": "structure", - "members": {}, - "flattened": false - }, - "account": {"type": "string", "flattened": false}, - "action": {"type": "string", "flattened": false}, - "attributeName": {"type": "string", "flattened": false}, - "attributeValue": {"type": "string", "flattened": false}, - "authenticateOnUnsubscribe": {"type": "string", "flattened": false}, - "boolean": {"type": "boolean", "flattened": false}, - "delegate": {"type": "string", "flattened": false}, - "endpoint": {"type": "string", "flattened": false}, - "label": {"type": "string", "flattened": false}, - "message": {"type": "string", "flattened": false}, - "messageId": {"type": "string", "flattened": false}, - "messageStructure": {"type": "string", "flattened": false}, - "nextToken": {"type": "string", "flattened": false}, - "protocol": {"type": "string", "flattened": false}, - "string": {"type": "string", "flattened": false}, - "subject": {"type": "string", "flattened": false}, - "subscriptionARN": {"type": "string", "flattened": false}, - "token": {"type": "string", "flattened": false}, - "topicARN": {"type": "string", "flattened": false}, - "topicName": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/generated/sts/v2011_06_15.dart b/aws_client/lib/src/generated/sts/v2011_06_15.dart index 74e7a56a4..7246fb46f 100644 --- a/aws_client/lib/src/generated/sts/v2011_06_15.dart +++ b/aws_client/lib/src/generated/sts/v2011_06_15.dart @@ -17,7 +17,6 @@ import '../../shared/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'v2011_06_15.meta.dart'; export '../../shared/shared.dart' show AwsClientCredentials; /// Security Token Service (STS) enables you to request temporary, @@ -27,7 +26,6 @@ export '../../shared/shared.dart' show AwsClientCredentials; /// Security Credentials. class Sts { final _s.QueryProtocol _protocol; - final Map shapes; Sts({ String? region, @@ -35,7 +33,7 @@ class Sts { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'sts', @@ -44,9 +42,7 @@ class Sts { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -445,19 +441,44 @@ class Sts { 900, 43200, ); - final $request = {}; - $request['RoleArn'] = roleArn; - $request['RoleSessionName'] = roleSessionName; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - externalId?.also((arg) => $request['ExternalId'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); - providedContexts?.also((arg) => $request['ProvidedContexts'] = arg); - serialNumber?.also((arg) => $request['SerialNumber'] = arg); - sourceIdentity?.also((arg) => $request['SourceIdentity'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tokenCode?.also((arg) => $request['TokenCode'] = arg); - transitiveTagKeys?.also((arg) => $request['TransitiveTagKeys'] = arg); + final $request = { + 'RoleArn': roleArn, + 'RoleSessionName': roleSessionName, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (externalId != null) 'ExternalId': externalId, + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + if (providedContexts != null) + if (providedContexts.isEmpty) + 'ProvidedContexts': '' + else + for (var i1 = 0; i1 < providedContexts.length; i1++) + for (var e3 in providedContexts[i1].toQueryMap().entries) + 'ProvidedContexts.member.${i1 + 1}.${e3.key}': e3.value, + if (serialNumber != null) 'SerialNumber': serialNumber, + if (sourceIdentity != null) 'SourceIdentity': sourceIdentity, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (tokenCode != null) 'TokenCode': tokenCode, + if (transitiveTagKeys != null) + if (transitiveTagKeys.isEmpty) + 'TransitiveTagKeys': '' + else + for (var i1 = 0; i1 < transitiveTagKeys.length; i1++) + 'TransitiveTagKeys.member.${i1 + 1}': transitiveTagKeys[i1], + }; final $result = await _protocol.send( $request, action: 'AssumeRole', @@ -465,8 +486,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssumeRoleRequest'], - shapes: shapes, resultWrapper: 'AssumeRoleResult', ); return AssumeRoleResponse.fromXml($result); @@ -752,13 +771,21 @@ class Sts { 900, 43200, ); - final $request = {}; - $request['PrincipalArn'] = principalArn; - $request['RoleArn'] = roleArn; - $request['SAMLAssertion'] = sAMLAssertion; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); + final $request = { + 'PrincipalArn': principalArn, + 'RoleArn': roleArn, + 'SAMLAssertion': sAMLAssertion, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'AssumeRoleWithSAML', @@ -766,8 +793,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssumeRoleWithSAMLRequest'], - shapes: shapes, resultWrapper: 'AssumeRoleWithSAMLResult', ); return AssumeRoleWithSAMLResponse.fromXml($result); @@ -1091,14 +1116,22 @@ class Sts { 900, 43200, ); - final $request = {}; - $request['RoleArn'] = roleArn; - $request['RoleSessionName'] = roleSessionName; - $request['WebIdentityToken'] = webIdentityToken; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); - providerId?.also((arg) => $request['ProviderId'] = arg); + final $request = { + 'RoleArn': roleArn, + 'RoleSessionName': roleSessionName, + 'WebIdentityToken': webIdentityToken, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + if (providerId != null) 'ProviderId': providerId, + }; final $result = await _protocol.send( $request, action: 'AssumeRoleWithWebIdentity', @@ -1106,8 +1139,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssumeRoleWithWebIdentityRequest'], - shapes: shapes, resultWrapper: 'AssumeRoleWithWebIdentityResult', ); return AssumeRoleWithWebIdentityResponse.fromXml($result); @@ -1166,8 +1197,9 @@ class Sts { Future decodeAuthorizationMessage({ required String encodedMessage, }) async { - final $request = {}; - $request['EncodedMessage'] = encodedMessage; + final $request = { + 'EncodedMessage': encodedMessage, + }; final $result = await _protocol.send( $request, action: 'DecodeAuthorizationMessage', @@ -1175,8 +1207,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DecodeAuthorizationMessageRequest'], - shapes: shapes, resultWrapper: 'DecodeAuthorizationMessageResult', ); return DecodeAuthorizationMessageResponse.fromXml($result); @@ -1219,8 +1249,9 @@ class Sts { Future getAccessKeyInfo({ required String accessKeyId, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; + final $request = { + 'AccessKeyId': accessKeyId, + }; final $result = await _protocol.send( $request, action: 'GetAccessKeyInfo', @@ -1228,8 +1259,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAccessKeyInfoRequest'], - shapes: shapes, resultWrapper: 'GetAccessKeyInfoResult', ); return GetAccessKeyInfoResponse.fromXml($result); @@ -1248,7 +1277,7 @@ class Sts { /// User Guide. /// Future getCallerIdentity() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetCallerIdentity', @@ -1256,8 +1285,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetCallerIdentityRequest'], - shapes: shapes, resultWrapper: 'GetCallerIdentityResult', ); return GetCallerIdentityResponse.fromXml($result); @@ -1538,12 +1565,26 @@ class Sts { 900, 129600, ); - final $request = {}; - $request['Name'] = name; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Name': name, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'GetFederationToken', @@ -1551,8 +1592,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetFederationTokenRequest'], - shapes: shapes, resultWrapper: 'GetFederationTokenResult', ); return GetFederationTokenResponse.fromXml($result); @@ -1678,10 +1717,12 @@ class Sts { 900, 129600, ); - final $request = {}; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - serialNumber?.also((arg) => $request['SerialNumber'] = arg); - tokenCode?.also((arg) => $request['TokenCode'] = arg); + final $request = { + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (serialNumber != null) 'SerialNumber': serialNumber, + if (tokenCode != null) 'TokenCode': tokenCode, + }; final $result = await _protocol.send( $request, action: 'GetSessionToken', @@ -1689,8 +1730,6 @@ class Sts { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSessionTokenRequest'], - shapes: shapes, resultWrapper: 'GetSessionTokenResult', ); return GetSessionTokenResponse.fromXml($result); @@ -2340,6 +2379,13 @@ class PolicyDescriptorType { if (arn != null) 'arn': arn, }; } + + Map toQueryMap() { + final arn = this.arn; + return { + if (arn != null) 'arn': arn, + }; + } } /// Contains information about the provided context. This includes the signed @@ -2368,6 +2414,15 @@ class ProvidedContext { if (providerArn != null) 'ProviderArn': providerArn, }; } + + Map toQueryMap() { + final contextAssertion = this.contextAssertion; + final providerArn = this.providerArn; + return { + if (contextAssertion != null) 'ContextAssertion': contextAssertion, + if (providerArn != null) 'ProviderArn': providerArn, + }; + } } /// You can pass custom key-value pair attributes when you assume a role or @@ -2405,6 +2460,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } class ExpiredTokenException extends _s.GenericAwsException { diff --git a/aws_client/lib/src/generated/sts/v2011_06_15.meta.dart b/aws_client/lib/src/generated/sts/v2011_06_15.meta.dart deleted file mode 100644 index cc982f69b..000000000 --- a/aws_client/lib/src/generated/sts/v2011_06_15.meta.dart +++ /dev/null @@ -1,298 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "AssumeRoleRequest": { - "type": "structure", - "members": { - "RoleArn": {"shape": "arnType", "flattened": false}, - "RoleSessionName": {"shape": "roleSessionNameType", "flattened": false}, - "PolicyArns": {"shape": "policyDescriptorListType", "flattened": false}, - "Policy": { - "shape": "unrestrictedSessionPolicyDocumentType", - "flattened": false - }, - "DurationSeconds": { - "shape": "roleDurationSecondsType", - "flattened": false - }, - "Tags": {"shape": "tagListType", "flattened": false}, - "TransitiveTagKeys": {"shape": "tagKeyListType", "flattened": false}, - "ExternalId": {"shape": "externalIdType", "flattened": false}, - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "TokenCode": {"shape": "tokenCodeType", "flattened": false}, - "SourceIdentity": {"shape": "sourceIdentityType", "flattened": false}, - "ProvidedContexts": { - "shape": "ProvidedContextsListType", - "flattened": false - } - }, - "flattened": false - }, - "AssumeRoleResponse": { - "type": "structure", - "members": { - "Credentials": {"shape": "Credentials", "flattened": false}, - "AssumedRoleUser": {"shape": "AssumedRoleUser", "flattened": false}, - "PackedPolicySize": { - "shape": "nonNegativeIntegerType", - "flattened": false - }, - "SourceIdentity": {"shape": "sourceIdentityType", "flattened": false} - }, - "flattened": false - }, - "AssumeRoleWithSAMLRequest": { - "type": "structure", - "members": { - "RoleArn": {"shape": "arnType", "flattened": false}, - "PrincipalArn": {"shape": "arnType", "flattened": false}, - "SAMLAssertion": {"shape": "SAMLAssertionType", "flattened": false}, - "PolicyArns": {"shape": "policyDescriptorListType", "flattened": false}, - "Policy": {"shape": "sessionPolicyDocumentType", "flattened": false}, - "DurationSeconds": { - "shape": "roleDurationSecondsType", - "flattened": false - } - }, - "flattened": false - }, - "AssumeRoleWithSAMLResponse": { - "type": "structure", - "members": { - "Credentials": {"shape": "Credentials", "flattened": false}, - "AssumedRoleUser": {"shape": "AssumedRoleUser", "flattened": false}, - "PackedPolicySize": { - "shape": "nonNegativeIntegerType", - "flattened": false - }, - "Subject": {"shape": "Subject", "flattened": false}, - "SubjectType": {"shape": "SubjectType", "flattened": false}, - "Issuer": {"shape": "Issuer", "flattened": false}, - "Audience": {"shape": "Audience", "flattened": false}, - "NameQualifier": {"shape": "NameQualifier", "flattened": false}, - "SourceIdentity": {"shape": "sourceIdentityType", "flattened": false} - }, - "flattened": false - }, - "AssumeRoleWithWebIdentityRequest": { - "type": "structure", - "members": { - "RoleArn": {"shape": "arnType", "flattened": false}, - "RoleSessionName": {"shape": "roleSessionNameType", "flattened": false}, - "WebIdentityToken": {"shape": "clientTokenType", "flattened": false}, - "ProviderId": {"shape": "urlType", "flattened": false}, - "PolicyArns": {"shape": "policyDescriptorListType", "flattened": false}, - "Policy": {"shape": "sessionPolicyDocumentType", "flattened": false}, - "DurationSeconds": { - "shape": "roleDurationSecondsType", - "flattened": false - } - }, - "flattened": false - }, - "AssumeRoleWithWebIdentityResponse": { - "type": "structure", - "members": { - "Credentials": {"shape": "Credentials", "flattened": false}, - "SubjectFromWebIdentityToken": { - "shape": "webIdentitySubjectType", - "flattened": false - }, - "AssumedRoleUser": {"shape": "AssumedRoleUser", "flattened": false}, - "PackedPolicySize": { - "shape": "nonNegativeIntegerType", - "flattened": false - }, - "Provider": {"shape": "Issuer", "flattened": false}, - "Audience": {"shape": "Audience", "flattened": false}, - "SourceIdentity": {"shape": "sourceIdentityType", "flattened": false} - }, - "flattened": false - }, - "AssumedRoleUser": { - "type": "structure", - "members": { - "AssumedRoleId": {"shape": "assumedRoleIdType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "Audience": {"type": "string", "flattened": false}, - "Credentials": { - "type": "structure", - "members": { - "AccessKeyId": {"shape": "accessKeyIdType", "flattened": false}, - "SecretAccessKey": {"shape": "accessKeySecretType", "flattened": false}, - "SessionToken": {"shape": "tokenType", "flattened": false}, - "Expiration": {"shape": "dateType", "flattened": false} - }, - "flattened": false - }, - "DecodeAuthorizationMessageRequest": { - "type": "structure", - "members": { - "EncodedMessage": {"shape": "encodedMessageType", "flattened": false} - }, - "flattened": false - }, - "DecodeAuthorizationMessageResponse": { - "type": "structure", - "members": { - "DecodedMessage": {"shape": "decodedMessageType", "flattened": false} - }, - "flattened": false - }, - "FederatedUser": { - "type": "structure", - "members": { - "FederatedUserId": {"shape": "federatedIdType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "GetAccessKeyInfoRequest": { - "type": "structure", - "members": { - "AccessKeyId": {"shape": "accessKeyIdType", "flattened": false} - }, - "flattened": false - }, - "GetAccessKeyInfoResponse": { - "type": "structure", - "members": { - "Account": {"shape": "accountType", "flattened": false} - }, - "flattened": false - }, - "GetCallerIdentityRequest": { - "type": "structure", - "members": {}, - "flattened": false - }, - "GetCallerIdentityResponse": { - "type": "structure", - "members": { - "UserId": {"shape": "userIdType", "flattened": false}, - "Account": {"shape": "accountType", "flattened": false}, - "Arn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "GetFederationTokenRequest": { - "type": "structure", - "members": { - "Name": {"shape": "userNameType", "flattened": false}, - "Policy": {"shape": "sessionPolicyDocumentType", "flattened": false}, - "PolicyArns": {"shape": "policyDescriptorListType", "flattened": false}, - "DurationSeconds": {"shape": "durationSecondsType", "flattened": false}, - "Tags": {"shape": "tagListType", "flattened": false} - }, - "flattened": false - }, - "GetFederationTokenResponse": { - "type": "structure", - "members": { - "Credentials": {"shape": "Credentials", "flattened": false}, - "FederatedUser": {"shape": "FederatedUser", "flattened": false}, - "PackedPolicySize": { - "shape": "nonNegativeIntegerType", - "flattened": false - } - }, - "flattened": false - }, - "GetSessionTokenRequest": { - "type": "structure", - "members": { - "DurationSeconds": {"shape": "durationSecondsType", "flattened": false}, - "SerialNumber": {"shape": "serialNumberType", "flattened": false}, - "TokenCode": {"shape": "tokenCodeType", "flattened": false} - }, - "flattened": false - }, - "GetSessionTokenResponse": { - "type": "structure", - "members": { - "Credentials": {"shape": "Credentials", "flattened": false} - }, - "flattened": false - }, - "Issuer": {"type": "string", "flattened": false}, - "NameQualifier": {"type": "string", "flattened": false}, - "PolicyDescriptorType": { - "type": "structure", - "members": { - "arn": {"shape": "arnType", "flattened": false} - }, - "flattened": false - }, - "ProvidedContext": { - "type": "structure", - "members": { - "ProviderArn": {"shape": "arnType", "flattened": false}, - "ContextAssertion": {"shape": "contextAssertionType", "flattened": false} - }, - "flattened": false - }, - "ProvidedContextsListType": { - "type": "list", - "member": {"shape": "ProvidedContext"}, - "flattened": false - }, - "SAMLAssertionType": {"type": "string", "flattened": false}, - "Subject": {"type": "string", "flattened": false}, - "SubjectType": {"type": "string", "flattened": false}, - "Tag": { - "type": "structure", - "members": { - "Key": {"shape": "tagKeyType", "flattened": false}, - "Value": {"shape": "tagValueType", "flattened": false} - }, - "flattened": false - }, - "accessKeyIdType": {"type": "string", "flattened": false}, - "accessKeySecretType": {"type": "string", "flattened": false}, - "accountType": {"type": "string", "flattened": false}, - "arnType": {"type": "string", "flattened": false}, - "assumedRoleIdType": {"type": "string", "flattened": false}, - "clientTokenType": {"type": "string", "flattened": false}, - "contextAssertionType": {"type": "string", "flattened": false}, - "dateType": {"type": "timestamp", "flattened": false}, - "decodedMessageType": {"type": "string", "flattened": false}, - "durationSecondsType": {"type": "integer", "flattened": false}, - "encodedMessageType": {"type": "string", "flattened": false}, - "externalIdType": {"type": "string", "flattened": false}, - "federatedIdType": {"type": "string", "flattened": false}, - "nonNegativeIntegerType": {"type": "integer", "flattened": false}, - "policyDescriptorListType": { - "type": "list", - "member": {"shape": "PolicyDescriptorType"}, - "flattened": false - }, - "roleDurationSecondsType": {"type": "integer", "flattened": false}, - "roleSessionNameType": {"type": "string", "flattened": false}, - "serialNumberType": {"type": "string", "flattened": false}, - "sessionPolicyDocumentType": {"type": "string", "flattened": false}, - "sourceIdentityType": {"type": "string", "flattened": false}, - "tagKeyListType": { - "type": "list", - "member": {"shape": "tagKeyType"}, - "flattened": false - }, - "tagKeyType": {"type": "string", "flattened": false}, - "tagListType": { - "type": "list", - "member": {"shape": "Tag"}, - "flattened": false - }, - "tagValueType": {"type": "string", "flattened": false}, - "tokenCodeType": {"type": "string", "flattened": false}, - "tokenType": {"type": "string", "flattened": false}, - "unrestrictedSessionPolicyDocumentType": { - "type": "string", - "flattened": false - }, - "urlType": {"type": "string", "flattened": false}, - "userIdType": {"type": "string", "flattened": false}, - "userNameType": {"type": "string", "flattened": false}, - "webIdentitySubjectType": {"type": "string", "flattened": false} -}; diff --git a/aws_client/lib/src/shared/src/protocol/query.dart b/aws_client/lib/src/shared/src/protocol/query.dart index 5c531704d..0697ffb87 100644 --- a/aws_client/lib/src/shared/src/protocol/query.dart +++ b/aws_client/lib/src/shared/src/protocol/query.dart @@ -61,27 +61,34 @@ class QueryProtocol { } Future send( - Map data, { + Map data, { required String method, required String requestUri, required Map exceptionFnMap, bool signed = true, - Shape? shape, - required Map shapes, required String version, required String action, String? resultWrapper, }) async { - final rq = await _buildRequest( - data, - method, - requestUri, - signed, - shape, - shapes, - version, - action, - ); + final rq = Request(method, Uri.parse('${_endpoint.url}$requestUri')); + rq.body = canonicalQueryParameters( + {'Action': action, 'Version': version, ...data}); + rq.headers['Content-Type'] = 'application/x-www-form-urlencoded'; + + if (signed) { + final credentials = await _credentialsProvider?.call(client: _client); + + if (credentials == null) { + throw Exception('credentials for signing request is null'); + } + + _requestSigner( + rq: rq, + service: _endpoint.service, + region: _endpoint.signingRegion, + credentials: credentials, + ); + } final rs = await _client.send(rq); final body = await rs.stream.bytesToString(); @@ -107,38 +114,6 @@ class QueryProtocol { return elem; } - Future _buildRequest( - Map data, - String method, - String requestUri, - bool signed, - Shape? shape, - Map shapes, - String version, - String action, - ) async { - final rq = Request(method, Uri.parse('${_endpoint.url}$requestUri')); - rq.body = canonicalQueryParameters( - flatQueryParams(data, shape, shapes, version, action)); - rq.headers['Content-Type'] = 'application/x-www-form-urlencoded'; - - if (signed) { - final credentials = await _credentialsProvider?.call(client: _client); - - if (credentials == null) { - throw Exception('credentials for signing request is null'); - } - - _requestSigner( - rq: rq, - service: _endpoint.service, - region: _endpoint.signingRegion, - credentials: credentials, - ); - } - return rq; - } - void close() { if (_closed) { return; diff --git a/aws_client/lib/src/shared/src/scoping_extensions.dart b/aws_client/lib/src/shared/src/scoping_extensions.dart index 9933c1ad9..d9cc32bb3 100644 --- a/aws_client/lib/src/shared/src/scoping_extensions.dart +++ b/aws_client/lib/src/shared/src/scoping_extensions.dart @@ -2,11 +2,4 @@ extension ScopingFunctions on T { /// Calls the specified function [block] with `this` value /// as its argument and returns its result. R let(R Function(T e) block) => block(this); - - /// Calls the specified function [block] with `this` value - /// as its argument and returns `this` value. - T also(void Function(T e) block) { - block(this); - return this; - } } diff --git a/aws_client/pubspec.yaml b/aws_client/pubspec.yaml index d0b335f35..e8fb8e22e 100644 --- a/aws_client/pubspec.yaml +++ b/aws_client/pubspec.yaml @@ -1,6 +1,6 @@ name: aws_client description: Auto-generated client libraries for accessing Amazon Web Services (AWS) APIs -version: 0.5.0 +version: 0.5.1 repository: https://github.com/agilord/aws_client topics: - aws diff --git a/generated/aws_autoscaling_api/lib/autoscaling-2011-01-01.dart b/generated/aws_autoscaling_api/lib/autoscaling-2011-01-01.dart index cc9ca16d0..d5ec16570 100644 --- a/generated/aws_autoscaling_api/lib/autoscaling-2011-01-01.dart +++ b/generated/aws_autoscaling_api/lib/autoscaling-2011-01-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'autoscaling-2011-01-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate @@ -25,7 +24,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// health checks. class AutoScaling { final _s.QueryProtocol _protocol; - final Map shapes; AutoScaling({ required String region, @@ -33,7 +31,7 @@ class AutoScaling { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'autoscaling', @@ -42,9 +40,7 @@ class AutoScaling { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -84,9 +80,15 @@ class AutoScaling { required String autoScalingGroupName, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; await _protocol.send( $request, action: 'AttachInstances', @@ -94,8 +96,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachInstancesQuery'], - shapes: shapes, ); } @@ -154,9 +154,14 @@ class AutoScaling { required String autoScalingGroupName, required List targetGroupARNs, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TargetGroupARNs'] = targetGroupARNs; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (targetGroupARNs.isEmpty) + 'TargetGroupARNs': '' + else + for (var i1 = 0; i1 < targetGroupARNs.length; i1++) + 'TargetGroupARNs.member.${i1 + 1}': targetGroupARNs[i1], + }; await _protocol.send( $request, action: 'AttachLoadBalancerTargetGroups', @@ -164,8 +169,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachLoadBalancerTargetGroupsType'], - shapes: shapes, resultWrapper: 'AttachLoadBalancerTargetGroupsResult', ); } @@ -207,9 +210,14 @@ class AutoScaling { required String autoScalingGroupName, required List loadBalancerNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LoadBalancerNames'] = loadBalancerNames; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + }; await _protocol.send( $request, action: 'AttachLoadBalancers', @@ -217,8 +225,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachLoadBalancersType'], - shapes: shapes, resultWrapper: 'AttachLoadBalancersResult', ); } @@ -266,9 +272,15 @@ class AutoScaling { required String autoScalingGroupName, required List trafficSources, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TrafficSources'] = trafficSources; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (trafficSources.isEmpty) + 'TrafficSources': '' + else + for (var i1 = 0; i1 < trafficSources.length; i1++) + for (var e3 in trafficSources[i1].toQueryMap().entries) + 'TrafficSources.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AttachTrafficSources', @@ -276,8 +288,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachTrafficSourcesType'], - shapes: shapes, resultWrapper: 'AttachTrafficSourcesResult', ); } @@ -297,9 +307,14 @@ class AutoScaling { required String autoScalingGroupName, required List scheduledActionNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledActionNames'] = scheduledActionNames; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scheduledActionNames.isEmpty) + 'ScheduledActionNames': '' + else + for (var i1 = 0; i1 < scheduledActionNames.length; i1++) + 'ScheduledActionNames.member.${i1 + 1}': scheduledActionNames[i1], + }; final $result = await _protocol.send( $request, action: 'BatchDeleteScheduledAction', @@ -307,8 +322,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDeleteScheduledActionType'], - shapes: shapes, resultWrapper: 'BatchDeleteScheduledActionResult', ); return BatchDeleteScheduledActionAnswer.fromXml($result); @@ -332,9 +345,15 @@ class AutoScaling { required List scheduledUpdateGroupActions, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledUpdateGroupActions'] = scheduledUpdateGroupActions; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scheduledUpdateGroupActions.isEmpty) + 'ScheduledUpdateGroupActions': '' + else + for (var i1 = 0; i1 < scheduledUpdateGroupActions.length; i1++) + for (var e3 in scheduledUpdateGroupActions[i1].toQueryMap().entries) + 'ScheduledUpdateGroupActions.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'BatchPutScheduledUpdateGroupAction', @@ -342,8 +361,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchPutScheduledUpdateGroupActionType'], - shapes: shapes, resultWrapper: 'BatchPutScheduledUpdateGroupActionResult', ); return BatchPutScheduledUpdateGroupActionAnswer.fromXml($result); @@ -371,8 +388,9 @@ class AutoScaling { Future cancelInstanceRefresh({ required String autoScalingGroupName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + }; final $result = await _protocol.send( $request, action: 'CancelInstanceRefresh', @@ -380,8 +398,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelInstanceRefreshType'], - shapes: shapes, resultWrapper: 'CancelInstanceRefreshResult', ); return CancelInstanceRefreshAnswer.fromXml($result); @@ -451,12 +467,14 @@ class AutoScaling { String? instanceId, String? lifecycleActionToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleActionResult'] = lifecycleActionResult; - $request['LifecycleHookName'] = lifecycleHookName; - instanceId?.also((arg) => $request['InstanceId'] = arg); - lifecycleActionToken?.also((arg) => $request['LifecycleActionToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleActionResult': lifecycleActionResult, + 'LifecycleHookName': lifecycleHookName, + if (instanceId != null) 'InstanceId': instanceId, + if (lifecycleActionToken != null) + 'LifecycleActionToken': lifecycleActionToken, + }; await _protocol.send( $request, action: 'CompleteLifecycleAction', @@ -464,8 +482,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CompleteLifecycleActionType'], - shapes: shapes, resultWrapper: 'CompleteLifecycleActionResult', ); } @@ -799,41 +815,93 @@ class AutoScaling { List? trafficSources, String? vPCZoneIdentifier, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['MaxSize'] = maxSize; - $request['MinSize'] = minSize; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - capacityRebalance?.also((arg) => $request['CapacityRebalance'] = arg); - context?.also((arg) => $request['Context'] = arg); - defaultCooldown?.also((arg) => $request['DefaultCooldown'] = arg); - defaultInstanceWarmup - ?.also((arg) => $request['DefaultInstanceWarmup'] = arg); - desiredCapacity?.also((arg) => $request['DesiredCapacity'] = arg); - desiredCapacityType?.also((arg) => $request['DesiredCapacityType'] = arg); - healthCheckGracePeriod - ?.also((arg) => $request['HealthCheckGracePeriod'] = arg); - healthCheckType?.also((arg) => $request['HealthCheckType'] = arg); - instanceId?.also((arg) => $request['InstanceId'] = arg); - instanceMaintenancePolicy - ?.also((arg) => $request['InstanceMaintenancePolicy'] = arg); - launchConfigurationName - ?.also((arg) => $request['LaunchConfigurationName'] = arg); - launchTemplate?.also((arg) => $request['LaunchTemplate'] = arg); - lifecycleHookSpecificationList - ?.also((arg) => $request['LifecycleHookSpecificationList'] = arg); - loadBalancerNames?.also((arg) => $request['LoadBalancerNames'] = arg); - maxInstanceLifetime?.also((arg) => $request['MaxInstanceLifetime'] = arg); - mixedInstancesPolicy?.also((arg) => $request['MixedInstancesPolicy'] = arg); - newInstancesProtectedFromScaleIn - ?.also((arg) => $request['NewInstancesProtectedFromScaleIn'] = arg); - placementGroup?.also((arg) => $request['PlacementGroup'] = arg); - serviceLinkedRoleARN?.also((arg) => $request['ServiceLinkedRoleARN'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetGroupARNs?.also((arg) => $request['TargetGroupARNs'] = arg); - terminationPolicies?.also((arg) => $request['TerminationPolicies'] = arg); - trafficSources?.also((arg) => $request['TrafficSources'] = arg); - vPCZoneIdentifier?.also((arg) => $request['VPCZoneIdentifier'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'MaxSize': maxSize.toString(), + 'MinSize': minSize.toString(), + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + if (capacityRebalance != null) + 'CapacityRebalance': capacityRebalance.toString(), + if (context != null) 'Context': context, + if (defaultCooldown != null) + 'DefaultCooldown': defaultCooldown.toString(), + if (defaultInstanceWarmup != null) + 'DefaultInstanceWarmup': defaultInstanceWarmup.toString(), + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (desiredCapacityType != null) + 'DesiredCapacityType': desiredCapacityType, + if (healthCheckGracePeriod != null) + 'HealthCheckGracePeriod': healthCheckGracePeriod.toString(), + if (healthCheckType != null) 'HealthCheckType': healthCheckType, + if (instanceId != null) 'InstanceId': instanceId, + if (instanceMaintenancePolicy != null) + for (var e1 in instanceMaintenancePolicy.toQueryMap().entries) + 'InstanceMaintenancePolicy.${e1.key}': e1.value, + if (launchConfigurationName != null) + 'LaunchConfigurationName': launchConfigurationName, + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + if (lifecycleHookSpecificationList != null) + if (lifecycleHookSpecificationList.isEmpty) + 'LifecycleHookSpecificationList': '' + else + for (var i1 = 0; i1 < lifecycleHookSpecificationList.length; i1++) + for (var e3 + in lifecycleHookSpecificationList[i1].toQueryMap().entries) + 'LifecycleHookSpecificationList.member.${i1 + 1}.${e3.key}': + e3.value, + if (loadBalancerNames != null) + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (maxInstanceLifetime != null) + 'MaxInstanceLifetime': maxInstanceLifetime.toString(), + if (mixedInstancesPolicy != null) + for (var e1 in mixedInstancesPolicy.toQueryMap().entries) + 'MixedInstancesPolicy.${e1.key}': e1.value, + if (newInstancesProtectedFromScaleIn != null) + 'NewInstancesProtectedFromScaleIn': + newInstancesProtectedFromScaleIn.toString(), + if (placementGroup != null) 'PlacementGroup': placementGroup, + if (serviceLinkedRoleARN != null) + 'ServiceLinkedRoleARN': serviceLinkedRoleARN, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (targetGroupARNs != null) + if (targetGroupARNs.isEmpty) + 'TargetGroupARNs': '' + else + for (var i1 = 0; i1 < targetGroupARNs.length; i1++) + 'TargetGroupARNs.member.${i1 + 1}': targetGroupARNs[i1], + if (terminationPolicies != null) + if (terminationPolicies.isEmpty) + 'TerminationPolicies': '' + else + for (var i1 = 0; i1 < terminationPolicies.length; i1++) + 'TerminationPolicies.member.${i1 + 1}': terminationPolicies[i1], + if (trafficSources != null) + if (trafficSources.isEmpty) + 'TrafficSources': '' + else + for (var i1 = 0; i1 < trafficSources.length; i1++) + for (var e3 in trafficSources[i1].toQueryMap().entries) + 'TrafficSources.member.${i1 + 1}.${e3.key}': e3.value, + if (vPCZoneIdentifier != null) 'VPCZoneIdentifier': vPCZoneIdentifier, + }; await _protocol.send( $request, action: 'CreateAutoScalingGroup', @@ -841,8 +909,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAutoScalingGroupType'], - shapes: shapes, ); } @@ -1079,28 +1145,49 @@ class AutoScaling { String? spotPrice, String? userData, }) async { - final $request = {}; - $request['LaunchConfigurationName'] = launchConfigurationName; - associatePublicIpAddress - ?.also((arg) => $request['AssociatePublicIpAddress'] = arg); - blockDeviceMappings?.also((arg) => $request['BlockDeviceMappings'] = arg); - classicLinkVPCId?.also((arg) => $request['ClassicLinkVPCId'] = arg); - classicLinkVPCSecurityGroups - ?.also((arg) => $request['ClassicLinkVPCSecurityGroups'] = arg); - ebsOptimized?.also((arg) => $request['EbsOptimized'] = arg); - iamInstanceProfile?.also((arg) => $request['IamInstanceProfile'] = arg); - imageId?.also((arg) => $request['ImageId'] = arg); - instanceId?.also((arg) => $request['InstanceId'] = arg); - instanceMonitoring?.also((arg) => $request['InstanceMonitoring'] = arg); - instanceType?.also((arg) => $request['InstanceType'] = arg); - kernelId?.also((arg) => $request['KernelId'] = arg); - keyName?.also((arg) => $request['KeyName'] = arg); - metadataOptions?.also((arg) => $request['MetadataOptions'] = arg); - placementTenancy?.also((arg) => $request['PlacementTenancy'] = arg); - ramdiskId?.also((arg) => $request['RamdiskId'] = arg); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); - spotPrice?.also((arg) => $request['SpotPrice'] = arg); - userData?.also((arg) => $request['UserData'] = arg); + final $request = { + 'LaunchConfigurationName': launchConfigurationName, + if (associatePublicIpAddress != null) + 'AssociatePublicIpAddress': associatePublicIpAddress.toString(), + if (blockDeviceMappings != null) + if (blockDeviceMappings.isEmpty) + 'BlockDeviceMappings': '' + else + for (var i1 = 0; i1 < blockDeviceMappings.length; i1++) + for (var e3 in blockDeviceMappings[i1].toQueryMap().entries) + 'BlockDeviceMappings.member.${i1 + 1}.${e3.key}': e3.value, + if (classicLinkVPCId != null) 'ClassicLinkVPCId': classicLinkVPCId, + if (classicLinkVPCSecurityGroups != null) + if (classicLinkVPCSecurityGroups.isEmpty) + 'ClassicLinkVPCSecurityGroups': '' + else + for (var i1 = 0; i1 < classicLinkVPCSecurityGroups.length; i1++) + 'ClassicLinkVPCSecurityGroups.member.${i1 + 1}': + classicLinkVPCSecurityGroups[i1], + if (ebsOptimized != null) 'EbsOptimized': ebsOptimized.toString(), + if (iamInstanceProfile != null) 'IamInstanceProfile': iamInstanceProfile, + if (imageId != null) 'ImageId': imageId, + if (instanceId != null) 'InstanceId': instanceId, + if (instanceMonitoring != null) + for (var e1 in instanceMonitoring.toQueryMap().entries) + 'InstanceMonitoring.${e1.key}': e1.value, + if (instanceType != null) 'InstanceType': instanceType, + if (kernelId != null) 'KernelId': kernelId, + if (keyName != null) 'KeyName': keyName, + if (metadataOptions != null) + for (var e1 in metadataOptions.toQueryMap().entries) + 'MetadataOptions.${e1.key}': e1.value, + if (placementTenancy != null) 'PlacementTenancy': placementTenancy, + if (ramdiskId != null) 'RamdiskId': ramdiskId, + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (spotPrice != null) 'SpotPrice': spotPrice, + if (userData != null) 'UserData': userData, + }; await _protocol.send( $request, action: 'CreateLaunchConfiguration', @@ -1108,8 +1195,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLaunchConfigurationType'], - shapes: shapes, ); } @@ -1134,8 +1219,14 @@ class AutoScaling { Future createOrUpdateTags({ required List tags, }) async { - final $request = {}; - $request['Tags'] = tags; + final $request = { + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'CreateOrUpdateTags', @@ -1143,8 +1234,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOrUpdateTagsType'], - shapes: shapes, ); } @@ -1189,9 +1278,10 @@ class AutoScaling { required String autoScalingGroupName, bool? forceDelete, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - forceDelete?.also((arg) => $request['ForceDelete'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (forceDelete != null) 'ForceDelete': forceDelete.toString(), + }; await _protocol.send( $request, action: 'DeleteAutoScalingGroup', @@ -1199,8 +1289,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAutoScalingGroupType'], - shapes: shapes, ); } @@ -1218,8 +1306,9 @@ class AutoScaling { Future deleteLaunchConfiguration({ required String launchConfigurationName, }) async { - final $request = {}; - $request['LaunchConfigurationName'] = launchConfigurationName; + final $request = { + 'LaunchConfigurationName': launchConfigurationName, + }; await _protocol.send( $request, action: 'DeleteLaunchConfiguration', @@ -1227,8 +1316,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['LaunchConfigurationNameType'], - shapes: shapes, ); } @@ -1249,9 +1336,10 @@ class AutoScaling { required String autoScalingGroupName, required String lifecycleHookName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleHookName'] = lifecycleHookName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleHookName': lifecycleHookName, + }; await _protocol.send( $request, action: 'DeleteLifecycleHook', @@ -1259,8 +1347,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLifecycleHookType'], - shapes: shapes, resultWrapper: 'DeleteLifecycleHookResult', ); } @@ -1278,9 +1364,10 @@ class AutoScaling { required String autoScalingGroupName, required String topicARN, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TopicARN'] = topicARN; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'TopicARN': topicARN, + }; await _protocol.send( $request, action: 'DeleteNotificationConfiguration', @@ -1288,8 +1375,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteNotificationConfigurationType'], - shapes: shapes, ); } @@ -1315,9 +1400,11 @@ class AutoScaling { required String policyName, String? autoScalingGroupName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); + final $request = { + 'PolicyName': policyName, + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + }; await _protocol.send( $request, action: 'DeletePolicy', @@ -1325,8 +1412,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePolicyType'], - shapes: shapes, ); } @@ -1343,9 +1428,10 @@ class AutoScaling { required String autoScalingGroupName, required String scheduledActionName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledActionName'] = scheduledActionName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ScheduledActionName': scheduledActionName, + }; await _protocol.send( $request, action: 'DeleteScheduledAction', @@ -1353,8 +1439,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteScheduledActionType'], - shapes: shapes, ); } @@ -1368,8 +1452,14 @@ class AutoScaling { Future deleteTags({ required List tags, }) async { - final $request = {}; - $request['Tags'] = tags; + final $request = { + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'DeleteTags', @@ -1377,8 +1467,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTagsType'], - shapes: shapes, ); } @@ -1406,9 +1494,10 @@ class AutoScaling { required String autoScalingGroupName, bool? forceDelete, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - forceDelete?.also((arg) => $request['ForceDelete'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (forceDelete != null) 'ForceDelete': forceDelete.toString(), + }; await _protocol.send( $request, action: 'DeleteWarmPool', @@ -1416,8 +1505,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteWarmPoolType'], - shapes: shapes, resultWrapper: 'DeleteWarmPoolResult', ); } @@ -1435,7 +1522,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeAccountLimits() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -1443,7 +1530,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsAnswer.fromXml($result); @@ -1468,7 +1554,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeAdjustmentTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAdjustmentTypes', @@ -1476,7 +1562,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAdjustmentTypesResult', ); return DescribeAdjustmentTypesAnswer.fromXml($result); @@ -1520,12 +1605,23 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - autoScalingGroupNames - ?.also((arg) => $request['AutoScalingGroupNames'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (autoScalingGroupNames != null) + if (autoScalingGroupNames.isEmpty) + 'AutoScalingGroupNames': '' + else + for (var i1 = 0; i1 < autoScalingGroupNames.length; i1++) + 'AutoScalingGroupNames.member.${i1 + 1}': autoScalingGroupNames[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAutoScalingGroups', @@ -1533,8 +1629,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AutoScalingGroupNamesType'], - shapes: shapes, resultWrapper: 'DescribeAutoScalingGroupsResult', ); return AutoScalingGroupsType.fromXml($result); @@ -1565,10 +1659,16 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAutoScalingInstances', @@ -1576,8 +1676,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAutoScalingInstancesType'], - shapes: shapes, resultWrapper: 'DescribeAutoScalingInstancesResult', ); return AutoScalingInstancesType.fromXml($result); @@ -1589,7 +1687,7 @@ class AutoScaling { /// May throw [ResourceContentionFault]. Future describeAutoScalingNotificationTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAutoScalingNotificationTypes', @@ -1597,7 +1695,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAutoScalingNotificationTypesResult', ); return DescribeAutoScalingNotificationTypesAnswer.fromXml($result); @@ -1642,11 +1739,17 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceRefreshIds?.also((arg) => $request['InstanceRefreshIds'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceRefreshIds != null) + if (instanceRefreshIds.isEmpty) + 'InstanceRefreshIds': '' + else + for (var i1 = 0; i1 < instanceRefreshIds.length; i1++) + 'InstanceRefreshIds.member.${i1 + 1}': instanceRefreshIds[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeInstanceRefreshes', @@ -1654,8 +1757,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInstanceRefreshesType'], - shapes: shapes, resultWrapper: 'DescribeInstanceRefreshesResult', ); return DescribeInstanceRefreshesAnswer.fromXml($result); @@ -1685,11 +1786,17 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - launchConfigurationNames - ?.also((arg) => $request['LaunchConfigurationNames'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (launchConfigurationNames != null) + if (launchConfigurationNames.isEmpty) + 'LaunchConfigurationNames': '' + else + for (var i1 = 0; i1 < launchConfigurationNames.length; i1++) + 'LaunchConfigurationNames.member.${i1 + 1}': + launchConfigurationNames[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeLaunchConfigurations', @@ -1697,8 +1804,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['LaunchConfigurationNamesType'], - shapes: shapes, resultWrapper: 'DescribeLaunchConfigurationsResult', ); return LaunchConfigurationsType.fromXml($result); @@ -1719,7 +1824,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeLifecycleHookTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeLifecycleHookTypes', @@ -1727,7 +1832,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeLifecycleHookTypesResult', ); return DescribeLifecycleHookTypesAnswer.fromXml($result); @@ -1748,9 +1852,15 @@ class AutoScaling { required String autoScalingGroupName, List? lifecycleHookNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - lifecycleHookNames?.also((arg) => $request['LifecycleHookNames'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (lifecycleHookNames != null) + if (lifecycleHookNames.isEmpty) + 'LifecycleHookNames': '' + else + for (var i1 = 0; i1 < lifecycleHookNames.length; i1++) + 'LifecycleHookNames.member.${i1 + 1}': lifecycleHookNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeLifecycleHooks', @@ -1758,8 +1868,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLifecycleHooksType'], - shapes: shapes, resultWrapper: 'DescribeLifecycleHooksResult', ); return DescribeLifecycleHooksAnswer.fromXml($result); @@ -1828,10 +1936,11 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerTargetGroups', @@ -1839,8 +1948,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerTargetGroupsRequest'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerTargetGroupsResult', ); return DescribeLoadBalancerTargetGroupsResponse.fromXml($result); @@ -1907,10 +2014,11 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancers', @@ -1918,8 +2026,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancersRequest'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancersResult', ); return DescribeLoadBalancersResponse.fromXml($result); @@ -1930,7 +2036,7 @@ class AutoScaling { /// May throw [ResourceContentionFault]. Future describeMetricCollectionTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeMetricCollectionTypes', @@ -1938,7 +2044,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeMetricCollectionTypesResult', ); return DescribeMetricCollectionTypesAnswer.fromXml($result); @@ -1966,11 +2071,16 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - autoScalingGroupNames - ?.also((arg) => $request['AutoScalingGroupNames'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (autoScalingGroupNames != null) + if (autoScalingGroupNames.isEmpty) + 'AutoScalingGroupNames': '' + else + for (var i1 = 0; i1 < autoScalingGroupNames.length; i1++) + 'AutoScalingGroupNames.member.${i1 + 1}': autoScalingGroupNames[i1], + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeNotificationConfigurations', @@ -1978,8 +2088,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeNotificationConfigurationsType'], - shapes: shapes, resultWrapper: 'DescribeNotificationConfigurationsResult', ); return DescribeNotificationConfigurationsAnswer.fromXml($result); @@ -2021,12 +2129,24 @@ class AutoScaling { List? policyNames, List? policyTypes, }) async { - final $request = {}; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - policyNames?.also((arg) => $request['PolicyNames'] = arg); - policyTypes?.also((arg) => $request['PolicyTypes'] = arg); + final $request = { + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (policyNames != null) + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + if (policyTypes != null) + if (policyTypes.isEmpty) + 'PolicyTypes': '' + else + for (var i1 = 0; i1 < policyTypes.length; i1++) + 'PolicyTypes.member.${i1 + 1}': policyTypes[i1], + }; final $result = await _protocol.send( $request, action: 'DescribePolicies', @@ -2034,8 +2154,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePoliciesType'], - shapes: shapes, resultWrapper: 'DescribePoliciesResult', ); return PoliciesType.fromXml($result); @@ -2091,12 +2209,20 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - activityIds?.also((arg) => $request['ActivityIds'] = arg); - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - includeDeletedGroups?.also((arg) => $request['IncludeDeletedGroups'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (activityIds != null) + if (activityIds.isEmpty) + 'ActivityIds': '' + else + for (var i1 = 0; i1 < activityIds.length; i1++) + 'ActivityIds.member.${i1 + 1}': activityIds[i1], + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (includeDeletedGroups != null) + 'IncludeDeletedGroups': includeDeletedGroups.toString(), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeScalingActivities', @@ -2104,8 +2230,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScalingActivitiesType'], - shapes: shapes, resultWrapper: 'DescribeScalingActivitiesResult', ); return ActivitiesType.fromXml($result); @@ -2116,7 +2240,7 @@ class AutoScaling { /// /// May throw [ResourceContentionFault]. Future describeScalingProcessTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeScalingProcessTypes', @@ -2124,7 +2248,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeScalingProcessTypesResult', ); return ProcessesType.fromXml($result); @@ -2172,13 +2295,20 @@ class AutoScaling { List? scheduledActionNames, DateTime? startTime, }) async { - final $request = {}; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - scheduledActionNames?.also((arg) => $request['ScheduledActionNames'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (scheduledActionNames != null) + if (scheduledActionNames.isEmpty) + 'ScheduledActionNames': '' + else + for (var i1 = 0; i1 < scheduledActionNames.length; i1++) + 'ScheduledActionNames.member.${i1 + 1}': scheduledActionNames[i1], + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeScheduledActions', @@ -2186,8 +2316,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScheduledActionsType'], - shapes: shapes, resultWrapper: 'DescribeScheduledActionsResult', ); return ScheduledActionsType.fromXml($result); @@ -2229,10 +2357,17 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -2240,8 +2375,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsType'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return TagsType.fromXml($result); @@ -2257,7 +2390,7 @@ class AutoScaling { /// May throw [ResourceContentionFault]. Future describeTerminationPolicyTypes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeTerminationPolicyTypes', @@ -2265,7 +2398,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeTerminationPolicyTypesResult', ); return DescribeTerminationPolicyTypesAnswer.fromXml($result); @@ -2317,11 +2449,12 @@ class AutoScaling { String? nextToken, String? trafficSourceType, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - trafficSourceType?.also((arg) => $request['TrafficSourceType'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (trafficSourceType != null) 'TrafficSourceType': trafficSourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeTrafficSources', @@ -2329,8 +2462,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrafficSourcesRequest'], - shapes: shapes, resultWrapper: 'DescribeTrafficSourcesResult', ); return DescribeTrafficSourcesResponse.fromXml($result); @@ -2362,10 +2493,11 @@ class AutoScaling { int? maxRecords, String? nextToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeWarmPool', @@ -2373,8 +2505,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeWarmPoolType'], - shapes: shapes, resultWrapper: 'DescribeWarmPoolResult', ); return DescribeWarmPoolAnswer.fromXml($result); @@ -2414,10 +2544,17 @@ class AutoScaling { required bool shouldDecrementDesiredCapacity, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ShouldDecrementDesiredCapacity'] = shouldDecrementDesiredCapacity; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ShouldDecrementDesiredCapacity': + shouldDecrementDesiredCapacity.toString(), + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; final $result = await _protocol.send( $request, action: 'DetachInstances', @@ -2425,8 +2562,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachInstancesQuery'], - shapes: shapes, resultWrapper: 'DetachInstancesResult', ); return DetachInstancesAnswer.fromXml($result); @@ -2466,9 +2601,14 @@ class AutoScaling { required String autoScalingGroupName, required List targetGroupARNs, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TargetGroupARNs'] = targetGroupARNs; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (targetGroupARNs.isEmpty) + 'TargetGroupARNs': '' + else + for (var i1 = 0; i1 < targetGroupARNs.length; i1++) + 'TargetGroupARNs.member.${i1 + 1}': targetGroupARNs[i1], + }; await _protocol.send( $request, action: 'DetachLoadBalancerTargetGroups', @@ -2476,8 +2616,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachLoadBalancerTargetGroupsType'], - shapes: shapes, resultWrapper: 'DetachLoadBalancerTargetGroupsResult', ); } @@ -2514,9 +2652,14 @@ class AutoScaling { required String autoScalingGroupName, required List loadBalancerNames, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LoadBalancerNames'] = loadBalancerNames; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + }; await _protocol.send( $request, action: 'DetachLoadBalancers', @@ -2524,8 +2667,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachLoadBalancersType'], - shapes: shapes, resultWrapper: 'DetachLoadBalancersResult', ); } @@ -2550,9 +2691,15 @@ class AutoScaling { required String autoScalingGroupName, required List trafficSources, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['TrafficSources'] = trafficSources; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (trafficSources.isEmpty) + 'TrafficSources': '' + else + for (var i1 = 0; i1 < trafficSources.length; i1++) + for (var e3 in trafficSources[i1].toQueryMap().entries) + 'TrafficSources.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'DetachTrafficSources', @@ -2560,8 +2707,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachTrafficSourcesType'], - shapes: shapes, resultWrapper: 'DetachTrafficSourcesResult', ); } @@ -2650,9 +2795,15 @@ class AutoScaling { required String autoScalingGroupName, List? metrics, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - metrics?.also((arg) => $request['Metrics'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + 'Metrics.member.${i1 + 1}': metrics[i1], + }; await _protocol.send( $request, action: 'DisableMetricsCollection', @@ -2660,8 +2811,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableMetricsCollectionQuery'], - shapes: shapes, ); } @@ -2763,10 +2912,16 @@ class AutoScaling { required String granularity, List? metrics, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['Granularity'] = granularity; - metrics?.also((arg) => $request['Metrics'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'Granularity': granularity, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + 'Metrics.member.${i1 + 1}': metrics[i1], + }; await _protocol.send( $request, action: 'EnableMetricsCollection', @@ -2774,8 +2929,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableMetricsCollectionQuery'], - shapes: shapes, ); } @@ -2811,10 +2964,17 @@ class AutoScaling { required bool shouldDecrementDesiredCapacity, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ShouldDecrementDesiredCapacity'] = shouldDecrementDesiredCapacity; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ShouldDecrementDesiredCapacity': + shouldDecrementDesiredCapacity.toString(), + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; final $result = await _protocol.send( $request, action: 'EnterStandby', @@ -2822,8 +2982,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnterStandbyQuery'], - shapes: shapes, resultWrapper: 'EnterStandbyResult', ); return EnterStandbyAnswer.fromXml($result); @@ -2876,12 +3034,15 @@ class AutoScaling { bool? honorCooldown, double? metricValue, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - autoScalingGroupName?.also((arg) => $request['AutoScalingGroupName'] = arg); - breachThreshold?.also((arg) => $request['BreachThreshold'] = arg); - honorCooldown?.also((arg) => $request['HonorCooldown'] = arg); - metricValue?.also((arg) => $request['MetricValue'] = arg); + final $request = { + 'PolicyName': policyName, + if (autoScalingGroupName != null) + 'AutoScalingGroupName': autoScalingGroupName, + if (breachThreshold != null) + 'BreachThreshold': breachThreshold.toString(), + if (honorCooldown != null) 'HonorCooldown': honorCooldown.toString(), + if (metricValue != null) 'MetricValue': metricValue.toString(), + }; await _protocol.send( $request, action: 'ExecutePolicy', @@ -2889,8 +3050,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExecutePolicyType'], - shapes: shapes, ); } @@ -2915,9 +3074,15 @@ class AutoScaling { required String autoScalingGroupName, List? instanceIds, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceIds?.also((arg) => $request['InstanceIds'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceIds != null) + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + }; final $result = await _protocol.send( $request, action: 'ExitStandby', @@ -2925,8 +3090,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExitStandbyQuery'], - shapes: shapes, resultWrapper: 'ExitStandbyResult', ); return ExitStandbyAnswer.fromXml($result); @@ -2974,11 +3137,12 @@ class AutoScaling { required String policyName, required DateTime startTime, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['PolicyName'] = policyName; - $request['StartTime'] = _s.iso8601ToJson(startTime); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'EndTime': _s.iso8601ToJson(endTime), + 'PolicyName': policyName, + 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'GetPredictiveScalingForecast', @@ -2986,8 +3150,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPredictiveScalingForecastType'], - shapes: shapes, resultWrapper: 'GetPredictiveScalingForecastResult', ); return GetPredictiveScalingForecastAnswer.fromXml($result); @@ -3118,16 +3280,20 @@ class AutoScaling { String? notificationTargetARN, String? roleARN, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleHookName'] = lifecycleHookName; - defaultResult?.also((arg) => $request['DefaultResult'] = arg); - heartbeatTimeout?.also((arg) => $request['HeartbeatTimeout'] = arg); - lifecycleTransition?.also((arg) => $request['LifecycleTransition'] = arg); - notificationMetadata?.also((arg) => $request['NotificationMetadata'] = arg); - notificationTargetARN - ?.also((arg) => $request['NotificationTargetARN'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleHookName': lifecycleHookName, + if (defaultResult != null) 'DefaultResult': defaultResult, + if (heartbeatTimeout != null) + 'HeartbeatTimeout': heartbeatTimeout.toString(), + if (lifecycleTransition != null) + 'LifecycleTransition': lifecycleTransition, + if (notificationMetadata != null) + 'NotificationMetadata': notificationMetadata, + if (notificationTargetARN != null) + 'NotificationTargetARN': notificationTargetARN, + if (roleARN != null) 'RoleARN': roleARN, + }; await _protocol.send( $request, action: 'PutLifecycleHook', @@ -3135,8 +3301,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutLifecycleHookType'], - shapes: shapes, resultWrapper: 'PutLifecycleHookResult', ); } @@ -3174,10 +3338,15 @@ class AutoScaling { required List notificationTypes, required String topicARN, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['NotificationTypes'] = notificationTypes; - $request['TopicARN'] = topicARN; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (notificationTypes.isEmpty) + 'NotificationTypes': '' + else + for (var i1 = 0; i1 < notificationTypes.length; i1++) + 'NotificationTypes.member.${i1 + 1}': notificationTypes[i1], + 'TopicARN': topicARN, + }; await _protocol.send( $request, action: 'PutNotificationConfiguration', @@ -3185,8 +3354,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutNotificationConfigurationType'], - shapes: shapes, ); } @@ -3393,26 +3560,37 @@ class AutoScaling { List? stepAdjustments, TargetTrackingConfiguration? targetTrackingConfiguration, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['PolicyName'] = policyName; - adjustmentType?.also((arg) => $request['AdjustmentType'] = arg); - cooldown?.also((arg) => $request['Cooldown'] = arg); - enabled?.also((arg) => $request['Enabled'] = arg); - estimatedInstanceWarmup - ?.also((arg) => $request['EstimatedInstanceWarmup'] = arg); - metricAggregationType - ?.also((arg) => $request['MetricAggregationType'] = arg); - minAdjustmentMagnitude - ?.also((arg) => $request['MinAdjustmentMagnitude'] = arg); - minAdjustmentStep?.also((arg) => $request['MinAdjustmentStep'] = arg); - policyType?.also((arg) => $request['PolicyType'] = arg); - predictiveScalingConfiguration - ?.also((arg) => $request['PredictiveScalingConfiguration'] = arg); - scalingAdjustment?.also((arg) => $request['ScalingAdjustment'] = arg); - stepAdjustments?.also((arg) => $request['StepAdjustments'] = arg); - targetTrackingConfiguration - ?.also((arg) => $request['TargetTrackingConfiguration'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'PolicyName': policyName, + if (adjustmentType != null) 'AdjustmentType': adjustmentType, + if (cooldown != null) 'Cooldown': cooldown.toString(), + if (enabled != null) 'Enabled': enabled.toString(), + if (estimatedInstanceWarmup != null) + 'EstimatedInstanceWarmup': estimatedInstanceWarmup.toString(), + if (metricAggregationType != null) + 'MetricAggregationType': metricAggregationType, + if (minAdjustmentMagnitude != null) + 'MinAdjustmentMagnitude': minAdjustmentMagnitude.toString(), + if (minAdjustmentStep != null) + 'MinAdjustmentStep': minAdjustmentStep.toString(), + if (policyType != null) 'PolicyType': policyType, + if (predictiveScalingConfiguration != null) + for (var e1 in predictiveScalingConfiguration.toQueryMap().entries) + 'PredictiveScalingConfiguration.${e1.key}': e1.value, + if (scalingAdjustment != null) + 'ScalingAdjustment': scalingAdjustment.toString(), + if (stepAdjustments != null) + if (stepAdjustments.isEmpty) + 'StepAdjustments': '' + else + for (var i1 = 0; i1 < stepAdjustments.length; i1++) + for (var e3 in stepAdjustments[i1].toQueryMap().entries) + 'StepAdjustments.member.${i1 + 1}.${e3.key}': e3.value, + if (targetTrackingConfiguration != null) + for (var e1 in targetTrackingConfiguration.toQueryMap().entries) + 'TargetTrackingConfiguration.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'PutScalingPolicy', @@ -3420,8 +3598,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutScalingPolicyType'], - shapes: shapes, resultWrapper: 'PutScalingPolicyResult', ); return PolicyARNType.fromXml($result); @@ -3516,17 +3692,19 @@ class AutoScaling { DateTime? time, String? timeZone, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['ScheduledActionName'] = scheduledActionName; - desiredCapacity?.also((arg) => $request['DesiredCapacity'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - maxSize?.also((arg) => $request['MaxSize'] = arg); - minSize?.also((arg) => $request['MinSize'] = arg); - recurrence?.also((arg) => $request['Recurrence'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - time?.also((arg) => $request['Time'] = _s.iso8601ToJson(arg)); - timeZone?.also((arg) => $request['TimeZone'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'ScheduledActionName': scheduledActionName, + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (maxSize != null) 'MaxSize': maxSize.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (recurrence != null) 'Recurrence': recurrence, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (time != null) 'Time': _s.iso8601ToJson(time), + if (timeZone != null) 'TimeZone': timeZone, + }; await _protocol.send( $request, action: 'PutScheduledUpdateGroupAction', @@ -3534,8 +3712,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutScheduledUpdateGroupActionType'], - shapes: shapes, ); } @@ -3620,13 +3796,16 @@ class AutoScaling { 0, 1152921504606846976, ); - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - instanceReusePolicy?.also((arg) => $request['InstanceReusePolicy'] = arg); - maxGroupPreparedCapacity - ?.also((arg) => $request['MaxGroupPreparedCapacity'] = arg); - minSize?.also((arg) => $request['MinSize'] = arg); - poolState?.also((arg) => $request['PoolState'] = arg.toValue()); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceReusePolicy != null) + for (var e1 in instanceReusePolicy.toQueryMap().entries) + 'InstanceReusePolicy.${e1.key}': e1.value, + if (maxGroupPreparedCapacity != null) + 'MaxGroupPreparedCapacity': maxGroupPreparedCapacity.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (poolState != null) 'PoolState': poolState.toValue(), + }; await _protocol.send( $request, action: 'PutWarmPool', @@ -3634,8 +3813,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutWarmPoolType'], - shapes: shapes, resultWrapper: 'PutWarmPoolResult', ); } @@ -3701,11 +3878,13 @@ class AutoScaling { String? instanceId, String? lifecycleActionToken, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['LifecycleHookName'] = lifecycleHookName; - instanceId?.also((arg) => $request['InstanceId'] = arg); - lifecycleActionToken?.also((arg) => $request['LifecycleActionToken'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'LifecycleHookName': lifecycleHookName, + if (instanceId != null) 'InstanceId': instanceId, + if (lifecycleActionToken != null) + 'LifecycleActionToken': lifecycleActionToken, + }; await _protocol.send( $request, action: 'RecordLifecycleActionHeartbeat', @@ -3713,8 +3892,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RecordLifecycleActionHeartbeatType'], - shapes: shapes, resultWrapper: 'RecordLifecycleActionHeartbeatResult', ); } @@ -3770,9 +3947,15 @@ class AutoScaling { required String autoScalingGroupName, List? scalingProcesses, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - scalingProcesses?.also((arg) => $request['ScalingProcesses'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scalingProcesses != null) + if (scalingProcesses.isEmpty) + 'ScalingProcesses': '' + else + for (var i1 = 0; i1 < scalingProcesses.length; i1++) + 'ScalingProcesses.member.${i1 + 1}': scalingProcesses[i1], + }; await _protocol.send( $request, action: 'ResumeProcesses', @@ -3780,8 +3963,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ScalingProcessQuery'], - shapes: shapes, ); } @@ -3827,8 +4008,9 @@ class AutoScaling { Future rollbackInstanceRefresh({ required String autoScalingGroupName, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + }; final $result = await _protocol.send( $request, action: 'RollbackInstanceRefresh', @@ -3836,8 +4018,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RollbackInstanceRefreshType'], - shapes: shapes, resultWrapper: 'RollbackInstanceRefreshResult', ); return RollbackInstanceRefreshAnswer.fromXml($result); @@ -3874,10 +4054,11 @@ class AutoScaling { required int desiredCapacity, bool? honorCooldown, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['DesiredCapacity'] = desiredCapacity; - honorCooldown?.also((arg) => $request['HonorCooldown'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + 'DesiredCapacity': desiredCapacity.toString(), + if (honorCooldown != null) 'HonorCooldown': honorCooldown.toString(), + }; await _protocol.send( $request, action: 'SetDesiredCapacity', @@ -3885,8 +4066,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetDesiredCapacityType'], - shapes: shapes, ); } @@ -3922,11 +4101,12 @@ class AutoScaling { required String instanceId, bool? shouldRespectGracePeriod, }) async { - final $request = {}; - $request['HealthStatus'] = healthStatus; - $request['InstanceId'] = instanceId; - shouldRespectGracePeriod - ?.also((arg) => $request['ShouldRespectGracePeriod'] = arg); + final $request = { + 'HealthStatus': healthStatus, + 'InstanceId': instanceId, + if (shouldRespectGracePeriod != null) + 'ShouldRespectGracePeriod': shouldRespectGracePeriod.toString(), + }; await _protocol.send( $request, action: 'SetInstanceHealth', @@ -3934,8 +4114,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetInstanceHealthQuery'], - shapes: shapes, ); } @@ -3968,10 +4146,15 @@ class AutoScaling { required List instanceIds, required bool protectedFromScaleIn, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - $request['InstanceIds'] = instanceIds; - $request['ProtectedFromScaleIn'] = protectedFromScaleIn; + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (instanceIds.isEmpty) + 'InstanceIds': '' + else + for (var i1 = 0; i1 < instanceIds.length; i1++) + 'InstanceIds.member.${i1 + 1}': instanceIds[i1], + 'ProtectedFromScaleIn': protectedFromScaleIn.toString(), + }; await _protocol.send( $request, action: 'SetInstanceProtection', @@ -3979,8 +4162,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetInstanceProtectionQuery'], - shapes: shapes, resultWrapper: 'SetInstanceProtectionResult', ); } @@ -4073,11 +4254,16 @@ class AutoScaling { RefreshPreferences? preferences, RefreshStrategy? strategy, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - desiredConfiguration?.also((arg) => $request['DesiredConfiguration'] = arg); - preferences?.also((arg) => $request['Preferences'] = arg); - strategy?.also((arg) => $request['Strategy'] = arg.toValue()); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (desiredConfiguration != null) + for (var e1 in desiredConfiguration.toQueryMap().entries) + 'DesiredConfiguration.${e1.key}': e1.value, + if (preferences != null) + for (var e1 in preferences.toQueryMap().entries) + 'Preferences.${e1.key}': e1.value, + if (strategy != null) 'Strategy': strategy.toValue(), + }; final $result = await _protocol.send( $request, action: 'StartInstanceRefresh', @@ -4085,8 +4271,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartInstanceRefreshType'], - shapes: shapes, resultWrapper: 'StartInstanceRefreshResult', ); return StartInstanceRefreshAnswer.fromXml($result); @@ -4148,9 +4332,15 @@ class AutoScaling { required String autoScalingGroupName, List? scalingProcesses, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - scalingProcesses?.also((arg) => $request['ScalingProcesses'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (scalingProcesses != null) + if (scalingProcesses.isEmpty) + 'ScalingProcesses': '' + else + for (var i1 = 0; i1 < scalingProcesses.length; i1++) + 'ScalingProcesses.member.${i1 + 1}': scalingProcesses[i1], + }; await _protocol.send( $request, action: 'SuspendProcesses', @@ -4158,8 +4348,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ScalingProcessQuery'], - shapes: shapes, ); } @@ -4196,9 +4384,11 @@ class AutoScaling { required String instanceId, required bool shouldDecrementDesiredCapacity, }) async { - final $request = {}; - $request['InstanceId'] = instanceId; - $request['ShouldDecrementDesiredCapacity'] = shouldDecrementDesiredCapacity; + final $request = { + 'InstanceId': instanceId, + 'ShouldDecrementDesiredCapacity': + shouldDecrementDesiredCapacity.toString(), + }; final $result = await _protocol.send( $request, action: 'TerminateInstanceInAutoScalingGroup', @@ -4206,8 +4396,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TerminateInstanceInAutoScalingGroupType'], - shapes: shapes, resultWrapper: 'TerminateInstanceInAutoScalingGroupResult', ); return ActivityType.fromXml($result); @@ -4477,34 +4665,57 @@ class AutoScaling { List? terminationPolicies, String? vPCZoneIdentifier, }) async { - final $request = {}; - $request['AutoScalingGroupName'] = autoScalingGroupName; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - capacityRebalance?.also((arg) => $request['CapacityRebalance'] = arg); - context?.also((arg) => $request['Context'] = arg); - defaultCooldown?.also((arg) => $request['DefaultCooldown'] = arg); - defaultInstanceWarmup - ?.also((arg) => $request['DefaultInstanceWarmup'] = arg); - desiredCapacity?.also((arg) => $request['DesiredCapacity'] = arg); - desiredCapacityType?.also((arg) => $request['DesiredCapacityType'] = arg); - healthCheckGracePeriod - ?.also((arg) => $request['HealthCheckGracePeriod'] = arg); - healthCheckType?.also((arg) => $request['HealthCheckType'] = arg); - instanceMaintenancePolicy - ?.also((arg) => $request['InstanceMaintenancePolicy'] = arg); - launchConfigurationName - ?.also((arg) => $request['LaunchConfigurationName'] = arg); - launchTemplate?.also((arg) => $request['LaunchTemplate'] = arg); - maxInstanceLifetime?.also((arg) => $request['MaxInstanceLifetime'] = arg); - maxSize?.also((arg) => $request['MaxSize'] = arg); - minSize?.also((arg) => $request['MinSize'] = arg); - mixedInstancesPolicy?.also((arg) => $request['MixedInstancesPolicy'] = arg); - newInstancesProtectedFromScaleIn - ?.also((arg) => $request['NewInstancesProtectedFromScaleIn'] = arg); - placementGroup?.also((arg) => $request['PlacementGroup'] = arg); - serviceLinkedRoleARN?.also((arg) => $request['ServiceLinkedRoleARN'] = arg); - terminationPolicies?.also((arg) => $request['TerminationPolicies'] = arg); - vPCZoneIdentifier?.also((arg) => $request['VPCZoneIdentifier'] = arg); + final $request = { + 'AutoScalingGroupName': autoScalingGroupName, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + if (capacityRebalance != null) + 'CapacityRebalance': capacityRebalance.toString(), + if (context != null) 'Context': context, + if (defaultCooldown != null) + 'DefaultCooldown': defaultCooldown.toString(), + if (defaultInstanceWarmup != null) + 'DefaultInstanceWarmup': defaultInstanceWarmup.toString(), + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (desiredCapacityType != null) + 'DesiredCapacityType': desiredCapacityType, + if (healthCheckGracePeriod != null) + 'HealthCheckGracePeriod': healthCheckGracePeriod.toString(), + if (healthCheckType != null) 'HealthCheckType': healthCheckType, + if (instanceMaintenancePolicy != null) + for (var e1 in instanceMaintenancePolicy.toQueryMap().entries) + 'InstanceMaintenancePolicy.${e1.key}': e1.value, + if (launchConfigurationName != null) + 'LaunchConfigurationName': launchConfigurationName, + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + if (maxInstanceLifetime != null) + 'MaxInstanceLifetime': maxInstanceLifetime.toString(), + if (maxSize != null) 'MaxSize': maxSize.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (mixedInstancesPolicy != null) + for (var e1 in mixedInstancesPolicy.toQueryMap().entries) + 'MixedInstancesPolicy.${e1.key}': e1.value, + if (newInstancesProtectedFromScaleIn != null) + 'NewInstancesProtectedFromScaleIn': + newInstancesProtectedFromScaleIn.toString(), + if (placementGroup != null) 'PlacementGroup': placementGroup, + if (serviceLinkedRoleARN != null) + 'ServiceLinkedRoleARN': serviceLinkedRoleARN, + if (terminationPolicies != null) + if (terminationPolicies.isEmpty) + 'TerminationPolicies': '' + else + for (var i1 = 0; i1 < terminationPolicies.length; i1++) + 'TerminationPolicies.member.${i1 + 1}': terminationPolicies[i1], + if (vPCZoneIdentifier != null) 'VPCZoneIdentifier': vPCZoneIdentifier, + }; await _protocol.send( $request, action: 'UpdateAutoScalingGroup', @@ -4512,8 +4723,6 @@ class AutoScaling { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAutoScalingGroupType'], - shapes: shapes, ); } } @@ -4547,6 +4756,15 @@ class AcceleratorCountRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } enum AcceleratorManufacturer { @@ -4669,6 +4887,15 @@ class AcceleratorTotalMemoryMiBRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } enum AcceleratorType { @@ -4883,6 +5110,18 @@ class AlarmSpecification { if (alarms != null) 'Alarms': alarms, }; } + + Map toQueryMap() { + final alarms = this.alarms; + return { + if (alarms != null) + if (alarms.isEmpty) + 'Alarms': '' + else + for (var i1 = 0; i1 < alarms.length; i1++) + 'Alarms.member.${i1 + 1}': alarms[i1], + }; + } } class AttachLoadBalancerTargetGroupsResultType { @@ -5341,6 +5580,15 @@ class BaselineEbsBandwidthMbpsRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } class BatchDeleteScheduledActionAnswer { @@ -5443,6 +5691,20 @@ class BlockDeviceMapping { if (virtualName != null) 'VirtualName': virtualName, }; } + + Map toQueryMap() { + final deviceName = this.deviceName; + final ebs = this.ebs; + final noDevice = this.noDevice; + final virtualName = this.virtualName; + return { + 'DeviceName': deviceName, + if (ebs != null) + for (var e1 in ebs.toQueryMap().entries) 'Ebs.${e1.key}': e1.value, + if (noDevice != null) 'NoDevice': noDevice.toString(), + if (virtualName != null) 'VirtualName': virtualName, + }; + } } enum BurstablePerformance { @@ -5661,6 +5923,35 @@ class CustomizedMetricSpecification { if (unit != null) 'Unit': unit, }; } + + Map toQueryMap() { + final dimensions = this.dimensions; + final metricName = this.metricName; + final metrics = this.metrics; + final namespace = this.namespace; + final statistic = this.statistic; + final unit = this.unit; + return { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricName != null) 'MetricName': metricName, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + for (var e3 in metrics[i1].toQueryMap().entries) + 'Metrics.member.${i1 + 1}.${e3.key}': e3.value, + if (namespace != null) 'Namespace': namespace, + if (statistic != null) 'Statistic': statistic.toValue(), + if (unit != null) 'Unit': unit, + }; + } } class DeleteLifecycleHookAnswer { @@ -6029,6 +6320,19 @@ class DesiredConfiguration { 'MixedInstancesPolicy': mixedInstancesPolicy, }; } + + Map toQueryMap() { + final launchTemplate = this.launchTemplate; + final mixedInstancesPolicy = this.mixedInstancesPolicy; + return { + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + if (mixedInstancesPolicy != null) + for (var e1 in mixedInstancesPolicy.toQueryMap().entries) + 'MixedInstancesPolicy.${e1.key}': e1.value, + }; + } } class DetachInstancesAnswer { @@ -6212,6 +6516,26 @@ class Ebs { if (volumeType != null) 'VolumeType': volumeType, }; } + + Map toQueryMap() { + final deleteOnTermination = this.deleteOnTermination; + final encrypted = this.encrypted; + final iops = this.iops; + final snapshotId = this.snapshotId; + final throughput = this.throughput; + final volumeSize = this.volumeSize; + final volumeType = this.volumeType; + return { + if (deleteOnTermination != null) + 'DeleteOnTermination': deleteOnTermination.toString(), + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (iops != null) 'Iops': iops.toString(), + if (snapshotId != null) 'SnapshotId': snapshotId, + if (throughput != null) 'Throughput': throughput.toString(), + if (volumeSize != null) 'VolumeSize': volumeSize.toString(), + if (volumeType != null) 'VolumeType': volumeType, + }; + } } /// Describes an enabled Auto Scaling group metric. @@ -6443,6 +6767,20 @@ class Filter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + if (name != null) 'Name': name, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } class GetPredictiveScalingForecastAnswer { @@ -6619,6 +6957,17 @@ class InstanceMaintenancePolicy { 'MinHealthyPercentage': minHealthyPercentage, }; } + + Map toQueryMap() { + final maxHealthyPercentage = this.maxHealthyPercentage; + final minHealthyPercentage = this.minHealthyPercentage; + return { + if (maxHealthyPercentage != null) + 'MaxHealthyPercentage': maxHealthyPercentage.toString(), + if (minHealthyPercentage != null) + 'MinHealthyPercentage': minHealthyPercentage.toString(), + }; + } } enum InstanceMetadataEndpointState { @@ -6745,6 +7094,18 @@ class InstanceMetadataOptions { if (httpTokens != null) 'HttpTokens': httpTokens.toValue(), }; } + + Map toQueryMap() { + final httpEndpoint = this.httpEndpoint; + final httpPutResponseHopLimit = this.httpPutResponseHopLimit; + final httpTokens = this.httpTokens; + return { + if (httpEndpoint != null) 'HttpEndpoint': httpEndpoint.toValue(), + if (httpPutResponseHopLimit != null) + 'HttpPutResponseHopLimit': httpPutResponseHopLimit.toString(), + if (httpTokens != null) 'HttpTokens': httpTokens.toValue(), + }; + } } /// Describes whether detailed monitoring is enabled for the Auto Scaling @@ -6769,6 +7130,13 @@ class InstanceMonitoring { if (enabled != null) 'Enabled': enabled, }; } + + Map toQueryMap() { + final enabled = this.enabled; + return { + if (enabled != null) 'Enabled': enabled.toString(), + }; + } } /// Describes an instance refresh for an Auto Scaling group. @@ -7584,6 +7952,129 @@ class InstanceRequirements { 'TotalLocalStorageGB': totalLocalStorageGB, }; } + + Map toQueryMap() { + final memoryMiB = this.memoryMiB; + final vCpuCount = this.vCpuCount; + final acceleratorCount = this.acceleratorCount; + final acceleratorManufacturers = this.acceleratorManufacturers; + final acceleratorNames = this.acceleratorNames; + final acceleratorTotalMemoryMiB = this.acceleratorTotalMemoryMiB; + final acceleratorTypes = this.acceleratorTypes; + final allowedInstanceTypes = this.allowedInstanceTypes; + final bareMetal = this.bareMetal; + final baselineEbsBandwidthMbps = this.baselineEbsBandwidthMbps; + final burstablePerformance = this.burstablePerformance; + final cpuManufacturers = this.cpuManufacturers; + final excludedInstanceTypes = this.excludedInstanceTypes; + final instanceGenerations = this.instanceGenerations; + final localStorage = this.localStorage; + final localStorageTypes = this.localStorageTypes; + final maxSpotPriceAsPercentageOfOptimalOnDemandPrice = + this.maxSpotPriceAsPercentageOfOptimalOnDemandPrice; + final memoryGiBPerVCpu = this.memoryGiBPerVCpu; + final networkBandwidthGbps = this.networkBandwidthGbps; + final networkInterfaceCount = this.networkInterfaceCount; + final onDemandMaxPricePercentageOverLowestPrice = + this.onDemandMaxPricePercentageOverLowestPrice; + final requireHibernateSupport = this.requireHibernateSupport; + final spotMaxPricePercentageOverLowestPrice = + this.spotMaxPricePercentageOverLowestPrice; + final totalLocalStorageGB = this.totalLocalStorageGB; + return { + for (var e1 in memoryMiB.toQueryMap().entries) + 'MemoryMiB.${e1.key}': e1.value, + for (var e1 in vCpuCount.toQueryMap().entries) + 'VCpuCount.${e1.key}': e1.value, + if (acceleratorCount != null) + for (var e1 in acceleratorCount.toQueryMap().entries) + 'AcceleratorCount.${e1.key}': e1.value, + if (acceleratorManufacturers != null) + if (acceleratorManufacturers.isEmpty) + 'AcceleratorManufacturers': '' + else + for (var i1 = 0; i1 < acceleratorManufacturers.length; i1++) + 'AcceleratorManufacturers.member.${i1 + 1}': + acceleratorManufacturers[i1].toValue(), + if (acceleratorNames != null) + if (acceleratorNames.isEmpty) + 'AcceleratorNames': '' + else + for (var i1 = 0; i1 < acceleratorNames.length; i1++) + 'AcceleratorNames.member.${i1 + 1}': acceleratorNames[i1].toValue(), + if (acceleratorTotalMemoryMiB != null) + for (var e1 in acceleratorTotalMemoryMiB.toQueryMap().entries) + 'AcceleratorTotalMemoryMiB.${e1.key}': e1.value, + if (acceleratorTypes != null) + if (acceleratorTypes.isEmpty) + 'AcceleratorTypes': '' + else + for (var i1 = 0; i1 < acceleratorTypes.length; i1++) + 'AcceleratorTypes.member.${i1 + 1}': acceleratorTypes[i1].toValue(), + if (allowedInstanceTypes != null) + if (allowedInstanceTypes.isEmpty) + 'AllowedInstanceTypes': '' + else + for (var i1 = 0; i1 < allowedInstanceTypes.length; i1++) + 'AllowedInstanceTypes.member.${i1 + 1}': allowedInstanceTypes[i1], + if (bareMetal != null) 'BareMetal': bareMetal.toValue(), + if (baselineEbsBandwidthMbps != null) + for (var e1 in baselineEbsBandwidthMbps.toQueryMap().entries) + 'BaselineEbsBandwidthMbps.${e1.key}': e1.value, + if (burstablePerformance != null) + 'BurstablePerformance': burstablePerformance.toValue(), + if (cpuManufacturers != null) + if (cpuManufacturers.isEmpty) + 'CpuManufacturers': '' + else + for (var i1 = 0; i1 < cpuManufacturers.length; i1++) + 'CpuManufacturers.member.${i1 + 1}': cpuManufacturers[i1].toValue(), + if (excludedInstanceTypes != null) + if (excludedInstanceTypes.isEmpty) + 'ExcludedInstanceTypes': '' + else + for (var i1 = 0; i1 < excludedInstanceTypes.length; i1++) + 'ExcludedInstanceTypes.member.${i1 + 1}': excludedInstanceTypes[i1], + if (instanceGenerations != null) + if (instanceGenerations.isEmpty) + 'InstanceGenerations': '' + else + for (var i1 = 0; i1 < instanceGenerations.length; i1++) + 'InstanceGenerations.member.${i1 + 1}': + instanceGenerations[i1].toValue(), + if (localStorage != null) 'LocalStorage': localStorage.toValue(), + if (localStorageTypes != null) + if (localStorageTypes.isEmpty) + 'LocalStorageTypes': '' + else + for (var i1 = 0; i1 < localStorageTypes.length; i1++) + 'LocalStorageTypes.member.${i1 + 1}': + localStorageTypes[i1].toValue(), + if (maxSpotPriceAsPercentageOfOptimalOnDemandPrice != null) + 'MaxSpotPriceAsPercentageOfOptimalOnDemandPrice': + maxSpotPriceAsPercentageOfOptimalOnDemandPrice.toString(), + if (memoryGiBPerVCpu != null) + for (var e1 in memoryGiBPerVCpu.toQueryMap().entries) + 'MemoryGiBPerVCpu.${e1.key}': e1.value, + if (networkBandwidthGbps != null) + for (var e1 in networkBandwidthGbps.toQueryMap().entries) + 'NetworkBandwidthGbps.${e1.key}': e1.value, + if (networkInterfaceCount != null) + for (var e1 in networkInterfaceCount.toQueryMap().entries) + 'NetworkInterfaceCount.${e1.key}': e1.value, + if (onDemandMaxPricePercentageOverLowestPrice != null) + 'OnDemandMaxPricePercentageOverLowestPrice': + onDemandMaxPricePercentageOverLowestPrice.toString(), + if (requireHibernateSupport != null) + 'RequireHibernateSupport': requireHibernateSupport.toString(), + if (spotMaxPricePercentageOverLowestPrice != null) + 'SpotMaxPricePercentageOverLowestPrice': + spotMaxPricePercentageOverLowestPrice.toString(), + if (totalLocalStorageGB != null) + for (var e1 in totalLocalStorageGB.toQueryMap().entries) + 'TotalLocalStorageGB.${e1.key}': e1.value, + }; + } } /// Describes an instance reuse policy for a warm pool. @@ -7612,6 +8103,13 @@ class InstanceReusePolicy { if (reuseOnScaleIn != null) 'ReuseOnScaleIn': reuseOnScaleIn, }; } + + Map toQueryMap() { + final reuseOnScaleIn = this.reuseOnScaleIn; + return { + if (reuseOnScaleIn != null) 'ReuseOnScaleIn': reuseOnScaleIn.toString(), + }; + } } /// Use this structure to specify the distribution of On-Demand Instances and @@ -7759,6 +8257,30 @@ class InstancesDistribution { if (spotMaxPrice != null) 'SpotMaxPrice': spotMaxPrice, }; } + + Map toQueryMap() { + final onDemandAllocationStrategy = this.onDemandAllocationStrategy; + final onDemandBaseCapacity = this.onDemandBaseCapacity; + final onDemandPercentageAboveBaseCapacity = + this.onDemandPercentageAboveBaseCapacity; + final spotAllocationStrategy = this.spotAllocationStrategy; + final spotInstancePools = this.spotInstancePools; + final spotMaxPrice = this.spotMaxPrice; + return { + if (onDemandAllocationStrategy != null) + 'OnDemandAllocationStrategy': onDemandAllocationStrategy, + if (onDemandBaseCapacity != null) + 'OnDemandBaseCapacity': onDemandBaseCapacity.toString(), + if (onDemandPercentageAboveBaseCapacity != null) + 'OnDemandPercentageAboveBaseCapacity': + onDemandPercentageAboveBaseCapacity.toString(), + if (spotAllocationStrategy != null) + 'SpotAllocationStrategy': spotAllocationStrategy, + if (spotInstancePools != null) + 'SpotInstancePools': spotInstancePools.toString(), + if (spotMaxPrice != null) 'SpotMaxPrice': spotMaxPrice, + }; + } } /// Describes a launch configuration. @@ -8012,11 +8534,28 @@ class LaunchTemplate { if (overrides != null) 'Overrides': overrides, }; } -} -/// Use this structure to let Amazon EC2 Auto Scaling do the following when the -/// Auto Scaling group has a mixed instances policy: -/// + Map toQueryMap() { + final launchTemplateSpecification = this.launchTemplateSpecification; + final overrides = this.overrides; + return { + if (launchTemplateSpecification != null) + for (var e1 in launchTemplateSpecification.toQueryMap().entries) + 'LaunchTemplateSpecification.${e1.key}': e1.value, + if (overrides != null) + if (overrides.isEmpty) + 'Overrides': '' + else + for (var i1 = 0; i1 < overrides.length; i1++) + for (var e3 in overrides[i1].toQueryMap().entries) + 'Overrides.member.${i1 + 1}.${e3.key}': e3.value, + }; + } +} + +/// Use this structure to let Amazon EC2 Auto Scaling do the following when the +/// Auto Scaling group has a mixed instances policy: +/// ///

    ///
  • /// Override the instance type that is specified in the launch template. @@ -8137,6 +8676,23 @@ class LaunchTemplateOverrides { if (weightedCapacity != null) 'WeightedCapacity': weightedCapacity, }; } + + Map toQueryMap() { + final instanceRequirements = this.instanceRequirements; + final instanceType = this.instanceType; + final launchTemplateSpecification = this.launchTemplateSpecification; + final weightedCapacity = this.weightedCapacity; + return { + if (instanceRequirements != null) + for (var e1 in instanceRequirements.toQueryMap().entries) + 'InstanceRequirements.${e1.key}': e1.value, + if (instanceType != null) 'InstanceType': instanceType, + if (launchTemplateSpecification != null) + for (var e1 in launchTemplateSpecification.toQueryMap().entries) + 'LaunchTemplateSpecification.${e1.key}': e1.value, + if (weightedCapacity != null) 'WeightedCapacity': weightedCapacity, + }; + } } /// Describes the launch template and the version of the launch template that @@ -8202,6 +8758,17 @@ class LaunchTemplateSpecification { if (version != null) 'Version': version, }; } + + Map toQueryMap() { + final launchTemplateId = this.launchTemplateId; + final launchTemplateName = this.launchTemplateName; + final version = this.version; + return { + if (launchTemplateId != null) 'LaunchTemplateId': launchTemplateId, + if (launchTemplateName != null) 'LaunchTemplateName': launchTemplateName, + if (version != null) 'Version': version, + }; + } } /// Describes a lifecycle hook. A lifecycle hook lets you create solutions that @@ -8367,6 +8934,28 @@ class LifecycleHookSpecification { if (roleARN != null) 'RoleARN': roleARN, }; } + + Map toQueryMap() { + final lifecycleHookName = this.lifecycleHookName; + final lifecycleTransition = this.lifecycleTransition; + final defaultResult = this.defaultResult; + final heartbeatTimeout = this.heartbeatTimeout; + final notificationMetadata = this.notificationMetadata; + final notificationTargetARN = this.notificationTargetARN; + final roleARN = this.roleARN; + return { + 'LifecycleHookName': lifecycleHookName, + 'LifecycleTransition': lifecycleTransition, + if (defaultResult != null) 'DefaultResult': defaultResult, + if (heartbeatTimeout != null) + 'HeartbeatTimeout': heartbeatTimeout.toString(), + if (notificationMetadata != null) + 'NotificationMetadata': notificationMetadata, + if (notificationTargetARN != null) + 'NotificationTargetARN': notificationTargetARN, + if (roleARN != null) 'RoleARN': roleARN, + }; + } } enum LifecycleState { @@ -8714,6 +9303,15 @@ class MemoryGiBPerVCpuRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Specifies the minimum and maximum for the MemoryMiB object when @@ -8744,6 +9342,15 @@ class MemoryMiBRequest { if (max != null) 'Max': max, }; } + + Map toQueryMap() { + final min = this.min; + final max = this.max; + return { + 'Min': min.toString(), + if (max != null) 'Max': max.toString(), + }; + } } /// Represents a specific metric. @@ -8791,6 +9398,23 @@ class Metric { if (dimensions != null) 'Dimensions': dimensions, }; } + + Map toQueryMap() { + final metricName = this.metricName; + final namespace = this.namespace; + final dimensions = this.dimensions; + return { + 'MetricName': metricName, + 'Namespace': namespace, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a metric. @@ -8957,6 +9581,23 @@ class MetricDataQuery { if (returnData != null) 'ReturnData': returnData, }; } + + Map toQueryMap() { + final id = this.id; + final expression = this.expression; + final label = this.label; + final metricStat = this.metricStat; + final returnData = this.returnData; + return { + 'Id': id, + if (expression != null) 'Expression': expression, + if (label != null) 'Label': label, + if (metricStat != null) + for (var e1 in metricStat.toQueryMap().entries) + 'MetricStat.${e1.key}': e1.value, + if (returnData != null) 'ReturnData': returnData.toString(), + }; + } } /// Describes the dimension of a metric. @@ -8986,6 +9627,15 @@ class MetricDimension { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } /// Describes a granularity of a metric. @@ -9056,6 +9706,17 @@ class MetricStat { if (unit != null) 'Unit': unit, }; } + + Map toQueryMap() { + final metric = this.metric; + final stat = this.stat; + final unit = this.unit; + return { + for (var e1 in metric.toQueryMap().entries) 'Metric.${e1.key}': e1.value, + 'Stat': stat, + if (unit != null) 'Unit': unit, + }; + } } enum MetricStatistic { @@ -9180,6 +9841,19 @@ class MixedInstancesPolicy { if (launchTemplate != null) 'LaunchTemplate': launchTemplate, }; } + + Map toQueryMap() { + final instancesDistribution = this.instancesDistribution; + final launchTemplate = this.launchTemplate; + return { + if (instancesDistribution != null) + for (var e1 in instancesDistribution.toQueryMap().entries) + 'InstancesDistribution.${e1.key}': e1.value, + if (launchTemplate != null) + for (var e1 in launchTemplate.toQueryMap().entries) + 'LaunchTemplate.${e1.key}': e1.value, + }; + } } /// Specifies the minimum and maximum for the NetworkBandwidthGbps @@ -9221,6 +9895,15 @@ class NetworkBandwidthGbpsRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Specifies the minimum and maximum for the NetworkInterfaceCount @@ -9252,6 +9935,15 @@ class NetworkInterfaceCountRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Describes a notification. @@ -9496,6 +10188,15 @@ class PredefinedMetricSpecification { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } enum PredefinedScalingMetricType { @@ -9637,6 +10338,29 @@ class PredictiveScalingConfiguration { 'SchedulingBufferTime': schedulingBufferTime, }; } + + Map toQueryMap() { + final metricSpecifications = this.metricSpecifications; + final maxCapacityBreachBehavior = this.maxCapacityBreachBehavior; + final maxCapacityBuffer = this.maxCapacityBuffer; + final mode = this.mode; + final schedulingBufferTime = this.schedulingBufferTime; + return { + if (metricSpecifications.isEmpty) + 'MetricSpecifications': '' + else + for (var i1 = 0; i1 < metricSpecifications.length; i1++) + for (var e3 in metricSpecifications[i1].toQueryMap().entries) + 'MetricSpecifications.member.${i1 + 1}.${e3.key}': e3.value, + if (maxCapacityBreachBehavior != null) + 'MaxCapacityBreachBehavior': maxCapacityBreachBehavior.toValue(), + if (maxCapacityBuffer != null) + 'MaxCapacityBuffer': maxCapacityBuffer.toString(), + if (mode != null) 'Mode': mode.toValue(), + if (schedulingBufferTime != null) + 'SchedulingBufferTime': schedulingBufferTime.toString(), + }; + } } /// Describes a customized capacity metric for a predictive scaling policy. @@ -9666,6 +10390,18 @@ class PredictiveScalingCustomizedCapacityMetric { 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a custom load metric for a predictive scaling policy. @@ -9694,6 +10430,18 @@ class PredictiveScalingCustomizedLoadMetric { 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a custom scaling metric for a predictive scaling policy. @@ -9722,6 +10470,18 @@ class PredictiveScalingCustomizedScalingMetric { 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } enum PredictiveScalingMaxCapacityBreachBehavior { @@ -9906,6 +10666,46 @@ class PredictiveScalingMetricSpecification { predefinedScalingMetricSpecification, }; } + + Map toQueryMap() { + final targetValue = this.targetValue; + final customizedCapacityMetricSpecification = + this.customizedCapacityMetricSpecification; + final customizedLoadMetricSpecification = + this.customizedLoadMetricSpecification; + final customizedScalingMetricSpecification = + this.customizedScalingMetricSpecification; + final predefinedLoadMetricSpecification = + this.predefinedLoadMetricSpecification; + final predefinedMetricPairSpecification = + this.predefinedMetricPairSpecification; + final predefinedScalingMetricSpecification = + this.predefinedScalingMetricSpecification; + return { + 'TargetValue': targetValue.toString(), + if (customizedCapacityMetricSpecification != null) + for (var e1 + in customizedCapacityMetricSpecification.toQueryMap().entries) + 'CustomizedCapacityMetricSpecification.${e1.key}': e1.value, + if (customizedLoadMetricSpecification != null) + for (var e1 in customizedLoadMetricSpecification.toQueryMap().entries) + 'CustomizedLoadMetricSpecification.${e1.key}': e1.value, + if (customizedScalingMetricSpecification != null) + for (var e1 + in customizedScalingMetricSpecification.toQueryMap().entries) + 'CustomizedScalingMetricSpecification.${e1.key}': e1.value, + if (predefinedLoadMetricSpecification != null) + for (var e1 in predefinedLoadMetricSpecification.toQueryMap().entries) + 'PredefinedLoadMetricSpecification.${e1.key}': e1.value, + if (predefinedMetricPairSpecification != null) + for (var e1 in predefinedMetricPairSpecification.toQueryMap().entries) + 'PredefinedMetricPairSpecification.${e1.key}': e1.value, + if (predefinedScalingMetricSpecification != null) + for (var e1 + in predefinedScalingMetricSpecification.toQueryMap().entries) + 'PredefinedScalingMetricSpecification.${e1.key}': e1.value, + }; + } } enum PredictiveScalingMode { @@ -9997,6 +10797,15 @@ class PredictiveScalingPredefinedLoadMetric { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } /// Represents a metric pair for a predictive scaling policy. @@ -10060,6 +10869,15 @@ class PredictiveScalingPredefinedMetricPair { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } /// Describes a scaling metric for a predictive scaling policy. @@ -10123,6 +10941,15 @@ class PredictiveScalingPredefinedScalingMetric { if (resourceLabel != null) 'ResourceLabel': resourceLabel, }; } + + Map toQueryMap() { + final predefinedMetricType = this.predefinedMetricType; + final resourceLabel = this.resourceLabel; + return { + 'PredefinedMetricType': predefinedMetricType.toValue(), + if (resourceLabel != null) 'ResourceLabel': resourceLabel, + }; + } } /// Describes a process type. @@ -10416,6 +11243,44 @@ class RefreshPreferences { 'StandbyInstances': standbyInstances.toValue(), }; } + + Map toQueryMap() { + final alarmSpecification = this.alarmSpecification; + final autoRollback = this.autoRollback; + final checkpointDelay = this.checkpointDelay; + final checkpointPercentages = this.checkpointPercentages; + final instanceWarmup = this.instanceWarmup; + final maxHealthyPercentage = this.maxHealthyPercentage; + final minHealthyPercentage = this.minHealthyPercentage; + final scaleInProtectedInstances = this.scaleInProtectedInstances; + final skipMatching = this.skipMatching; + final standbyInstances = this.standbyInstances; + return { + if (alarmSpecification != null) + for (var e1 in alarmSpecification.toQueryMap().entries) + 'AlarmSpecification.${e1.key}': e1.value, + if (autoRollback != null) 'AutoRollback': autoRollback.toString(), + if (checkpointDelay != null) + 'CheckpointDelay': checkpointDelay.toString(), + if (checkpointPercentages != null) + if (checkpointPercentages.isEmpty) + 'CheckpointPercentages': '' + else + for (var i1 = 0; i1 < checkpointPercentages.length; i1++) + 'CheckpointPercentages.member.${i1 + 1}': + checkpointPercentages[i1].toString(), + if (instanceWarmup != null) 'InstanceWarmup': instanceWarmup.toString(), + if (maxHealthyPercentage != null) + 'MaxHealthyPercentage': maxHealthyPercentage.toString(), + if (minHealthyPercentage != null) + 'MinHealthyPercentage': minHealthyPercentage.toString(), + if (scaleInProtectedInstances != null) + 'ScaleInProtectedInstances': scaleInProtectedInstances.toValue(), + if (skipMatching != null) 'SkipMatching': skipMatching.toString(), + if (standbyInstances != null) + 'StandbyInstances': standbyInstances.toValue(), + }; + } } enum RefreshStrategy { @@ -10934,6 +11799,28 @@ class ScheduledUpdateGroupActionRequest { if (timeZone != null) 'TimeZone': timeZone, }; } + + Map toQueryMap() { + final scheduledActionName = this.scheduledActionName; + final desiredCapacity = this.desiredCapacity; + final endTime = this.endTime; + final maxSize = this.maxSize; + final minSize = this.minSize; + final recurrence = this.recurrence; + final startTime = this.startTime; + final timeZone = this.timeZone; + return { + 'ScheduledActionName': scheduledActionName, + if (desiredCapacity != null) + 'DesiredCapacity': desiredCapacity.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (maxSize != null) 'MaxSize': maxSize.toString(), + if (minSize != null) 'MinSize': minSize.toString(), + if (recurrence != null) 'Recurrence': recurrence, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (timeZone != null) 'TimeZone': timeZone, + }; + } } class SetInstanceProtectionAnswer { @@ -11083,6 +11970,19 @@ class StepAdjustment { 'MetricIntervalUpperBound': metricIntervalUpperBound, }; } + + Map toQueryMap() { + final scalingAdjustment = this.scalingAdjustment; + final metricIntervalLowerBound = this.metricIntervalLowerBound; + final metricIntervalUpperBound = this.metricIntervalUpperBound; + return { + 'ScalingAdjustment': scalingAdjustment.toString(), + if (metricIntervalLowerBound != null) + 'MetricIntervalLowerBound': metricIntervalLowerBound.toString(), + if (metricIntervalUpperBound != null) + 'MetricIntervalUpperBound': metricIntervalUpperBound.toString(), + }; + } } /// Describes an auto scaling process that has been suspended. @@ -11150,6 +12050,22 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final propagateAtLaunch = this.propagateAtLaunch; + final resourceId = this.resourceId; + final resourceType = this.resourceType; + final value = this.value; + return { + 'Key': key, + if (propagateAtLaunch != null) + 'PropagateAtLaunch': propagateAtLaunch.toString(), + if (resourceId != null) 'ResourceId': resourceId, + if (resourceType != null) 'ResourceType': resourceType, + if (value != null) 'Value': value, + }; + } } /// Describes a tag for an Auto Scaling group. @@ -11273,6 +12189,23 @@ class TargetTrackingConfiguration { 'PredefinedMetricSpecification': predefinedMetricSpecification, }; } + + Map toQueryMap() { + final targetValue = this.targetValue; + final customizedMetricSpecification = this.customizedMetricSpecification; + final disableScaleIn = this.disableScaleIn; + final predefinedMetricSpecification = this.predefinedMetricSpecification; + return { + 'TargetValue': targetValue.toString(), + if (customizedMetricSpecification != null) + for (var e1 in customizedMetricSpecification.toQueryMap().entries) + 'CustomizedMetricSpecification.${e1.key}': e1.value, + if (disableScaleIn != null) 'DisableScaleIn': disableScaleIn.toString(), + if (predefinedMetricSpecification != null) + for (var e1 in predefinedMetricSpecification.toQueryMap().entries) + 'PredefinedMetricSpecification.${e1.key}': e1.value, + }; + } } /// The metric data to return. Also defines whether this call is returning data @@ -11358,6 +12291,23 @@ class TargetTrackingMetricDataQuery { if (returnData != null) 'ReturnData': returnData, }; } + + Map toQueryMap() { + final id = this.id; + final expression = this.expression; + final label = this.label; + final metricStat = this.metricStat; + final returnData = this.returnData; + return { + 'Id': id, + if (expression != null) 'Expression': expression, + if (label != null) 'Label': label, + if (metricStat != null) + for (var e1 in metricStat.toQueryMap().entries) + 'MetricStat.${e1.key}': e1.value, + if (returnData != null) 'ReturnData': returnData.toString(), + }; + } } /// This structure defines the CloudWatch metric to return, along with the @@ -11407,6 +12357,17 @@ class TargetTrackingMetricStat { if (unit != null) 'Unit': unit, }; } + + Map toQueryMap() { + final metric = this.metric; + final stat = this.stat; + final unit = this.unit; + return { + for (var e1 in metric.toQueryMap().entries) 'Metric.${e1.key}': e1.value, + 'Stat': stat, + if (unit != null) 'Unit': unit, + }; + } } /// Specifies the minimum and maximum for the TotalLocalStorageGB @@ -11438,6 +12399,15 @@ class TotalLocalStorageGBRequest { if (min != null) 'Min': min, }; } + + Map toQueryMap() { + final max = this.max; + final min = this.min; + return { + if (max != null) 'Max': max.toString(), + if (min != null) 'Min': min.toString(), + }; + } } /// Identifying information for a traffic source. @@ -11517,6 +12487,15 @@ class TrafficSourceIdentifier { if (type != null) 'Type': type, }; } + + Map toQueryMap() { + final identifier = this.identifier; + final type = this.type; + return { + 'Identifier': identifier, + if (type != null) 'Type': type, + }; + } } /// Describes the state of a traffic source. @@ -11624,6 +12603,15 @@ class VCpuCountRequest { if (max != null) 'Max': max, }; } + + Map toQueryMap() { + final min = this.min; + final max = this.max; + return { + 'Min': min.toString(), + if (max != null) 'Max': max.toString(), + }; + } } /// Describes a warm pool configuration. diff --git a/generated/aws_cloudformation_api/lib/cloudformation-2010-05-15.dart b/generated/aws_cloudformation_api/lib/cloudformation-2010-05-15.dart index 6ce9b8045..8a867156c 100644 --- a/generated/aws_cloudformation_api/lib/cloudformation-2010-05-15.dart +++ b/generated/aws_cloudformation_api/lib/cloudformation-2010-05-15.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'cloudformation-2010-05-15.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// CloudFormation allows you to create and manage Amazon Web Services @@ -29,7 +28,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// creating or configuring the underlying Amazon Web Services infrastructure. class CloudFormation { final _s.QueryProtocol _protocol; - final Map shapes; CloudFormation({ required String region, @@ -37,7 +35,7 @@ class CloudFormation { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'cloudformation', @@ -46,9 +44,7 @@ class CloudFormation { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -66,7 +62,7 @@ class CloudFormation { /// May throw [InvalidOperationException]. /// May throw [OperationNotFoundException]. Future activateOrganizationsAccess() async { - final $request = {}; + final $request = {}; await _protocol.send( $request, action: 'ActivateOrganizationsAccess', @@ -74,8 +70,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ActivateOrganizationsAccessInput'], - shapes: shapes, resultWrapper: 'ActivateOrganizationsAccessResult', ); } @@ -187,17 +181,20 @@ class CloudFormation { 1, 100000, ); - final $request = {}; - autoUpdate?.also((arg) => $request['AutoUpdate'] = arg); - executionRoleArn?.also((arg) => $request['ExecutionRoleArn'] = arg); - loggingConfig?.also((arg) => $request['LoggingConfig'] = arg); - majorVersion?.also((arg) => $request['MajorVersion'] = arg); - publicTypeArn?.also((arg) => $request['PublicTypeArn'] = arg); - publisherId?.also((arg) => $request['PublisherId'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - typeNameAlias?.also((arg) => $request['TypeNameAlias'] = arg); - versionBump?.also((arg) => $request['VersionBump'] = arg.toValue()); + final $request = { + if (autoUpdate != null) 'AutoUpdate': autoUpdate.toString(), + if (executionRoleArn != null) 'ExecutionRoleArn': executionRoleArn, + if (loggingConfig != null) + for (var e1 in loggingConfig.toQueryMap().entries) + 'LoggingConfig.${e1.key}': e1.value, + if (majorVersion != null) 'MajorVersion': majorVersion.toString(), + if (publicTypeArn != null) 'PublicTypeArn': publicTypeArn, + if (publisherId != null) 'PublisherId': publisherId, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (typeNameAlias != null) 'TypeNameAlias': typeNameAlias, + if (versionBump != null) 'VersionBump': versionBump.toValue(), + }; final $result = await _protocol.send( $request, action: 'ActivateType', @@ -205,8 +202,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ActivateTypeInput'], - shapes: shapes, resultWrapper: 'ActivateTypeResult', ); return ActivateTypeOutput.fromXml($result); @@ -229,8 +224,14 @@ class CloudFormation { batchDescribeTypeConfigurations({ required List typeConfigurationIdentifiers, }) async { - final $request = {}; - $request['TypeConfigurationIdentifiers'] = typeConfigurationIdentifiers; + final $request = { + if (typeConfigurationIdentifiers.isEmpty) + 'TypeConfigurationIdentifiers': '' + else + for (var i1 = 0; i1 < typeConfigurationIdentifiers.length; i1++) + for (var e3 in typeConfigurationIdentifiers[i1].toQueryMap().entries) + 'TypeConfigurationIdentifiers.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'BatchDescribeTypeConfigurations', @@ -238,8 +239,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDescribeTypeConfigurationsInput'], - shapes: shapes, resultWrapper: 'BatchDescribeTypeConfigurationsResult', ); return BatchDescribeTypeConfigurationsOutput.fromXml($result); @@ -280,9 +279,10 @@ class CloudFormation { required String stackName, String? clientRequestToken, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + }; await _protocol.send( $request, action: 'CancelUpdateStack', @@ -290,8 +290,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelUpdateStackInput'], - shapes: shapes, ); } @@ -392,11 +390,17 @@ class CloudFormation { List? resourcesToSkip, String? roleARN, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - resourcesToSkip?.also((arg) => $request['ResourcesToSkip'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (resourcesToSkip != null) + if (resourcesToSkip.isEmpty) + 'ResourcesToSkip': '' + else + for (var i1 = 0; i1 < resourcesToSkip.length; i1++) + 'ResourcesToSkip.member.${i1 + 1}': resourcesToSkip[i1], + if (roleARN != null) 'RoleARN': roleARN, + }; await _protocol.send( $request, action: 'ContinueUpdateRollback', @@ -404,8 +408,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ContinueUpdateRollbackInput'], - shapes: shapes, resultWrapper: 'ContinueUpdateRollbackResult', ); } @@ -742,29 +744,65 @@ class CloudFormation { String? templateURL, bool? usePreviousTemplate, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - $request['StackName'] = stackName; - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - changeSetType?.also((arg) => $request['ChangeSetType'] = arg.toValue()); - clientToken?.also((arg) => $request['ClientToken'] = arg); - description?.also((arg) => $request['Description'] = arg); - importExistingResources - ?.also((arg) => $request['ImportExistingResources'] = arg); - includeNestedStacks?.also((arg) => $request['IncludeNestedStacks'] = arg); - notificationARNs?.also((arg) => $request['NotificationARNs'] = arg); - onStackFailure?.also((arg) => $request['OnStackFailure'] = arg.toValue()); - parameters?.also((arg) => $request['Parameters'] = arg); - resourceTypes?.also((arg) => $request['ResourceTypes'] = arg); - resourcesToImport?.also((arg) => $request['ResourcesToImport'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); - rollbackConfiguration - ?.also((arg) => $request['RollbackConfiguration'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - usePreviousTemplate?.also((arg) => $request['UsePreviousTemplate'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + 'StackName': stackName, + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (changeSetType != null) 'ChangeSetType': changeSetType.toValue(), + if (clientToken != null) 'ClientToken': clientToken, + if (description != null) 'Description': description, + if (importExistingResources != null) + 'ImportExistingResources': importExistingResources.toString(), + if (includeNestedStacks != null) + 'IncludeNestedStacks': includeNestedStacks.toString(), + if (notificationARNs != null) + if (notificationARNs.isEmpty) + 'NotificationARNs': '' + else + for (var i1 = 0; i1 < notificationARNs.length; i1++) + 'NotificationARNs.member.${i1 + 1}': notificationARNs[i1], + if (onStackFailure != null) 'OnStackFailure': onStackFailure.toValue(), + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (resourceTypes != null) + if (resourceTypes.isEmpty) + 'ResourceTypes': '' + else + for (var i1 = 0; i1 < resourceTypes.length; i1++) + 'ResourceTypes.member.${i1 + 1}': resourceTypes[i1], + if (resourcesToImport != null) + if (resourcesToImport.isEmpty) + 'ResourcesToImport': '' + else + for (var i1 = 0; i1 < resourcesToImport.length; i1++) + for (var e3 in resourcesToImport[i1].toQueryMap().entries) + 'ResourcesToImport.member.${i1 + 1}.${e3.key}': e3.value, + if (roleARN != null) 'RoleARN': roleARN, + if (rollbackConfiguration != null) + for (var e1 in rollbackConfiguration.toQueryMap().entries) + 'RollbackConfiguration.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (usePreviousTemplate != null) + 'UsePreviousTemplate': usePreviousTemplate.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateChangeSet', @@ -772,8 +810,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateChangeSetInput'], - shapes: shapes, resultWrapper: 'CreateChangeSetResult', ); return CreateChangeSetOutput.fromXml($result); @@ -810,12 +846,20 @@ class CloudFormation { String? stackName, TemplateConfiguration? templateConfiguration, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; - resources?.also((arg) => $request['Resources'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); - templateConfiguration - ?.also((arg) => $request['TemplateConfiguration'] = arg); + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + if (resources != null) + if (resources.isEmpty) + 'Resources': '' + else + for (var i1 = 0; i1 < resources.length; i1++) + for (var e3 in resources[i1].toQueryMap().entries) + 'Resources.member.${i1 + 1}.${e3.key}': e3.value, + if (stackName != null) 'StackName': stackName, + if (templateConfiguration != null) + for (var e1 in templateConfiguration.toQueryMap().entries) + 'TemplateConfiguration.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'CreateGeneratedTemplate', @@ -823,8 +867,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'CreateGeneratedTemplateResult', ); return CreateGeneratedTemplateOutput.fromXml($result); @@ -1137,28 +1179,59 @@ class CloudFormation { 1, 1152921504606846976, ); - final $request = {}; - $request['StackName'] = stackName; - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - disableRollback?.also((arg) => $request['DisableRollback'] = arg); - enableTerminationProtection - ?.also((arg) => $request['EnableTerminationProtection'] = arg); - notificationARNs?.also((arg) => $request['NotificationARNs'] = arg); - onFailure?.also((arg) => $request['OnFailure'] = arg.toValue()); - parameters?.also((arg) => $request['Parameters'] = arg); - resourceTypes?.also((arg) => $request['ResourceTypes'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); - rollbackConfiguration - ?.also((arg) => $request['RollbackConfiguration'] = arg); - stackPolicyBody?.also((arg) => $request['StackPolicyBody'] = arg); - stackPolicyURL?.also((arg) => $request['StackPolicyURL'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - timeoutInMinutes?.also((arg) => $request['TimeoutInMinutes'] = arg); + final $request = { + 'StackName': stackName, + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (disableRollback != null) + 'DisableRollback': disableRollback.toString(), + if (enableTerminationProtection != null) + 'EnableTerminationProtection': enableTerminationProtection.toString(), + if (notificationARNs != null) + if (notificationARNs.isEmpty) + 'NotificationARNs': '' + else + for (var i1 = 0; i1 < notificationARNs.length; i1++) + 'NotificationARNs.member.${i1 + 1}': notificationARNs[i1], + if (onFailure != null) 'OnFailure': onFailure.toValue(), + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (resourceTypes != null) + if (resourceTypes.isEmpty) + 'ResourceTypes': '' + else + for (var i1 = 0; i1 < resourceTypes.length; i1++) + 'ResourceTypes.member.${i1 + 1}': resourceTypes[i1], + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (roleARN != null) 'RoleARN': roleARN, + if (rollbackConfiguration != null) + for (var e1 in rollbackConfiguration.toQueryMap().entries) + 'RollbackConfiguration.${e1.key}': e1.value, + if (stackPolicyBody != null) 'StackPolicyBody': stackPolicyBody, + if (stackPolicyURL != null) 'StackPolicyURL': stackPolicyURL, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (timeoutInMinutes != null) + 'TimeoutInMinutes': timeoutInMinutes.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateStack', @@ -1166,8 +1239,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateStackInput'], - shapes: shapes, resultWrapper: 'CreateStackResult', ); return CreateStackOutput.fromXml($result); @@ -1294,15 +1365,35 @@ class CloudFormation { StackSetOperationPreferences? operationPreferences, List? parameterOverrides, }) async { - final $request = {}; - $request['Regions'] = regions; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - parameterOverrides?.also((arg) => $request['ParameterOverrides'] = arg); + final $request = { + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (callAs != null) 'CallAs': callAs.toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (parameterOverrides != null) + if (parameterOverrides.isEmpty) + 'ParameterOverrides': '' + else + for (var i1 = 0; i1 < parameterOverrides.length; i1++) + for (var e3 in parameterOverrides[i1].toQueryMap().entries) + 'ParameterOverrides.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateStackInstances', @@ -1310,8 +1401,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateStackInstancesInput'], - shapes: shapes, resultWrapper: 'CreateStackInstancesResult', ); return CreateStackInstancesOutput.fromXml($result); @@ -1571,25 +1660,45 @@ class CloudFormation { String? templateBody, String? templateURL, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - administrationRoleARN - ?.also((arg) => $request['AdministrationRoleARN'] = arg); - autoDeployment?.also((arg) => $request['AutoDeployment'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - $request['ClientRequestToken'] = - clientRequestToken ?? _s.generateIdempotencyToken(); - description?.also((arg) => $request['Description'] = arg); - executionRoleName?.also((arg) => $request['ExecutionRoleName'] = arg); - managedExecution?.also((arg) => $request['ManagedExecution'] = arg); - parameters?.also((arg) => $request['Parameters'] = arg); - permissionModel?.also((arg) => $request['PermissionModel'] = arg.toValue()); - stackId?.also((arg) => $request['StackId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (administrationRoleARN != null) + 'AdministrationRoleARN': administrationRoleARN, + if (autoDeployment != null) + for (var e1 in autoDeployment.toQueryMap().entries) + 'AutoDeployment.${e1.key}': e1.value, + if (callAs != null) 'CallAs': callAs.toValue(), + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + 'ClientRequestToken': clientRequestToken ?? _s.generateIdempotencyToken(), + if (description != null) 'Description': description, + if (executionRoleName != null) 'ExecutionRoleName': executionRoleName, + if (managedExecution != null) + for (var e1 in managedExecution.toQueryMap().entries) + 'ManagedExecution.${e1.key}': e1.value, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (permissionModel != null) 'PermissionModel': permissionModel.toValue(), + if (stackId != null) 'StackId': stackId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'CreateStackSet', @@ -1597,8 +1706,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateStackSetInput'], - shapes: shapes, resultWrapper: 'CreateStackSetResult', ); return CreateStackSetOutput.fromXml($result); @@ -1611,7 +1718,7 @@ class CloudFormation { /// May throw [InvalidOperationException]. /// May throw [OperationNotFoundException]. Future deactivateOrganizationsAccess() async { - final $request = {}; + final $request = {}; await _protocol.send( $request, action: 'DeactivateOrganizationsAccess', @@ -1619,8 +1726,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeactivateOrganizationsAccessInput'], - shapes: shapes, resultWrapper: 'DeactivateOrganizationsAccessResult', ); } @@ -1662,10 +1767,11 @@ class CloudFormation { ThirdPartyType? type, String? typeName, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + }; await _protocol.send( $request, action: 'DeactivateType', @@ -1673,8 +1779,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeactivateTypeInput'], - shapes: shapes, resultWrapper: 'DeactivateTypeResult', ); } @@ -1704,9 +1808,10 @@ class CloudFormation { required String changeSetName, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (stackName != null) 'StackName': stackName, + }; await _protocol.send( $request, action: 'DeleteChangeSet', @@ -1714,8 +1819,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteChangeSetInput'], - shapes: shapes, resultWrapper: 'DeleteChangeSetResult', ); } @@ -1730,8 +1833,9 @@ class CloudFormation { Future deleteGeneratedTemplate({ required String generatedTemplateName, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + }; await _protocol.send( $request, action: 'DeleteGeneratedTemplate', @@ -1739,8 +1843,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGeneratedTemplateInput'], - shapes: shapes, ); } @@ -1814,12 +1916,18 @@ class CloudFormation { List? retainResources, String? roleARN, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - deletionMode?.also((arg) => $request['DeletionMode'] = arg.toValue()); - retainResources?.also((arg) => $request['RetainResources'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (deletionMode != null) 'DeletionMode': deletionMode.toValue(), + if (retainResources != null) + if (retainResources.isEmpty) + 'RetainResources': '' + else + for (var i1 = 0; i1 < retainResources.length; i1++) + 'RetainResources.member.${i1 + 1}': retainResources[i1], + if (roleARN != null) 'RoleARN': roleARN, + }; await _protocol.send( $request, action: 'DeleteStack', @@ -1827,8 +1935,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteStackInput'], - shapes: shapes, ); } @@ -1920,15 +2026,29 @@ class CloudFormation { String? operationId, StackSetOperationPreferences? operationPreferences, }) async { - final $request = {}; - $request['Regions'] = regions; - $request['RetainStacks'] = retainStacks; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); + final $request = { + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + 'RetainStacks': retainStacks.toString(), + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (callAs != null) 'CallAs': callAs.toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DeleteStackInstances', @@ -1936,8 +2056,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteStackInstancesInput'], - shapes: shapes, resultWrapper: 'DeleteStackInstancesResult', ); return DeleteStackInstancesOutput.fromXml($result); @@ -1980,9 +2098,10 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; await _protocol.send( $request, action: 'DeleteStackSet', @@ -1990,8 +2109,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteStackSetInput'], - shapes: shapes, resultWrapper: 'DeleteStackSetResult', ); } @@ -2046,11 +2163,12 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; await _protocol.send( $request, action: 'DeregisterType', @@ -2058,8 +2176,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterTypeInput'], - shapes: shapes, resultWrapper: 'DeregisterTypeResult', ); } @@ -2076,8 +2192,9 @@ class CloudFormation { Future describeAccountLimits({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -2085,8 +2202,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountLimitsInput'], - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsOutput.fromXml($result); @@ -2121,12 +2236,13 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - includePropertyValues - ?.also((arg) => $request['IncludePropertyValues'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (includePropertyValues != null) + 'IncludePropertyValues': includePropertyValues.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeChangeSet', @@ -2134,8 +2250,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeChangeSetInput'], - shapes: shapes, resultWrapper: 'DescribeChangeSetResult', ); return DescribeChangeSetOutput.fromXml($result); @@ -2168,11 +2282,12 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - logicalResourceId?.also((arg) => $request['LogicalResourceId'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeChangeSetHooks', @@ -2180,8 +2295,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeChangeSetHooksInput'], - shapes: shapes, resultWrapper: 'DescribeChangeSetHooksResult', ); return DescribeChangeSetHooksOutput.fromXml($result); @@ -2200,8 +2313,9 @@ class CloudFormation { Future describeGeneratedTemplate({ required String generatedTemplateName, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + }; final $result = await _protocol.send( $request, action: 'DescribeGeneratedTemplate', @@ -2209,8 +2323,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'DescribeGeneratedTemplateResult', ); return DescribeGeneratedTemplateOutput.fromXml($result); @@ -2249,8 +2361,9 @@ class CloudFormation { Future describeOrganizationsAccess({ CallAs? callAs, }) async { - final $request = {}; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrganizationsAccess', @@ -2258,8 +2371,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrganizationsAccessInput'], - shapes: shapes, resultWrapper: 'DescribeOrganizationsAccessResult', ); return DescribeOrganizationsAccessOutput.fromXml($result); @@ -2297,8 +2408,9 @@ class CloudFormation { Future describePublisher({ String? publisherId, }) async { - final $request = {}; - publisherId?.also((arg) => $request['PublisherId'] = arg); + final $request = { + if (publisherId != null) 'PublisherId': publisherId, + }; final $result = await _protocol.send( $request, action: 'DescribePublisher', @@ -2306,8 +2418,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePublisherInput'], - shapes: shapes, resultWrapper: 'DescribePublisherResult', ); return DescribePublisherOutput.fromXml($result); @@ -2322,8 +2432,9 @@ class CloudFormation { Future describeResourceScan({ required String resourceScanId, }) async { - final $request = {}; - $request['ResourceScanId'] = resourceScanId; + final $request = { + 'ResourceScanId': resourceScanId, + }; final $result = await _protocol.send( $request, action: 'DescribeResourceScan', @@ -2331,8 +2442,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeResourceScanInput'], - shapes: shapes, resultWrapper: 'DescribeResourceScanResult', ); return DescribeResourceScanOutput.fromXml($result); @@ -2365,8 +2474,9 @@ class CloudFormation { describeStackDriftDetectionStatus({ required String stackDriftDetectionId, }) async { - final $request = {}; - $request['StackDriftDetectionId'] = stackDriftDetectionId; + final $request = { + 'StackDriftDetectionId': stackDriftDetectionId, + }; final $result = await _protocol.send( $request, action: 'DescribeStackDriftDetectionStatus', @@ -2374,8 +2484,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackDriftDetectionStatusInput'], - shapes: shapes, resultWrapper: 'DescribeStackDriftDetectionStatusResult', ); return DescribeStackDriftDetectionStatusOutput.fromXml($result); @@ -2413,9 +2521,10 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStackEvents', @@ -2423,8 +2532,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackEventsInput'], - shapes: shapes, resultWrapper: 'DescribeStackEventsResult', ); return DescribeStackEventsOutput.fromXml($result); @@ -2478,11 +2585,12 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['StackInstanceAccount'] = stackInstanceAccount; - $request['StackInstanceRegion'] = stackInstanceRegion; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'StackInstanceAccount': stackInstanceAccount, + 'StackInstanceRegion': stackInstanceRegion, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackInstance', @@ -2490,8 +2598,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackInstanceInput'], - shapes: shapes, resultWrapper: 'DescribeStackInstanceResult', ); return DescribeStackInstanceOutput.fromXml($result); @@ -2525,9 +2631,10 @@ class CloudFormation { required String logicalResourceId, required String stackName, }) async { - final $request = {}; - $request['LogicalResourceId'] = logicalResourceId; - $request['StackName'] = stackName; + final $request = { + 'LogicalResourceId': logicalResourceId, + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStackResource', @@ -2535,8 +2642,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackResourceInput'], - shapes: shapes, resultWrapper: 'DescribeStackResourceResult', ); return DescribeStackResourceOutput.fromXml($result); @@ -2605,13 +2710,18 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackName'] = stackName; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackResourceDriftStatusFilters?.also((arg) => - $request['StackResourceDriftStatusFilters'] = - arg.map((e) => e.toValue()).toList()); + final $request = { + 'StackName': stackName, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackResourceDriftStatusFilters != null) + if (stackResourceDriftStatusFilters.isEmpty) + 'StackResourceDriftStatusFilters': '' + else + for (var i1 = 0; i1 < stackResourceDriftStatusFilters.length; i1++) + 'StackResourceDriftStatusFilters.member.${i1 + 1}': + stackResourceDriftStatusFilters[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackResourceDrifts', @@ -2619,8 +2729,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackResourceDriftsInput'], - shapes: shapes, resultWrapper: 'DescribeStackResourceDriftsResult', ); return DescribeStackResourceDriftsOutput.fromXml($result); @@ -2694,10 +2802,11 @@ class CloudFormation { String? physicalResourceId, String? stackName, }) async { - final $request = {}; - logicalResourceId?.also((arg) => $request['LogicalResourceId'] = arg); - physicalResourceId?.also((arg) => $request['PhysicalResourceId'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, + if (physicalResourceId != null) 'PhysicalResourceId': physicalResourceId, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStackResources', @@ -2705,8 +2814,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackResourcesInput'], - shapes: shapes, resultWrapper: 'DescribeStackResourcesResult', ); return DescribeStackResourcesOutput.fromXml($result); @@ -2745,9 +2852,10 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackSet', @@ -2755,8 +2863,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackSetInput'], - shapes: shapes, resultWrapper: 'DescribeStackSetResult', ); return DescribeStackSetOutput.fromXml($result); @@ -2800,10 +2906,11 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['OperationId'] = operationId; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'OperationId': operationId, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeStackSetOperation', @@ -2811,8 +2918,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStackSetOperationInput'], - shapes: shapes, resultWrapper: 'DescribeStackSetOperationResult', ); return DescribeStackSetOperationOutput.fromXml($result); @@ -2866,9 +2971,10 @@ class CloudFormation { String? nextToken, String? stackName, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + if (stackName != null) 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DescribeStacks', @@ -2876,8 +2982,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStacksInput'], - shapes: shapes, resultWrapper: 'DescribeStacksResult', ); return DescribeStacksOutput.fromXml($result); @@ -2935,13 +3039,15 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - publicVersionNumber?.also((arg) => $request['PublicVersionNumber'] = arg); - publisherId?.also((arg) => $request['PublisherId'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (publicVersionNumber != null) + 'PublicVersionNumber': publicVersionNumber, + if (publisherId != null) 'PublisherId': publisherId, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; final $result = await _protocol.send( $request, action: 'DescribeType', @@ -2949,8 +3055,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTypeInput'], - shapes: shapes, resultWrapper: 'DescribeTypeResult', ); return DescribeTypeOutput.fromXml($result); @@ -2976,8 +3080,9 @@ class CloudFormation { Future describeTypeRegistration({ required String registrationToken, }) async { - final $request = {}; - $request['RegistrationToken'] = registrationToken; + final $request = { + 'RegistrationToken': registrationToken, + }; final $result = await _protocol.send( $request, action: 'DescribeTypeRegistration', @@ -2985,8 +3090,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTypeRegistrationInput'], - shapes: shapes, resultWrapper: 'DescribeTypeRegistrationResult', ); return DescribeTypeRegistrationOutput.fromXml($result); @@ -3033,9 +3136,15 @@ class CloudFormation { required String stackName, List? logicalResourceIds, }) async { - final $request = {}; - $request['StackName'] = stackName; - logicalResourceIds?.also((arg) => $request['LogicalResourceIds'] = arg); + final $request = { + 'StackName': stackName, + if (logicalResourceIds != null) + if (logicalResourceIds.isEmpty) + 'LogicalResourceIds': '' + else + for (var i1 = 0; i1 < logicalResourceIds.length; i1++) + 'LogicalResourceIds.member.${i1 + 1}': logicalResourceIds[i1], + }; final $result = await _protocol.send( $request, action: 'DetectStackDrift', @@ -3043,8 +3152,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetectStackDriftInput'], - shapes: shapes, resultWrapper: 'DetectStackDriftResult', ); return DetectStackDriftOutput.fromXml($result); @@ -3078,9 +3185,10 @@ class CloudFormation { required String logicalResourceId, required String stackName, }) async { - final $request = {}; - $request['LogicalResourceId'] = logicalResourceId; - $request['StackName'] = stackName; + final $request = { + 'LogicalResourceId': logicalResourceId, + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'DetectStackResourceDrift', @@ -3088,8 +3196,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetectStackResourceDriftInput'], - shapes: shapes, resultWrapper: 'DetectStackResourceDriftResult', ); return DetectStackResourceDriftOutput.fromXml($result); @@ -3188,11 +3294,14 @@ class CloudFormation { String? operationId, StackSetOperationPreferences? operationPreferences, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DetectStackSetDrift', @@ -3200,8 +3309,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetectStackSetDriftInput'], - shapes: shapes, resultWrapper: 'DetectStackSetDriftResult', ); return DetectStackSetDriftOutput.fromXml($result); @@ -3240,10 +3347,17 @@ class CloudFormation { String? templateBody, String? templateURL, }) async { - final $request = {}; - parameters?.also((arg) => $request['Parameters'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'EstimateTemplateCost', @@ -3251,8 +3365,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EstimateTemplateCostInput'], - shapes: shapes, resultWrapper: 'EstimateTemplateCostResult', ); return EstimateTemplateCostOutput.fromXml($result); @@ -3333,12 +3445,15 @@ class CloudFormation { bool? retainExceptOnCreate, String? stackName, }) async { - final $request = {}; - $request['ChangeSetName'] = changeSetName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - disableRollback?.also((arg) => $request['DisableRollback'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); + final $request = { + 'ChangeSetName': changeSetName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (disableRollback != null) + 'DisableRollback': disableRollback.toString(), + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (stackName != null) 'StackName': stackName, + }; await _protocol.send( $request, action: 'ExecuteChangeSet', @@ -3346,8 +3461,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExecuteChangeSetInput'], - shapes: shapes, resultWrapper: 'ExecuteChangeSetResult', ); } @@ -3384,9 +3497,10 @@ class CloudFormation { required String generatedTemplateName, TemplateFormat? format, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; - format?.also((arg) => $request['Format'] = arg.toValue()); + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + if (format != null) 'Format': format.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetGeneratedTemplate', @@ -3394,8 +3508,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'GetGeneratedTemplateResult', ); return GetGeneratedTemplateOutput.fromXml($result); @@ -3410,8 +3522,9 @@ class CloudFormation { Future getStackPolicy({ required String stackName, }) async { - final $request = {}; - $request['StackName'] = stackName; + final $request = { + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'GetStackPolicy', @@ -3419,8 +3532,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetStackPolicyInput'], - shapes: shapes, resultWrapper: 'GetStackPolicyResult', ); return GetStackPolicyOutput.fromXml($result); @@ -3471,10 +3582,11 @@ class CloudFormation { String? stackName, TemplateStage? templateStage, }) async { - final $request = {}; - changeSetName?.also((arg) => $request['ChangeSetName'] = arg); - stackName?.also((arg) => $request['StackName'] = arg); - templateStage?.also((arg) => $request['TemplateStage'] = arg.toValue()); + final $request = { + if (changeSetName != null) 'ChangeSetName': changeSetName, + if (stackName != null) 'StackName': stackName, + if (templateStage != null) 'TemplateStage': templateStage.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetTemplate', @@ -3482,8 +3594,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTemplateInput'], - shapes: shapes, resultWrapper: 'GetTemplateResult', ); return GetTemplateOutput.fromXml($result); @@ -3578,14 +3688,16 @@ class CloudFormation { TemplateSummaryConfig? templateSummaryConfig, String? templateURL, }) async { - final $request = {}; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - stackName?.also((arg) => $request['StackName'] = arg); - stackSetName?.also((arg) => $request['StackSetName'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateSummaryConfig - ?.also((arg) => $request['TemplateSummaryConfig'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + if (callAs != null) 'CallAs': callAs.toValue(), + if (stackName != null) 'StackName': stackName, + if (stackSetName != null) 'StackSetName': stackSetName, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateSummaryConfig != null) + for (var e1 in templateSummaryConfig.toQueryMap().entries) + 'TemplateSummaryConfig.${e1.key}': e1.value, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'GetTemplateSummary', @@ -3593,8 +3705,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTemplateSummaryInput'], - shapes: shapes, resultWrapper: 'GetTemplateSummaryResult', ); return GetTemplateSummaryOutput.fromXml($result); @@ -3665,15 +3775,27 @@ class CloudFormation { List? stackIds, String? stackIdsUrl, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - organizationalUnitIds - ?.also((arg) => $request['OrganizationalUnitIds'] = arg); - stackIds?.also((arg) => $request['StackIds'] = arg); - stackIdsUrl?.also((arg) => $request['StackIdsUrl'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (organizationalUnitIds != null) + if (organizationalUnitIds.isEmpty) + 'OrganizationalUnitIds': '' + else + for (var i1 = 0; i1 < organizationalUnitIds.length; i1++) + 'OrganizationalUnitIds.member.${i1 + 1}': organizationalUnitIds[i1], + if (stackIds != null) + if (stackIds.isEmpty) + 'StackIds': '' + else + for (var i1 = 0; i1 < stackIds.length; i1++) + 'StackIds.member.${i1 + 1}': stackIds[i1], + if (stackIdsUrl != null) 'StackIdsUrl': stackIdsUrl, + }; final $result = await _protocol.send( $request, action: 'ImportStacksToStackSet', @@ -3681,8 +3803,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ImportStacksToStackSetInput'], - shapes: shapes, resultWrapper: 'ImportStacksToStackSetResult', ); return ImportStacksToStackSetOutput.fromXml($result); @@ -3703,9 +3823,10 @@ class CloudFormation { required String stackName, String? nextToken, }) async { - final $request = {}; - $request['StackName'] = stackName; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackName': stackName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListChangeSets', @@ -3713,8 +3834,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListChangeSetsInput'], - shapes: shapes, resultWrapper: 'ListChangeSetsResult', ); return ListChangeSetsOutput.fromXml($result); @@ -3737,8 +3856,9 @@ class CloudFormation { Future listExports({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListExports', @@ -3746,8 +3866,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListExportsInput'], - shapes: shapes, resultWrapper: 'ListExportsResult', ); return ListExportsOutput.fromXml($result); @@ -3774,9 +3892,10 @@ class CloudFormation { 1, 100, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListGeneratedTemplates', @@ -3784,8 +3903,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGeneratedTemplatesInput'], - shapes: shapes, resultWrapper: 'ListGeneratedTemplatesResult', ); return ListGeneratedTemplatesOutput.fromXml($result); @@ -3812,9 +3929,10 @@ class CloudFormation { required String exportName, String? nextToken, }) async { - final $request = {}; - $request['ExportName'] = exportName; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'ExportName': exportName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListImports', @@ -3822,8 +3940,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListImportsInput'], - shapes: shapes, resultWrapper: 'ListImportsResult', ); return ListImportsOutput.fromXml($result); @@ -3865,11 +3981,17 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['ResourceScanId'] = resourceScanId; - $request['Resources'] = resources; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'ResourceScanId': resourceScanId, + if (resources.isEmpty) + 'Resources': '' + else + for (var i1 = 0; i1 < resources.length; i1++) + for (var e3 in resources[i1].toQueryMap().entries) + 'Resources.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListResourceScanRelatedResources', @@ -3877,8 +3999,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListResourceScanRelatedResourcesInput'], - shapes: shapes, resultWrapper: 'ListResourceScanRelatedResourcesResult', ); return ListResourceScanRelatedResourcesOutput.fromXml($result); @@ -3929,14 +4049,15 @@ class CloudFormation { String? tagKey, String? tagValue, }) async { - final $request = {}; - $request['ResourceScanId'] = resourceScanId; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); - resourceTypePrefix?.also((arg) => $request['ResourceTypePrefix'] = arg); - tagKey?.also((arg) => $request['TagKey'] = arg); - tagValue?.also((arg) => $request['TagValue'] = arg); + final $request = { + 'ResourceScanId': resourceScanId, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + if (resourceTypePrefix != null) 'ResourceTypePrefix': resourceTypePrefix, + if (tagKey != null) 'TagKey': tagKey, + if (tagValue != null) 'TagValue': tagValue, + }; final $result = await _protocol.send( $request, action: 'ListResourceScanResources', @@ -3944,8 +4065,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListResourceScanResourcesInput'], - shapes: shapes, resultWrapper: 'ListResourceScanResourcesResult', ); return ListResourceScanResourcesOutput.fromXml($result); @@ -3966,9 +4085,10 @@ class CloudFormation { int? maxResults, String? nextToken, }) async { - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListResourceScans', @@ -3976,8 +4096,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListResourceScansInput'], - shapes: shapes, resultWrapper: 'ListResourceScansResult', ); return ListResourceScansOutput.fromXml($result); @@ -4083,17 +4201,22 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['OperationId'] = operationId; - $request['StackInstanceAccount'] = stackInstanceAccount; - $request['StackInstanceRegion'] = stackInstanceRegion; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackInstanceResourceDriftStatuses?.also((arg) => - $request['StackInstanceResourceDriftStatuses'] = - arg.map((e) => e.toValue()).toList()); + final $request = { + 'OperationId': operationId, + 'StackInstanceAccount': stackInstanceAccount, + 'StackInstanceRegion': stackInstanceRegion, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackInstanceResourceDriftStatuses != null) + if (stackInstanceResourceDriftStatuses.isEmpty) + 'StackInstanceResourceDriftStatuses': '' + else + for (var i1 = 0; i1 < stackInstanceResourceDriftStatuses.length; i1++) + 'StackInstanceResourceDriftStatuses.member.${i1 + 1}': + stackInstanceResourceDriftStatuses[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'ListStackInstanceResourceDrifts', @@ -4101,8 +4224,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackInstanceResourceDriftsInput'], - shapes: shapes, resultWrapper: 'ListStackInstanceResourceDriftsResult', ); return ListStackInstanceResourceDriftsOutput.fromXml($result); @@ -4180,14 +4301,23 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - filters?.also((arg) => $request['Filters'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - stackInstanceAccount?.also((arg) => $request['StackInstanceAccount'] = arg); - stackInstanceRegion?.also((arg) => $request['StackInstanceRegion'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (stackInstanceAccount != null) + 'StackInstanceAccount': stackInstanceAccount, + if (stackInstanceRegion != null) + 'StackInstanceRegion': stackInstanceRegion, + }; final $result = await _protocol.send( $request, action: 'ListStackInstances', @@ -4195,8 +4325,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackInstancesInput'], - shapes: shapes, resultWrapper: 'ListStackInstancesResult', ); return ListStackInstancesOutput.fromXml($result); @@ -4229,9 +4357,10 @@ class CloudFormation { required String stackName, String? nextToken, }) async { - final $request = {}; - $request['StackName'] = stackName; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackName': stackName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackResources', @@ -4239,8 +4368,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackResourcesInput'], - shapes: shapes, resultWrapper: 'ListStackResourcesResult', ); return ListStackResourcesOutput.fromXml($result); @@ -4299,11 +4426,12 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackSetAutoDeploymentTargets', @@ -4311,8 +4439,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetAutoDeploymentTargetsInput'], - shapes: shapes, resultWrapper: 'ListStackSetAutoDeploymentTargetsResult', ); return ListStackSetAutoDeploymentTargetsOutput.fromXml($result); @@ -4384,13 +4510,20 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['OperationId'] = operationId; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - filters?.also((arg) => $request['Filters'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'OperationId': operationId, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackSetOperationResults', @@ -4398,8 +4531,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetOperationResultsInput'], - shapes: shapes, resultWrapper: 'ListStackSetOperationResultsResult', ); return ListStackSetOperationResultsOutput.fromXml($result); @@ -4462,11 +4593,12 @@ class CloudFormation { 1, 100, ); - final $request = {}; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListStackSetOperations', @@ -4474,8 +4606,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetOperationsInput'], - shapes: shapes, resultWrapper: 'ListStackSetOperationsResult', ); return ListStackSetOperationsOutput.fromXml($result); @@ -4558,11 +4688,12 @@ class CloudFormation { 1, 100, ); - final $request = {}; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (callAs != null) 'CallAs': callAs.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListStackSets', @@ -4570,8 +4701,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStackSetsInput'], - shapes: shapes, resultWrapper: 'ListStackSetsResult', ); return ListStackSetsOutput.fromXml($result); @@ -4596,10 +4725,16 @@ class CloudFormation { String? nextToken, List? stackStatusFilter, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); - stackStatusFilter?.also((arg) => - $request['StackStatusFilter'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + if (stackStatusFilter != null) + if (stackStatusFilter.isEmpty) + 'StackStatusFilter': '' + else + for (var i1 = 0; i1 < stackStatusFilter.length; i1++) + 'StackStatusFilter.member.${i1 + 1}': + stackStatusFilter[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'ListStacks', @@ -4607,8 +4742,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListStacksInput'], - shapes: shapes, resultWrapper: 'ListStacksResult', ); return ListStacksOutput.fromXml($result); @@ -4668,14 +4801,15 @@ class CloudFormation { 1, 100, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - registrationStatusFilter - ?.also((arg) => $request['RegistrationStatusFilter'] = arg.toValue()); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeArn?.also((arg) => $request['TypeArn'] = arg); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (registrationStatusFilter != null) + 'RegistrationStatusFilter': registrationStatusFilter.toValue(), + if (type != null) 'Type': type.toValue(), + if (typeArn != null) 'TypeArn': typeArn, + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'ListTypeRegistrations', @@ -4683,8 +4817,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTypeRegistrationsInput'], - shapes: shapes, resultWrapper: 'ListTypeRegistrationsResult', ); return ListTypeRegistrationsOutput.fromXml($result); @@ -4765,15 +4897,16 @@ class CloudFormation { 1, 100, ); - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - deprecatedStatus - ?.also((arg) => $request['DeprecatedStatus'] = arg.toValue()); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - publisherId?.also((arg) => $request['PublisherId'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (deprecatedStatus != null) + 'DeprecatedStatus': deprecatedStatus.toValue(), + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (publisherId != null) 'PublisherId': publisherId, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'ListTypeVersions', @@ -4781,8 +4914,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTypeVersionsInput'], - shapes: shapes, resultWrapper: 'ListTypeVersionsResult', ); return ListTypeVersionsOutput.fromXml($result); @@ -4902,16 +5033,19 @@ class CloudFormation { 1, 100, ); - final $request = {}; - deprecatedStatus - ?.also((arg) => $request['DeprecatedStatus'] = arg.toValue()); - filters?.also((arg) => $request['Filters'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - provisioningType - ?.also((arg) => $request['ProvisioningType'] = arg.toValue()); - type?.also((arg) => $request['Type'] = arg.toValue()); - visibility?.also((arg) => $request['Visibility'] = arg.toValue()); + final $request = { + if (deprecatedStatus != null) + 'DeprecatedStatus': deprecatedStatus.toValue(), + if (filters != null) + for (var e1 in filters.toQueryMap().entries) + 'Filters.${e1.key}': e1.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (provisioningType != null) + 'ProvisioningType': provisioningType.toValue(), + if (type != null) 'Type': type.toValue(), + if (visibility != null) 'Visibility': visibility.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListTypes', @@ -4919,8 +5053,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTypesInput'], - shapes: shapes, resultWrapper: 'ListTypesResult', ); return ListTypesOutput.fromXml($result); @@ -4982,11 +5114,13 @@ class CloudFormation { ThirdPartyType? type, String? typeName, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - publicVersionNumber?.also((arg) => $request['PublicVersionNumber'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (publicVersionNumber != null) + 'PublicVersionNumber': publicVersionNumber, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'PublishType', @@ -4994,8 +5128,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PublishTypeInput'], - shapes: shapes, resultWrapper: 'PublishTypeResult', ); return PublishTypeOutput.fromXml($result); @@ -5053,15 +5185,16 @@ class CloudFormation { String? resourceModel, String? statusMessage, }) async { - final $request = {}; - $request['BearerToken'] = bearerToken; - $request['OperationStatus'] = operationStatus.toValue(); - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - currentOperationStatus - ?.also((arg) => $request['CurrentOperationStatus'] = arg.toValue()); - errorCode?.also((arg) => $request['ErrorCode'] = arg.toValue()); - resourceModel?.also((arg) => $request['ResourceModel'] = arg); - statusMessage?.also((arg) => $request['StatusMessage'] = arg); + final $request = { + 'BearerToken': bearerToken, + 'OperationStatus': operationStatus.toValue(), + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (currentOperationStatus != null) + 'CurrentOperationStatus': currentOperationStatus.toValue(), + if (errorCode != null) 'ErrorCode': errorCode.toValue(), + if (resourceModel != null) 'ResourceModel': resourceModel, + if (statusMessage != null) 'StatusMessage': statusMessage, + }; await _protocol.send( $request, action: 'RecordHandlerProgress', @@ -5069,8 +5202,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RecordHandlerProgressInput'], - shapes: shapes, resultWrapper: 'RecordHandlerProgressResult', ); } @@ -5110,10 +5241,11 @@ class CloudFormation { bool? acceptTermsAndConditions, String? connectionArn, }) async { - final $request = {}; - acceptTermsAndConditions - ?.also((arg) => $request['AcceptTermsAndConditions'] = arg); - connectionArn?.also((arg) => $request['ConnectionArn'] = arg); + final $request = { + if (acceptTermsAndConditions != null) + 'AcceptTermsAndConditions': acceptTermsAndConditions.toString(), + if (connectionArn != null) 'ConnectionArn': connectionArn, + }; final $result = await _protocol.send( $request, action: 'RegisterPublisher', @@ -5121,8 +5253,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterPublisherInput'], - shapes: shapes, resultWrapper: 'RegisterPublisherResult', ); return RegisterPublisherOutput.fromXml($result); @@ -5269,13 +5399,16 @@ class CloudFormation { LoggingConfig? loggingConfig, RegistryType? type, }) async { - final $request = {}; - $request['SchemaHandlerPackage'] = schemaHandlerPackage; - $request['TypeName'] = typeName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - executionRoleArn?.also((arg) => $request['ExecutionRoleArn'] = arg); - loggingConfig?.also((arg) => $request['LoggingConfig'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); + final $request = { + 'SchemaHandlerPackage': schemaHandlerPackage, + 'TypeName': typeName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (executionRoleArn != null) 'ExecutionRoleArn': executionRoleArn, + if (loggingConfig != null) + for (var e1 in loggingConfig.toQueryMap().entries) + 'LoggingConfig.${e1.key}': e1.value, + if (type != null) 'Type': type.toValue(), + }; final $result = await _protocol.send( $request, action: 'RegisterType', @@ -5283,8 +5416,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterTypeInput'], - shapes: shapes, resultWrapper: 'RegisterTypeResult', ); return RegisterTypeOutput.fromXml($result); @@ -5343,11 +5474,13 @@ class CloudFormation { bool? retainExceptOnCreate, String? roleARN, }) async { - final $request = {}; - $request['StackName'] = stackName; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); + final $request = { + 'StackName': stackName, + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (roleARN != null) 'RoleARN': roleARN, + }; final $result = await _protocol.send( $request, action: 'RollbackStack', @@ -5355,8 +5488,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RollbackStackInput'], - shapes: shapes, resultWrapper: 'RollbackStackResult', ); return RollbackStackOutput.fromXml($result); @@ -5386,10 +5517,11 @@ class CloudFormation { String? stackPolicyBody, String? stackPolicyURL, }) async { - final $request = {}; - $request['StackName'] = stackName; - stackPolicyBody?.also((arg) => $request['StackPolicyBody'] = arg); - stackPolicyURL?.also((arg) => $request['StackPolicyURL'] = arg); + final $request = { + 'StackName': stackName, + if (stackPolicyBody != null) 'StackPolicyBody': stackPolicyBody, + if (stackPolicyURL != null) 'StackPolicyURL': stackPolicyURL, + }; await _protocol.send( $request, action: 'SetStackPolicy', @@ -5397,8 +5529,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetStackPolicyInput'], - shapes: shapes, ); } @@ -5474,12 +5604,13 @@ class CloudFormation { String? typeArn, String? typeName, }) async { - final $request = {}; - $request['Configuration'] = configuration; - configurationAlias?.also((arg) => $request['ConfigurationAlias'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeArn?.also((arg) => $request['TypeArn'] = arg); - typeName?.also((arg) => $request['TypeName'] = arg); + final $request = { + 'Configuration': configuration, + if (configurationAlias != null) 'ConfigurationAlias': configurationAlias, + if (type != null) 'Type': type.toValue(), + if (typeArn != null) 'TypeArn': typeArn, + if (typeName != null) 'TypeName': typeName, + }; final $result = await _protocol.send( $request, action: 'SetTypeConfiguration', @@ -5487,8 +5618,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetTypeConfigurationInput'], - shapes: shapes, resultWrapper: 'SetTypeConfigurationResult', ); return SetTypeConfigurationOutput.fromXml($result); @@ -5529,11 +5658,12 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; await _protocol.send( $request, action: 'SetTypeDefaultVersion', @@ -5541,8 +5671,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetTypeDefaultVersionInput'], - shapes: shapes, resultWrapper: 'SetTypeDefaultVersionResult', ); } @@ -5579,11 +5707,12 @@ class CloudFormation { required ResourceSignalStatus status, required String uniqueId, }) async { - final $request = {}; - $request['LogicalResourceId'] = logicalResourceId; - $request['StackName'] = stackName; - $request['Status'] = status.toValue(); - $request['UniqueId'] = uniqueId; + final $request = { + 'LogicalResourceId': logicalResourceId, + 'StackName': stackName, + 'Status': status.toValue(), + 'UniqueId': uniqueId, + }; await _protocol.send( $request, action: 'SignalResource', @@ -5591,8 +5720,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SignalResourceInput'], - shapes: shapes, ); } @@ -5609,8 +5736,9 @@ class CloudFormation { Future startResourceScan({ String? clientRequestToken, }) async { - final $request = {}; - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); + final $request = { + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + }; final $result = await _protocol.send( $request, action: 'StartResourceScan', @@ -5618,8 +5746,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartResourceScanInput'], - shapes: shapes, resultWrapper: 'StartResourceScanResult', ); return StartResourceScanOutput.fromXml($result); @@ -5667,10 +5793,11 @@ class CloudFormation { required String stackSetName, CallAs? callAs, }) async { - final $request = {}; - $request['OperationId'] = operationId; - $request['StackSetName'] = stackSetName; - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); + final $request = { + 'OperationId': operationId, + 'StackSetName': stackSetName, + if (callAs != null) 'CallAs': callAs.toValue(), + }; await _protocol.send( $request, action: 'StopStackSetOperation', @@ -5678,8 +5805,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopStackSetOperationInput'], - shapes: shapes, resultWrapper: 'StopStackSetOperationResult', ); } @@ -5782,12 +5907,13 @@ class CloudFormation { String? typeName, String? versionId, }) async { - final $request = {}; - arn?.also((arg) => $request['Arn'] = arg); - logDeliveryBucket?.also((arg) => $request['LogDeliveryBucket'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); - typeName?.also((arg) => $request['TypeName'] = arg); - versionId?.also((arg) => $request['VersionId'] = arg); + final $request = { + if (arn != null) 'Arn': arn, + if (logDeliveryBucket != null) 'LogDeliveryBucket': logDeliveryBucket, + if (type != null) 'Type': type.toValue(), + if (typeName != null) 'TypeName': typeName, + if (versionId != null) 'VersionId': versionId, + }; final $result = await _protocol.send( $request, action: 'TestType', @@ -5795,8 +5921,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestTypeInput'], - shapes: shapes, resultWrapper: 'TestTypeResult', ); return TestTypeOutput.fromXml($result); @@ -5842,15 +5966,29 @@ class CloudFormation { List? removeResources, TemplateConfiguration? templateConfiguration, }) async { - final $request = {}; - $request['GeneratedTemplateName'] = generatedTemplateName; - addResources?.also((arg) => $request['AddResources'] = arg); - newGeneratedTemplateName - ?.also((arg) => $request['NewGeneratedTemplateName'] = arg); - refreshAllResources?.also((arg) => $request['RefreshAllResources'] = arg); - removeResources?.also((arg) => $request['RemoveResources'] = arg); - templateConfiguration - ?.also((arg) => $request['TemplateConfiguration'] = arg); + final $request = { + 'GeneratedTemplateName': generatedTemplateName, + if (addResources != null) + if (addResources.isEmpty) + 'AddResources': '' + else + for (var i1 = 0; i1 < addResources.length; i1++) + for (var e3 in addResources[i1].toQueryMap().entries) + 'AddResources.member.${i1 + 1}.${e3.key}': e3.value, + if (newGeneratedTemplateName != null) + 'NewGeneratedTemplateName': newGeneratedTemplateName, + if (refreshAllResources != null) + 'RefreshAllResources': refreshAllResources.toString(), + if (removeResources != null) + if (removeResources.isEmpty) + 'RemoveResources': '' + else + for (var i1 = 0; i1 < removeResources.length; i1++) + 'RemoveResources.member.${i1 + 1}': removeResources[i1], + if (templateConfiguration != null) + for (var e1 in templateConfiguration.toQueryMap().entries) + 'TemplateConfiguration.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'UpdateGeneratedTemplate', @@ -5858,8 +5996,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateGeneratedTemplateInput'], - shapes: shapes, resultWrapper: 'UpdateGeneratedTemplateResult', ); return UpdateGeneratedTemplateOutput.fromXml($result); @@ -6177,29 +6313,60 @@ class CloudFormation { String? templateURL, bool? usePreviousTemplate, }) async { - final $request = {}; - $request['StackName'] = stackName; - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - clientRequestToken?.also((arg) => $request['ClientRequestToken'] = arg); - disableRollback?.also((arg) => $request['DisableRollback'] = arg); - notificationARNs?.also((arg) => $request['NotificationARNs'] = arg); - parameters?.also((arg) => $request['Parameters'] = arg); - resourceTypes?.also((arg) => $request['ResourceTypes'] = arg); - retainExceptOnCreate?.also((arg) => $request['RetainExceptOnCreate'] = arg); - roleARN?.also((arg) => $request['RoleARN'] = arg); - rollbackConfiguration - ?.also((arg) => $request['RollbackConfiguration'] = arg); - stackPolicyBody?.also((arg) => $request['StackPolicyBody'] = arg); - stackPolicyDuringUpdateBody - ?.also((arg) => $request['StackPolicyDuringUpdateBody'] = arg); - stackPolicyDuringUpdateURL - ?.also((arg) => $request['StackPolicyDuringUpdateURL'] = arg); - stackPolicyURL?.also((arg) => $request['StackPolicyURL'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - usePreviousTemplate?.also((arg) => $request['UsePreviousTemplate'] = arg); + final $request = { + 'StackName': stackName, + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken, + if (disableRollback != null) + 'DisableRollback': disableRollback.toString(), + if (notificationARNs != null) + if (notificationARNs.isEmpty) + 'NotificationARNs': '' + else + for (var i1 = 0; i1 < notificationARNs.length; i1++) + 'NotificationARNs.member.${i1 + 1}': notificationARNs[i1], + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (resourceTypes != null) + if (resourceTypes.isEmpty) + 'ResourceTypes': '' + else + for (var i1 = 0; i1 < resourceTypes.length; i1++) + 'ResourceTypes.member.${i1 + 1}': resourceTypes[i1], + if (retainExceptOnCreate != null) + 'RetainExceptOnCreate': retainExceptOnCreate.toString(), + if (roleARN != null) 'RoleARN': roleARN, + if (rollbackConfiguration != null) + for (var e1 in rollbackConfiguration.toQueryMap().entries) + 'RollbackConfiguration.${e1.key}': e1.value, + if (stackPolicyBody != null) 'StackPolicyBody': stackPolicyBody, + if (stackPolicyDuringUpdateBody != null) + 'StackPolicyDuringUpdateBody': stackPolicyDuringUpdateBody, + if (stackPolicyDuringUpdateURL != null) + 'StackPolicyDuringUpdateURL': stackPolicyDuringUpdateURL, + if (stackPolicyURL != null) 'StackPolicyURL': stackPolicyURL, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (usePreviousTemplate != null) + 'UsePreviousTemplate': usePreviousTemplate.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateStack', @@ -6207,8 +6374,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStackInput'], - shapes: shapes, resultWrapper: 'UpdateStackResult', ); return UpdateStackOutput.fromXml($result); @@ -6363,15 +6528,35 @@ class CloudFormation { StackSetOperationPreferences? operationPreferences, List? parameterOverrides, }) async { - final $request = {}; - $request['Regions'] = regions; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - parameterOverrides?.also((arg) => $request['ParameterOverrides'] = arg); + final $request = { + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (callAs != null) 'CallAs': callAs.toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (parameterOverrides != null) + if (parameterOverrides.isEmpty) + 'ParameterOverrides': '' + else + for (var i1 = 0; i1 < parameterOverrides.length; i1++) + for (var e3 in parameterOverrides[i1].toQueryMap().entries) + 'ParameterOverrides.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'UpdateStackInstances', @@ -6379,8 +6564,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStackInstancesInput'], - shapes: shapes, resultWrapper: 'UpdateStackInstancesResult', ); return UpdateStackInstancesOutput.fromXml($result); @@ -6750,28 +6933,64 @@ class CloudFormation { String? templateURL, bool? usePreviousTemplate, }) async { - final $request = {}; - $request['StackSetName'] = stackSetName; - accounts?.also((arg) => $request['Accounts'] = arg); - administrationRoleARN - ?.also((arg) => $request['AdministrationRoleARN'] = arg); - autoDeployment?.also((arg) => $request['AutoDeployment'] = arg); - callAs?.also((arg) => $request['CallAs'] = arg.toValue()); - capabilities?.also((arg) => - $request['Capabilities'] = arg.map((e) => e.toValue()).toList()); - deploymentTargets?.also((arg) => $request['DeploymentTargets'] = arg); - description?.also((arg) => $request['Description'] = arg); - executionRoleName?.also((arg) => $request['ExecutionRoleName'] = arg); - managedExecution?.also((arg) => $request['ManagedExecution'] = arg); - $request['OperationId'] = operationId ?? _s.generateIdempotencyToken(); - operationPreferences?.also((arg) => $request['OperationPreferences'] = arg); - parameters?.also((arg) => $request['Parameters'] = arg); - permissionModel?.also((arg) => $request['PermissionModel'] = arg.toValue()); - regions?.also((arg) => $request['Regions'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); - usePreviousTemplate?.also((arg) => $request['UsePreviousTemplate'] = arg); + final $request = { + 'StackSetName': stackSetName, + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (administrationRoleARN != null) + 'AdministrationRoleARN': administrationRoleARN, + if (autoDeployment != null) + for (var e1 in autoDeployment.toQueryMap().entries) + 'AutoDeployment.${e1.key}': e1.value, + if (callAs != null) 'CallAs': callAs.toValue(), + if (capabilities != null) + if (capabilities.isEmpty) + 'Capabilities': '' + else + for (var i1 = 0; i1 < capabilities.length; i1++) + 'Capabilities.member.${i1 + 1}': capabilities[i1].toValue(), + if (deploymentTargets != null) + for (var e1 in deploymentTargets.toQueryMap().entries) + 'DeploymentTargets.${e1.key}': e1.value, + if (description != null) 'Description': description, + if (executionRoleName != null) 'ExecutionRoleName': executionRoleName, + if (managedExecution != null) + for (var e1 in managedExecution.toQueryMap().entries) + 'ManagedExecution.${e1.key}': e1.value, + 'OperationId': operationId ?? _s.generateIdempotencyToken(), + if (operationPreferences != null) + for (var e1 in operationPreferences.toQueryMap().entries) + 'OperationPreferences.${e1.key}': e1.value, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.member.${i1 + 1}.${e3.key}': e3.value, + if (permissionModel != null) 'PermissionModel': permissionModel.toValue(), + if (regions != null) + if (regions.isEmpty) + 'Regions': '' + else + for (var i1 = 0; i1 < regions.length; i1++) + 'Regions.member.${i1 + 1}': regions[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + if (usePreviousTemplate != null) + 'UsePreviousTemplate': usePreviousTemplate.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateStackSet', @@ -6779,8 +6998,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStackSetInput'], - shapes: shapes, resultWrapper: 'UpdateStackSetResult', ); return UpdateStackSetOutput.fromXml($result); @@ -6807,9 +7024,10 @@ class CloudFormation { required bool enableTerminationProtection, required String stackName, }) async { - final $request = {}; - $request['EnableTerminationProtection'] = enableTerminationProtection; - $request['StackName'] = stackName; + final $request = { + 'EnableTerminationProtection': enableTerminationProtection.toString(), + 'StackName': stackName, + }; final $result = await _protocol.send( $request, action: 'UpdateTerminationProtection', @@ -6817,8 +7035,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateTerminationProtectionInput'], - shapes: shapes, resultWrapper: 'UpdateTerminationProtectionResult', ); return UpdateTerminationProtectionOutput.fromXml($result); @@ -6854,9 +7070,10 @@ class CloudFormation { String? templateBody, String? templateURL, }) async { - final $request = {}; - templateBody?.also((arg) => $request['TemplateBody'] = arg); - templateURL?.also((arg) => $request['TemplateURL'] = arg); + final $request = { + if (templateBody != null) 'TemplateBody': templateBody, + if (templateURL != null) 'TemplateURL': templateURL, + }; final $result = await _protocol.send( $request, action: 'ValidateTemplate', @@ -6864,8 +7081,6 @@ class CloudFormation { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ValidateTemplateInput'], - shapes: shapes, resultWrapper: 'ValidateTemplateResult', ); return ValidateTemplateOutput.fromXml($result); @@ -7152,6 +7367,16 @@ class AutoDeployment { 'RetainStacksOnAccountRemoval': retainStacksOnAccountRemoval, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final retainStacksOnAccountRemoval = this.retainStacksOnAccountRemoval; + return { + if (enabled != null) 'Enabled': enabled.toString(), + if (retainStacksOnAccountRemoval != null) + 'RetainStacksOnAccountRemoval': retainStacksOnAccountRemoval.toString(), + }; + } } /// Detailed information concerning an error generated during the setting of @@ -8090,6 +8315,30 @@ class DeploymentTargets { 'OrganizationalUnitIds': organizationalUnitIds, }; } + + Map toQueryMap() { + final accountFilterType = this.accountFilterType; + final accounts = this.accounts; + final accountsUrl = this.accountsUrl; + final organizationalUnitIds = this.organizationalUnitIds; + return { + if (accountFilterType != null) + 'AccountFilterType': accountFilterType.toValue(), + if (accounts != null) + if (accounts.isEmpty) + 'Accounts': '' + else + for (var i1 = 0; i1 < accounts.length; i1++) + 'Accounts.member.${i1 + 1}': accounts[i1], + if (accountsUrl != null) 'AccountsUrl': accountsUrl, + if (organizationalUnitIds != null) + if (organizationalUnitIds.isEmpty) + 'OrganizationalUnitIds': '' + else + for (var i1 = 0; i1 < organizationalUnitIds.length; i1++) + 'OrganizationalUnitIds.member.${i1 + 1}': organizationalUnitIds[i1], + }; + } } enum DeprecatedStatus { @@ -10630,6 +10879,15 @@ class LoggingConfig { 'LogRoleArn': logRoleArn, }; } + + Map toQueryMap() { + final logGroupName = this.logGroupName; + final logRoleArn = this.logRoleArn; + return { + 'LogGroupName': logGroupName, + 'LogRoleArn': logRoleArn, + }; + } } /// Describes whether StackSets performs non-conflicting operations concurrently @@ -10664,6 +10922,13 @@ class ManagedExecution { if (active != null) 'Active': active, }; } + + Map toQueryMap() { + final active = this.active; + return { + if (active != null) 'Active': active.toString(), + }; + } } /// Contains information about the module from which the resource was created, @@ -10799,6 +11064,15 @@ class OperationResultFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + if (name != null) 'Name': name.toValue(), + if (values != null) 'Values': values, + }; + } } enum OperationResultFilterName { @@ -10973,6 +11247,20 @@ class Parameter { if (usePreviousValue != null) 'UsePreviousValue': usePreviousValue, }; } + + Map toQueryMap() { + final parameterKey = this.parameterKey; + final parameterValue = this.parameterValue; + final resolvedValue = this.resolvedValue; + final usePreviousValue = this.usePreviousValue; + return { + if (parameterKey != null) 'ParameterKey': parameterKey, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (resolvedValue != null) 'ResolvedValue': resolvedValue, + if (usePreviousValue != null) + 'UsePreviousValue': usePreviousValue.toString(), + }; + } } /// A set of criteria that CloudFormation uses to validate parameter values. @@ -11838,6 +12126,20 @@ class ResourceDefinition { if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, }; } + + Map toQueryMap() { + final resourceIdentifier = this.resourceIdentifier; + final resourceType = this.resourceType; + final logicalResourceId = this.logicalResourceId; + return { + for (var e1 in resourceIdentifier.entries.toList().asMap().entries) ...{ + 'ResourceIdentifier.entry.${e1.key + 1}.key': e1.value.key, + 'ResourceIdentifier.entry.${e1.key + 1}.value': e1.value.value, + }, + 'ResourceType': resourceType, + if (logicalResourceId != null) 'LogicalResourceId': logicalResourceId, + }; + } } /// Details about a resource in a generated template @@ -12304,6 +12606,20 @@ class ResourceToImport { 'ResourceType': resourceType, }; } + + Map toQueryMap() { + final logicalResourceId = this.logicalResourceId; + final resourceIdentifier = this.resourceIdentifier; + final resourceType = this.resourceType; + return { + 'LogicalResourceId': logicalResourceId, + for (var e1 in resourceIdentifier.entries.toList().asMap().entries) ...{ + 'ResourceIdentifier.entry.${e1.key + 1}.key': e1.value.key, + 'ResourceIdentifier.entry.${e1.key + 1}.value': e1.value.value, + }, + 'ResourceType': resourceType, + }; + } } /// Structure containing the rollback triggers for CloudFormation to monitor @@ -12391,6 +12707,22 @@ class RollbackConfiguration { if (rollbackTriggers != null) 'RollbackTriggers': rollbackTriggers, }; } + + Map toQueryMap() { + final monitoringTimeInMinutes = this.monitoringTimeInMinutes; + final rollbackTriggers = this.rollbackTriggers; + return { + if (monitoringTimeInMinutes != null) + 'MonitoringTimeInMinutes': monitoringTimeInMinutes.toString(), + if (rollbackTriggers != null) + if (rollbackTriggers.isEmpty) + 'RollbackTriggers': '' + else + for (var i1 = 0; i1 < rollbackTriggers.length; i1++) + for (var e3 in rollbackTriggers[i1].toQueryMap().entries) + 'RollbackTriggers.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } class RollbackStackOutput { @@ -12444,6 +12776,15 @@ class RollbackTrigger { 'Type': type, }; } + + Map toQueryMap() { + final arn = this.arn; + final type = this.type; + return { + 'Arn': arn, + 'Type': type, + }; + } } /// A scanned resource returned by ListResourceScanResources or @@ -12529,6 +12870,18 @@ class ScannedResourceIdentifier { 'ResourceType': resourceType, }; } + + Map toQueryMap() { + final resourceIdentifier = this.resourceIdentifier; + final resourceType = this.resourceType; + return { + for (var e1 in resourceIdentifier.entries.toList().asMap().entries) ...{ + 'ResourceIdentifier.entry.${e1.key + 1}.key': e1.value.key, + 'ResourceIdentifier.entry.${e1.key + 1}.value': e1.value.value, + }, + 'ResourceType': resourceType, + }; + } } class SetTypeConfigurationOutput { @@ -13374,6 +13727,15 @@ class StackInstanceFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + if (name != null) 'Name': name.toValue(), + if (values != null) 'Values': values, + }; + } } enum StackInstanceFilterName { @@ -14932,6 +15294,35 @@ class StackSetOperationPreferences { if (regionOrder != null) 'RegionOrder': regionOrder, }; } + + Map toQueryMap() { + final concurrencyMode = this.concurrencyMode; + final failureToleranceCount = this.failureToleranceCount; + final failureTolerancePercentage = this.failureTolerancePercentage; + final maxConcurrentCount = this.maxConcurrentCount; + final maxConcurrentPercentage = this.maxConcurrentPercentage; + final regionConcurrencyType = this.regionConcurrencyType; + final regionOrder = this.regionOrder; + return { + if (concurrencyMode != null) 'ConcurrencyMode': concurrencyMode.toValue(), + if (failureToleranceCount != null) + 'FailureToleranceCount': failureToleranceCount.toString(), + if (failureTolerancePercentage != null) + 'FailureTolerancePercentage': failureTolerancePercentage.toString(), + if (maxConcurrentCount != null) + 'MaxConcurrentCount': maxConcurrentCount.toString(), + if (maxConcurrentPercentage != null) + 'MaxConcurrentPercentage': maxConcurrentPercentage.toString(), + if (regionConcurrencyType != null) + 'RegionConcurrencyType': regionConcurrencyType.toValue(), + if (regionOrder != null) + if (regionOrder.isEmpty) + 'RegionOrder': '' + else + for (var i1 = 0; i1 < regionOrder.length; i1++) + 'RegionOrder.member.${i1 + 1}': regionOrder[i1], + }; + } } enum StackSetOperationResultStatus { @@ -15642,6 +16033,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } /// The configuration details of a generated template. @@ -15704,6 +16104,16 @@ class TemplateConfiguration { 'UpdateReplacePolicy': updateReplacePolicy.toValue(), }; } + + Map toQueryMap() { + final deletionPolicy = this.deletionPolicy; + final updateReplacePolicy = this.updateReplacePolicy; + return { + if (deletionPolicy != null) 'DeletionPolicy': deletionPolicy.toValue(), + if (updateReplacePolicy != null) + 'UpdateReplacePolicy': updateReplacePolicy.toValue(), + }; + } } enum TemplateFormat { @@ -15924,6 +16334,16 @@ class TemplateSummaryConfig { treatUnrecognizedResourceTypesAsWarnings, }; } + + Map toQueryMap() { + final treatUnrecognizedResourceTypesAsWarnings = + this.treatUnrecognizedResourceTypesAsWarnings; + return { + if (treatUnrecognizedResourceTypesAsWarnings != null) + 'TreatUnrecognizedResourceTypesAsWarnings': + treatUnrecognizedResourceTypesAsWarnings.toString(), + }; + } } class TestTypeOutput { @@ -16104,6 +16524,23 @@ class TypeConfigurationIdentifier { if (typeName != null) 'TypeName': typeName, }; } + + Map toQueryMap() { + final type = this.type; + final typeArn = this.typeArn; + final typeConfigurationAlias = this.typeConfigurationAlias; + final typeConfigurationArn = this.typeConfigurationArn; + final typeName = this.typeName; + return { + if (type != null) 'Type': type.toValue(), + if (typeArn != null) 'TypeArn': typeArn, + if (typeConfigurationAlias != null) + 'TypeConfigurationAlias': typeConfigurationAlias, + if (typeConfigurationArn != null) + 'TypeConfigurationArn': typeConfigurationArn, + if (typeName != null) 'TypeName': typeName, + }; + } } /// Filter criteria to use in determining which extensions to return. @@ -16164,6 +16601,17 @@ class TypeFilters { if (typeNamePrefix != null) 'TypeNamePrefix': typeNamePrefix, }; } + + Map toQueryMap() { + final category = this.category; + final publisherId = this.publisherId; + final typeNamePrefix = this.typeNamePrefix; + return { + if (category != null) 'Category': category.toValue(), + if (publisherId != null) 'PublisherId': publisherId, + if (typeNamePrefix != null) 'TypeNamePrefix': typeNamePrefix, + }; + } } /// Contains summary information about the specified CloudFormation extension. diff --git a/generated/aws_cloudsearch_api/lib/cloudsearch-2011-02-01.dart b/generated/aws_cloudsearch_api/lib/cloudsearch-2011-02-01.dart index 56f7955e1..25ca72c1f 100644 --- a/generated/aws_cloudsearch_api/lib/cloudsearch-2011-02-01.dart +++ b/generated/aws_cloudsearch_api/lib/cloudsearch-2011-02-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'cloudsearch-2011-02-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// You use the configuration service to create, configure, and manage search @@ -26,7 +25,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// GET or POST with a query parameter named Action. class CloudSearch { final _s.QueryProtocol _protocol; - final Map shapes; CloudSearch({ required String region, @@ -34,7 +32,7 @@ class CloudSearch { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'cloudsearch', @@ -43,9 +41,7 @@ class CloudSearch { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -64,8 +60,9 @@ class CloudSearch { Future createDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'CreateDomain', @@ -73,8 +70,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDomainRequest'], - shapes: shapes, resultWrapper: 'CreateDomainResult', ); return CreateDomainResponse.fromXml($result); @@ -94,9 +89,11 @@ class CloudSearch { required String domainName, required IndexField indexField, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexField'] = indexField; + final $request = { + 'DomainName': domainName, + for (var e1 in indexField.toQueryMap().entries) + 'IndexField.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineIndexField', @@ -104,8 +101,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DefineIndexFieldResult', ); return DefineIndexFieldResponse.fromXml($result); @@ -125,9 +120,11 @@ class CloudSearch { required String domainName, required NamedRankExpression rankExpression, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['RankExpression'] = rankExpression; + final $request = { + 'DomainName': domainName, + for (var e1 in rankExpression.toQueryMap().entries) + 'RankExpression.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineRankExpression', @@ -135,8 +132,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineRankExpressionRequest'], - shapes: shapes, resultWrapper: 'DefineRankExpressionResult', ); return DefineRankExpressionResponse.fromXml($result); @@ -149,8 +144,9 @@ class CloudSearch { Future deleteDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DeleteDomain', @@ -158,8 +154,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDomainRequest'], - shapes: shapes, resultWrapper: 'DeleteDomainResult', ); return DeleteDomainResponse.fromXml($result); @@ -175,9 +169,10 @@ class CloudSearch { required String domainName, required String indexFieldName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexFieldName'] = indexFieldName; + final $request = { + 'DomainName': domainName, + 'IndexFieldName': indexFieldName, + }; final $result = await _protocol.send( $request, action: 'DeleteIndexField', @@ -185,8 +180,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DeleteIndexFieldResult', ); return DeleteIndexFieldResponse.fromXml($result); @@ -205,9 +198,10 @@ class CloudSearch { required String domainName, required String rankName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['RankName'] = rankName; + final $request = { + 'DomainName': domainName, + 'RankName': rankName, + }; final $result = await _protocol.send( $request, action: 'DeleteRankExpression', @@ -215,8 +209,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRankExpressionRequest'], - shapes: shapes, resultWrapper: 'DeleteRankExpressionResult', ); return DeleteRankExpressionResponse.fromXml($result); @@ -242,8 +234,9 @@ class CloudSearch { Future describeAvailabilityOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeAvailabilityOptions', @@ -251,8 +244,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeAvailabilityOptionsResult', ); return DescribeAvailabilityOptionsResponse.fromXml($result); @@ -266,8 +257,9 @@ class CloudSearch { Future describeDefaultSearchField({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeDefaultSearchField', @@ -275,8 +267,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDefaultSearchFieldRequest'], - shapes: shapes, resultWrapper: 'DescribeDefaultSearchFieldResult', ); return DescribeDefaultSearchFieldResponse.fromXml($result); @@ -293,8 +283,14 @@ class CloudSearch { Future describeDomains({ List? domainNames, }) async { - final $request = {}; - domainNames?.also((arg) => $request['DomainNames'] = arg); + final $request = { + if (domainNames != null) + if (domainNames.isEmpty) + 'DomainNames': '' + else + for (var i1 = 0; i1 < domainNames.length; i1++) + 'DomainNames.member.${i1 + 1}': domainNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeDomains', @@ -302,8 +298,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDomainsRequest'], - shapes: shapes, resultWrapper: 'DescribeDomainsResult', ); return DescribeDomainsResponse.fromXml($result); @@ -323,9 +317,15 @@ class CloudSearch { required String domainName, List? fieldNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - fieldNames?.also((arg) => $request['FieldNames'] = arg); + final $request = { + 'DomainName': domainName, + if (fieldNames != null) + if (fieldNames.isEmpty) + 'FieldNames': '' + else + for (var i1 = 0; i1 < fieldNames.length; i1++) + 'FieldNames.member.${i1 + 1}': fieldNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeIndexFields', @@ -333,8 +333,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeIndexFieldsRequest'], - shapes: shapes, resultWrapper: 'DescribeIndexFieldsResult', ); return DescribeIndexFieldsResponse.fromXml($result); @@ -355,9 +353,15 @@ class CloudSearch { required String domainName, List? rankNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - rankNames?.also((arg) => $request['RankNames'] = arg); + final $request = { + 'DomainName': domainName, + if (rankNames != null) + if (rankNames.isEmpty) + 'RankNames': '' + else + for (var i1 = 0; i1 < rankNames.length; i1++) + 'RankNames.member.${i1 + 1}': rankNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeRankExpressions', @@ -365,8 +369,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeRankExpressionsRequest'], - shapes: shapes, resultWrapper: 'DescribeRankExpressionsResult', ); return DescribeRankExpressionsResponse.fromXml($result); @@ -381,8 +383,9 @@ class CloudSearch { Future describeServiceAccessPolicies({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeServiceAccessPolicies', @@ -390,8 +393,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'DescribeServiceAccessPoliciesResult', ); return DescribeServiceAccessPoliciesResponse.fromXml($result); @@ -405,8 +406,9 @@ class CloudSearch { Future describeStemmingOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeStemmingOptions', @@ -414,8 +416,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStemmingOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeStemmingOptionsResult', ); return DescribeStemmingOptionsResponse.fromXml($result); @@ -429,8 +429,9 @@ class CloudSearch { Future describeStopwordOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeStopwordOptions', @@ -438,8 +439,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeStopwordOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeStopwordOptionsResult', ); return DescribeStopwordOptionsResponse.fromXml($result); @@ -453,8 +452,9 @@ class CloudSearch { Future describeSynonymOptions({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeSynonymOptions', @@ -462,8 +462,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSynonymOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeSynonymOptionsResult', ); return DescribeSynonymOptionsResponse.fromXml($result); @@ -481,8 +479,9 @@ class CloudSearch { Future indexDocuments({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'IndexDocuments', @@ -490,8 +489,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IndexDocumentsRequest'], - shapes: shapes, resultWrapper: 'IndexDocumentsResult', ); return IndexDocumentsResponse.fromXml($result); @@ -522,9 +519,10 @@ class CloudSearch { required String domainName, required bool multiAZ, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['MultiAZ'] = multiAZ; + final $request = { + 'DomainName': domainName, + 'MultiAZ': multiAZ.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateAvailabilityOptions', @@ -532,8 +530,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateAvailabilityOptionsResult', ); return UpdateAvailabilityOptionsResponse.fromXml($result); @@ -560,9 +556,10 @@ class CloudSearch { required String defaultSearchField, required String domainName, }) async { - final $request = {}; - $request['DefaultSearchField'] = defaultSearchField; - $request['DomainName'] = domainName; + final $request = { + 'DefaultSearchField': defaultSearchField, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateDefaultSearchField', @@ -570,8 +567,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateDefaultSearchFieldRequest'], - shapes: shapes, resultWrapper: 'UpdateDefaultSearchFieldResult', ); return UpdateDefaultSearchFieldResponse.fromXml($result); @@ -589,9 +584,10 @@ class CloudSearch { required String accessPolicies, required String domainName, }) async { - final $request = {}; - $request['AccessPolicies'] = accessPolicies; - $request['DomainName'] = domainName; + final $request = { + 'AccessPolicies': accessPolicies, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateServiceAccessPolicies', @@ -599,8 +595,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'UpdateServiceAccessPoliciesResult', ); return UpdateServiceAccessPoliciesResponse.fromXml($result); @@ -619,9 +613,10 @@ class CloudSearch { required String domainName, required String stems, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Stems'] = stems; + final $request = { + 'DomainName': domainName, + 'Stems': stems, + }; final $result = await _protocol.send( $request, action: 'UpdateStemmingOptions', @@ -629,8 +624,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStemmingOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateStemmingOptionsResult', ); return UpdateStemmingOptionsResponse.fromXml($result); @@ -649,9 +642,10 @@ class CloudSearch { required String domainName, required String stopwords, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Stopwords'] = stopwords; + final $request = { + 'DomainName': domainName, + 'Stopwords': stopwords, + }; final $result = await _protocol.send( $request, action: 'UpdateStopwordOptions', @@ -659,8 +653,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateStopwordOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateStopwordOptionsResult', ); return UpdateStopwordOptionsResponse.fromXml($result); @@ -680,9 +672,10 @@ class CloudSearch { required String domainName, required String synonyms, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Synonyms'] = synonyms; + final $request = { + 'DomainName': domainName, + 'Synonyms': synonyms, + }; final $result = await _protocol.send( $request, action: 'UpdateSynonymOptions', @@ -690,8 +683,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSynonymOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateSynonymOptionsResult', ); return UpdateSynonymOptionsResponse.fromXml($result); @@ -1211,6 +1202,35 @@ class IndexField { if (uIntOptions != null) 'UIntOptions': uIntOptions, }; } + + Map toQueryMap() { + final indexFieldName = this.indexFieldName; + final indexFieldType = this.indexFieldType; + final literalOptions = this.literalOptions; + final sourceAttributes = this.sourceAttributes; + final textOptions = this.textOptions; + final uIntOptions = this.uIntOptions; + return { + 'IndexFieldName': indexFieldName, + 'IndexFieldType': indexFieldType.toValue(), + if (literalOptions != null) + for (var e1 in literalOptions.toQueryMap().entries) + 'LiteralOptions.${e1.key}': e1.value, + if (sourceAttributes != null) + if (sourceAttributes.isEmpty) + 'SourceAttributes': '' + else + for (var i1 = 0; i1 < sourceAttributes.length; i1++) + for (var e3 in sourceAttributes[i1].toQueryMap().entries) + 'SourceAttributes.member.${i1 + 1}.${e3.key}': e3.value, + if (textOptions != null) + for (var e1 in textOptions.toQueryMap().entries) + 'TextOptions.${e1.key}': e1.value, + if (uIntOptions != null) + for (var e1 in uIntOptions.toQueryMap().entries) + 'UIntOptions.${e1.key}': e1.value, + }; + } } /// The value of an IndexField and its current status. @@ -1338,6 +1358,19 @@ class LiteralOptions { if (searchEnabled != null) 'SearchEnabled': searchEnabled, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final resultEnabled = this.resultEnabled; + final searchEnabled = this.searchEnabled; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (resultEnabled != null) 'ResultEnabled': resultEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + }; + } } /// A named expression that can be evaluated at search time and used for ranking @@ -1411,6 +1444,15 @@ class NamedRankExpression { 'RankName': rankName, }; } + + Map toQueryMap() { + final rankExpression = this.rankExpression; + final rankName = this.rankName; + return { + 'RankExpression': rankExpression, + 'RankName': rankName, + }; + } } /// The state of processing a change to an option. @@ -1600,6 +1642,25 @@ class SourceAttribute { 'SourceDataTrimTitle': sourceDataTrimTitle, }; } + + Map toQueryMap() { + final sourceDataFunction = this.sourceDataFunction; + final sourceDataCopy = this.sourceDataCopy; + final sourceDataMap = this.sourceDataMap; + final sourceDataTrimTitle = this.sourceDataTrimTitle; + return { + 'SourceDataFunction': sourceDataFunction.toValue(), + if (sourceDataCopy != null) + for (var e1 in sourceDataCopy.toQueryMap().entries) + 'SourceDataCopy.${e1.key}': e1.value, + if (sourceDataMap != null) + for (var e1 in sourceDataMap.toQueryMap().entries) + 'SourceDataMap.${e1.key}': e1.value, + if (sourceDataTrimTitle != null) + for (var e1 in sourceDataTrimTitle.toQueryMap().entries) + 'SourceDataTrimTitle.${e1.key}': e1.value, + }; + } } /// The source attribute name and an optional default value to use if a document @@ -1632,6 +1693,15 @@ class SourceData { if (defaultValue != null) 'DefaultValue': defaultValue, }; } + + Map toQueryMap() { + final sourceName = this.sourceName; + final defaultValue = this.defaultValue; + return { + 'SourceName': sourceName, + if (defaultValue != null) 'DefaultValue': defaultValue, + }; + } } enum SourceDataFunction { @@ -1712,6 +1782,21 @@ class SourceDataMap { if (defaultValue != null) 'DefaultValue': defaultValue, }; } + + Map toQueryMap() { + final sourceName = this.sourceName; + final cases = this.cases; + final defaultValue = this.defaultValue; + return { + 'SourceName': sourceName, + if (cases != null) + for (var e1 in cases.entries.toList().asMap().entries) ...{ + 'Cases.entry.${e1.key + 1}.key': e1.value.key, + 'Cases.entry.${e1.key + 1}.value': e1.value.value, + }, + if (defaultValue != null) 'DefaultValue': defaultValue, + }; + } } /// Specifies how to trim common words from the beginning of a field to enable @@ -1756,6 +1841,19 @@ class SourceDataTrimTitle { if (separator != null) 'Separator': separator, }; } + + Map toQueryMap() { + final sourceName = this.sourceName; + final defaultValue = this.defaultValue; + final language = this.language; + final separator = this.separator; + return { + 'SourceName': sourceName, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (language != null) 'Language': language, + if (separator != null) 'Separator': separator, + }; + } } /// The stemming options configured for this search domain and the current @@ -1860,6 +1958,19 @@ class TextOptions { if (textProcessor != null) 'TextProcessor': textProcessor, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final resultEnabled = this.resultEnabled; + final textProcessor = this.textProcessor; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (resultEnabled != null) 'ResultEnabled': resultEnabled.toString(), + if (textProcessor != null) 'TextProcessor': textProcessor, + }; + } } /// Options that define a uint field in the search index. @@ -1882,6 +1993,13 @@ class UIntOptions { if (defaultValue != null) 'DefaultValue': defaultValue, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + }; + } } /// The result of a UpdateAvailabilityOptions request. Contains the diff --git a/generated/aws_cloudsearch_api/lib/cloudsearch-2013-01-01.dart b/generated/aws_cloudsearch_api/lib/cloudsearch-2013-01-01.dart index a3adf5532..2456331d9 100644 --- a/generated/aws_cloudsearch_api/lib/cloudsearch-2013-01-01.dart +++ b/generated/aws_cloudsearch_api/lib/cloudsearch-2013-01-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'cloudsearch-2013-01-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// You use the Amazon CloudSearch configuration service to create, configure, @@ -26,7 +25,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// submitted via HTTP GET or POST with a query parameter named Action. class CloudSearch { final _s.QueryProtocol _protocol; - final Map shapes; CloudSearch({ required String region, @@ -34,7 +32,7 @@ class CloudSearch { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'cloudsearch', @@ -43,9 +41,7 @@ class CloudSearch { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -67,8 +63,9 @@ class CloudSearch { Future buildSuggesters({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'BuildSuggesters', @@ -76,8 +73,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BuildSuggestersRequest'], - shapes: shapes, resultWrapper: 'BuildSuggestersResult', ); return BuildSuggestersResponse.fromXml($result); @@ -101,8 +96,9 @@ class CloudSearch { Future createDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'CreateDomain', @@ -110,8 +106,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDomainRequest'], - shapes: shapes, resultWrapper: 'CreateDomainResult', ); return CreateDomainResponse.fromXml($result); @@ -134,9 +128,11 @@ class CloudSearch { required AnalysisScheme analysisScheme, required String domainName, }) async { - final $request = {}; - $request['AnalysisScheme'] = analysisScheme; - $request['DomainName'] = domainName; + final $request = { + for (var e1 in analysisScheme.toQueryMap().entries) + 'AnalysisScheme.${e1.key}': e1.value, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DefineAnalysisScheme', @@ -144,8 +140,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineAnalysisSchemeRequest'], - shapes: shapes, resultWrapper: 'DefineAnalysisSchemeResult', ); return DefineAnalysisSchemeResponse.fromXml($result); @@ -169,9 +163,11 @@ class CloudSearch { required String domainName, required Expression expression, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Expression'] = expression; + final $request = { + 'DomainName': domainName, + for (var e1 in expression.toQueryMap().entries) + 'Expression.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineExpression', @@ -179,8 +175,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineExpressionRequest'], - shapes: shapes, resultWrapper: 'DefineExpressionResult', ); return DefineExpressionResponse.fromXml($result); @@ -211,9 +205,11 @@ class CloudSearch { required String domainName, required IndexField indexField, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexField'] = indexField; + final $request = { + 'DomainName': domainName, + for (var e1 in indexField.toQueryMap().entries) + 'IndexField.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineIndexField', @@ -221,8 +217,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DefineIndexFieldResult', ); return DefineIndexFieldResponse.fromXml($result); @@ -247,9 +241,11 @@ class CloudSearch { required String domainName, required Suggester suggester, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Suggester'] = suggester; + final $request = { + 'DomainName': domainName, + for (var e1 in suggester.toQueryMap().entries) + 'Suggester.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'DefineSuggester', @@ -257,8 +253,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DefineSuggesterRequest'], - shapes: shapes, resultWrapper: 'DefineSuggesterResult', ); return DefineSuggesterResponse.fromXml($result); @@ -281,9 +275,10 @@ class CloudSearch { required String analysisSchemeName, required String domainName, }) async { - final $request = {}; - $request['AnalysisSchemeName'] = analysisSchemeName; - $request['DomainName'] = domainName; + final $request = { + 'AnalysisSchemeName': analysisSchemeName, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DeleteAnalysisScheme', @@ -291,8 +286,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAnalysisSchemeRequest'], - shapes: shapes, resultWrapper: 'DeleteAnalysisSchemeResult', ); return DeleteAnalysisSchemeResponse.fromXml($result); @@ -312,8 +305,9 @@ class CloudSearch { Future deleteDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DeleteDomain', @@ -321,8 +315,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDomainRequest'], - shapes: shapes, resultWrapper: 'DeleteDomainResult', ); return DeleteDomainResponse.fromXml($result); @@ -346,9 +338,10 @@ class CloudSearch { required String domainName, required String expressionName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ExpressionName'] = expressionName; + final $request = { + 'DomainName': domainName, + 'ExpressionName': expressionName, + }; final $result = await _protocol.send( $request, action: 'DeleteExpression', @@ -356,8 +349,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteExpressionRequest'], - shapes: shapes, resultWrapper: 'DeleteExpressionResult', ); return DeleteExpressionResponse.fromXml($result); @@ -382,9 +373,10 @@ class CloudSearch { required String domainName, required String indexFieldName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['IndexFieldName'] = indexFieldName; + final $request = { + 'DomainName': domainName, + 'IndexFieldName': indexFieldName, + }; final $result = await _protocol.send( $request, action: 'DeleteIndexField', @@ -392,8 +384,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIndexFieldRequest'], - shapes: shapes, resultWrapper: 'DeleteIndexFieldResult', ); return DeleteIndexFieldResponse.fromXml($result); @@ -416,9 +406,10 @@ class CloudSearch { required String domainName, required String suggesterName, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['SuggesterName'] = suggesterName; + final $request = { + 'DomainName': domainName, + 'SuggesterName': suggesterName, + }; final $result = await _protocol.send( $request, action: 'DeleteSuggester', @@ -426,8 +417,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSuggesterRequest'], - shapes: shapes, resultWrapper: 'DeleteSuggesterResult', ); return DeleteSuggesterResponse.fromXml($result); @@ -463,10 +452,16 @@ class CloudSearch { List? analysisSchemeNames, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - analysisSchemeNames?.also((arg) => $request['AnalysisSchemeNames'] = arg); - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (analysisSchemeNames != null) + if (analysisSchemeNames.isEmpty) + 'AnalysisSchemeNames': '' + else + for (var i1 = 0; i1 < analysisSchemeNames.length; i1++) + 'AnalysisSchemeNames.member.${i1 + 1}': analysisSchemeNames[i1], + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAnalysisSchemes', @@ -474,8 +469,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAnalysisSchemesRequest'], - shapes: shapes, resultWrapper: 'DescribeAnalysisSchemesResult', ); return DescribeAnalysisSchemesResponse.fromXml($result); @@ -507,9 +500,10 @@ class CloudSearch { required String domainName, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAvailabilityOptions', @@ -517,8 +511,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeAvailabilityOptionsResult', ); return DescribeAvailabilityOptionsResponse.fromXml($result); @@ -547,9 +539,10 @@ class CloudSearch { required String domainName, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDomainEndpointOptions', @@ -557,8 +550,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDomainEndpointOptionsRequest'], - shapes: shapes, resultWrapper: 'DescribeDomainEndpointOptionsResult', ); return DescribeDomainEndpointOptionsResponse.fromXml($result); @@ -582,8 +573,14 @@ class CloudSearch { Future describeDomains({ List? domainNames, }) async { - final $request = {}; - domainNames?.also((arg) => $request['DomainNames'] = arg); + final $request = { + if (domainNames != null) + if (domainNames.isEmpty) + 'DomainNames': '' + else + for (var i1 = 0; i1 < domainNames.length; i1++) + 'DomainNames.member.${i1 + 1}': domainNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeDomains', @@ -591,8 +588,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDomainsRequest'], - shapes: shapes, resultWrapper: 'DescribeDomainsResult', ); return DescribeDomainsResponse.fromXml($result); @@ -627,10 +622,16 @@ class CloudSearch { bool? deployed, List? expressionNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); - expressionNames?.also((arg) => $request['ExpressionNames'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + if (expressionNames != null) + if (expressionNames.isEmpty) + 'ExpressionNames': '' + else + for (var i1 = 0; i1 < expressionNames.length; i1++) + 'ExpressionNames.member.${i1 + 1}': expressionNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeExpressions', @@ -638,8 +639,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeExpressionsRequest'], - shapes: shapes, resultWrapper: 'DescribeExpressionsResult', ); return DescribeExpressionsResponse.fromXml($result); @@ -674,10 +673,16 @@ class CloudSearch { bool? deployed, List? fieldNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); - fieldNames?.also((arg) => $request['FieldNames'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + if (fieldNames != null) + if (fieldNames.isEmpty) + 'FieldNames': '' + else + for (var i1 = 0; i1 < fieldNames.length; i1++) + 'FieldNames.member.${i1 + 1}': fieldNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeIndexFields', @@ -685,8 +690,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeIndexFieldsRequest'], - shapes: shapes, resultWrapper: 'DescribeIndexFieldsResult', ); return DescribeIndexFieldsResponse.fromXml($result); @@ -705,8 +708,9 @@ class CloudSearch { Future describeScalingParameters({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DescribeScalingParameters', @@ -714,8 +718,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScalingParametersRequest'], - shapes: shapes, resultWrapper: 'DescribeScalingParametersResult', ); return DescribeScalingParametersResponse.fromXml($result); @@ -745,9 +747,10 @@ class CloudSearch { required String domainName, bool? deployed, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeServiceAccessPolicies', @@ -755,8 +758,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'DescribeServiceAccessPoliciesResult', ); return DescribeServiceAccessPoliciesResponse.fromXml($result); @@ -791,10 +792,16 @@ class CloudSearch { bool? deployed, List? suggesterNames, }) async { - final $request = {}; - $request['DomainName'] = domainName; - deployed?.also((arg) => $request['Deployed'] = arg); - suggesterNames?.also((arg) => $request['SuggesterNames'] = arg); + final $request = { + 'DomainName': domainName, + if (deployed != null) 'Deployed': deployed.toString(), + if (suggesterNames != null) + if (suggesterNames.isEmpty) + 'SuggesterNames': '' + else + for (var i1 = 0; i1 < suggesterNames.length; i1++) + 'SuggesterNames.member.${i1 + 1}': suggesterNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeSuggesters', @@ -802,8 +809,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSuggestersRequest'], - shapes: shapes, resultWrapper: 'DescribeSuggestersResult', ); return DescribeSuggestersResponse.fromXml($result); @@ -820,8 +825,9 @@ class CloudSearch { Future indexDocuments({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'IndexDocuments', @@ -829,8 +835,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IndexDocumentsRequest'], - shapes: shapes, resultWrapper: 'IndexDocumentsResult', ); return IndexDocumentsResponse.fromXml($result); @@ -840,7 +844,7 @@ class CloudSearch { /// /// May throw [BaseException]. Future listDomainNames() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListDomainNames', @@ -848,7 +852,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'ListDomainNamesResult', ); return ListDomainNamesResponse.fromXml($result); @@ -880,9 +883,10 @@ class CloudSearch { required String domainName, required bool multiAZ, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['MultiAZ'] = multiAZ; + final $request = { + 'DomainName': domainName, + 'MultiAZ': multiAZ.toString(), + }; final $result = await _protocol.send( $request, action: 'UpdateAvailabilityOptions', @@ -890,8 +894,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAvailabilityOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateAvailabilityOptionsResult', ); return UpdateAvailabilityOptionsResponse.fromXml($result); @@ -923,9 +925,11 @@ class CloudSearch { required DomainEndpointOptions domainEndpointOptions, required String domainName, }) async { - final $request = {}; - $request['DomainEndpointOptions'] = domainEndpointOptions; - $request['DomainName'] = domainName; + final $request = { + for (var e1 in domainEndpointOptions.toQueryMap().entries) + 'DomainEndpointOptions.${e1.key}': e1.value, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateDomainEndpointOptions', @@ -933,8 +937,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateDomainEndpointOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateDomainEndpointOptionsResult', ); return UpdateDomainEndpointOptionsResponse.fromXml($result); @@ -960,9 +962,11 @@ class CloudSearch { required String domainName, required ScalingParameters scalingParameters, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ScalingParameters'] = scalingParameters; + final $request = { + 'DomainName': domainName, + for (var e1 in scalingParameters.toQueryMap().entries) + 'ScalingParameters.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'UpdateScalingParameters', @@ -970,8 +974,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateScalingParametersRequest'], - shapes: shapes, resultWrapper: 'UpdateScalingParametersResult', ); return UpdateScalingParametersResponse.fromXml($result); @@ -996,9 +998,10 @@ class CloudSearch { required String accessPolicies, required String domainName, }) async { - final $request = {}; - $request['AccessPolicies'] = accessPolicies; - $request['DomainName'] = domainName; + final $request = { + 'AccessPolicies': accessPolicies, + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'UpdateServiceAccessPolicies', @@ -1006,8 +1009,6 @@ class CloudSearch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServiceAccessPoliciesRequest'], - shapes: shapes, resultWrapper: 'UpdateServiceAccessPoliciesResult', ); return UpdateServiceAccessPoliciesResponse.fromXml($result); @@ -1150,6 +1151,23 @@ class AnalysisOptions { if (synonyms != null) 'Synonyms': synonyms, }; } + + Map toQueryMap() { + final algorithmicStemming = this.algorithmicStemming; + final japaneseTokenizationDictionary = this.japaneseTokenizationDictionary; + final stemmingDictionary = this.stemmingDictionary; + final stopwords = this.stopwords; + final synonyms = this.synonyms; + return { + if (algorithmicStemming != null) + 'AlgorithmicStemming': algorithmicStemming.toValue(), + if (japaneseTokenizationDictionary != null) + 'JapaneseTokenizationDictionary': japaneseTokenizationDictionary, + if (stemmingDictionary != null) 'StemmingDictionary': stemmingDictionary, + if (stopwords != null) 'Stopwords': stopwords, + if (synonyms != null) 'Synonyms': synonyms, + }; + } } /// Configuration information for an analysis scheme. Each analysis scheme has a @@ -1190,6 +1208,19 @@ class AnalysisScheme { if (analysisOptions != null) 'AnalysisOptions': analysisOptions, }; } + + Map toQueryMap() { + final analysisSchemeLanguage = this.analysisSchemeLanguage; + final analysisSchemeName = this.analysisSchemeName; + final analysisOptions = this.analysisOptions; + return { + 'AnalysisSchemeLanguage': analysisSchemeLanguage.toValue(), + 'AnalysisSchemeName': analysisSchemeName, + if (analysisOptions != null) + for (var e1 in analysisOptions.toQueryMap().entries) + 'AnalysisOptions.${e1.key}': e1.value, + }; + } } /// An IETF RFC @@ -1505,6 +1536,21 @@ class DateArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for a date field. Dates and times are specified in UTC (Coordinated @@ -1563,6 +1609,23 @@ class DateOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// The result of a DefineAnalysisScheme request. Contains @@ -1928,6 +1991,17 @@ class DocumentSuggesterOptions { if (sortExpression != null) 'SortExpression': sortExpression, }; } + + Map toQueryMap() { + final sourceField = this.sourceField; + final fuzzyMatching = this.fuzzyMatching; + final sortExpression = this.sortExpression; + return { + 'SourceField': sourceField, + if (fuzzyMatching != null) 'FuzzyMatching': fuzzyMatching.toValue(), + if (sortExpression != null) 'SortExpression': sortExpression, + }; + } } /// The domain's endpoint options. @@ -1960,6 +2034,16 @@ class DomainEndpointOptions { 'TLSSecurityPolicy': tLSSecurityPolicy.toValue(), }; } + + Map toQueryMap() { + final enforceHTTPS = this.enforceHTTPS; + final tLSSecurityPolicy = this.tLSSecurityPolicy; + return { + if (enforceHTTPS != null) 'EnforceHTTPS': enforceHTTPS.toString(), + if (tLSSecurityPolicy != null) + 'TLSSecurityPolicy': tLSSecurityPolicy.toValue(), + }; + } } /// The configuration and status of the domain's endpoint options. @@ -2116,6 +2200,21 @@ class DoubleArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for a double-precision 64-bit floating point field. Present if @@ -2177,6 +2276,23 @@ class DoubleOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// A named expression that can be evaluated at search time. Can be used to sort @@ -2205,6 +2321,15 @@ class Expression { 'ExpressionValue': expressionValue, }; } + + Map toQueryMap() { + final expressionName = this.expressionName; + final expressionValue = this.expressionValue; + return { + 'ExpressionName': expressionName, + 'ExpressionValue': expressionValue, + }; + } } /// The value of an Expression and its current status. @@ -2358,6 +2483,59 @@ class IndexField { if (textOptions != null) 'TextOptions': textOptions, }; } + + Map toQueryMap() { + final indexFieldName = this.indexFieldName; + final indexFieldType = this.indexFieldType; + final dateArrayOptions = this.dateArrayOptions; + final dateOptions = this.dateOptions; + final doubleArrayOptions = this.doubleArrayOptions; + final doubleOptions = this.doubleOptions; + final intArrayOptions = this.intArrayOptions; + final intOptions = this.intOptions; + final latLonOptions = this.latLonOptions; + final literalArrayOptions = this.literalArrayOptions; + final literalOptions = this.literalOptions; + final textArrayOptions = this.textArrayOptions; + final textOptions = this.textOptions; + return { + 'IndexFieldName': indexFieldName, + 'IndexFieldType': indexFieldType.toValue(), + if (dateArrayOptions != null) + for (var e1 in dateArrayOptions.toQueryMap().entries) + 'DateArrayOptions.${e1.key}': e1.value, + if (dateOptions != null) + for (var e1 in dateOptions.toQueryMap().entries) + 'DateOptions.${e1.key}': e1.value, + if (doubleArrayOptions != null) + for (var e1 in doubleArrayOptions.toQueryMap().entries) + 'DoubleArrayOptions.${e1.key}': e1.value, + if (doubleOptions != null) + for (var e1 in doubleOptions.toQueryMap().entries) + 'DoubleOptions.${e1.key}': e1.value, + if (intArrayOptions != null) + for (var e1 in intArrayOptions.toQueryMap().entries) + 'IntArrayOptions.${e1.key}': e1.value, + if (intOptions != null) + for (var e1 in intOptions.toQueryMap().entries) + 'IntOptions.${e1.key}': e1.value, + if (latLonOptions != null) + for (var e1 in latLonOptions.toQueryMap().entries) + 'LatLonOptions.${e1.key}': e1.value, + if (literalArrayOptions != null) + for (var e1 in literalArrayOptions.toQueryMap().entries) + 'LiteralArrayOptions.${e1.key}': e1.value, + if (literalOptions != null) + for (var e1 in literalOptions.toQueryMap().entries) + 'LiteralOptions.${e1.key}': e1.value, + if (textArrayOptions != null) + for (var e1 in textArrayOptions.toQueryMap().entries) + 'TextArrayOptions.${e1.key}': e1.value, + if (textOptions != null) + for (var e1 in textOptions.toQueryMap().entries) + 'TextOptions.${e1.key}': e1.value, + }; + } } /// The value of an IndexField and its current status. @@ -2505,6 +2683,21 @@ class IntArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for a 64-bit signed integer field. Present if @@ -2566,6 +2759,23 @@ class IntOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue.toString(), + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// Options for a latlon field. A latlon field contains a location stored as a @@ -2624,6 +2834,23 @@ class LatLonOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } class Limits { @@ -2718,6 +2945,21 @@ class LiteralArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sourceFields = this.sourceFields; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for literal field. Present if IndexFieldType specifies @@ -2775,6 +3017,23 @@ class LiteralOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final defaultValue = this.defaultValue; + final facetEnabled = this.facetEnabled; + final returnEnabled = this.returnEnabled; + final searchEnabled = this.searchEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (defaultValue != null) 'DefaultValue': defaultValue, + if (facetEnabled != null) 'FacetEnabled': facetEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (searchEnabled != null) 'SearchEnabled': searchEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// The state of processing a change to an option. One of: @@ -3024,6 +3283,20 @@ class ScalingParameters { 'DesiredReplicationCount': desiredReplicationCount, }; } + + Map toQueryMap() { + final desiredInstanceType = this.desiredInstanceType; + final desiredPartitionCount = this.desiredPartitionCount; + final desiredReplicationCount = this.desiredReplicationCount; + return { + if (desiredInstanceType != null) + 'DesiredInstanceType': desiredInstanceType.toValue(), + if (desiredPartitionCount != null) + 'DesiredPartitionCount': desiredPartitionCount.toString(), + if (desiredReplicationCount != null) + 'DesiredReplicationCount': desiredReplicationCount.toString(), + }; + } } /// The status and configuration of a search domain's scaling parameters. @@ -3085,6 +3358,16 @@ class Suggester { 'SuggesterName': suggesterName, }; } + + Map toQueryMap() { + final documentSuggesterOptions = this.documentSuggesterOptions; + final suggesterName = this.suggesterName; + return { + for (var e1 in documentSuggesterOptions.toQueryMap().entries) + 'DocumentSuggesterOptions.${e1.key}': e1.value, + 'SuggesterName': suggesterName, + }; + } } enum SuggesterFuzzyMatching { @@ -3217,6 +3500,22 @@ class TextArrayOptions { if (sourceFields != null) 'SourceFields': sourceFields, }; } + + Map toQueryMap() { + final analysisScheme = this.analysisScheme; + final defaultValue = this.defaultValue; + final highlightEnabled = this.highlightEnabled; + final returnEnabled = this.returnEnabled; + final sourceFields = this.sourceFields; + return { + if (analysisScheme != null) 'AnalysisScheme': analysisScheme, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (highlightEnabled != null) + 'HighlightEnabled': highlightEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (sourceFields != null) 'SourceFields': sourceFields, + }; + } } /// Options for text field. Present if IndexFieldType specifies the @@ -3274,6 +3573,24 @@ class TextOptions { if (sourceField != null) 'SourceField': sourceField, }; } + + Map toQueryMap() { + final analysisScheme = this.analysisScheme; + final defaultValue = this.defaultValue; + final highlightEnabled = this.highlightEnabled; + final returnEnabled = this.returnEnabled; + final sortEnabled = this.sortEnabled; + final sourceField = this.sourceField; + return { + if (analysisScheme != null) 'AnalysisScheme': analysisScheme, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (highlightEnabled != null) + 'HighlightEnabled': highlightEnabled.toString(), + if (returnEnabled != null) 'ReturnEnabled': returnEnabled.toString(), + if (sortEnabled != null) 'SortEnabled': sortEnabled.toString(), + if (sourceField != null) 'SourceField': sourceField, + }; + } } /// The result of a UpdateAvailabilityOptions request. Contains the diff --git a/generated/aws_cloudwatch_api/lib/monitoring-2010-08-01.dart b/generated/aws_cloudwatch_api/lib/monitoring-2010-08-01.dart index 6f85f61e3..730eef185 100644 --- a/generated/aws_cloudwatch_api/lib/monitoring-2010-08-01.dart +++ b/generated/aws_cloudwatch_api/lib/monitoring-2010-08-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'monitoring-2010-08-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) @@ -38,7 +37,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// and operational health. class CloudWatch { final _s.QueryProtocol _protocol; - final Map shapes; CloudWatch({ required String region, @@ -46,7 +44,7 @@ class CloudWatch { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'monitoring', @@ -55,9 +53,7 @@ class CloudWatch { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -103,8 +99,13 @@ class CloudWatch { Future deleteAlarms({ required List alarmNames, }) async { - final $request = {}; - $request['AlarmNames'] = alarmNames; + final $request = { + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + }; await _protocol.send( $request, action: 'DeleteAlarms', @@ -112,8 +113,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAlarmsInput'], - shapes: shapes, ); } @@ -202,15 +201,24 @@ class CloudWatch { SingleMetricAnomalyDetector? singleMetricAnomalyDetector, String? stat, }) async { - final $request = {}; - dimensions?.also((arg) => $request['Dimensions'] = arg); - metricMathAnomalyDetector - ?.also((arg) => $request['MetricMathAnomalyDetector'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - singleMetricAnomalyDetector - ?.also((arg) => $request['SingleMetricAnomalyDetector'] = arg); - stat?.also((arg) => $request['Stat'] = arg); + final $request = { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricMathAnomalyDetector != null) + for (var e1 in metricMathAnomalyDetector.toQueryMap().entries) + 'MetricMathAnomalyDetector.${e1.key}': e1.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (singleMetricAnomalyDetector != null) + for (var e1 in singleMetricAnomalyDetector.toQueryMap().entries) + 'SingleMetricAnomalyDetector.${e1.key}': e1.value, + if (stat != null) 'Stat': stat, + }; await _protocol.send( $request, action: 'DeleteAnomalyDetector', @@ -218,8 +226,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAnomalyDetectorInput'], - shapes: shapes, resultWrapper: 'DeleteAnomalyDetectorResult', ); } @@ -237,8 +243,13 @@ class CloudWatch { Future deleteDashboards({ required List dashboardNames, }) async { - final $request = {}; - $request['DashboardNames'] = dashboardNames; + final $request = { + if (dashboardNames.isEmpty) + 'DashboardNames': '' + else + for (var i1 = 0; i1 < dashboardNames.length; i1++) + 'DashboardNames.member.${i1 + 1}': dashboardNames[i1], + }; await _protocol.send( $request, action: 'DeleteDashboards', @@ -246,8 +257,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDashboardsInput'], - shapes: shapes, resultWrapper: 'DeleteDashboardsResult', ); } @@ -268,8 +277,13 @@ class CloudWatch { Future deleteInsightRules({ required List ruleNames, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + }; final $result = await _protocol.send( $request, action: 'DeleteInsightRules', @@ -277,8 +291,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteInsightRulesInput'], - shapes: shapes, resultWrapper: 'DeleteInsightRulesResult', ); return DeleteInsightRulesOutput.fromXml($result); @@ -295,8 +307,9 @@ class CloudWatch { Future deleteMetricStream({ required String name, }) async { - final $request = {}; - $request['Name'] = name; + final $request = { + 'Name': name, + }; await _protocol.send( $request, action: 'DeleteMetricStream', @@ -304,8 +317,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteMetricStreamInput'], - shapes: shapes, resultWrapper: 'DeleteMetricStreamResult', ); } @@ -371,16 +382,21 @@ class CloudWatch { 1, 100, ); - final $request = {}; - alarmName?.also((arg) => $request['AlarmName'] = arg); - alarmTypes?.also( - (arg) => $request['AlarmTypes'] = arg.map((e) => e.toValue()).toList()); - endDate?.also((arg) => $request['EndDate'] = _s.iso8601ToJson(arg)); - historyItemType?.also((arg) => $request['HistoryItemType'] = arg.toValue()); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - scanBy?.also((arg) => $request['ScanBy'] = arg.toValue()); - startDate?.also((arg) => $request['StartDate'] = _s.iso8601ToJson(arg)); + final $request = { + if (alarmName != null) 'AlarmName': alarmName, + if (alarmTypes != null) + if (alarmTypes.isEmpty) + 'AlarmTypes': '' + else + for (var i1 = 0; i1 < alarmTypes.length; i1++) + 'AlarmTypes.member.${i1 + 1}': alarmTypes[i1].toValue(), + if (endDate != null) 'EndDate': _s.iso8601ToJson(endDate), + if (historyItemType != null) 'HistoryItemType': historyItemType.toValue(), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (scanBy != null) 'ScanBy': scanBy.toValue(), + if (startDate != null) 'StartDate': _s.iso8601ToJson(startDate), + }; final $result = await _protocol.send( $request, action: 'DescribeAlarmHistory', @@ -388,8 +404,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAlarmHistoryInput'], - shapes: shapes, resultWrapper: 'DescribeAlarmHistoryResult', ); return DescribeAlarmHistoryOutput.fromXml($result); @@ -500,17 +514,28 @@ class CloudWatch { 1, 100, ); - final $request = {}; - actionPrefix?.also((arg) => $request['ActionPrefix'] = arg); - alarmNamePrefix?.also((arg) => $request['AlarmNamePrefix'] = arg); - alarmNames?.also((arg) => $request['AlarmNames'] = arg); - alarmTypes?.also( - (arg) => $request['AlarmTypes'] = arg.map((e) => e.toValue()).toList()); - childrenOfAlarmName?.also((arg) => $request['ChildrenOfAlarmName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - parentsOfAlarmName?.also((arg) => $request['ParentsOfAlarmName'] = arg); - stateValue?.also((arg) => $request['StateValue'] = arg.toValue()); + final $request = { + if (actionPrefix != null) 'ActionPrefix': actionPrefix, + if (alarmNamePrefix != null) 'AlarmNamePrefix': alarmNamePrefix, + if (alarmNames != null) + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + if (alarmTypes != null) + if (alarmTypes.isEmpty) + 'AlarmTypes': '' + else + for (var i1 = 0; i1 < alarmTypes.length; i1++) + 'AlarmTypes.member.${i1 + 1}': alarmTypes[i1].toValue(), + if (childrenOfAlarmName != null) + 'ChildrenOfAlarmName': childrenOfAlarmName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (parentsOfAlarmName != null) 'ParentsOfAlarmName': parentsOfAlarmName, + if (stateValue != null) 'StateValue': stateValue.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeAlarms', @@ -518,8 +543,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAlarmsInput'], - shapes: shapes, resultWrapper: 'DescribeAlarmsResult', ); return DescribeAlarmsOutput.fromXml($result); @@ -572,14 +595,21 @@ class CloudWatch { 1, 1152921504606846976, ); - final $request = {}; - $request['MetricName'] = metricName; - $request['Namespace'] = namespace; - dimensions?.also((arg) => $request['Dimensions'] = arg); - extendedStatistic?.also((arg) => $request['ExtendedStatistic'] = arg); - period?.also((arg) => $request['Period'] = arg); - statistic?.also((arg) => $request['Statistic'] = arg.toValue()); - unit?.also((arg) => $request['Unit'] = arg.toValue()); + final $request = { + 'MetricName': metricName, + 'Namespace': namespace, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (extendedStatistic != null) 'ExtendedStatistic': extendedStatistic, + if (period != null) 'Period': period.toString(), + if (statistic != null) 'Statistic': statistic.toValue(), + if (unit != null) 'Unit': unit.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeAlarmsForMetric', @@ -587,8 +617,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAlarmsForMetricInput'], - shapes: shapes, resultWrapper: 'DescribeAlarmsForMetricResult', ); return DescribeAlarmsForMetricOutput.fromXml($result); @@ -652,14 +680,26 @@ class CloudWatch { 1, 1152921504606846976, ); - final $request = {}; - anomalyDetectorTypes?.also((arg) => $request['AnomalyDetectorTypes'] = - arg.map((e) => e.toValue()).toList()); - dimensions?.also((arg) => $request['Dimensions'] = arg); - maxResults?.also((arg) => $request['MaxResults'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (anomalyDetectorTypes != null) + if (anomalyDetectorTypes.isEmpty) + 'AnomalyDetectorTypes': '' + else + for (var i1 = 0; i1 < anomalyDetectorTypes.length; i1++) + 'AnomalyDetectorTypes.member.${i1 + 1}': + anomalyDetectorTypes[i1].toValue(), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeAnomalyDetectors', @@ -667,8 +707,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAnomalyDetectorsInput'], - shapes: shapes, resultWrapper: 'DescribeAnomalyDetectorsResult', ); return DescribeAnomalyDetectorsOutput.fromXml($result); @@ -699,9 +737,10 @@ class CloudWatch { 1, 500, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeInsightRules', @@ -709,8 +748,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInsightRulesInput'], - shapes: shapes, resultWrapper: 'DescribeInsightRulesResult', ); return DescribeInsightRulesOutput.fromXml($result); @@ -724,8 +761,13 @@ class CloudWatch { Future disableAlarmActions({ required List alarmNames, }) async { - final $request = {}; - $request['AlarmNames'] = alarmNames; + final $request = { + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + }; await _protocol.send( $request, action: 'DisableAlarmActions', @@ -733,8 +775,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableAlarmActionsInput'], - shapes: shapes, ); } @@ -751,8 +791,13 @@ class CloudWatch { Future disableInsightRules({ required List ruleNames, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + }; final $result = await _protocol.send( $request, action: 'DisableInsightRules', @@ -760,8 +805,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableInsightRulesInput'], - shapes: shapes, resultWrapper: 'DisableInsightRulesResult', ); return DisableInsightRulesOutput.fromXml($result); @@ -774,8 +817,13 @@ class CloudWatch { Future enableAlarmActions({ required List alarmNames, }) async { - final $request = {}; - $request['AlarmNames'] = alarmNames; + final $request = { + if (alarmNames.isEmpty) + 'AlarmNames': '' + else + for (var i1 = 0; i1 < alarmNames.length; i1++) + 'AlarmNames.member.${i1 + 1}': alarmNames[i1], + }; await _protocol.send( $request, action: 'EnableAlarmActions', @@ -783,8 +831,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableAlarmActionsInput'], - shapes: shapes, ); } @@ -802,8 +848,13 @@ class CloudWatch { Future enableInsightRules({ required List ruleNames, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + }; final $result = await _protocol.send( $request, action: 'EnableInsightRules', @@ -811,8 +862,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableInsightRulesInput'], - shapes: shapes, resultWrapper: 'EnableInsightRulesResult', ); return EnableInsightRulesOutput.fromXml($result); @@ -834,8 +883,9 @@ class CloudWatch { Future getDashboard({ required String dashboardName, }) async { - final $request = {}; - $request['DashboardName'] = dashboardName; + final $request = { + 'DashboardName': dashboardName, + }; final $result = await _protocol.send( $request, action: 'GetDashboard', @@ -843,8 +893,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetDashboardInput'], - shapes: shapes, resultWrapper: 'GetDashboardResult', ); return GetDashboardOutput.fromXml($result); @@ -979,14 +1027,21 @@ class CloudWatch { 1152921504606846976, isRequired: true, ); - final $request = {}; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['Period'] = period; - $request['RuleName'] = ruleName; - $request['StartTime'] = _s.iso8601ToJson(startTime); - maxContributorCount?.also((arg) => $request['MaxContributorCount'] = arg); - metrics?.also((arg) => $request['Metrics'] = arg); - orderBy?.also((arg) => $request['OrderBy'] = arg); + final $request = { + 'EndTime': _s.iso8601ToJson(endTime), + 'Period': period.toString(), + 'RuleName': ruleName, + 'StartTime': _s.iso8601ToJson(startTime), + if (maxContributorCount != null) + 'MaxContributorCount': maxContributorCount.toString(), + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + 'Metrics.member.${i1 + 1}': metrics[i1], + if (orderBy != null) 'OrderBy': orderBy, + }; final $result = await _protocol.send( $request, action: 'GetInsightRuleReport', @@ -994,8 +1049,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetInsightRuleReportInput'], - shapes: shapes, resultWrapper: 'GetInsightRuleReportResult', ); return GetInsightRuleReportOutput.fromXml($result); @@ -1169,14 +1222,22 @@ class CloudWatch { String? nextToken, ScanBy? scanBy, }) async { - final $request = {}; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['MetricDataQueries'] = metricDataQueries; - $request['StartTime'] = _s.iso8601ToJson(startTime); - labelOptions?.also((arg) => $request['LabelOptions'] = arg); - maxDatapoints?.also((arg) => $request['MaxDatapoints'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - scanBy?.also((arg) => $request['ScanBy'] = arg.toValue()); + final $request = { + 'EndTime': _s.iso8601ToJson(endTime), + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + 'StartTime': _s.iso8601ToJson(startTime), + if (labelOptions != null) + for (var e1 in labelOptions.toQueryMap().entries) + 'LabelOptions.${e1.key}': e1.value, + if (maxDatapoints != null) 'MaxDatapoints': maxDatapoints.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (scanBy != null) 'ScanBy': scanBy.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetMetricData', @@ -1184,8 +1245,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricDataInput'], - shapes: shapes, resultWrapper: 'GetMetricDataResult', ); return GetMetricDataOutput.fromXml($result); @@ -1392,17 +1451,33 @@ class CloudWatch { 1152921504606846976, isRequired: true, ); - final $request = {}; - $request['EndTime'] = _s.iso8601ToJson(endTime); - $request['MetricName'] = metricName; - $request['Namespace'] = namespace; - $request['Period'] = period; - $request['StartTime'] = _s.iso8601ToJson(startTime); - dimensions?.also((arg) => $request['Dimensions'] = arg); - extendedStatistics?.also((arg) => $request['ExtendedStatistics'] = arg); - statistics?.also( - (arg) => $request['Statistics'] = arg.map((e) => e.toValue()).toList()); - unit?.also((arg) => $request['Unit'] = arg.toValue()); + final $request = { + 'EndTime': _s.iso8601ToJson(endTime), + 'MetricName': metricName, + 'Namespace': namespace, + 'Period': period.toString(), + 'StartTime': _s.iso8601ToJson(startTime), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (extendedStatistics != null) + if (extendedStatistics.isEmpty) + 'ExtendedStatistics': '' + else + for (var i1 = 0; i1 < extendedStatistics.length; i1++) + 'ExtendedStatistics.member.${i1 + 1}': extendedStatistics[i1], + if (statistics != null) + if (statistics.isEmpty) + 'Statistics': '' + else + for (var i1 = 0; i1 < statistics.length; i1++) + 'Statistics.member.${i1 + 1}': statistics[i1].toValue(), + if (unit != null) 'Unit': unit.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetMetricStatistics', @@ -1410,8 +1485,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricStatisticsInput'], - shapes: shapes, resultWrapper: 'GetMetricStatisticsResult', ); return GetMetricStatisticsOutput.fromXml($result); @@ -1430,8 +1503,9 @@ class CloudWatch { Future getMetricStream({ required String name, }) async { - final $request = {}; - $request['Name'] = name; + final $request = { + 'Name': name, + }; final $result = await _protocol.send( $request, action: 'GetMetricStream', @@ -1439,8 +1513,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricStreamInput'], - shapes: shapes, resultWrapper: 'GetMetricStreamResult', ); return GetMetricStreamOutput.fromXml($result); @@ -1521,9 +1593,10 @@ class CloudWatch { required String metricWidget, String? outputFormat, }) async { - final $request = {}; - $request['MetricWidget'] = metricWidget; - outputFormat?.also((arg) => $request['OutputFormat'] = arg); + final $request = { + 'MetricWidget': metricWidget, + if (outputFormat != null) 'OutputFormat': outputFormat, + }; final $result = await _protocol.send( $request, action: 'GetMetricWidgetImage', @@ -1531,8 +1604,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMetricWidgetImageInput'], - shapes: shapes, resultWrapper: 'GetMetricWidgetImageResult', ); return GetMetricWidgetImageOutput.fromXml($result); @@ -1564,9 +1635,11 @@ class CloudWatch { String? dashboardNamePrefix, String? nextToken, }) async { - final $request = {}; - dashboardNamePrefix?.also((arg) => $request['DashboardNamePrefix'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (dashboardNamePrefix != null) + 'DashboardNamePrefix': dashboardNamePrefix, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListDashboards', @@ -1574,8 +1647,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListDashboardsInput'], - shapes: shapes, resultWrapper: 'ListDashboardsResult', ); return ListDashboardsOutput.fromXml($result); @@ -1611,10 +1682,11 @@ class CloudWatch { 1, 500, ); - final $request = {}; - $request['ResourceARN'] = resourceARN; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'ResourceARN': resourceARN, + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListManagedInsightRules', @@ -1622,8 +1694,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListManagedInsightRulesInput'], - shapes: shapes, resultWrapper: 'ListManagedInsightRulesResult', ); return ListManagedInsightRulesOutput.fromXml($result); @@ -1652,9 +1722,10 @@ class CloudWatch { 1, 500, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListMetricStreams', @@ -1662,8 +1733,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMetricStreamsInput'], - shapes: shapes, resultWrapper: 'ListMetricStreamsResult', ); return ListMetricStreamsOutput.fromXml($result); @@ -1747,15 +1816,22 @@ class CloudWatch { String? owningAccount, RecentlyActive? recentlyActive, }) async { - final $request = {}; - dimensions?.also((arg) => $request['Dimensions'] = arg); - includeLinkedAccounts - ?.also((arg) => $request['IncludeLinkedAccounts'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - owningAccount?.also((arg) => $request['OwningAccount'] = arg); - recentlyActive?.also((arg) => $request['RecentlyActive'] = arg.toValue()); + final $request = { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (includeLinkedAccounts != null) + 'IncludeLinkedAccounts': includeLinkedAccounts.toString(), + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (nextToken != null) 'NextToken': nextToken, + if (owningAccount != null) 'OwningAccount': owningAccount, + if (recentlyActive != null) 'RecentlyActive': recentlyActive.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListMetrics', @@ -1763,8 +1839,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMetricsInput'], - shapes: shapes, resultWrapper: 'ListMetricsResult', ); return ListMetricsOutput.fromXml($result); @@ -1795,8 +1869,9 @@ class CloudWatch { Future listTagsForResource({ required String resourceARN, }) async { - final $request = {}; - $request['ResourceARN'] = resourceARN; + final $request = { + 'ResourceARN': resourceARN, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1804,8 +1879,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceInput'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return ListTagsForResourceOutput.fromXml($result); @@ -1917,18 +1990,30 @@ class CloudWatch { SingleMetricAnomalyDetector? singleMetricAnomalyDetector, String? stat, }) async { - final $request = {}; - configuration?.also((arg) => $request['Configuration'] = arg); - dimensions?.also((arg) => $request['Dimensions'] = arg); - metricCharacteristics - ?.also((arg) => $request['MetricCharacteristics'] = arg); - metricMathAnomalyDetector - ?.also((arg) => $request['MetricMathAnomalyDetector'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - singleMetricAnomalyDetector - ?.also((arg) => $request['SingleMetricAnomalyDetector'] = arg); - stat?.also((arg) => $request['Stat'] = arg); + final $request = { + if (configuration != null) + for (var e1 in configuration.toQueryMap().entries) + 'Configuration.${e1.key}': e1.value, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricCharacteristics != null) + for (var e1 in metricCharacteristics.toQueryMap().entries) + 'MetricCharacteristics.${e1.key}': e1.value, + if (metricMathAnomalyDetector != null) + for (var e1 in metricMathAnomalyDetector.toQueryMap().entries) + 'MetricMathAnomalyDetector.${e1.key}': e1.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (singleMetricAnomalyDetector != null) + for (var e1 in singleMetricAnomalyDetector.toQueryMap().entries) + 'SingleMetricAnomalyDetector.${e1.key}': e1.value, + if (stat != null) 'Stat': stat, + }; await _protocol.send( $request, action: 'PutAnomalyDetector', @@ -1936,8 +2021,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutAnomalyDetectorInput'], - shapes: shapes, resultWrapper: 'PutAnomalyDetectorResult', ); } @@ -2243,21 +2326,44 @@ class CloudWatch { List? oKActions, List? tags, }) async { - final $request = {}; - $request['AlarmName'] = alarmName; - $request['AlarmRule'] = alarmRule; - actionsEnabled?.also((arg) => $request['ActionsEnabled'] = arg); - actionsSuppressor?.also((arg) => $request['ActionsSuppressor'] = arg); - actionsSuppressorExtensionPeriod - ?.also((arg) => $request['ActionsSuppressorExtensionPeriod'] = arg); - actionsSuppressorWaitPeriod - ?.also((arg) => $request['ActionsSuppressorWaitPeriod'] = arg); - alarmActions?.also((arg) => $request['AlarmActions'] = arg); - alarmDescription?.also((arg) => $request['AlarmDescription'] = arg); - insufficientDataActions - ?.also((arg) => $request['InsufficientDataActions'] = arg); - oKActions?.also((arg) => $request['OKActions'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'AlarmName': alarmName, + 'AlarmRule': alarmRule, + if (actionsEnabled != null) 'ActionsEnabled': actionsEnabled.toString(), + if (actionsSuppressor != null) 'ActionsSuppressor': actionsSuppressor, + if (actionsSuppressorExtensionPeriod != null) + 'ActionsSuppressorExtensionPeriod': + actionsSuppressorExtensionPeriod.toString(), + if (actionsSuppressorWaitPeriod != null) + 'ActionsSuppressorWaitPeriod': actionsSuppressorWaitPeriod.toString(), + if (alarmActions != null) + if (alarmActions.isEmpty) + 'AlarmActions': '' + else + for (var i1 = 0; i1 < alarmActions.length; i1++) + 'AlarmActions.member.${i1 + 1}': alarmActions[i1], + if (alarmDescription != null) 'AlarmDescription': alarmDescription, + if (insufficientDataActions != null) + if (insufficientDataActions.isEmpty) + 'InsufficientDataActions': '' + else + for (var i1 = 0; i1 < insufficientDataActions.length; i1++) + 'InsufficientDataActions.member.${i1 + 1}': + insufficientDataActions[i1], + if (oKActions != null) + if (oKActions.isEmpty) + 'OKActions': '' + else + for (var i1 = 0; i1 < oKActions.length; i1++) + 'OKActions.member.${i1 + 1}': oKActions[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'PutCompositeAlarm', @@ -2265,8 +2371,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutCompositeAlarmInput'], - shapes: shapes, ); } @@ -2313,9 +2417,10 @@ class CloudWatch { required String dashboardBody, required String dashboardName, }) async { - final $request = {}; - $request['DashboardBody'] = dashboardBody; - $request['DashboardName'] = dashboardName; + final $request = { + 'DashboardBody': dashboardBody, + 'DashboardName': dashboardName, + }; final $result = await _protocol.send( $request, action: 'PutDashboard', @@ -2323,8 +2428,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutDashboardInput'], - shapes: shapes, resultWrapper: 'PutDashboardResult', ); return PutDashboardOutput.fromXml($result); @@ -2378,11 +2481,18 @@ class CloudWatch { String? ruleState, List? tags, }) async { - final $request = {}; - $request['RuleDefinition'] = ruleDefinition; - $request['RuleName'] = ruleName; - ruleState?.also((arg) => $request['RuleState'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'RuleDefinition': ruleDefinition, + 'RuleName': ruleName, + if (ruleState != null) 'RuleState': ruleState, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'PutInsightRule', @@ -2390,8 +2500,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutInsightRuleInput'], - shapes: shapes, resultWrapper: 'PutInsightRuleResult', ); } @@ -2414,8 +2522,14 @@ class CloudWatch { Future putManagedInsightRules({ required List managedRules, }) async { - final $request = {}; - $request['ManagedRules'] = managedRules; + final $request = { + if (managedRules.isEmpty) + 'ManagedRules': '' + else + for (var i1 = 0; i1 < managedRules.length; i1++) + for (var e3 in managedRules[i1].toQueryMap().entries) + 'ManagedRules.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PutManagedInsightRules', @@ -2423,8 +2537,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutManagedInsightRulesInput'], - shapes: shapes, resultWrapper: 'PutManagedInsightRulesResult', ); return PutManagedInsightRulesOutput.fromXml($result); @@ -3039,31 +3151,66 @@ class CloudWatch { 1, 1152921504606846976, ); - final $request = {}; - $request['AlarmName'] = alarmName; - $request['ComparisonOperator'] = comparisonOperator.toValue(); - $request['EvaluationPeriods'] = evaluationPeriods; - actionsEnabled?.also((arg) => $request['ActionsEnabled'] = arg); - alarmActions?.also((arg) => $request['AlarmActions'] = arg); - alarmDescription?.also((arg) => $request['AlarmDescription'] = arg); - datapointsToAlarm?.also((arg) => $request['DatapointsToAlarm'] = arg); - dimensions?.also((arg) => $request['Dimensions'] = arg); - evaluateLowSampleCountPercentile - ?.also((arg) => $request['EvaluateLowSampleCountPercentile'] = arg); - extendedStatistic?.also((arg) => $request['ExtendedStatistic'] = arg); - insufficientDataActions - ?.also((arg) => $request['InsufficientDataActions'] = arg); - metricName?.also((arg) => $request['MetricName'] = arg); - metrics?.also((arg) => $request['Metrics'] = arg); - namespace?.also((arg) => $request['Namespace'] = arg); - oKActions?.also((arg) => $request['OKActions'] = arg); - period?.also((arg) => $request['Period'] = arg); - statistic?.also((arg) => $request['Statistic'] = arg.toValue()); - tags?.also((arg) => $request['Tags'] = arg); - threshold?.also((arg) => $request['Threshold'] = arg); - thresholdMetricId?.also((arg) => $request['ThresholdMetricId'] = arg); - treatMissingData?.also((arg) => $request['TreatMissingData'] = arg); - unit?.also((arg) => $request['Unit'] = arg.toValue()); + final $request = { + 'AlarmName': alarmName, + 'ComparisonOperator': comparisonOperator.toValue(), + 'EvaluationPeriods': evaluationPeriods.toString(), + if (actionsEnabled != null) 'ActionsEnabled': actionsEnabled.toString(), + if (alarmActions != null) + if (alarmActions.isEmpty) + 'AlarmActions': '' + else + for (var i1 = 0; i1 < alarmActions.length; i1++) + 'AlarmActions.member.${i1 + 1}': alarmActions[i1], + if (alarmDescription != null) 'AlarmDescription': alarmDescription, + if (datapointsToAlarm != null) + 'DatapointsToAlarm': datapointsToAlarm.toString(), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (evaluateLowSampleCountPercentile != null) + 'EvaluateLowSampleCountPercentile': evaluateLowSampleCountPercentile, + if (extendedStatistic != null) 'ExtendedStatistic': extendedStatistic, + if (insufficientDataActions != null) + if (insufficientDataActions.isEmpty) + 'InsufficientDataActions': '' + else + for (var i1 = 0; i1 < insufficientDataActions.length; i1++) + 'InsufficientDataActions.member.${i1 + 1}': + insufficientDataActions[i1], + if (metricName != null) 'MetricName': metricName, + if (metrics != null) + if (metrics.isEmpty) + 'Metrics': '' + else + for (var i1 = 0; i1 < metrics.length; i1++) + for (var e3 in metrics[i1].toQueryMap().entries) + 'Metrics.member.${i1 + 1}.${e3.key}': e3.value, + if (namespace != null) 'Namespace': namespace, + if (oKActions != null) + if (oKActions.isEmpty) + 'OKActions': '' + else + for (var i1 = 0; i1 < oKActions.length; i1++) + 'OKActions.member.${i1 + 1}': oKActions[i1], + if (period != null) 'Period': period.toString(), + if (statistic != null) 'Statistic': statistic.toValue(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (threshold != null) 'Threshold': threshold.toString(), + if (thresholdMetricId != null) 'ThresholdMetricId': thresholdMetricId, + if (treatMissingData != null) 'TreatMissingData': treatMissingData, + if (unit != null) 'Unit': unit.toValue(), + }; await _protocol.send( $request, action: 'PutMetricAlarm', @@ -3071,8 +3218,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutMetricAlarmInput'], - shapes: shapes, ); } @@ -3157,9 +3302,15 @@ class CloudWatch { required List metricData, required String namespace, }) async { - final $request = {}; - $request['MetricData'] = metricData; - $request['Namespace'] = namespace; + final $request = { + if (metricData.isEmpty) + 'MetricData': '' + else + for (var i1 = 0; i1 < metricData.length; i1++) + for (var e3 in metricData[i1].toQueryMap().entries) + 'MetricData.member.${i1 + 1}.${e3.key}': e3.value, + 'Namespace': namespace, + }; await _protocol.send( $request, action: 'PutMetricData', @@ -3167,8 +3318,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutMetricDataInput'], - shapes: shapes, ); } @@ -3325,18 +3474,42 @@ class CloudWatch { List? statisticsConfigurations, List? tags, }) async { - final $request = {}; - $request['FirehoseArn'] = firehoseArn; - $request['Name'] = name; - $request['OutputFormat'] = outputFormat.toValue(); - $request['RoleArn'] = roleArn; - excludeFilters?.also((arg) => $request['ExcludeFilters'] = arg); - includeFilters?.also((arg) => $request['IncludeFilters'] = arg); - includeLinkedAccountsMetrics - ?.also((arg) => $request['IncludeLinkedAccountsMetrics'] = arg); - statisticsConfigurations - ?.also((arg) => $request['StatisticsConfigurations'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'FirehoseArn': firehoseArn, + 'Name': name, + 'OutputFormat': outputFormat.toValue(), + 'RoleArn': roleArn, + if (excludeFilters != null) + if (excludeFilters.isEmpty) + 'ExcludeFilters': '' + else + for (var i1 = 0; i1 < excludeFilters.length; i1++) + for (var e3 in excludeFilters[i1].toQueryMap().entries) + 'ExcludeFilters.member.${i1 + 1}.${e3.key}': e3.value, + if (includeFilters != null) + if (includeFilters.isEmpty) + 'IncludeFilters': '' + else + for (var i1 = 0; i1 < includeFilters.length; i1++) + for (var e3 in includeFilters[i1].toQueryMap().entries) + 'IncludeFilters.member.${i1 + 1}.${e3.key}': e3.value, + if (includeLinkedAccountsMetrics != null) + 'IncludeLinkedAccountsMetrics': includeLinkedAccountsMetrics.toString(), + if (statisticsConfigurations != null) + if (statisticsConfigurations.isEmpty) + 'StatisticsConfigurations': '' + else + for (var i1 = 0; i1 < statisticsConfigurations.length; i1++) + for (var e3 in statisticsConfigurations[i1].toQueryMap().entries) + 'StatisticsConfigurations.member.${i1 + 1}.${e3.key}': e3.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PutMetricStream', @@ -3344,8 +3517,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutMetricStreamInput'], - shapes: shapes, resultWrapper: 'PutMetricStreamResult', ); return PutMetricStreamOutput.fromXml($result); @@ -3396,11 +3567,12 @@ class CloudWatch { required StateValue stateValue, String? stateReasonData, }) async { - final $request = {}; - $request['AlarmName'] = alarmName; - $request['StateReason'] = stateReason; - $request['StateValue'] = stateValue.toValue(); - stateReasonData?.also((arg) => $request['StateReasonData'] = arg); + final $request = { + 'AlarmName': alarmName, + 'StateReason': stateReason, + 'StateValue': stateValue.toValue(), + if (stateReasonData != null) 'StateReasonData': stateReasonData, + }; await _protocol.send( $request, action: 'SetAlarmState', @@ -3408,8 +3580,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetAlarmStateInput'], - shapes: shapes, ); } @@ -3428,8 +3598,13 @@ class CloudWatch { Future startMetricStreams({ required List names, }) async { - final $request = {}; - $request['Names'] = names; + final $request = { + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + }; await _protocol.send( $request, action: 'StartMetricStreams', @@ -3437,8 +3612,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartMetricStreamsInput'], - shapes: shapes, resultWrapper: 'StartMetricStreamsResult', ); } @@ -3458,8 +3631,13 @@ class CloudWatch { Future stopMetricStreams({ required List names, }) async { - final $request = {}; - $request['Names'] = names; + final $request = { + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + }; await _protocol.send( $request, action: 'StopMetricStreams', @@ -3467,8 +3645,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopMetricStreamsInput'], - shapes: shapes, resultWrapper: 'StopMetricStreamsResult', ); } @@ -3519,9 +3695,15 @@ class CloudWatch { required String resourceARN, required List tags, }) async { - final $request = {}; - $request['ResourceARN'] = resourceARN; - $request['Tags'] = tags; + final $request = { + 'ResourceARN': resourceARN, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagResource', @@ -3529,8 +3711,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagResourceInput'], - shapes: shapes, resultWrapper: 'TagResourceResult', ); } @@ -3564,9 +3744,14 @@ class CloudWatch { required String resourceARN, required List tagKeys, }) async { - final $request = {}; - $request['ResourceARN'] = resourceARN; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceARN': resourceARN, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagResource', @@ -3574,8 +3759,6 @@ class CloudWatch { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagResourceInput'], - shapes: shapes, resultWrapper: 'UntagResourceResult', ); } @@ -3800,6 +3983,21 @@ class AnomalyDetectorConfiguration { if (metricTimezone != null) 'MetricTimezone': metricTimezone, }; } + + Map toQueryMap() { + final excludedTimeRanges = this.excludedTimeRanges; + final metricTimezone = this.metricTimezone; + return { + if (excludedTimeRanges != null) + if (excludedTimeRanges.isEmpty) + 'ExcludedTimeRanges': '' + else + for (var i1 = 0; i1 < excludedTimeRanges.length; i1++) + for (var e3 in excludedTimeRanges[i1].toQueryMap().entries) + 'ExcludedTimeRanges.member.${i1 + 1}.${e3.key}': e3.value, + if (metricTimezone != null) 'MetricTimezone': metricTimezone, + }; + } } enum AnomalyDetectorStateValue { @@ -4369,6 +4567,15 @@ class Dimension { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } /// Represents filters for a dimension. @@ -4392,6 +4599,15 @@ class DimensionFilter { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + if (value != null) 'Value': value, + }; + } } class DisableInsightRulesOutput { @@ -4956,6 +5172,13 @@ class LabelOptions { if (timezone != null) 'Timezone': timezone, }; } + + Map toQueryMap() { + final timezone = this.timezone; + return { + if (timezone != null) 'Timezone': timezone, + }; + } } class ListDashboardsOutput { @@ -5111,6 +5334,23 @@ class ManagedRule { if (tags != null) 'Tags': tags, }; } + + Map toQueryMap() { + final resourceARN = this.resourceARN; + final templateName = this.templateName; + final tags = this.tags; + return { + 'ResourceARN': resourceARN, + 'TemplateName': templateName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Contains information about managed Contributor Insights rules, as returned @@ -5227,6 +5467,23 @@ class Metric { if (namespace != null) 'Namespace': namespace, }; } + + Map toQueryMap() { + final dimensions = this.dimensions; + final metricName = this.metricName; + final namespace = this.namespace; + return { + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + }; + } } /// The details about a metric alarm. @@ -5460,6 +5717,13 @@ class MetricCharacteristics { if (periodicSpikes != null) 'PeriodicSpikes': periodicSpikes, }; } + + Map toQueryMap() { + final periodicSpikes = this.periodicSpikes; + return { + if (periodicSpikes != null) 'PeriodicSpikes': periodicSpikes.toString(), + }; + } } /// This structure is used in both GetMetricData and @@ -5609,6 +5873,27 @@ class MetricDataQuery { if (returnData != null) 'ReturnData': returnData, }; } + + Map toQueryMap() { + final id = this.id; + final accountId = this.accountId; + final expression = this.expression; + final label = this.label; + final metricStat = this.metricStat; + final period = this.period; + final returnData = this.returnData; + return { + 'Id': id, + if (accountId != null) 'AccountId': accountId, + if (expression != null) 'Expression': expression, + if (label != null) 'Label': label, + if (metricStat != null) + for (var e1 in metricStat.toQueryMap().entries) + 'MetricStat.${e1.key}': e1.value, + if (period != null) 'Period': period.toString(), + if (returnData != null) 'ReturnData': returnData.toString(), + }; + } } /// A GetMetricData call returns an array of @@ -5770,6 +6055,48 @@ class MetricDatum { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final metricName = this.metricName; + final counts = this.counts; + final dimensions = this.dimensions; + final statisticValues = this.statisticValues; + final storageResolution = this.storageResolution; + final timestamp = this.timestamp; + final unit = this.unit; + final value = this.value; + final values = this.values; + return { + 'MetricName': metricName, + if (counts != null) + if (counts.isEmpty) + 'Counts': '' + else + for (var i1 = 0; i1 < counts.length; i1++) + 'Counts.member.${i1 + 1}': counts[i1].toString(), + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (statisticValues != null) + for (var e1 in statisticValues.toQueryMap().entries) + 'StatisticValues.${e1.key}': e1.value, + if (storageResolution != null) + 'StorageResolution': storageResolution.toString(), + if (timestamp != null) 'Timestamp': _s.iso8601ToJson(timestamp), + if (unit != null) 'Unit': unit.toValue(), + if (value != null) 'Value': value.toString(), + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1].toString(), + }; + } } /// Indicates the CloudWatch math expression that provides the time series the @@ -5806,6 +6133,19 @@ class MetricMathAnomalyDetector { if (metricDataQueries != null) 'MetricDataQueries': metricDataQueries, }; } + + Map toQueryMap() { + final metricDataQueries = this.metricDataQueries; + return { + if (metricDataQueries != null) + if (metricDataQueries.isEmpty) + 'MetricDataQueries': '' + else + for (var i1 = 0; i1 < metricDataQueries.length; i1++) + for (var e3 in metricDataQueries[i1].toQueryMap().entries) + 'MetricDataQueries.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// This structure defines the metric to be returned, along with the statistics, @@ -5885,6 +6225,19 @@ class MetricStat { if (unit != null) 'Unit': unit.toValue(), }; } + + Map toQueryMap() { + final metric = this.metric; + final period = this.period; + final stat = this.stat; + final unit = this.unit; + return { + for (var e1 in metric.toQueryMap().entries) 'Metric.${e1.key}': e1.value, + 'Period': period.toString(), + 'Stat': stat, + if (unit != null) 'Unit': unit.toValue(), + }; + } } /// This structure contains the configuration information about one metric @@ -5986,6 +6339,20 @@ class MetricStreamFilter { if (namespace != null) 'Namespace': namespace, }; } + + Map toQueryMap() { + final metricNames = this.metricNames; + final namespace = this.namespace; + return { + if (metricNames != null) + if (metricNames.isEmpty) + 'MetricNames': '' + else + for (var i1 = 0; i1 < metricNames.length; i1++) + 'MetricNames.member.${i1 + 1}': metricNames[i1], + if (namespace != null) 'Namespace': namespace, + }; + } } enum MetricStreamOutputFormat { @@ -6078,6 +6445,24 @@ class MetricStreamStatisticsConfiguration { 'IncludeMetrics': includeMetrics, }; } + + Map toQueryMap() { + final additionalStatistics = this.additionalStatistics; + final includeMetrics = this.includeMetrics; + return { + if (additionalStatistics.isEmpty) + 'AdditionalStatistics': '' + else + for (var i1 = 0; i1 < additionalStatistics.length; i1++) + 'AdditionalStatistics.member.${i1 + 1}': additionalStatistics[i1], + if (includeMetrics.isEmpty) + 'IncludeMetrics': '' + else + for (var i1 = 0; i1 < includeMetrics.length; i1++) + for (var e3 in includeMetrics[i1].toQueryMap().entries) + 'IncludeMetrics.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// This object contains the information for one metric that is to be streamed @@ -6108,6 +6493,15 @@ class MetricStreamStatisticsMetric { 'Namespace': namespace, }; } + + Map toQueryMap() { + final metricName = this.metricName; + final namespace = this.namespace; + return { + 'MetricName': metricName, + 'Namespace': namespace, + }; + } } /// This array is empty if the API operation was successful for all the rules @@ -6248,6 +6642,15 @@ class Range { 'StartTime': iso8601ToJson(startTime), }; } + + Map toQueryMap() { + final endTime = this.endTime; + final startTime = this.startTime; + return { + 'EndTime': _s.iso8601ToJson(endTime), + 'StartTime': _s.iso8601ToJson(startTime), + }; + } } enum RecentlyActive { @@ -6355,6 +6758,27 @@ class SingleMetricAnomalyDetector { if (stat != null) 'Stat': stat, }; } + + Map toQueryMap() { + final accountId = this.accountId; + final dimensions = this.dimensions; + final metricName = this.metricName; + final namespace = this.namespace; + final stat = this.stat; + return { + if (accountId != null) 'AccountId': accountId, + if (dimensions != null) + if (dimensions.isEmpty) + 'Dimensions': '' + else + for (var i1 = 0; i1 < dimensions.length; i1++) + for (var e3 in dimensions[i1].toQueryMap().entries) + 'Dimensions.member.${i1 + 1}.${e3.key}': e3.value, + if (metricName != null) 'MetricName': metricName, + if (namespace != null) 'Namespace': namespace, + if (stat != null) 'Stat': stat, + }; + } } enum StandardUnit { @@ -6628,6 +7052,19 @@ class StatisticSet { 'Sum': sum, }; } + + Map toQueryMap() { + final maximum = this.maximum; + final minimum = this.minimum; + final sampleCount = this.sampleCount; + final sum = this.sum; + return { + 'Maximum': maximum.toString(), + 'Minimum': minimum.toString(), + 'SampleCount': sampleCount.toString(), + 'Sum': sum.toString(), + }; + } } enum StatusCode { @@ -6705,6 +7142,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } class TagResourceOutput { diff --git a/generated/aws_docdb_api/lib/docdb-2014-10-31.dart b/generated/aws_docdb_api/lib/docdb-2014-10-31.dart index f18d14b55..e4952fe07 100644 --- a/generated/aws_docdb_api/lib/docdb-2014-10-31.dart +++ b/generated/aws_docdb_api/lib/docdb-2014-10-31.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'docdb-2014-10-31.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon DocumentDB is a fast, reliable, and fully managed database service. @@ -27,7 +26,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// use with MongoDB. class DocDB { final _s.QueryProtocol _protocol; - final Map shapes; DocDB({ required String region, @@ -35,7 +33,7 @@ class DocDB { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -45,9 +43,7 @@ class DocDB { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -93,9 +89,10 @@ class DocDB { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -103,8 +100,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -129,9 +124,15 @@ class DocDB { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -139,8 +140,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -184,10 +183,11 @@ class DocDB { required String optInType, required String resourceIdentifier, }) async { - final $request = {}; - $request['ApplyAction'] = applyAction; - $request['OptInType'] = optInType; - $request['ResourceIdentifier'] = resourceIdentifier; + final $request = { + 'ApplyAction': applyAction, + 'OptInType': optInType, + 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'ApplyPendingMaintenanceAction', @@ -195,8 +195,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyPendingMaintenanceActionMessage'], - shapes: shapes, resultWrapper: 'ApplyPendingMaintenanceActionResult', ); return ApplyPendingMaintenanceActionResult.fromXml($result); @@ -262,14 +260,21 @@ class DocDB { required String targetDBClusterParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterParameterGroupIdentifier'] = - sourceDBClusterParameterGroupIdentifier; - $request['TargetDBClusterParameterGroupDescription'] = - targetDBClusterParameterGroupDescription; - $request['TargetDBClusterParameterGroupIdentifier'] = - targetDBClusterParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterParameterGroupIdentifier': + sourceDBClusterParameterGroupIdentifier, + 'TargetDBClusterParameterGroupDescription': + targetDBClusterParameterGroupDescription, + 'TargetDBClusterParameterGroupIdentifier': + targetDBClusterParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterParameterGroup', @@ -277,8 +282,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterParameterGroupResult', ); return CopyDBClusterParameterGroupResult.fromXml($result); @@ -425,15 +428,20 @@ class DocDB { String? preSignedUrl, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterSnapshotIdentifier'] = - sourceDBClusterSnapshotIdentifier; - $request['TargetDBClusterSnapshotIdentifier'] = - targetDBClusterSnapshotIdentifier; - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterSnapshotIdentifier': sourceDBClusterSnapshotIdentifier, + 'TargetDBClusterSnapshotIdentifier': targetDBClusterSnapshotIdentifier, + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterSnapshot', @@ -441,8 +449,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterSnapshotResult', ); return CopyDBClusterSnapshotResult.fromXml($result); @@ -682,34 +688,60 @@ class DocDB { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBCluster', @@ -717,8 +749,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterResult', ); return CreateDBClusterResult.fromXml($result); @@ -776,11 +806,18 @@ class DocDB { required String description, List? tags, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterParameterGroup', @@ -788,8 +825,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterParameterGroupResult', ); return CreateDBClusterParameterGroupResult.fromXml($result); @@ -842,10 +877,17 @@ class DocDB { required String dBClusterSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterSnapshot', @@ -853,8 +895,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterSnapshotResult', ); return CreateDBClusterSnapshotResult.fromXml($result); @@ -995,25 +1035,33 @@ class DocDB { int? promotionTier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -1021,8 +1069,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -1059,11 +1105,22 @@ class DocDB { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -1071,8 +1128,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -1183,14 +1238,31 @@ class DocDB { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -1198,8 +1270,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -1258,15 +1328,18 @@ class DocDB { String? sourceDBClusterIdentifier, bool? storageEncrypted, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateGlobalCluster', @@ -1274,8 +1347,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalClusterResult', ); return CreateGlobalClusterResult.fromXml($result); @@ -1341,11 +1412,13 @@ class DocDB { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBCluster', @@ -1353,8 +1426,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterResult', ); return DeleteDBClusterResult.fromXml($result); @@ -1385,8 +1456,9 @@ class DocDB { Future deleteDBClusterParameterGroup({ required String dBClusterParameterGroupName, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBClusterParameterGroup', @@ -1394,8 +1466,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -1417,8 +1487,9 @@ class DocDB { Future deleteDBClusterSnapshot({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterSnapshot', @@ -1426,8 +1497,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterSnapshotResult', ); return DeleteDBClusterSnapshotResult.fromXml($result); @@ -1455,8 +1524,9 @@ class DocDB { Future deleteDBInstance({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -1464,8 +1534,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -1495,8 +1563,9 @@ class DocDB { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -1504,8 +1573,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -1520,8 +1587,9 @@ class DocDB { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -1529,8 +1597,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -1550,8 +1616,9 @@ class DocDB { Future deleteGlobalCluster({ required String globalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalCluster', @@ -1559,8 +1626,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalClusterResult', ); return DeleteGlobalClusterResult.fromXml($result); @@ -1618,12 +1683,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - certificateIdentifier - ?.also((arg) => $request['CertificateIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (certificateIdentifier != null) + 'CertificateIdentifier': certificateIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCertificates', @@ -1631,8 +1703,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCertificatesMessage'], - shapes: shapes, resultWrapper: 'DescribeCertificatesResult', ); return CertificateMessage.fromXml($result); @@ -1679,12 +1749,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameterGroups', @@ -1692,8 +1769,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParameterGroupsResult', ); return DBClusterParameterGroupsMessage.fromXml($result); @@ -1746,12 +1821,19 @@ class DocDB { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameters', @@ -1759,8 +1841,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParametersResult', ); return DBClusterParameterGroupDetails.fromXml($result); @@ -1786,8 +1866,9 @@ class DocDB { describeDBClusterSnapshotAttributes({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshotAttributes', @@ -1795,8 +1876,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotAttributesResult', ); return DescribeDBClusterSnapshotAttributesResult.fromXml($result); @@ -1913,16 +1992,24 @@ class DocDB { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshots', @@ -1930,8 +2017,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotsResult', ); return DBClusterSnapshotMessage.fromXml($result); @@ -1992,11 +2077,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusters', @@ -2004,8 +2097,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClustersResult', ); return DBClusterMessage.fromXml($result); @@ -2075,19 +2166,26 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - listSupportedTimezones - ?.also((arg) => $request['ListSupportedTimezones'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (listSupportedTimezones != null) + 'ListSupportedTimezones': listSupportedTimezones.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -2095,8 +2193,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -2160,11 +2256,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -2172,8 +2276,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -2211,11 +2313,18 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -2223,8 +2332,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -2261,11 +2368,18 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultClusterParameters', @@ -2273,8 +2387,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultClusterParametersResult', ); return DescribeEngineDefaultClusterParametersResult.fromXml($result); @@ -2295,9 +2407,16 @@ class DocDB { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -2305,8 +2424,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -2350,11 +2467,18 @@ class DocDB { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -2362,8 +2486,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -2460,16 +2582,28 @@ class DocDB { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -2477,8 +2611,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -2521,12 +2653,19 @@ class DocDB { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalClusters', @@ -2534,8 +2673,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalClustersResult', ); return GlobalClustersMessage.fromXml($result); @@ -2589,15 +2726,22 @@ class DocDB { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -2605,8 +2749,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -2659,11 +2801,18 @@ class DocDB { int? maxRecords, String? resourceIdentifier, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribePendingMaintenanceActions', @@ -2671,8 +2820,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePendingMaintenanceActionsMessage'], - shapes: shapes, resultWrapper: 'DescribePendingMaintenanceActionsResult', ); return PendingMaintenanceActionsMessage.fromXml($result); @@ -2713,10 +2860,12 @@ class DocDB { String? dBClusterIdentifier, String? targetDBInstanceIdentifier, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - targetDBInstanceIdentifier - ?.also((arg) => $request['TargetDBInstanceIdentifier'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (targetDBInstanceIdentifier != null) + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverDBCluster', @@ -2724,8 +2873,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverDBClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverDBClusterResult', ); return FailoverDBClusterResult.fromXml($result); @@ -2747,9 +2894,16 @@ class DocDB { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -2757,8 +2911,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -2961,29 +3113,39 @@ class DocDB { String? storageType, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - newDBClusterIdentifier - ?.also((arg) => $request['NewDBClusterIdentifier'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (newDBClusterIdentifier != null) + 'NewDBClusterIdentifier': newDBClusterIdentifier, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (storageType != null) 'StorageType': storageType, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBCluster', @@ -2991,8 +3153,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterResult', ); return ModifyDBClusterResult.fromXml($result); @@ -3029,9 +3189,15 @@ class DocDB { required String dBClusterParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterParameterGroup', @@ -3039,8 +3205,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -3107,11 +3271,22 @@ class DocDB { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterSnapshotAttribute', @@ -3119,8 +3294,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterSnapshotAttributeResult', ); return ModifyDBClusterSnapshotAttributeResult.fromXml($result); @@ -3288,26 +3461,29 @@ class DocDB { String? preferredMaintenanceWindow, int? promotionTier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - certificateRotationRestart - ?.also((arg) => $request['CertificateRotationRestart'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (certificateRotationRestart != null) + 'CertificateRotationRestart': certificateRotationRestart.toString(), + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -3315,8 +3491,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -3351,11 +3525,16 @@ class DocDB { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -3363,8 +3542,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -3409,12 +3586,18 @@ class DocDB { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -3422,8 +3605,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -3475,11 +3656,13 @@ class DocDB { bool? deletionProtection, String? newGlobalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - newGlobalClusterIdentifier - ?.also((arg) => $request['NewGlobalClusterIdentifier'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (newGlobalClusterIdentifier != null) + 'NewGlobalClusterIdentifier': newGlobalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalCluster', @@ -3487,8 +3670,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalClusterResult', ); return ModifyGlobalClusterResult.fromXml($result); @@ -3527,9 +3708,10 @@ class DocDB { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -3537,8 +3719,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -3566,9 +3746,10 @@ class DocDB { required String dbClusterIdentifier, required String globalClusterIdentifier, }) async { - final $request = {}; - $request['DbClusterIdentifier'] = dbClusterIdentifier; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'DbClusterIdentifier': dbClusterIdentifier, + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RemoveFromGlobalCluster', @@ -3576,8 +3757,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveFromGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'RemoveFromGlobalClusterResult', ); return RemoveFromGlobalClusterResult.fromXml($result); @@ -3601,9 +3780,10 @@ class DocDB { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -3611,8 +3791,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -3634,9 +3812,14 @@ class DocDB { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -3644,8 +3827,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -3681,10 +3862,18 @@ class DocDB { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBClusterParameterGroup', @@ -3692,8 +3881,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -3869,23 +4056,48 @@ class DocDB { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['SnapshotIdentifier'] = snapshotIdentifier; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - port?.also((arg) => $request['Port'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'SnapshotIdentifier': snapshotIdentifier, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (port != null) 'Port': port.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromSnapshot', @@ -3893,8 +4105,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromSnapshotResult', ); return RestoreDBClusterFromSnapshotResult.fromXml($result); @@ -4094,23 +4304,42 @@ class DocDB { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['SourceDBClusterIdentifier'] = sourceDBClusterIdentifier; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - port?.also((arg) => $request['Port'] = arg); - restoreToTime - ?.also((arg) => $request['RestoreToTime'] = _s.iso8601ToJson(arg)); - restoreType?.also((arg) => $request['RestoreType'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (port != null) 'Port': port.toString(), + if (restoreToTime != null) + 'RestoreToTime': _s.iso8601ToJson(restoreToTime), + if (restoreType != null) 'RestoreType': restoreType, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterToPointInTime', @@ -4118,8 +4347,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterToPointInTimeResult', ); return RestoreDBClusterToPointInTimeResult.fromXml($result); @@ -4140,8 +4367,9 @@ class DocDB { Future startDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBCluster', @@ -4149,8 +4377,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBClusterMessage'], - shapes: shapes, resultWrapper: 'StartDBClusterResult', ); return StartDBClusterResult.fromXml($result); @@ -4172,8 +4398,9 @@ class DocDB { Future stopDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBCluster', @@ -4181,8 +4408,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBClusterMessage'], - shapes: shapes, resultWrapper: 'StopDBClusterResult', ); return StopDBClusterResult.fromXml($result); @@ -4236,9 +4461,10 @@ class DocDB { required String globalClusterIdentifier, required String targetDbClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'SwitchoverGlobalCluster', @@ -4246,8 +4472,6 @@ class DocDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'SwitchoverGlobalClusterResult', ); return SwitchoverGlobalClusterResult.fromXml($result); @@ -4456,6 +4680,25 @@ class CloudwatchLogsExportConfiguration { if (enableLogTypes != null) 'EnableLogTypes': enableLogTypes, }; } + + Map toQueryMap() { + final disableLogTypes = this.disableLogTypes; + final enableLogTypes = this.enableLogTypes; + return { + if (disableLogTypes != null) + if (disableLogTypes.isEmpty) + 'DisableLogTypes': '' + else + for (var i1 = 0; i1 < disableLogTypes.length; i1++) + 'DisableLogTypes.member.${i1 + 1}': disableLogTypes[i1], + if (enableLogTypes != null) + if (enableLogTypes.isEmpty) + 'EnableLogTypes': '' + else + for (var i1 = 0; i1 < enableLogTypes.length; i1++) + 'EnableLogTypes.member.${i1 + 1}': enableLogTypes[i1], + }; + } } class CopyDBClusterParameterGroupResult { @@ -6112,6 +6355,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } /// A data type representing an Amazon DocumentDB global cluster. @@ -6488,6 +6744,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } /// A list of the log types whose configuration is still pending. These log @@ -6938,6 +7220,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Represents the output of ListTagsForResource. diff --git a/generated/aws_elasticache_api/lib/elasticache-2015-02-02.dart b/generated/aws_elasticache_api/lib/elasticache-2015-02-02.dart index d2e7e53e2..925ff54c4 100644 --- a/generated/aws_elasticache_api/lib/elasticache-2015-02-02.dart +++ b/generated/aws_elasticache_api/lib/elasticache-2015-02-02.dart @@ -17,14 +17,12 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'elasticache-2015-02-02.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon ElastiCache is a web service that makes it easier to set up, operate, /// and scale a distributed cache in the cloud. class ElastiCache { final _s.QueryProtocol _protocol; - final Map shapes; ElastiCache({ required String region, @@ -32,7 +30,7 @@ class ElastiCache { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticache', @@ -41,9 +39,7 @@ class ElastiCache { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -109,9 +105,15 @@ class ElastiCache { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'AddTagsToResource', @@ -119,8 +121,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, resultWrapper: 'AddTagsToResourceResult', ); return TagListMessage.fromXml($result); @@ -157,10 +157,11 @@ class ElastiCache { required String eC2SecurityGroupName, required String eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; - $request['EC2SecurityGroupName'] = eC2SecurityGroupName; - $request['EC2SecurityGroupOwnerId'] = eC2SecurityGroupOwnerId; + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + 'EC2SecurityGroupName': eC2SecurityGroupName, + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeCacheSecurityGroupIngress', @@ -168,8 +169,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeCacheSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeCacheSecurityGroupIngressResult', ); return AuthorizeCacheSecurityGroupIngressResult.fromXml($result); @@ -196,10 +195,21 @@ class ElastiCache { List? cacheClusterIds, List? replicationGroupIds, }) async { - final $request = {}; - $request['ServiceUpdateName'] = serviceUpdateName; - cacheClusterIds?.also((arg) => $request['CacheClusterIds'] = arg); - replicationGroupIds?.also((arg) => $request['ReplicationGroupIds'] = arg); + final $request = { + 'ServiceUpdateName': serviceUpdateName, + if (cacheClusterIds != null) + if (cacheClusterIds.isEmpty) + 'CacheClusterIds': '' + else + for (var i1 = 0; i1 < cacheClusterIds.length; i1++) + 'CacheClusterIds.member.${i1 + 1}': cacheClusterIds[i1], + if (replicationGroupIds != null) + if (replicationGroupIds.isEmpty) + 'ReplicationGroupIds': '' + else + for (var i1 = 0; i1 < replicationGroupIds.length; i1++) + 'ReplicationGroupIds.member.${i1 + 1}': replicationGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'BatchApplyUpdateAction', @@ -207,8 +217,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchApplyUpdateActionMessage'], - shapes: shapes, resultWrapper: 'BatchApplyUpdateActionResult', ); return UpdateActionResultsMessage.fromXml($result); @@ -235,10 +243,21 @@ class ElastiCache { List? cacheClusterIds, List? replicationGroupIds, }) async { - final $request = {}; - $request['ServiceUpdateName'] = serviceUpdateName; - cacheClusterIds?.also((arg) => $request['CacheClusterIds'] = arg); - replicationGroupIds?.also((arg) => $request['ReplicationGroupIds'] = arg); + final $request = { + 'ServiceUpdateName': serviceUpdateName, + if (cacheClusterIds != null) + if (cacheClusterIds.isEmpty) + 'CacheClusterIds': '' + else + for (var i1 = 0; i1 < cacheClusterIds.length; i1++) + 'CacheClusterIds.member.${i1 + 1}': cacheClusterIds[i1], + if (replicationGroupIds != null) + if (replicationGroupIds.isEmpty) + 'ReplicationGroupIds': '' + else + for (var i1 = 0; i1 < replicationGroupIds.length; i1++) + 'ReplicationGroupIds.member.${i1 + 1}': replicationGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'BatchStopUpdateAction', @@ -246,8 +265,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchStopUpdateActionMessage'], - shapes: shapes, resultWrapper: 'BatchStopUpdateActionResult', ); return UpdateActionResultsMessage.fromXml($result); @@ -270,9 +287,10 @@ class ElastiCache { required String replicationGroupId, bool? force, }) async { - final $request = {}; - $request['ReplicationGroupId'] = replicationGroupId; - force?.also((arg) => $request['Force'] = arg); + final $request = { + 'ReplicationGroupId': replicationGroupId, + if (force != null) 'Force': force.toString(), + }; final $result = await _protocol.send( $request, action: 'CompleteMigration', @@ -280,8 +298,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CompleteMigrationMessage'], - shapes: shapes, resultWrapper: 'CompleteMigrationResult', ); return CompleteMigrationResponse.fromXml($result); @@ -319,13 +335,18 @@ class ElastiCache { String? kmsKeyId, List? tags, }) async { - final $request = {}; - $request['SourceServerlessCacheSnapshotName'] = - sourceServerlessCacheSnapshotName; - $request['TargetServerlessCacheSnapshotName'] = - targetServerlessCacheSnapshotName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceServerlessCacheSnapshotName': sourceServerlessCacheSnapshotName, + 'TargetServerlessCacheSnapshotName': targetServerlessCacheSnapshotName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyServerlessCacheSnapshot', @@ -333,8 +354,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'CopyServerlessCacheSnapshotResult', ); return CopyServerlessCacheSnapshotResponse.fromXml($result); @@ -475,12 +494,19 @@ class ElastiCache { List? tags, String? targetBucket, }) async { - final $request = {}; - $request['SourceSnapshotName'] = sourceSnapshotName; - $request['TargetSnapshotName'] = targetSnapshotName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetBucket?.also((arg) => $request['TargetBucket'] = arg); + final $request = { + 'SourceSnapshotName': sourceSnapshotName, + 'TargetSnapshotName': targetSnapshotName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetBucket != null) 'TargetBucket': targetBucket, + }; final $result = await _protocol.send( $request, action: 'CopySnapshot', @@ -488,8 +514,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopySnapshotMessage'], - shapes: shapes, resultWrapper: 'CopySnapshotResult', ); return CopySnapshotResult.fromXml($result); @@ -941,46 +965,88 @@ class ElastiCache { List? tags, bool? transitEncryptionEnabled, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - aZMode?.also((arg) => $request['AZMode'] = arg.toValue()); - authToken?.also((arg) => $request['AuthToken'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - cacheSubnetGroupName?.also((arg) => $request['CacheSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg.toValue()); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - numCacheNodes?.also((arg) => $request['NumCacheNodes'] = arg); - outpostMode?.also((arg) => $request['OutpostMode'] = arg.toValue()); - port?.also((arg) => $request['Port'] = arg); - preferredAvailabilityZone - ?.also((arg) => $request['PreferredAvailabilityZone'] = arg); - preferredAvailabilityZones - ?.also((arg) => $request['PreferredAvailabilityZones'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - preferredOutpostArn?.also((arg) => $request['PreferredOutpostArn'] = arg); - preferredOutpostArns?.also((arg) => $request['PreferredOutpostArns'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotArns?.also((arg) => $request['SnapshotArns'] = arg); - snapshotName?.also((arg) => $request['SnapshotName'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - transitEncryptionEnabled - ?.also((arg) => $request['TransitEncryptionEnabled'] = arg); + final $request = { + 'CacheClusterId': cacheClusterId, + if (aZMode != null) 'AZMode': aZMode.toValue(), + if (authToken != null) 'AuthToken': authToken, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (cacheSubnetGroupName != null) + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (networkType != null) 'NetworkType': networkType.toValue(), + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (numCacheNodes != null) 'NumCacheNodes': numCacheNodes.toString(), + if (outpostMode != null) 'OutpostMode': outpostMode.toValue(), + if (port != null) 'Port': port.toString(), + if (preferredAvailabilityZone != null) + 'PreferredAvailabilityZone': preferredAvailabilityZone, + if (preferredAvailabilityZones != null) + if (preferredAvailabilityZones.isEmpty) + 'PreferredAvailabilityZones': '' + else + for (var i1 = 0; i1 < preferredAvailabilityZones.length; i1++) + 'PreferredAvailabilityZones.PreferredAvailabilityZone.${i1 + 1}': + preferredAvailabilityZones[i1], + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (preferredOutpostArn != null) + 'PreferredOutpostArn': preferredOutpostArn, + if (preferredOutpostArns != null) + if (preferredOutpostArns.isEmpty) + 'PreferredOutpostArns': '' + else + for (var i1 = 0; i1 < preferredOutpostArns.length; i1++) + 'PreferredOutpostArns.PreferredOutpostArn.${i1 + 1}': + preferredOutpostArns[i1], + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotArns != null) + if (snapshotArns.isEmpty) + 'SnapshotArns': '' + else + for (var i1 = 0; i1 < snapshotArns.length; i1++) + 'SnapshotArns.SnapshotArn.${i1 + 1}': snapshotArns[i1], + if (snapshotName != null) 'SnapshotName': snapshotName, + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (transitEncryptionEnabled != null) + 'TransitEncryptionEnabled': transitEncryptionEnabled.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateCacheCluster', @@ -988,8 +1054,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheClusterMessage'], - shapes: shapes, resultWrapper: 'CreateCacheClusterResult', ); return CreateCacheClusterResult.fromXml($result); @@ -1049,11 +1113,18 @@ class ElastiCache { required String description, List? tags, }) async { - final $request = {}; - $request['CacheParameterGroupFamily'] = cacheParameterGroupFamily; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CacheParameterGroupFamily': cacheParameterGroupFamily, + 'CacheParameterGroupName': cacheParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateCacheParameterGroup', @@ -1061,8 +1132,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateCacheParameterGroupResult', ); return CreateCacheParameterGroupResult.fromXml($result); @@ -1103,10 +1172,17 @@ class ElastiCache { required String description, List? tags, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateCacheSecurityGroup', @@ -1114,8 +1190,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateCacheSecurityGroupResult', ); return CreateCacheSecurityGroupResult.fromXml($result); @@ -1157,11 +1231,22 @@ class ElastiCache { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['CacheSubnetGroupDescription'] = cacheSubnetGroupDescription; - $request['CacheSubnetGroupName'] = cacheSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CacheSubnetGroupDescription': cacheSubnetGroupDescription, + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateCacheSubnetGroup', @@ -1169,8 +1254,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCacheSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateCacheSubnetGroupResult', ); return CreateCacheSubnetGroupResult.fromXml($result); @@ -1227,11 +1310,12 @@ class ElastiCache { required String primaryReplicationGroupId, String? globalReplicationGroupDescription, }) async { - final $request = {}; - $request['GlobalReplicationGroupIdSuffix'] = globalReplicationGroupIdSuffix; - $request['PrimaryReplicationGroupId'] = primaryReplicationGroupId; - globalReplicationGroupDescription - ?.also((arg) => $request['GlobalReplicationGroupDescription'] = arg); + final $request = { + 'GlobalReplicationGroupIdSuffix': globalReplicationGroupIdSuffix, + 'PrimaryReplicationGroupId': primaryReplicationGroupId, + if (globalReplicationGroupDescription != null) + 'GlobalReplicationGroupDescription': globalReplicationGroupDescription, + }; final $result = await _protocol.send( $request, action: 'CreateGlobalReplicationGroup', @@ -1239,8 +1323,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalReplicationGroupResult', ); return CreateGlobalReplicationGroupResult.fromXml($result); @@ -1876,60 +1958,109 @@ class ElastiCache { TransitEncryptionMode? transitEncryptionMode, List? userGroupIds, }) async { - final $request = {}; - $request['ReplicationGroupDescription'] = replicationGroupDescription; - $request['ReplicationGroupId'] = replicationGroupId; - atRestEncryptionEnabled - ?.also((arg) => $request['AtRestEncryptionEnabled'] = arg); - authToken?.also((arg) => $request['AuthToken'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - automaticFailoverEnabled - ?.also((arg) => $request['AutomaticFailoverEnabled'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - cacheSubnetGroupName?.also((arg) => $request['CacheSubnetGroupName'] = arg); - clusterMode?.also((arg) => $request['ClusterMode'] = arg.toValue()); - dataTieringEnabled?.also((arg) => $request['DataTieringEnabled'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalReplicationGroupId - ?.also((arg) => $request['GlobalReplicationGroupId'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - multiAZEnabled?.also((arg) => $request['MultiAZEnabled'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg.toValue()); - nodeGroupConfiguration - ?.also((arg) => $request['NodeGroupConfiguration'] = arg); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - numCacheClusters?.also((arg) => $request['NumCacheClusters'] = arg); - numNodeGroups?.also((arg) => $request['NumNodeGroups'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredCacheClusterAZs - ?.also((arg) => $request['PreferredCacheClusterAZs'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - primaryClusterId?.also((arg) => $request['PrimaryClusterId'] = arg); - replicasPerNodeGroup?.also((arg) => $request['ReplicasPerNodeGroup'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - serverlessCacheSnapshotName - ?.also((arg) => $request['ServerlessCacheSnapshotName'] = arg); - snapshotArns?.also((arg) => $request['SnapshotArns'] = arg); - snapshotName?.also((arg) => $request['SnapshotName'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - transitEncryptionEnabled - ?.also((arg) => $request['TransitEncryptionEnabled'] = arg); - transitEncryptionMode - ?.also((arg) => $request['TransitEncryptionMode'] = arg.toValue()); - userGroupIds?.also((arg) => $request['UserGroupIds'] = arg); + final $request = { + 'ReplicationGroupDescription': replicationGroupDescription, + 'ReplicationGroupId': replicationGroupId, + if (atRestEncryptionEnabled != null) + 'AtRestEncryptionEnabled': atRestEncryptionEnabled.toString(), + if (authToken != null) 'AuthToken': authToken, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (automaticFailoverEnabled != null) + 'AutomaticFailoverEnabled': automaticFailoverEnabled.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (cacheSubnetGroupName != null) + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (clusterMode != null) 'ClusterMode': clusterMode.toValue(), + if (dataTieringEnabled != null) + 'DataTieringEnabled': dataTieringEnabled.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalReplicationGroupId != null) + 'GlobalReplicationGroupId': globalReplicationGroupId, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (multiAZEnabled != null) 'MultiAZEnabled': multiAZEnabled.toString(), + if (networkType != null) 'NetworkType': networkType.toValue(), + if (nodeGroupConfiguration != null) + if (nodeGroupConfiguration.isEmpty) + 'NodeGroupConfiguration': '' + else + for (var i1 = 0; i1 < nodeGroupConfiguration.length; i1++) + for (var e3 in nodeGroupConfiguration[i1].toQueryMap().entries) + 'NodeGroupConfiguration.NodeGroupConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (numCacheClusters != null) + 'NumCacheClusters': numCacheClusters.toString(), + if (numNodeGroups != null) 'NumNodeGroups': numNodeGroups.toString(), + if (port != null) 'Port': port.toString(), + if (preferredCacheClusterAZs != null) + if (preferredCacheClusterAZs.isEmpty) + 'PreferredCacheClusterAZs': '' + else + for (var i1 = 0; i1 < preferredCacheClusterAZs.length; i1++) + 'PreferredCacheClusterAZs.AvailabilityZone.${i1 + 1}': + preferredCacheClusterAZs[i1], + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (primaryClusterId != null) 'PrimaryClusterId': primaryClusterId, + if (replicasPerNodeGroup != null) + 'ReplicasPerNodeGroup': replicasPerNodeGroup.toString(), + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (serverlessCacheSnapshotName != null) + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + if (snapshotArns != null) + if (snapshotArns.isEmpty) + 'SnapshotArns': '' + else + for (var i1 = 0; i1 < snapshotArns.length; i1++) + 'SnapshotArns.SnapshotArn.${i1 + 1}': snapshotArns[i1], + if (snapshotName != null) 'SnapshotName': snapshotName, + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (transitEncryptionEnabled != null) + 'TransitEncryptionEnabled': transitEncryptionEnabled.toString(), + if (transitEncryptionMode != null) + 'TransitEncryptionMode': transitEncryptionMode.toValue(), + if (userGroupIds != null) + if (userGroupIds.isEmpty) + 'UserGroupIds': '' + else + for (var i1 = 0; i1 < userGroupIds.length; i1++) + 'UserGroupIds.member.${i1 + 1}': userGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateReplicationGroup', @@ -1937,8 +2068,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'CreateReplicationGroupResult', ); return CreateReplicationGroupResult.fromXml($result); @@ -2031,22 +2160,46 @@ class ElastiCache { List? tags, String? userGroupId, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['ServerlessCacheName'] = serverlessCacheName; - cacheUsageLimits?.also((arg) => $request['CacheUsageLimits'] = arg); - dailySnapshotTime?.also((arg) => $request['DailySnapshotTime'] = arg); - description?.also((arg) => $request['Description'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotArnsToRestore - ?.also((arg) => $request['SnapshotArnsToRestore'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - subnetIds?.also((arg) => $request['SubnetIds'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - userGroupId?.also((arg) => $request['UserGroupId'] = arg); + final $request = { + 'Engine': engine, + 'ServerlessCacheName': serverlessCacheName, + if (cacheUsageLimits != null) + for (var e1 in cacheUsageLimits.toQueryMap().entries) + 'CacheUsageLimits.${e1.key}': e1.value, + if (dailySnapshotTime != null) 'DailySnapshotTime': dailySnapshotTime, + if (description != null) 'Description': description, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotArnsToRestore != null) + if (snapshotArnsToRestore.isEmpty) + 'SnapshotArnsToRestore': '' + else + for (var i1 = 0; i1 < snapshotArnsToRestore.length; i1++) + 'SnapshotArnsToRestore.SnapshotArn.${i1 + 1}': + snapshotArnsToRestore[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (subnetIds != null) + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetId.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (userGroupId != null) 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'CreateServerlessCache', @@ -2054,8 +2207,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServerlessCacheRequest'], - shapes: shapes, resultWrapper: 'CreateServerlessCacheResult', ); return CreateServerlessCacheResponse.fromXml($result); @@ -2094,11 +2245,18 @@ class ElastiCache { String? kmsKeyId, List? tags, }) async { - final $request = {}; - $request['ServerlessCacheName'] = serverlessCacheName; - $request['ServerlessCacheSnapshotName'] = serverlessCacheSnapshotName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ServerlessCacheName': serverlessCacheName, + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateServerlessCacheSnapshot', @@ -2106,8 +2264,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'CreateServerlessCacheSnapshotResult', ); return CreateServerlessCacheSnapshotResponse.fromXml($result); @@ -2154,12 +2310,19 @@ class ElastiCache { String? replicationGroupId, List? tags, }) async { - final $request = {}; - $request['SnapshotName'] = snapshotName; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnapshotName': snapshotName, + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSnapshot', @@ -2167,8 +2330,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateSnapshotResult', ); return CreateSnapshotResult.fromXml($result); @@ -2222,15 +2383,30 @@ class ElastiCache { List? passwords, List? tags, }) async { - final $request = {}; - $request['AccessString'] = accessString; - $request['Engine'] = engine; - $request['UserId'] = userId; - $request['UserName'] = userName; - authenticationMode?.also((arg) => $request['AuthenticationMode'] = arg); - noPasswordRequired?.also((arg) => $request['NoPasswordRequired'] = arg); - passwords?.also((arg) => $request['Passwords'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'AccessString': accessString, + 'Engine': engine, + 'UserId': userId, + 'UserName': userName, + if (authenticationMode != null) + for (var e1 in authenticationMode.toQueryMap().entries) + 'AuthenticationMode.${e1.key}': e1.value, + if (noPasswordRequired != null) + 'NoPasswordRequired': noPasswordRequired.toString(), + if (passwords != null) + if (passwords.isEmpty) + 'Passwords': '' + else + for (var i1 = 0; i1 < passwords.length; i1++) + 'Passwords.member.${i1 + 1}': passwords[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateUser', @@ -2238,8 +2414,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUserMessage'], - shapes: shapes, resultWrapper: 'CreateUserResult', ); return User.fromXml($result); @@ -2278,11 +2452,23 @@ class ElastiCache { List? tags, List? userIds, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['UserGroupId'] = userGroupId; - tags?.also((arg) => $request['Tags'] = arg); - userIds?.also((arg) => $request['UserIds'] = arg); + final $request = { + 'Engine': engine, + 'UserGroupId': userGroupId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (userIds != null) + if (userIds.isEmpty) + 'UserIds': '' + else + for (var i1 = 0; i1 < userIds.length; i1++) + 'UserIds.member.${i1 + 1}': userIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateUserGroup', @@ -2290,8 +2476,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUserGroupMessage'], - shapes: shapes, resultWrapper: 'CreateUserGroupResult', ); return UserGroup.fromXml($result); @@ -2336,14 +2520,25 @@ class ElastiCache { List? globalNodeGroupsToRemove, List? globalNodeGroupsToRetain, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['NodeGroupCount'] = nodeGroupCount; - globalNodeGroupsToRemove - ?.also((arg) => $request['GlobalNodeGroupsToRemove'] = arg); - globalNodeGroupsToRetain - ?.also((arg) => $request['GlobalNodeGroupsToRetain'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'NodeGroupCount': nodeGroupCount.toString(), + if (globalNodeGroupsToRemove != null) + if (globalNodeGroupsToRemove.isEmpty) + 'GlobalNodeGroupsToRemove': '' + else + for (var i1 = 0; i1 < globalNodeGroupsToRemove.length; i1++) + 'GlobalNodeGroupsToRemove.GlobalNodeGroupId.${i1 + 1}': + globalNodeGroupsToRemove[i1], + if (globalNodeGroupsToRetain != null) + if (globalNodeGroupsToRetain.isEmpty) + 'GlobalNodeGroupsToRetain': '' + else + for (var i1 = 0; i1 < globalNodeGroupsToRetain.length; i1++) + 'GlobalNodeGroupsToRetain.GlobalNodeGroupId.${i1 + 1}': + globalNodeGroupsToRetain[i1], + }; final $result = await _protocol.send( $request, action: 'DecreaseNodeGroupsInGlobalReplicationGroup', @@ -2351,8 +2546,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DecreaseNodeGroupsInGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DecreaseNodeGroupsInGlobalReplicationGroupResult', ); return DecreaseNodeGroupsInGlobalReplicationGroupResult.fromXml($result); @@ -2429,12 +2622,26 @@ class ElastiCache { List? replicaConfiguration, List? replicasToRemove, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['ReplicationGroupId'] = replicationGroupId; - newReplicaCount?.also((arg) => $request['NewReplicaCount'] = arg); - replicaConfiguration?.also((arg) => $request['ReplicaConfiguration'] = arg); - replicasToRemove?.also((arg) => $request['ReplicasToRemove'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'ReplicationGroupId': replicationGroupId, + if (newReplicaCount != null) + 'NewReplicaCount': newReplicaCount.toString(), + if (replicaConfiguration != null) + if (replicaConfiguration.isEmpty) + 'ReplicaConfiguration': '' + else + for (var i1 = 0; i1 < replicaConfiguration.length; i1++) + for (var e3 in replicaConfiguration[i1].toQueryMap().entries) + 'ReplicaConfiguration.ConfigureShard.${i1 + 1}.${e3.key}': + e3.value, + if (replicasToRemove != null) + if (replicasToRemove.isEmpty) + 'ReplicasToRemove': '' + else + for (var i1 = 0; i1 < replicasToRemove.length; i1++) + 'ReplicasToRemove.member.${i1 + 1}': replicasToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'DecreaseReplicaCount', @@ -2442,8 +2649,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DecreaseReplicaCountMessage'], - shapes: shapes, resultWrapper: 'DecreaseReplicaCountResult', ); return DecreaseReplicaCountResult.fromXml($result); @@ -2501,10 +2706,11 @@ class ElastiCache { required String cacheClusterId, String? finalSnapshotIdentifier, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - finalSnapshotIdentifier - ?.also((arg) => $request['FinalSnapshotIdentifier'] = arg); + final $request = { + 'CacheClusterId': cacheClusterId, + if (finalSnapshotIdentifier != null) + 'FinalSnapshotIdentifier': finalSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteCacheCluster', @@ -2512,8 +2718,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteCacheClusterResult', ); return DeleteCacheClusterResult.fromXml($result); @@ -2537,8 +2741,9 @@ class ElastiCache { Future deleteCacheParameterGroup({ required String cacheParameterGroupName, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteCacheParameterGroup', @@ -2546,8 +2751,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheParameterGroupMessage'], - shapes: shapes, ); } @@ -2570,8 +2773,9 @@ class ElastiCache { Future deleteCacheSecurityGroup({ required String cacheSecurityGroupName, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteCacheSecurityGroup', @@ -2579,8 +2783,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheSecurityGroupMessage'], - shapes: shapes, ); } @@ -2601,8 +2803,9 @@ class ElastiCache { Future deleteCacheSubnetGroup({ required String cacheSubnetGroupName, }) async { - final $request = {}; - $request['CacheSubnetGroupName'] = cacheSubnetGroupName; + final $request = { + 'CacheSubnetGroupName': cacheSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteCacheSubnetGroup', @@ -2610,8 +2813,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCacheSubnetGroupMessage'], - shapes: shapes, ); } @@ -2653,9 +2854,10 @@ class ElastiCache { required String globalReplicationGroupId, required bool retainPrimaryReplicationGroup, }) async { - final $request = {}; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['RetainPrimaryReplicationGroup'] = retainPrimaryReplicationGroup; + final $request = { + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'RetainPrimaryReplicationGroup': retainPrimaryReplicationGroup.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalReplicationGroup', @@ -2663,8 +2865,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalReplicationGroupResult', ); return DeleteGlobalReplicationGroupResult.fromXml($result); @@ -2709,11 +2909,13 @@ class ElastiCache { String? finalSnapshotIdentifier, bool? retainPrimaryCluster, }) async { - final $request = {}; - $request['ReplicationGroupId'] = replicationGroupId; - finalSnapshotIdentifier - ?.also((arg) => $request['FinalSnapshotIdentifier'] = arg); - retainPrimaryCluster?.also((arg) => $request['RetainPrimaryCluster'] = arg); + final $request = { + 'ReplicationGroupId': replicationGroupId, + if (finalSnapshotIdentifier != null) + 'FinalSnapshotIdentifier': finalSnapshotIdentifier, + if (retainPrimaryCluster != null) + 'RetainPrimaryCluster': retainPrimaryCluster.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteReplicationGroup', @@ -2721,8 +2923,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteReplicationGroupResult', ); return DeleteReplicationGroupResult.fromXml($result); @@ -2749,9 +2949,10 @@ class ElastiCache { required String serverlessCacheName, String? finalSnapshotName, }) async { - final $request = {}; - $request['ServerlessCacheName'] = serverlessCacheName; - finalSnapshotName?.also((arg) => $request['FinalSnapshotName'] = arg); + final $request = { + 'ServerlessCacheName': serverlessCacheName, + if (finalSnapshotName != null) 'FinalSnapshotName': finalSnapshotName, + }; final $result = await _protocol.send( $request, action: 'DeleteServerlessCache', @@ -2759,8 +2960,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServerlessCacheRequest'], - shapes: shapes, resultWrapper: 'DeleteServerlessCacheResult', ); return DeleteServerlessCacheResponse.fromXml($result); @@ -2778,8 +2977,9 @@ class ElastiCache { Future deleteServerlessCacheSnapshot({ required String serverlessCacheSnapshotName, }) async { - final $request = {}; - $request['ServerlessCacheSnapshotName'] = serverlessCacheSnapshotName; + final $request = { + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + }; final $result = await _protocol.send( $request, action: 'DeleteServerlessCacheSnapshot', @@ -2787,8 +2987,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'DeleteServerlessCacheSnapshotResult', ); return DeleteServerlessCacheSnapshotResponse.fromXml($result); @@ -2811,8 +3009,9 @@ class ElastiCache { Future deleteSnapshot({ required String snapshotName, }) async { - final $request = {}; - $request['SnapshotName'] = snapshotName; + final $request = { + 'SnapshotName': snapshotName, + }; final $result = await _protocol.send( $request, action: 'DeleteSnapshot', @@ -2820,8 +3019,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteSnapshotResult', ); return DeleteSnapshotResult.fromXml($result); @@ -2844,8 +3041,9 @@ class ElastiCache { Future deleteUser({ required String userId, }) async { - final $request = {}; - $request['UserId'] = userId; + final $request = { + 'UserId': userId, + }; final $result = await _protocol.send( $request, action: 'DeleteUser', @@ -2853,8 +3051,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserMessage'], - shapes: shapes, resultWrapper: 'DeleteUserResult', ); return User.fromXml($result); @@ -2876,8 +3072,9 @@ class ElastiCache { Future deleteUserGroup({ required String userGroupId, }) async { - final $request = {}; - $request['UserGroupId'] = userGroupId; + final $request = { + 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'DeleteUserGroup', @@ -2885,8 +3082,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteUserGroupResult', ); return UserGroup.fromXml($result); @@ -2957,13 +3152,16 @@ class ElastiCache { bool? showCacheClustersNotInReplicationGroups, bool? showCacheNodeInfo, }) async { - final $request = {}; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - showCacheClustersNotInReplicationGroups?.also( - (arg) => $request['ShowCacheClustersNotInReplicationGroups'] = arg); - showCacheNodeInfo?.also((arg) => $request['ShowCacheNodeInfo'] = arg); + final $request = { + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (showCacheClustersNotInReplicationGroups != null) + 'ShowCacheClustersNotInReplicationGroups': + showCacheClustersNotInReplicationGroups.toString(), + if (showCacheNodeInfo != null) + 'ShowCacheNodeInfo': showCacheNodeInfo.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheClusters', @@ -2971,8 +3169,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheClustersResult', ); return CacheClusterMessage.fromXml($result); @@ -3038,14 +3234,15 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheParameterGroupFamily - ?.also((arg) => $request['CacheParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheParameterGroupFamily != null) + 'CacheParameterGroupFamily': cacheParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheEngineVersions', @@ -3053,8 +3250,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheEngineVersionsResult', ); return CacheEngineVersionMessage.fromXml($result); @@ -3090,11 +3285,12 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheParameterGroups', @@ -3102,8 +3298,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheParameterGroupsResult', ); return CacheParameterGroupsMessage.fromXml($result); @@ -3145,11 +3339,12 @@ class ElastiCache { int? maxRecords, String? source, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeCacheParameters', @@ -3157,8 +3352,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheParametersResult', ); return CacheParameterGroupDetails.fromXml($result); @@ -3194,11 +3387,12 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheSecurityGroupName - ?.also((arg) => $request['CacheSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheSecurityGroupName != null) + 'CacheSecurityGroupName': cacheSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheSecurityGroups', @@ -3206,8 +3400,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheSecurityGroupsResult', ); return CacheSecurityGroupMessage.fromXml($result); @@ -3242,10 +3434,12 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - cacheSubnetGroupName?.also((arg) => $request['CacheSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (cacheSubnetGroupName != null) + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCacheSubnetGroups', @@ -3253,8 +3447,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCacheSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeCacheSubnetGroupsResult', ); return CacheSubnetGroupMessage.fromXml($result); @@ -3294,10 +3486,11 @@ class ElastiCache { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['CacheParameterGroupFamily'] = cacheParameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'CacheParameterGroupFamily': cacheParameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -3305,8 +3498,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -3369,14 +3560,15 @@ class ElastiCache { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -3384,8 +3576,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -3421,12 +3611,13 @@ class ElastiCache { int? maxRecords, bool? showMemberInfo, }) async { - final $request = {}; - globalReplicationGroupId - ?.also((arg) => $request['GlobalReplicationGroupId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - showMemberInfo?.also((arg) => $request['ShowMemberInfo'] = arg); + final $request = { + if (globalReplicationGroupId != null) + 'GlobalReplicationGroupId': globalReplicationGroupId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (showMemberInfo != null) 'ShowMemberInfo': showMemberInfo.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalReplicationGroups', @@ -3434,8 +3625,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalReplicationGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalReplicationGroupsResult', ); return DescribeGlobalReplicationGroupsResult.fromXml($result); @@ -3478,10 +3667,11 @@ class ElastiCache { int? maxRecords, String? replicationGroupId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'DescribeReplicationGroups', @@ -3489,8 +3679,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReplicationGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeReplicationGroupsResult', ); return ReplicationGroupMessage.fromXml($result); @@ -3697,16 +3885,18 @@ class ElastiCache { String? reservedCacheNodeId, String? reservedCacheNodesOfferingId, }) async { - final $request = {}; - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedCacheNodeId?.also((arg) => $request['ReservedCacheNodeId'] = arg); - reservedCacheNodesOfferingId - ?.also((arg) => $request['ReservedCacheNodesOfferingId'] = arg); + final $request = { + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedCacheNodeId != null) + 'ReservedCacheNodeId': reservedCacheNodeId, + if (reservedCacheNodesOfferingId != null) + 'ReservedCacheNodesOfferingId': reservedCacheNodesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedCacheNodes', @@ -3714,8 +3904,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedCacheNodesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedCacheNodesResult', ); return ReservedCacheNodeMessage.fromXml($result); @@ -3919,15 +4107,16 @@ class ElastiCache { String? productDescription, String? reservedCacheNodesOfferingId, }) async { - final $request = {}; - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedCacheNodesOfferingId - ?.also((arg) => $request['ReservedCacheNodesOfferingId'] = arg); + final $request = { + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedCacheNodesOfferingId != null) + 'ReservedCacheNodesOfferingId': reservedCacheNodesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedCacheNodesOfferings', @@ -3935,8 +4124,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedCacheNodesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedCacheNodesOfferingsResult', ); return ReservedCacheNodesOfferingMessage.fromXml($result); @@ -3983,13 +4170,15 @@ class ElastiCache { String? serverlessCacheSnapshotName, String? snapshotType, }) async { - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - serverlessCacheName?.also((arg) => $request['ServerlessCacheName'] = arg); - serverlessCacheSnapshotName - ?.also((arg) => $request['ServerlessCacheSnapshotName'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (serverlessCacheName != null) + 'ServerlessCacheName': serverlessCacheName, + if (serverlessCacheSnapshotName != null) + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeServerlessCacheSnapshots', @@ -3997,8 +4186,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServerlessCacheSnapshotsRequest'], - shapes: shapes, resultWrapper: 'DescribeServerlessCacheSnapshotsResult', ); return DescribeServerlessCacheSnapshotsResponse.fromXml($result); @@ -4032,10 +4219,12 @@ class ElastiCache { String? nextToken, String? serverlessCacheName, }) async { - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - serverlessCacheName?.also((arg) => $request['ServerlessCacheName'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (serverlessCacheName != null) + 'ServerlessCacheName': serverlessCacheName, + }; final $result = await _protocol.send( $request, action: 'DescribeServerlessCaches', @@ -4043,8 +4232,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServerlessCachesRequest'], - shapes: shapes, resultWrapper: 'DescribeServerlessCachesResult', ); return DescribeServerlessCachesResponse.fromXml($result); @@ -4076,12 +4263,18 @@ class ElastiCache { String? serviceUpdateName, List? serviceUpdateStatus, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - serviceUpdateName?.also((arg) => $request['ServiceUpdateName'] = arg); - serviceUpdateStatus?.also((arg) => - $request['ServiceUpdateStatus'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (serviceUpdateName != null) 'ServiceUpdateName': serviceUpdateName, + if (serviceUpdateStatus != null) + if (serviceUpdateStatus.isEmpty) + 'ServiceUpdateStatus': '' + else + for (var i1 = 0; i1 < serviceUpdateStatus.length; i1++) + 'ServiceUpdateStatus.member.${i1 + 1}': + serviceUpdateStatus[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeServiceUpdates', @@ -4089,8 +4282,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeServiceUpdatesMessage'], - shapes: shapes, resultWrapper: 'DescribeServiceUpdatesResult', ); return ServiceUpdatesMessage.fromXml($result); @@ -4155,14 +4346,16 @@ class ElastiCache { String? snapshotName, String? snapshotSource, }) async { - final $request = {}; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); - showNodeGroupConfig?.also((arg) => $request['ShowNodeGroupConfig'] = arg); - snapshotName?.also((arg) => $request['SnapshotName'] = arg); - snapshotSource?.also((arg) => $request['SnapshotSource'] = arg); + final $request = { + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + if (showNodeGroupConfig != null) + 'ShowNodeGroupConfig': showNodeGroupConfig.toString(), + if (snapshotName != null) 'SnapshotName': snapshotName, + if (snapshotSource != null) 'SnapshotSource': snapshotSource, + }; final $result = await _protocol.send( $request, action: 'DescribeSnapshots', @@ -4170,8 +4363,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeSnapshotsResult', ); return DescribeSnapshotsListMessage.fromXml($result); @@ -4228,21 +4419,43 @@ class ElastiCache { bool? showNodeLevelUpdateStatus, List? updateActionStatus, }) async { - final $request = {}; - cacheClusterIds?.also((arg) => $request['CacheClusterIds'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - replicationGroupIds?.also((arg) => $request['ReplicationGroupIds'] = arg); - serviceUpdateName?.also((arg) => $request['ServiceUpdateName'] = arg); - serviceUpdateStatus?.also((arg) => - $request['ServiceUpdateStatus'] = arg.map((e) => e.toValue()).toList()); - serviceUpdateTimeRange - ?.also((arg) => $request['ServiceUpdateTimeRange'] = arg); - showNodeLevelUpdateStatus - ?.also((arg) => $request['ShowNodeLevelUpdateStatus'] = arg); - updateActionStatus?.also((arg) => - $request['UpdateActionStatus'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (cacheClusterIds != null) + if (cacheClusterIds.isEmpty) + 'CacheClusterIds': '' + else + for (var i1 = 0; i1 < cacheClusterIds.length; i1++) + 'CacheClusterIds.member.${i1 + 1}': cacheClusterIds[i1], + if (engine != null) 'Engine': engine, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (replicationGroupIds != null) + if (replicationGroupIds.isEmpty) + 'ReplicationGroupIds': '' + else + for (var i1 = 0; i1 < replicationGroupIds.length; i1++) + 'ReplicationGroupIds.member.${i1 + 1}': replicationGroupIds[i1], + if (serviceUpdateName != null) 'ServiceUpdateName': serviceUpdateName, + if (serviceUpdateStatus != null) + if (serviceUpdateStatus.isEmpty) + 'ServiceUpdateStatus': '' + else + for (var i1 = 0; i1 < serviceUpdateStatus.length; i1++) + 'ServiceUpdateStatus.member.${i1 + 1}': + serviceUpdateStatus[i1].toValue(), + if (serviceUpdateTimeRange != null) + for (var e1 in serviceUpdateTimeRange.toQueryMap().entries) + 'ServiceUpdateTimeRange.${e1.key}': e1.value, + if (showNodeLevelUpdateStatus != null) + 'ShowNodeLevelUpdateStatus': showNodeLevelUpdateStatus.toString(), + if (updateActionStatus != null) + if (updateActionStatus.isEmpty) + 'UpdateActionStatus': '' + else + for (var i1 = 0; i1 < updateActionStatus.length; i1++) + 'UpdateActionStatus.member.${i1 + 1}': + updateActionStatus[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeUpdateActions', @@ -4250,8 +4463,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUpdateActionsMessage'], - shapes: shapes, resultWrapper: 'DescribeUpdateActionsResult', ); return UpdateActionsMessage.fromXml($result); @@ -4281,10 +4492,11 @@ class ElastiCache { int? maxRecords, String? userGroupId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - userGroupId?.also((arg) => $request['UserGroupId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (userGroupId != null) 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'DescribeUserGroups', @@ -4292,8 +4504,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUserGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeUserGroupsResult', ); return DescribeUserGroupsResult.fromXml($result); @@ -4331,12 +4541,19 @@ class ElastiCache { int? maxRecords, String? userId, }) async { - final $request = {}; - engine?.also((arg) => $request['Engine'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - userId?.also((arg) => $request['UserId'] = arg); + final $request = { + if (engine != null) 'Engine': engine, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (userId != null) 'UserId': userId, + }; final $result = await _protocol.send( $request, action: 'DescribeUsers', @@ -4344,8 +4561,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUsersMessage'], - shapes: shapes, resultWrapper: 'DescribeUsersResult', ); return DescribeUsersResult.fromXml($result); @@ -4377,10 +4592,11 @@ class ElastiCache { required String replicationGroupId, required String replicationGroupRegion, }) async { - final $request = {}; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['ReplicationGroupId'] = replicationGroupId; - $request['ReplicationGroupRegion'] = replicationGroupRegion; + final $request = { + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'ReplicationGroupId': replicationGroupId, + 'ReplicationGroupRegion': replicationGroupRegion, + }; final $result = await _protocol.send( $request, action: 'DisassociateGlobalReplicationGroup', @@ -4388,8 +4604,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisassociateGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'DisassociateGlobalReplicationGroupResult', ); return DisassociateGlobalReplicationGroupResult.fromXml($result); @@ -4415,9 +4629,10 @@ class ElastiCache { required String s3BucketName, required String serverlessCacheSnapshotName, }) async { - final $request = {}; - $request['S3BucketName'] = s3BucketName; - $request['ServerlessCacheSnapshotName'] = serverlessCacheSnapshotName; + final $request = { + 'S3BucketName': s3BucketName, + 'ServerlessCacheSnapshotName': serverlessCacheSnapshotName, + }; final $result = await _protocol.send( $request, action: 'ExportServerlessCacheSnapshot', @@ -4425,8 +4640,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ExportServerlessCacheSnapshotRequest'], - shapes: shapes, resultWrapper: 'ExportServerlessCacheSnapshotResult', ); return ExportServerlessCacheSnapshotResponse.fromXml($result); @@ -4453,10 +4666,11 @@ class ElastiCache { required String primaryRegion, required String primaryReplicationGroupId, }) async { - final $request = {}; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['PrimaryRegion'] = primaryRegion; - $request['PrimaryReplicationGroupId'] = primaryReplicationGroupId; + final $request = { + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'PrimaryRegion': primaryRegion, + 'PrimaryReplicationGroupId': primaryReplicationGroupId, + }; final $result = await _protocol.send( $request, action: 'FailoverGlobalReplicationGroup', @@ -4464,8 +4678,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'FailoverGlobalReplicationGroupResult', ); return FailoverGlobalReplicationGroupResult.fromXml($result); @@ -4498,12 +4710,19 @@ class ElastiCache { required int nodeGroupCount, List? regionalConfigurations, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - $request['NodeGroupCount'] = nodeGroupCount; - regionalConfigurations - ?.also((arg) => $request['RegionalConfigurations'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + 'NodeGroupCount': nodeGroupCount.toString(), + if (regionalConfigurations != null) + if (regionalConfigurations.isEmpty) + 'RegionalConfigurations': '' + else + for (var i1 = 0; i1 < regionalConfigurations.length; i1++) + for (var e3 in regionalConfigurations[i1].toQueryMap().entries) + 'RegionalConfigurations.RegionalConfiguration.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'IncreaseNodeGroupsInGlobalReplicationGroup', @@ -4511,8 +4730,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IncreaseNodeGroupsInGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'IncreaseNodeGroupsInGlobalReplicationGroupResult', ); return IncreaseNodeGroupsInGlobalReplicationGroupResult.fromXml($result); @@ -4563,11 +4780,20 @@ class ElastiCache { int? newReplicaCount, List? replicaConfiguration, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['ReplicationGroupId'] = replicationGroupId; - newReplicaCount?.also((arg) => $request['NewReplicaCount'] = arg); - replicaConfiguration?.also((arg) => $request['ReplicaConfiguration'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'ReplicationGroupId': replicationGroupId, + if (newReplicaCount != null) + 'NewReplicaCount': newReplicaCount.toString(), + if (replicaConfiguration != null) + if (replicaConfiguration.isEmpty) + 'ReplicaConfiguration': '' + else + for (var i1 = 0; i1 < replicaConfiguration.length; i1++) + for (var e3 in replicaConfiguration[i1].toQueryMap().entries) + 'ReplicaConfiguration.ConfigureShard.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'IncreaseReplicaCount', @@ -4575,8 +4801,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['IncreaseReplicaCountMessage'], - shapes: shapes, resultWrapper: 'IncreaseReplicaCountResult', ); return IncreaseReplicaCountResult.fromXml($result); @@ -4618,9 +4842,10 @@ class ElastiCache { String? cacheClusterId, String? replicationGroupId, }) async { - final $request = {}; - cacheClusterId?.also((arg) => $request['CacheClusterId'] = arg); - replicationGroupId?.also((arg) => $request['ReplicationGroupId'] = arg); + final $request = { + if (cacheClusterId != null) 'CacheClusterId': cacheClusterId, + if (replicationGroupId != null) 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'ListAllowedNodeTypeModifications', @@ -4628,8 +4853,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAllowedNodeTypeModificationsMessage'], - shapes: shapes, resultWrapper: 'ListAllowedNodeTypeModificationsResult', ); return AllowedNodeTypeModificationsMessage.fromXml($result); @@ -4676,8 +4899,9 @@ class ElastiCache { Future listTagsForResource({ required String resourceName, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; + final $request = { + 'ResourceName': resourceName, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -4685,8 +4909,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -5076,36 +5298,67 @@ class ElastiCache { int? snapshotRetentionLimit, String? snapshotWindow, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - aZMode?.also((arg) => $request['AZMode'] = arg.toValue()); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - authToken?.also((arg) => $request['AuthToken'] = arg); - authTokenUpdateStrategy - ?.also((arg) => $request['AuthTokenUpdateStrategy'] = arg.toValue()); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - cacheNodeIdsToRemove?.also((arg) => $request['CacheNodeIdsToRemove'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - newAvailabilityZones?.also((arg) => $request['NewAvailabilityZones'] = arg); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - notificationTopicStatus - ?.also((arg) => $request['NotificationTopicStatus'] = arg); - numCacheNodes?.also((arg) => $request['NumCacheNodes'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); + final $request = { + 'CacheClusterId': cacheClusterId, + if (aZMode != null) 'AZMode': aZMode.toValue(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (authToken != null) 'AuthToken': authToken, + if (authTokenUpdateStrategy != null) + 'AuthTokenUpdateStrategy': authTokenUpdateStrategy.toValue(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (cacheNodeIdsToRemove != null) + if (cacheNodeIdsToRemove.isEmpty) + 'CacheNodeIdsToRemove': '' + else + for (var i1 = 0; i1 < cacheNodeIdsToRemove.length; i1++) + 'CacheNodeIdsToRemove.CacheNodeId.${i1 + 1}': + cacheNodeIdsToRemove[i1], + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (newAvailabilityZones != null) + if (newAvailabilityZones.isEmpty) + 'NewAvailabilityZones': '' + else + for (var i1 = 0; i1 < newAvailabilityZones.length; i1++) + 'NewAvailabilityZones.PreferredAvailabilityZone.${i1 + 1}': + newAvailabilityZones[i1], + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (notificationTopicStatus != null) + 'NotificationTopicStatus': notificationTopicStatus, + if (numCacheNodes != null) 'NumCacheNodes': numCacheNodes.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + }; final $result = await _protocol.send( $request, action: 'ModifyCacheCluster', @@ -5113,8 +5366,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCacheClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyCacheClusterResult', ); return ModifyCacheClusterResult.fromXml($result); @@ -5141,9 +5392,16 @@ class ElastiCache { required String cacheParameterGroupName, required List parameterNameValues, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - $request['ParameterNameValues'] = parameterNameValues; + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + if (parameterNameValues.isEmpty) + 'ParameterNameValues': '' + else + for (var i1 = 0; i1 < parameterNameValues.length; i1++) + for (var e3 in parameterNameValues[i1].toQueryMap().entries) + 'ParameterNameValues.ParameterNameValue.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyCacheParameterGroup', @@ -5151,8 +5409,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCacheParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyCacheParameterGroupResult', ); return CacheParameterGroupNameMessage.fromXml($result); @@ -5185,11 +5441,17 @@ class ElastiCache { String? cacheSubnetGroupDescription, List? subnetIds, }) async { - final $request = {}; - $request['CacheSubnetGroupName'] = cacheSubnetGroupName; - cacheSubnetGroupDescription - ?.also((arg) => $request['CacheSubnetGroupDescription'] = arg); - subnetIds?.also((arg) => $request['SubnetIds'] = arg); + final $request = { + 'CacheSubnetGroupName': cacheSubnetGroupName, + if (cacheSubnetGroupDescription != null) + 'CacheSubnetGroupDescription': cacheSubnetGroupDescription, + if (subnetIds != null) + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyCacheSubnetGroup', @@ -5197,8 +5459,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCacheSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyCacheSubnetGroupResult', ); return ModifyCacheSubnetGroupResult.fromXml($result); @@ -5246,17 +5506,18 @@ class ElastiCache { String? engineVersion, String? globalReplicationGroupDescription, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; - automaticFailoverEnabled - ?.also((arg) => $request['AutomaticFailoverEnabled'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalReplicationGroupDescription - ?.also((arg) => $request['GlobalReplicationGroupDescription'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + if (automaticFailoverEnabled != null) + 'AutomaticFailoverEnabled': automaticFailoverEnabled.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalReplicationGroupDescription != null) + 'GlobalReplicationGroupDescription': globalReplicationGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalReplicationGroup', @@ -5264,8 +5525,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalReplicationGroupResult', ); return ModifyGlobalReplicationGroupResult.fromXml($result); @@ -5576,49 +5835,79 @@ class ElastiCache { List? userGroupIdsToAdd, List? userGroupIdsToRemove, }) async { - final $request = {}; - $request['ReplicationGroupId'] = replicationGroupId; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - authToken?.also((arg) => $request['AuthToken'] = arg); - authTokenUpdateStrategy - ?.also((arg) => $request['AuthTokenUpdateStrategy'] = arg.toValue()); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - automaticFailoverEnabled - ?.also((arg) => $request['AutomaticFailoverEnabled'] = arg); - cacheNodeType?.also((arg) => $request['CacheNodeType'] = arg); - cacheParameterGroupName - ?.also((arg) => $request['CacheParameterGroupName'] = arg); - cacheSecurityGroupNames - ?.also((arg) => $request['CacheSecurityGroupNames'] = arg); - clusterMode?.also((arg) => $request['ClusterMode'] = arg.toValue()); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - ipDiscovery?.also((arg) => $request['IpDiscovery'] = arg.toValue()); - logDeliveryConfigurations - ?.also((arg) => $request['LogDeliveryConfigurations'] = arg); - multiAZEnabled?.also((arg) => $request['MultiAZEnabled'] = arg); - nodeGroupId?.also((arg) => $request['NodeGroupId'] = arg); - notificationTopicArn?.also((arg) => $request['NotificationTopicArn'] = arg); - notificationTopicStatus - ?.also((arg) => $request['NotificationTopicStatus'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - primaryClusterId?.also((arg) => $request['PrimaryClusterId'] = arg); - removeUserGroups?.also((arg) => $request['RemoveUserGroups'] = arg); - replicationGroupDescription - ?.also((arg) => $request['ReplicationGroupDescription'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - snapshotWindow?.also((arg) => $request['SnapshotWindow'] = arg); - snapshottingClusterId - ?.also((arg) => $request['SnapshottingClusterId'] = arg); - transitEncryptionEnabled - ?.also((arg) => $request['TransitEncryptionEnabled'] = arg); - transitEncryptionMode - ?.also((arg) => $request['TransitEncryptionMode'] = arg.toValue()); - userGroupIdsToAdd?.also((arg) => $request['UserGroupIdsToAdd'] = arg); - userGroupIdsToRemove?.also((arg) => $request['UserGroupIdsToRemove'] = arg); + final $request = { + 'ReplicationGroupId': replicationGroupId, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (authToken != null) 'AuthToken': authToken, + if (authTokenUpdateStrategy != null) + 'AuthTokenUpdateStrategy': authTokenUpdateStrategy.toValue(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (automaticFailoverEnabled != null) + 'AutomaticFailoverEnabled': automaticFailoverEnabled.toString(), + if (cacheNodeType != null) 'CacheNodeType': cacheNodeType, + if (cacheParameterGroupName != null) + 'CacheParameterGroupName': cacheParameterGroupName, + if (cacheSecurityGroupNames != null) + if (cacheSecurityGroupNames.isEmpty) + 'CacheSecurityGroupNames': '' + else + for (var i1 = 0; i1 < cacheSecurityGroupNames.length; i1++) + 'CacheSecurityGroupNames.CacheSecurityGroupName.${i1 + 1}': + cacheSecurityGroupNames[i1], + if (clusterMode != null) 'ClusterMode': clusterMode.toValue(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (ipDiscovery != null) 'IpDiscovery': ipDiscovery.toValue(), + if (logDeliveryConfigurations != null) + if (logDeliveryConfigurations.isEmpty) + 'LogDeliveryConfigurations': '' + else + for (var i1 = 0; i1 < logDeliveryConfigurations.length; i1++) + for (var e3 in logDeliveryConfigurations[i1].toQueryMap().entries) + 'LogDeliveryConfigurations.LogDeliveryConfigurationRequest.${i1 + 1}.${e3.key}': + e3.value, + if (multiAZEnabled != null) 'MultiAZEnabled': multiAZEnabled.toString(), + if (nodeGroupId != null) 'NodeGroupId': nodeGroupId, + if (notificationTopicArn != null) + 'NotificationTopicArn': notificationTopicArn, + if (notificationTopicStatus != null) + 'NotificationTopicStatus': notificationTopicStatus, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (primaryClusterId != null) 'PrimaryClusterId': primaryClusterId, + if (removeUserGroups != null) + 'RemoveUserGroups': removeUserGroups.toString(), + if (replicationGroupDescription != null) + 'ReplicationGroupDescription': replicationGroupDescription, + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (snapshotWindow != null) 'SnapshotWindow': snapshotWindow, + if (snapshottingClusterId != null) + 'SnapshottingClusterId': snapshottingClusterId, + if (transitEncryptionEnabled != null) + 'TransitEncryptionEnabled': transitEncryptionEnabled.toString(), + if (transitEncryptionMode != null) + 'TransitEncryptionMode': transitEncryptionMode.toValue(), + if (userGroupIdsToAdd != null) + if (userGroupIdsToAdd.isEmpty) + 'UserGroupIdsToAdd': '' + else + for (var i1 = 0; i1 < userGroupIdsToAdd.length; i1++) + 'UserGroupIdsToAdd.member.${i1 + 1}': userGroupIdsToAdd[i1], + if (userGroupIdsToRemove != null) + if (userGroupIdsToRemove.isEmpty) + 'UserGroupIdsToRemove': '' + else + for (var i1 = 0; i1 < userGroupIdsToRemove.length; i1++) + 'UserGroupIdsToRemove.member.${i1 + 1}': userGroupIdsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyReplicationGroup', @@ -5626,8 +5915,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyReplicationGroupResult', ); return ModifyReplicationGroupResult.fromXml($result); @@ -5700,14 +5987,33 @@ class ElastiCache { List? nodeGroupsToRetain, List? reshardingConfiguration, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['NodeGroupCount'] = nodeGroupCount; - $request['ReplicationGroupId'] = replicationGroupId; - nodeGroupsToRemove?.also((arg) => $request['NodeGroupsToRemove'] = arg); - nodeGroupsToRetain?.also((arg) => $request['NodeGroupsToRetain'] = arg); - reshardingConfiguration - ?.also((arg) => $request['ReshardingConfiguration'] = arg); + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'NodeGroupCount': nodeGroupCount.toString(), + 'ReplicationGroupId': replicationGroupId, + if (nodeGroupsToRemove != null) + if (nodeGroupsToRemove.isEmpty) + 'NodeGroupsToRemove': '' + else + for (var i1 = 0; i1 < nodeGroupsToRemove.length; i1++) + 'NodeGroupsToRemove.NodeGroupToRemove.${i1 + 1}': + nodeGroupsToRemove[i1], + if (nodeGroupsToRetain != null) + if (nodeGroupsToRetain.isEmpty) + 'NodeGroupsToRetain': '' + else + for (var i1 = 0; i1 < nodeGroupsToRetain.length; i1++) + 'NodeGroupsToRetain.NodeGroupToRetain.${i1 + 1}': + nodeGroupsToRetain[i1], + if (reshardingConfiguration != null) + if (reshardingConfiguration.isEmpty) + 'ReshardingConfiguration': '' + else + for (var i1 = 0; i1 < reshardingConfiguration.length; i1++) + for (var e3 in reshardingConfiguration[i1].toQueryMap().entries) + 'ReshardingConfiguration.ReshardingConfiguration.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyReplicationGroupShardConfiguration', @@ -5715,8 +6021,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyReplicationGroupShardConfigurationMessage'], - shapes: shapes, resultWrapper: 'ModifyReplicationGroupShardConfigurationResult', ); return ModifyReplicationGroupShardConfigurationResult.fromXml($result); @@ -5780,16 +6084,25 @@ class ElastiCache { int? snapshotRetentionLimit, String? userGroupId, }) async { - final $request = {}; - $request['ServerlessCacheName'] = serverlessCacheName; - cacheUsageLimits?.also((arg) => $request['CacheUsageLimits'] = arg); - dailySnapshotTime?.also((arg) => $request['DailySnapshotTime'] = arg); - description?.also((arg) => $request['Description'] = arg); - removeUserGroup?.also((arg) => $request['RemoveUserGroup'] = arg); - securityGroupIds?.also((arg) => $request['SecurityGroupIds'] = arg); - snapshotRetentionLimit - ?.also((arg) => $request['SnapshotRetentionLimit'] = arg); - userGroupId?.also((arg) => $request['UserGroupId'] = arg); + final $request = { + 'ServerlessCacheName': serverlessCacheName, + if (cacheUsageLimits != null) + for (var e1 in cacheUsageLimits.toQueryMap().entries) + 'CacheUsageLimits.${e1.key}': e1.value, + if (dailySnapshotTime != null) 'DailySnapshotTime': dailySnapshotTime, + if (description != null) 'Description': description, + if (removeUserGroup != null) + 'RemoveUserGroup': removeUserGroup.toString(), + if (securityGroupIds != null) + if (securityGroupIds.isEmpty) + 'SecurityGroupIds': '' + else + for (var i1 = 0; i1 < securityGroupIds.length; i1++) + 'SecurityGroupIds.SecurityGroupId.${i1 + 1}': securityGroupIds[i1], + if (snapshotRetentionLimit != null) + 'SnapshotRetentionLimit': snapshotRetentionLimit.toString(), + if (userGroupId != null) 'UserGroupId': userGroupId, + }; final $result = await _protocol.send( $request, action: 'ModifyServerlessCache', @@ -5797,8 +6110,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyServerlessCacheRequest'], - shapes: shapes, resultWrapper: 'ModifyServerlessCacheResult', ); return ModifyServerlessCacheResponse.fromXml($result); @@ -5837,13 +6148,22 @@ class ElastiCache { bool? noPasswordRequired, List? passwords, }) async { - final $request = {}; - $request['UserId'] = userId; - accessString?.also((arg) => $request['AccessString'] = arg); - appendAccessString?.also((arg) => $request['AppendAccessString'] = arg); - authenticationMode?.also((arg) => $request['AuthenticationMode'] = arg); - noPasswordRequired?.also((arg) => $request['NoPasswordRequired'] = arg); - passwords?.also((arg) => $request['Passwords'] = arg); + final $request = { + 'UserId': userId, + if (accessString != null) 'AccessString': accessString, + if (appendAccessString != null) 'AppendAccessString': appendAccessString, + if (authenticationMode != null) + for (var e1 in authenticationMode.toQueryMap().entries) + 'AuthenticationMode.${e1.key}': e1.value, + if (noPasswordRequired != null) + 'NoPasswordRequired': noPasswordRequired.toString(), + if (passwords != null) + if (passwords.isEmpty) + 'Passwords': '' + else + for (var i1 = 0; i1 < passwords.length; i1++) + 'Passwords.member.${i1 + 1}': passwords[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyUser', @@ -5851,8 +6171,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyUserMessage'], - shapes: shapes, resultWrapper: 'ModifyUserResult', ); return User.fromXml($result); @@ -5882,10 +6200,21 @@ class ElastiCache { List? userIdsToAdd, List? userIdsToRemove, }) async { - final $request = {}; - $request['UserGroupId'] = userGroupId; - userIdsToAdd?.also((arg) => $request['UserIdsToAdd'] = arg); - userIdsToRemove?.also((arg) => $request['UserIdsToRemove'] = arg); + final $request = { + 'UserGroupId': userGroupId, + if (userIdsToAdd != null) + if (userIdsToAdd.isEmpty) + 'UserIdsToAdd': '' + else + for (var i1 = 0; i1 < userIdsToAdd.length; i1++) + 'UserIdsToAdd.member.${i1 + 1}': userIdsToAdd[i1], + if (userIdsToRemove != null) + if (userIdsToRemove.isEmpty) + 'UserIdsToRemove': '' + else + for (var i1 = 0; i1 < userIdsToRemove.length; i1++) + 'UserIdsToRemove.member.${i1 + 1}': userIdsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyUserGroup', @@ -5893,8 +6222,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyUserGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyUserGroupResult', ); return UserGroup.fromXml($result); @@ -5944,11 +6271,19 @@ class ElastiCache { String? reservedCacheNodeId, List? tags, }) async { - final $request = {}; - $request['ReservedCacheNodesOfferingId'] = reservedCacheNodesOfferingId; - cacheNodeCount?.also((arg) => $request['CacheNodeCount'] = arg); - reservedCacheNodeId?.also((arg) => $request['ReservedCacheNodeId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedCacheNodesOfferingId': reservedCacheNodesOfferingId, + if (cacheNodeCount != null) 'CacheNodeCount': cacheNodeCount.toString(), + if (reservedCacheNodeId != null) + 'ReservedCacheNodeId': reservedCacheNodeId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedCacheNodesOffering', @@ -5956,8 +6291,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedCacheNodesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedCacheNodesOfferingResult', ); return PurchaseReservedCacheNodesOfferingResult.fromXml($result); @@ -5980,9 +6313,10 @@ class ElastiCache { required bool applyImmediately, required String globalReplicationGroupId, }) async { - final $request = {}; - $request['ApplyImmediately'] = applyImmediately; - $request['GlobalReplicationGroupId'] = globalReplicationGroupId; + final $request = { + 'ApplyImmediately': applyImmediately.toString(), + 'GlobalReplicationGroupId': globalReplicationGroupId, + }; final $result = await _protocol.send( $request, action: 'RebalanceSlotsInGlobalReplicationGroup', @@ -5990,8 +6324,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebalanceSlotsInGlobalReplicationGroupMessage'], - shapes: shapes, resultWrapper: 'RebalanceSlotsInGlobalReplicationGroupResult', ); return RebalanceSlotsInGlobalReplicationGroupResult.fromXml($result); @@ -6031,9 +6363,15 @@ class ElastiCache { required String cacheClusterId, required List cacheNodeIdsToReboot, }) async { - final $request = {}; - $request['CacheClusterId'] = cacheClusterId; - $request['CacheNodeIdsToReboot'] = cacheNodeIdsToReboot; + final $request = { + 'CacheClusterId': cacheClusterId, + if (cacheNodeIdsToReboot.isEmpty) + 'CacheNodeIdsToReboot': '' + else + for (var i1 = 0; i1 < cacheNodeIdsToReboot.length; i1++) + 'CacheNodeIdsToReboot.CacheNodeId.${i1 + 1}': + cacheNodeIdsToReboot[i1], + }; final $result = await _protocol.send( $request, action: 'RebootCacheCluster', @@ -6041,8 +6379,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootCacheClusterMessage'], - shapes: shapes, resultWrapper: 'RebootCacheClusterResult', ); return RebootCacheClusterResult.fromXml($result); @@ -6092,9 +6428,14 @@ class ElastiCache { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; final $result = await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -6102,8 +6443,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, resultWrapper: 'RemoveTagsFromResourceResult', ); return TagListMessage.fromXml($result); @@ -6143,10 +6482,19 @@ class ElastiCache { List? parameterNameValues, bool? resetAllParameters, }) async { - final $request = {}; - $request['CacheParameterGroupName'] = cacheParameterGroupName; - parameterNameValues?.also((arg) => $request['ParameterNameValues'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'CacheParameterGroupName': cacheParameterGroupName, + if (parameterNameValues != null) + if (parameterNameValues.isEmpty) + 'ParameterNameValues': '' + else + for (var i1 = 0; i1 < parameterNameValues.length; i1++) + for (var e3 in parameterNameValues[i1].toQueryMap().entries) + 'ParameterNameValues.ParameterNameValue.${i1 + 1}.${e3.key}': + e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetCacheParameterGroup', @@ -6154,8 +6502,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetCacheParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetCacheParameterGroupResult', ); return CacheParameterGroupNameMessage.fromXml($result); @@ -6187,10 +6533,11 @@ class ElastiCache { required String eC2SecurityGroupName, required String eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['CacheSecurityGroupName'] = cacheSecurityGroupName; - $request['EC2SecurityGroupName'] = eC2SecurityGroupName; - $request['EC2SecurityGroupOwnerId'] = eC2SecurityGroupOwnerId; + final $request = { + 'CacheSecurityGroupName': cacheSecurityGroupName, + 'EC2SecurityGroupName': eC2SecurityGroupName, + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeCacheSecurityGroupIngress', @@ -6198,8 +6545,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeCacheSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeCacheSecurityGroupIngressResult', ); return RevokeCacheSecurityGroupIngressResult.fromXml($result); @@ -6222,9 +6567,15 @@ class ElastiCache { required List customerNodeEndpointList, required String replicationGroupId, }) async { - final $request = {}; - $request['CustomerNodeEndpointList'] = customerNodeEndpointList; - $request['ReplicationGroupId'] = replicationGroupId; + final $request = { + if (customerNodeEndpointList.isEmpty) + 'CustomerNodeEndpointList': '' + else + for (var i1 = 0; i1 < customerNodeEndpointList.length; i1++) + for (var e3 in customerNodeEndpointList[i1].toQueryMap().entries) + 'CustomerNodeEndpointList.member.${i1 + 1}.${e3.key}': e3.value, + 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'StartMigration', @@ -6232,8 +6583,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartMigrationMessage'], - shapes: shapes, resultWrapper: 'StartMigrationResult', ); return StartMigrationResponse.fromXml($result); @@ -6335,9 +6684,10 @@ class ElastiCache { required String nodeGroupId, required String replicationGroupId, }) async { - final $request = {}; - $request['NodeGroupId'] = nodeGroupId; - $request['ReplicationGroupId'] = replicationGroupId; + final $request = { + 'NodeGroupId': nodeGroupId, + 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'TestFailover', @@ -6345,8 +6695,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestFailoverMessage'], - shapes: shapes, resultWrapper: 'TestFailoverResult', ); return TestFailoverResult.fromXml($result); @@ -6369,9 +6717,15 @@ class ElastiCache { required List customerNodeEndpointList, required String replicationGroupId, }) async { - final $request = {}; - $request['CustomerNodeEndpointList'] = customerNodeEndpointList; - $request['ReplicationGroupId'] = replicationGroupId; + final $request = { + if (customerNodeEndpointList.isEmpty) + 'CustomerNodeEndpointList': '' + else + for (var i1 = 0; i1 < customerNodeEndpointList.length; i1++) + for (var e3 in customerNodeEndpointList[i1].toQueryMap().entries) + 'CustomerNodeEndpointList.member.${i1 + 1}.${e3.key}': e3.value, + 'ReplicationGroupId': replicationGroupId, + }; final $result = await _protocol.send( $request, action: 'TestMigration', @@ -6379,8 +6733,6 @@ class ElastiCache { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestMigrationMessage'], - shapes: shapes, resultWrapper: 'TestMigrationResult', ); return TestMigrationResponse.fromXml($result); @@ -6554,6 +6906,20 @@ class AuthenticationMode { if (type != null) 'Type': type.toValue(), }; } + + Map toQueryMap() { + final passwords = this.passwords; + final type = this.type; + return { + if (passwords != null) + if (passwords.isEmpty) + 'Passwords': '' + else + for (var i1 = 0; i1 < passwords.length; i1++) + 'Passwords.member.${i1 + 1}': passwords[i1], + if (type != null) 'Type': type.toValue(), + }; + } } enum AuthenticationType { @@ -7907,6 +8273,19 @@ class CacheUsageLimits { if (eCPUPerSecond != null) 'ECPUPerSecond': eCPUPerSecond, }; } + + Map toQueryMap() { + final dataStorage = this.dataStorage; + final eCPUPerSecond = this.eCPUPerSecond; + return { + if (dataStorage != null) + for (var e1 in dataStorage.toQueryMap().entries) + 'DataStorage.${e1.key}': e1.value, + if (eCPUPerSecond != null) + for (var e1 in eCPUPerSecond.toQueryMap().entries) + 'ECPUPerSecond.${e1.key}': e1.value, + }; + } } enum ChangeType { @@ -7957,6 +8336,13 @@ class CloudWatchLogsDestinationDetails { if (logGroup != null) 'LogGroup': logGroup, }; } + + Map toQueryMap() { + final logGroup = this.logGroup; + return { + if (logGroup != null) 'LogGroup': logGroup, + }; + } } enum ClusterMode { @@ -8076,6 +8462,31 @@ class ConfigureShard { 'PreferredOutpostArns': preferredOutpostArns, }; } + + Map toQueryMap() { + final newReplicaCount = this.newReplicaCount; + final nodeGroupId = this.nodeGroupId; + final preferredAvailabilityZones = this.preferredAvailabilityZones; + final preferredOutpostArns = this.preferredOutpostArns; + return { + 'NewReplicaCount': newReplicaCount.toString(), + 'NodeGroupId': nodeGroupId, + if (preferredAvailabilityZones != null) + if (preferredAvailabilityZones.isEmpty) + 'PreferredAvailabilityZone': '' + else + for (var i1 = 0; i1 < preferredAvailabilityZones.length; i1++) + 'PreferredAvailabilityZone.PreferredAvailabilityZone.${i1 + 1}': + preferredAvailabilityZones[i1], + if (preferredOutpostArns != null) + if (preferredOutpostArns.isEmpty) + 'PreferredOutpostArn': '' + else + for (var i1 = 0; i1 < preferredOutpostArns.length; i1++) + 'PreferredOutpostArn.PreferredOutpostArn.${i1 + 1}': + preferredOutpostArns[i1], + }; + } } class CopyServerlessCacheSnapshotResponse { @@ -8264,6 +8675,15 @@ class CustomerNodeEndpoint { if (port != null) 'Port': port, }; } + + Map toQueryMap() { + final address = this.address; + final port = this.port; + return { + if (address != null) 'Address': address, + if (port != null) 'Port': port.toString(), + }; + } } /// The data storage limit. @@ -8300,6 +8720,17 @@ class DataStorage { if (minimum != null) 'Minimum': minimum, }; } + + Map toQueryMap() { + final unit = this.unit; + final maximum = this.maximum; + final minimum = this.minimum; + return { + 'Unit': unit.toValue(), + if (maximum != null) 'Maximum': maximum.toString(), + if (minimum != null) 'Minimum': minimum.toString(), + }; + } } enum DataStorageUnit { @@ -8675,6 +9106,19 @@ class DestinationDetails { 'KinesisFirehoseDetails': kinesisFirehoseDetails, }; } + + Map toQueryMap() { + final cloudWatchLogsDetails = this.cloudWatchLogsDetails; + final kinesisFirehoseDetails = this.kinesisFirehoseDetails; + return { + if (cloudWatchLogsDetails != null) + for (var e1 in cloudWatchLogsDetails.toQueryMap().entries) + 'CloudWatchLogsDetails.${e1.key}': e1.value, + if (kinesisFirehoseDetails != null) + for (var e1 in kinesisFirehoseDetails.toQueryMap().entries) + 'KinesisFirehoseDetails.${e1.key}': e1.value, + }; + } } enum DestinationType { @@ -8777,6 +9221,15 @@ class ECPUPerSecond { if (minimum != null) 'Minimum': minimum, }; } + + Map toQueryMap() { + final maximum = this.maximum; + final minimum = this.minimum; + return { + if (maximum != null) 'Maximum': maximum.toString(), + if (minimum != null) 'Minimum': minimum.toString(), + }; + } } /// Represents the information required for client programs to connect to a @@ -8955,6 +9408,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Indicates the slot configuration and global identifier for a slice group. @@ -9264,6 +9730,13 @@ class KinesisFirehoseDestinationDetails { if (deliveryStream != null) 'DeliveryStream': deliveryStream, }; } + + Map toQueryMap() { + final deliveryStream = this.deliveryStream; + return { + if (deliveryStream != null) 'DeliveryStream': deliveryStream, + }; + } } /// Returns the destination, format and type of the logs. @@ -9359,6 +9832,23 @@ class LogDeliveryConfigurationRequest { if (logType != null) 'LogType': logType.toValue(), }; } + + Map toQueryMap() { + final destinationDetails = this.destinationDetails; + final destinationType = this.destinationType; + final enabled = this.enabled; + final logFormat = this.logFormat; + final logType = this.logType; + return { + if (destinationDetails != null) + for (var e1 in destinationDetails.toQueryMap().entries) + 'DestinationDetails.${e1.key}': e1.value, + if (destinationType != null) 'DestinationType': destinationType.toValue(), + if (enabled != null) 'Enabled': enabled.toString(), + if (logFormat != null) 'LogFormat': logFormat.toValue(), + if (logType != null) 'LogType': logType.toValue(), + }; + } } enum LogDeliveryConfigurationStatus { @@ -9751,6 +10241,37 @@ class NodeGroupConfiguration { if (slots != null) 'Slots': slots, }; } + + Map toQueryMap() { + final nodeGroupId = this.nodeGroupId; + final primaryAvailabilityZone = this.primaryAvailabilityZone; + final primaryOutpostArn = this.primaryOutpostArn; + final replicaAvailabilityZones = this.replicaAvailabilityZones; + final replicaCount = this.replicaCount; + final replicaOutpostArns = this.replicaOutpostArns; + final slots = this.slots; + return { + if (nodeGroupId != null) 'NodeGroupId': nodeGroupId, + if (primaryAvailabilityZone != null) + 'PrimaryAvailabilityZone': primaryAvailabilityZone, + if (primaryOutpostArn != null) 'PrimaryOutpostArn': primaryOutpostArn, + if (replicaAvailabilityZones != null) + if (replicaAvailabilityZones.isEmpty) + 'AvailabilityZone': '' + else + for (var i1 = 0; i1 < replicaAvailabilityZones.length; i1++) + 'AvailabilityZone.AvailabilityZone.${i1 + 1}': + replicaAvailabilityZones[i1], + if (replicaCount != null) 'ReplicaCount': replicaCount.toString(), + if (replicaOutpostArns != null) + if (replicaOutpostArns.isEmpty) + 'OutpostArn': '' + else + for (var i1 = 0; i1 < replicaOutpostArns.length; i1++) + 'OutpostArn.OutpostArn.${i1 + 1}': replicaOutpostArns[i1], + if (slots != null) 'Slots': slots, + }; + } } /// Represents a single node within a node group (shard). @@ -10150,6 +10671,15 @@ class ParameterNameValue { if (parameterValue != null) 'ParameterValue': parameterValue, }; } + + Map toQueryMap() { + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + return { + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + }; + } } enum PendingAutomaticFailoverStatus { @@ -10416,6 +10946,23 @@ class RegionalConfiguration { 'ReshardingConfiguration': reshardingConfiguration, }; } + + Map toQueryMap() { + final replicationGroupId = this.replicationGroupId; + final replicationGroupRegion = this.replicationGroupRegion; + final reshardingConfiguration = this.reshardingConfiguration; + return { + 'ReplicationGroupId': replicationGroupId, + 'ReplicationGroupRegion': replicationGroupRegion, + if (reshardingConfiguration.isEmpty) + 'ReshardingConfiguration': '' + else + for (var i1 = 0; i1 < reshardingConfiguration.length; i1++) + for (var e3 in reshardingConfiguration[i1].toQueryMap().entries) + 'ReshardingConfiguration.ReshardingConfiguration.${i1 + 1}.${e3.key}': + e3.value, + }; + } } /// Contains all of the attributes of a specific Redis replication group. @@ -11290,6 +11837,21 @@ class ReshardingConfiguration { 'PreferredAvailabilityZones': preferredAvailabilityZones, }; } + + Map toQueryMap() { + final nodeGroupId = this.nodeGroupId; + final preferredAvailabilityZones = this.preferredAvailabilityZones; + return { + if (nodeGroupId != null) 'NodeGroupId': nodeGroupId, + if (preferredAvailabilityZones != null) + if (preferredAvailabilityZones.isEmpty) + 'AvailabilityZone': '' + else + for (var i1 = 0; i1 < preferredAvailabilityZones.length; i1++) + 'AvailabilityZone.AvailabilityZone.${i1 + 1}': + preferredAvailabilityZones[i1], + }; + } } /// The status of an online resharding operation. @@ -12332,6 +12894,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Represents the output from the AddTagsToResource, @@ -12405,6 +12976,15 @@ class TimeRangeFilter { if (startTime != null) 'StartTime': iso8601ToJson(startTime), }; } + + Map toQueryMap() { + final endTime = this.endTime; + final startTime = this.startTime; + return { + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; + } } enum TransitEncryptionMode { diff --git a/generated/aws_elasticbeanstalk_api/lib/elasticbeanstalk-2010-12-01.dart b/generated/aws_elasticbeanstalk_api/lib/elasticbeanstalk-2010-12-01.dart index fef87cb2d..ca73fb734 100644 --- a/generated/aws_elasticbeanstalk_api/lib/elasticbeanstalk-2010-12-01.dart +++ b/generated/aws_elasticbeanstalk_api/lib/elasticbeanstalk-2010-12-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'elasticbeanstalk-2010-12-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// AWS Elastic Beanstalk makes it easy for you to create, deploy, and manage @@ -25,7 +24,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// cloud. class ElasticBeanstalk { final _s.QueryProtocol _protocol; - final Map shapes; ElasticBeanstalk({ required String region, @@ -33,7 +31,7 @@ class ElasticBeanstalk { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticbeanstalk', @@ -42,9 +40,7 @@ class ElasticBeanstalk { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -71,9 +67,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'AbortEnvironmentUpdate', @@ -81,8 +78,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AbortEnvironmentUpdateMessage'], - shapes: shapes, ); } @@ -107,10 +102,11 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - $request['ActionId'] = actionId; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + 'ActionId': actionId, + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'ApplyEnvironmentManagedAction', @@ -118,8 +114,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyEnvironmentManagedActionRequest'], - shapes: shapes, resultWrapper: 'ApplyEnvironmentManagedActionResult', ); return ApplyEnvironmentManagedActionResult.fromXml($result); @@ -144,9 +138,10 @@ class ElasticBeanstalk { required String environmentName, required String operationsRole, }) async { - final $request = {}; - $request['EnvironmentName'] = environmentName; - $request['OperationsRole'] = operationsRole; + final $request = { + 'EnvironmentName': environmentName, + 'OperationsRole': operationsRole, + }; await _protocol.send( $request, action: 'AssociateEnvironmentOperationsRole', @@ -154,8 +149,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssociateEnvironmentOperationsRoleMessage'], - shapes: shapes, ); } @@ -166,8 +159,9 @@ class ElasticBeanstalk { Future checkDNSAvailability({ required String cNAMEPrefix, }) async { - final $request = {}; - $request['CNAMEPrefix'] = cNAMEPrefix; + final $request = { + 'CNAMEPrefix': cNAMEPrefix, + }; final $result = await _protocol.send( $request, action: 'CheckDNSAvailability', @@ -175,8 +169,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CheckDNSAvailabilityMessage'], - shapes: shapes, resultWrapper: 'CheckDNSAvailabilityResult', ); return CheckDNSAvailabilityResultMessage.fromXml($result); @@ -215,10 +207,16 @@ class ElasticBeanstalk { String? groupName, List? versionLabels, }) async { - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - groupName?.also((arg) => $request['GroupName'] = arg); - versionLabels?.also((arg) => $request['VersionLabels'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (groupName != null) 'GroupName': groupName, + if (versionLabels != null) + if (versionLabels.isEmpty) + 'VersionLabels': '' + else + for (var i1 = 0; i1 < versionLabels.length; i1++) + 'VersionLabels.member.${i1 + 1}': versionLabels[i1], + }; final $result = await _protocol.send( $request, action: 'ComposeEnvironments', @@ -226,8 +224,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ComposeEnvironmentsMessage'], - shapes: shapes, resultWrapper: 'ComposeEnvironmentsResult', ); return EnvironmentDescriptionsMessage.fromXml($result); @@ -259,12 +255,20 @@ class ElasticBeanstalk { ApplicationResourceLifecycleConfig? resourceLifecycleConfig, List? tags, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - description?.also((arg) => $request['Description'] = arg); - resourceLifecycleConfig - ?.also((arg) => $request['ResourceLifecycleConfig'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (description != null) 'Description': description, + if (resourceLifecycleConfig != null) + for (var e1 in resourceLifecycleConfig.toQueryMap().entries) + 'ResourceLifecycleConfig.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateApplication', @@ -272,8 +276,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateApplicationMessage'], - shapes: shapes, resultWrapper: 'CreateApplicationResult', ); return ApplicationDescriptionMessage.fromXml($result); @@ -375,18 +377,30 @@ class ElasticBeanstalk { S3Location? sourceBundle, List? tags, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['VersionLabel'] = versionLabel; - autoCreateApplication - ?.also((arg) => $request['AutoCreateApplication'] = arg); - buildConfiguration?.also((arg) => $request['BuildConfiguration'] = arg); - description?.also((arg) => $request['Description'] = arg); - process?.also((arg) => $request['Process'] = arg); - sourceBuildInformation - ?.also((arg) => $request['SourceBuildInformation'] = arg); - sourceBundle?.also((arg) => $request['SourceBundle'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'VersionLabel': versionLabel, + if (autoCreateApplication != null) + 'AutoCreateApplication': autoCreateApplication.toString(), + if (buildConfiguration != null) + for (var e1 in buildConfiguration.toQueryMap().entries) + 'BuildConfiguration.${e1.key}': e1.value, + if (description != null) 'Description': description, + if (process != null) 'Process': process.toString(), + if (sourceBuildInformation != null) + for (var e1 in sourceBuildInformation.toQueryMap().entries) + 'SourceBuildInformation.${e1.key}': e1.value, + if (sourceBundle != null) + for (var e1 in sourceBundle.toQueryMap().entries) + 'SourceBundle.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateApplicationVersion', @@ -394,8 +408,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateApplicationVersionMessage'], - shapes: shapes, resultWrapper: 'CreateApplicationVersionResult', ); return ApplicationVersionDescriptionMessage.fromXml($result); @@ -512,16 +524,31 @@ class ElasticBeanstalk { SourceConfiguration? sourceConfiguration, List? tags, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['TemplateName'] = templateName; - description?.also((arg) => $request['Description'] = arg); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - sourceConfiguration?.also((arg) => $request['SourceConfiguration'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'TemplateName': templateName, + if (description != null) 'Description': description, + if (environmentId != null) 'EnvironmentId': environmentId, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (sourceConfiguration != null) + for (var e1 in sourceConfiguration.toQueryMap().entries) + 'SourceConfiguration.${e1.key}': e1.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateConfigurationTemplate', @@ -529,8 +556,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationTemplateMessage'], - shapes: shapes, resultWrapper: 'CreateConfigurationTemplateResult', ); return ConfigurationSettingsDescription.fromXml($result); @@ -655,21 +680,41 @@ class ElasticBeanstalk { EnvironmentTier? tier, String? versionLabel, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - cNAMEPrefix?.also((arg) => $request['CNAMEPrefix'] = arg); - description?.also((arg) => $request['Description'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - groupName?.also((arg) => $request['GroupName'] = arg); - operationsRole?.also((arg) => $request['OperationsRole'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); - tier?.also((arg) => $request['Tier'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (cNAMEPrefix != null) 'CNAMEPrefix': cNAMEPrefix, + if (description != null) 'Description': description, + if (environmentName != null) 'EnvironmentName': environmentName, + if (groupName != null) 'GroupName': groupName, + if (operationsRole != null) 'OperationsRole': operationsRole, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + for (var e3 in optionsToRemove[i1].toQueryMap().entries) + 'OptionsToRemove.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateName != null) 'TemplateName': templateName, + if (tier != null) + for (var e1 in tier.toQueryMap().entries) 'Tier.${e1.key}': e1.value, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'CreateEnvironment', @@ -677,8 +722,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEnvironmentMessage'], - shapes: shapes, resultWrapper: 'CreateEnvironmentResult', ); return EnvironmentDescription.fromXml($result); @@ -719,13 +762,27 @@ class ElasticBeanstalk { List? optionSettings, List? tags, }) async { - final $request = {}; - $request['PlatformDefinitionBundle'] = platformDefinitionBundle; - $request['PlatformName'] = platformName; - $request['PlatformVersion'] = platformVersion; - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + for (var e1 in platformDefinitionBundle.toQueryMap().entries) + 'PlatformDefinitionBundle.${e1.key}': e1.value, + 'PlatformName': platformName, + 'PlatformVersion': platformVersion, + if (environmentName != null) 'EnvironmentName': environmentName, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreatePlatformVersion', @@ -733,8 +790,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePlatformVersionRequest'], - shapes: shapes, resultWrapper: 'CreatePlatformVersionResult', ); return CreatePlatformVersionResult.fromXml($result); @@ -751,7 +806,7 @@ class ElasticBeanstalk { /// May throw [S3SubscriptionRequiredException]. /// May throw [InsufficientPrivilegesException]. Future createStorageLocation() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'CreateStorageLocation', @@ -759,7 +814,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'CreateStorageLocationResult', ); return CreateStorageLocationResultMessage.fromXml($result); @@ -784,9 +838,11 @@ class ElasticBeanstalk { required String applicationName, bool? terminateEnvByForce, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - terminateEnvByForce?.also((arg) => $request['TerminateEnvByForce'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (terminateEnvByForce != null) + 'TerminateEnvByForce': terminateEnvByForce.toString(), + }; await _protocol.send( $request, action: 'DeleteApplication', @@ -794,8 +850,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteApplicationMessage'], - shapes: shapes, ); } @@ -825,10 +879,12 @@ class ElasticBeanstalk { required String versionLabel, bool? deleteSourceBundle, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['VersionLabel'] = versionLabel; - deleteSourceBundle?.also((arg) => $request['DeleteSourceBundle'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'VersionLabel': versionLabel, + if (deleteSourceBundle != null) + 'DeleteSourceBundle': deleteSourceBundle.toString(), + }; await _protocol.send( $request, action: 'DeleteApplicationVersion', @@ -836,8 +892,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteApplicationVersionMessage'], - shapes: shapes, ); } @@ -860,9 +914,10 @@ class ElasticBeanstalk { required String applicationName, required String templateName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['TemplateName'] = templateName; + final $request = { + 'ApplicationName': applicationName, + 'TemplateName': templateName, + }; await _protocol.send( $request, action: 'DeleteConfigurationTemplate', @@ -870,8 +925,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationTemplateMessage'], - shapes: shapes, ); } @@ -894,9 +947,10 @@ class ElasticBeanstalk { required String applicationName, required String environmentName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['EnvironmentName'] = environmentName; + final $request = { + 'ApplicationName': applicationName, + 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'DeleteEnvironmentConfiguration', @@ -904,8 +958,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEnvironmentConfigurationMessage'], - shapes: shapes, ); } @@ -921,8 +973,9 @@ class ElasticBeanstalk { Future deletePlatformVersion({ String? platformArn, }) async { - final $request = {}; - platformArn?.also((arg) => $request['PlatformArn'] = arg); + final $request = { + if (platformArn != null) 'PlatformArn': platformArn, + }; final $result = await _protocol.send( $request, action: 'DeletePlatformVersion', @@ -930,8 +983,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePlatformVersionRequest'], - shapes: shapes, resultWrapper: 'DeletePlatformVersionResult', ); return DeletePlatformVersionResult.fromXml($result); @@ -944,7 +995,7 @@ class ElasticBeanstalk { /// /// May throw [InsufficientPrivilegesException]. Future describeAccountAttributes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAccountAttributes', @@ -952,7 +1003,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeAccountAttributesResult', ); return DescribeAccountAttributesResult.fromXml($result); @@ -992,11 +1042,17 @@ class ElasticBeanstalk { 1, 1000, ); - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - versionLabels?.also((arg) => $request['VersionLabels'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (versionLabels != null) + if (versionLabels.isEmpty) + 'VersionLabels': '' + else + for (var i1 = 0; i1 < versionLabels.length; i1++) + 'VersionLabels.member.${i1 + 1}': versionLabels[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeApplicationVersions', @@ -1004,8 +1060,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeApplicationVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeApplicationVersionsResult', ); return ApplicationVersionDescriptionsMessage.fromXml($result); @@ -1019,8 +1073,14 @@ class ElasticBeanstalk { Future describeApplications({ List? applicationNames, }) async { - final $request = {}; - applicationNames?.also((arg) => $request['ApplicationNames'] = arg); + final $request = { + if (applicationNames != null) + if (applicationNames.isEmpty) + 'ApplicationNames': '' + else + for (var i1 = 0; i1 < applicationNames.length; i1++) + 'ApplicationNames.member.${i1 + 1}': applicationNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeApplications', @@ -1028,8 +1088,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeApplicationsMessage'], - shapes: shapes, resultWrapper: 'DescribeApplicationsResult', ); return ApplicationDescriptionsMessage.fromXml($result); @@ -1073,13 +1131,20 @@ class ElasticBeanstalk { String? solutionStackName, String? templateName, }) async { - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - options?.also((arg) => $request['Options'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (environmentName != null) 'EnvironmentName': environmentName, + if (options != null) + if (options.isEmpty) + 'Options': '' + else + for (var i1 = 0; i1 < options.length; i1++) + for (var e3 in options[i1].toQueryMap().entries) + 'Options.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (templateName != null) 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'DescribeConfigurationOptions', @@ -1087,8 +1152,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeConfigurationOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeConfigurationOptionsResult', ); return ConfigurationOptionsDescription.fromXml($result); @@ -1139,10 +1202,11 @@ class ElasticBeanstalk { String? environmentName, String? templateName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (environmentName != null) 'EnvironmentName': environmentName, + if (templateName != null) 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'DescribeConfigurationSettings', @@ -1150,8 +1214,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeConfigurationSettingsMessage'], - shapes: shapes, resultWrapper: 'DescribeConfigurationSettingsResult', ); return ConfigurationSettingsDescriptions.fromXml($result); @@ -1183,11 +1245,16 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - attributeNames?.also((arg) => - $request['AttributeNames'] = arg.map((e) => e.toValue()).toList()); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeNames.member.${i1 + 1}': attributeNames[i1].toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentHealth', @@ -1195,8 +1262,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentHealthRequest'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentHealthResult', ); return DescribeEnvironmentHealthResult.fromXml($result); @@ -1230,11 +1295,12 @@ class ElasticBeanstalk { 1, 100, ); - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentManagedActionHistory', @@ -1242,8 +1308,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentManagedActionHistoryRequest'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentManagedActionHistoryResult', ); return DescribeEnvironmentManagedActionHistoryResult.fromXml($result); @@ -1267,10 +1331,11 @@ class ElasticBeanstalk { String? environmentName, ActionStatus? status, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentManagedActions', @@ -1278,8 +1343,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentManagedActionsRequest'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentManagedActionsResult', ); return DescribeEnvironmentManagedActionsResult.fromXml($result); @@ -1306,9 +1369,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironmentResources', @@ -1316,8 +1380,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentResourcesMessage'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentResourcesResult', ); return EnvironmentResourceDescriptionsMessage.fromXml($result); @@ -1382,16 +1444,27 @@ class ElasticBeanstalk { 1, 1000, ); - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - environmentIds?.also((arg) => $request['EnvironmentIds'] = arg); - environmentNames?.also((arg) => $request['EnvironmentNames'] = arg); - includeDeleted?.also((arg) => $request['IncludeDeleted'] = arg); - includedDeletedBackTo?.also( - (arg) => $request['IncludedDeletedBackTo'] = _s.iso8601ToJson(arg)); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (environmentIds != null) + if (environmentIds.isEmpty) + 'EnvironmentIds': '' + else + for (var i1 = 0; i1 < environmentIds.length; i1++) + 'EnvironmentIds.member.${i1 + 1}': environmentIds[i1], + if (environmentNames != null) + if (environmentNames.isEmpty) + 'EnvironmentNames': '' + else + for (var i1 = 0; i1 < environmentNames.length; i1++) + 'EnvironmentNames.member.${i1 + 1}': environmentNames[i1], + if (includeDeleted != null) 'IncludeDeleted': includeDeleted.toString(), + if (includedDeletedBackTo != null) + 'IncludedDeletedBackTo': _s.iso8601ToJson(includedDeletedBackTo), + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'DescribeEnvironments', @@ -1399,8 +1472,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEnvironmentsMessage'], - shapes: shapes, resultWrapper: 'DescribeEnvironmentsResult', ); return EnvironmentDescriptionsMessage.fromXml($result); @@ -1481,19 +1552,20 @@ class ElasticBeanstalk { 1, 1000, ); - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - requestId?.also((arg) => $request['RequestId'] = arg); - severity?.also((arg) => $request['Severity'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - templateName?.also((arg) => $request['TemplateName'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + if (platformArn != null) 'PlatformArn': platformArn, + if (requestId != null) 'RequestId': requestId, + if (severity != null) 'Severity': severity.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (templateName != null) 'TemplateName': templateName, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -1501,8 +1573,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventDescriptionsMessage.fromXml($result); @@ -1535,12 +1605,17 @@ class ElasticBeanstalk { String? environmentName, String? nextToken, }) async { - final $request = {}; - attributeNames?.also((arg) => - $request['AttributeNames'] = arg.map((e) => e.toValue()).toList()); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeNames.member.${i1 + 1}': attributeNames[i1].toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'DescribeInstancesHealth', @@ -1548,8 +1623,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInstancesHealthRequest'], - shapes: shapes, resultWrapper: 'DescribeInstancesHealthResult', ); return DescribeInstancesHealthResult.fromXml($result); @@ -1572,8 +1645,9 @@ class ElasticBeanstalk { Future describePlatformVersion({ String? platformArn, }) async { - final $request = {}; - platformArn?.also((arg) => $request['PlatformArn'] = arg); + final $request = { + if (platformArn != null) 'PlatformArn': platformArn, + }; final $result = await _protocol.send( $request, action: 'DescribePlatformVersion', @@ -1581,8 +1655,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePlatformVersionRequest'], - shapes: shapes, resultWrapper: 'DescribePlatformVersionResult', ); return DescribePlatformVersionResult.fromXml($result); @@ -1603,8 +1675,9 @@ class ElasticBeanstalk { Future disassociateEnvironmentOperationsRole({ required String environmentName, }) async { - final $request = {}; - $request['EnvironmentName'] = environmentName; + final $request = { + 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'DisassociateEnvironmentOperationsRole', @@ -1612,8 +1685,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisassociateEnvironmentOperationsRoleMessage'], - shapes: shapes, ); } @@ -1621,7 +1692,7 @@ class ElasticBeanstalk { /// version first and then in reverse chronological order. Future listAvailableSolutionStacks() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListAvailableSolutionStacks', @@ -1629,7 +1700,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'ListAvailableSolutionStacksResult', ); return ListAvailableSolutionStacksResultMessage.fromXml($result); @@ -1725,10 +1795,17 @@ class ElasticBeanstalk { 1, 1152921504606846976, ); - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPlatformBranches', @@ -1736,8 +1813,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPlatformBranchesRequest'], - shapes: shapes, resultWrapper: 'ListPlatformBranchesResult', ); return ListPlatformBranchesResult.fromXml($result); @@ -1781,10 +1856,17 @@ class ElasticBeanstalk { 1, 1152921504606846976, ); - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.member.${i1 + 1}.${e3.key}': e3.value, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPlatformVersions', @@ -1792,8 +1874,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPlatformVersionsRequest'], - shapes: shapes, resultWrapper: 'ListPlatformVersionsResult', ); return ListPlatformVersionsResult.fromXml($result); @@ -1819,8 +1899,9 @@ class ElasticBeanstalk { Future listTagsForResource({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1828,8 +1909,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return ResourceTagsDescriptionMessage.fromXml($result); @@ -1858,9 +1937,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'RebuildEnvironment', @@ -1868,8 +1948,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebuildEnvironmentMessage'], - shapes: shapes, ); } @@ -1922,10 +2000,11 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - $request['InfoType'] = infoType.toValue(); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + 'InfoType': infoType.toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'RequestEnvironmentInfo', @@ -1933,8 +2012,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RequestEnvironmentInfoMessage'], - shapes: shapes, ); } @@ -1958,9 +2035,10 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; await _protocol.send( $request, action: 'RestartAppServer', @@ -1968,8 +2046,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestartAppServerMessage'], - shapes: shapes, ); } @@ -2011,10 +2087,11 @@ class ElasticBeanstalk { String? environmentId, String? environmentName, }) async { - final $request = {}; - $request['InfoType'] = infoType.toValue(); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); + final $request = { + 'InfoType': infoType.toValue(), + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + }; final $result = await _protocol.send( $request, action: 'RetrieveEnvironmentInfo', @@ -2022,8 +2099,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RetrieveEnvironmentInfoMessage'], - shapes: shapes, resultWrapper: 'RetrieveEnvironmentInfoResult', ); return RetrieveEnvironmentInfoResultMessage.fromXml($result); @@ -2070,14 +2145,16 @@ class ElasticBeanstalk { String? sourceEnvironmentId, String? sourceEnvironmentName, }) async { - final $request = {}; - destinationEnvironmentId - ?.also((arg) => $request['DestinationEnvironmentId'] = arg); - destinationEnvironmentName - ?.also((arg) => $request['DestinationEnvironmentName'] = arg); - sourceEnvironmentId?.also((arg) => $request['SourceEnvironmentId'] = arg); - sourceEnvironmentName - ?.also((arg) => $request['SourceEnvironmentName'] = arg); + final $request = { + if (destinationEnvironmentId != null) + 'DestinationEnvironmentId': destinationEnvironmentId, + if (destinationEnvironmentName != null) + 'DestinationEnvironmentName': destinationEnvironmentName, + if (sourceEnvironmentId != null) + 'SourceEnvironmentId': sourceEnvironmentId, + if (sourceEnvironmentName != null) + 'SourceEnvironmentName': sourceEnvironmentName, + }; await _protocol.send( $request, action: 'SwapEnvironmentCNAMEs', @@ -2085,8 +2162,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwapEnvironmentCNAMEsMessage'], - shapes: shapes, ); } @@ -2139,11 +2214,13 @@ class ElasticBeanstalk { bool? forceTerminate, bool? terminateResources, }) async { - final $request = {}; - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - forceTerminate?.also((arg) => $request['ForceTerminate'] = arg); - terminateResources?.also((arg) => $request['TerminateResources'] = arg); + final $request = { + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (forceTerminate != null) 'ForceTerminate': forceTerminate.toString(), + if (terminateResources != null) + 'TerminateResources': terminateResources.toString(), + }; final $result = await _protocol.send( $request, action: 'TerminateEnvironment', @@ -2151,8 +2228,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TerminateEnvironmentMessage'], - shapes: shapes, resultWrapper: 'TerminateEnvironmentResult', ); return EnvironmentDescription.fromXml($result); @@ -2179,9 +2254,10 @@ class ElasticBeanstalk { required String applicationName, String? description, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'UpdateApplication', @@ -2189,8 +2265,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateApplicationMessage'], - shapes: shapes, resultWrapper: 'UpdateApplicationResult', ); return ApplicationDescriptionMessage.fromXml($result); @@ -2210,9 +2284,11 @@ class ElasticBeanstalk { required String applicationName, required ApplicationResourceLifecycleConfig resourceLifecycleConfig, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['ResourceLifecycleConfig'] = resourceLifecycleConfig; + final $request = { + 'ApplicationName': applicationName, + for (var e1 in resourceLifecycleConfig.toQueryMap().entries) + 'ResourceLifecycleConfig.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'UpdateApplicationResourceLifecycle', @@ -2220,8 +2296,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateApplicationResourceLifecycleMessage'], - shapes: shapes, resultWrapper: 'UpdateApplicationResourceLifecycleResult', ); return ApplicationResourceLifecycleDescriptionMessage.fromXml($result); @@ -2254,10 +2328,11 @@ class ElasticBeanstalk { required String versionLabel, String? description, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['VersionLabel'] = versionLabel; - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'VersionLabel': versionLabel, + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'UpdateApplicationVersion', @@ -2265,8 +2340,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateApplicationVersionMessage'], - shapes: shapes, resultWrapper: 'UpdateApplicationVersionResult', ); return ApplicationVersionDescriptionMessage.fromXml($result); @@ -2324,12 +2397,25 @@ class ElasticBeanstalk { List? optionSettings, List? optionsToRemove, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['TemplateName'] = templateName; - description?.also((arg) => $request['Description'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'ApplicationName': applicationName, + 'TemplateName': templateName, + if (description != null) 'Description': description, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + for (var e3 in optionsToRemove[i1].toQueryMap().entries) + 'OptionsToRemove.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'UpdateConfigurationTemplate', @@ -2337,8 +2423,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationTemplateMessage'], - shapes: shapes, resultWrapper: 'UpdateConfigurationTemplateResult', ); return ConfigurationSettingsDescription.fromXml($result); @@ -2441,19 +2525,33 @@ class ElasticBeanstalk { EnvironmentTier? tier, String? versionLabel, }) async { - final $request = {}; - applicationName?.also((arg) => $request['ApplicationName'] = arg); - description?.also((arg) => $request['Description'] = arg); - environmentId?.also((arg) => $request['EnvironmentId'] = arg); - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - groupName?.also((arg) => $request['GroupName'] = arg); - optionSettings?.also((arg) => $request['OptionSettings'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); - platformArn?.also((arg) => $request['PlatformArn'] = arg); - solutionStackName?.also((arg) => $request['SolutionStackName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); - tier?.also((arg) => $request['Tier'] = arg); - versionLabel?.also((arg) => $request['VersionLabel'] = arg); + final $request = { + if (applicationName != null) 'ApplicationName': applicationName, + if (description != null) 'Description': description, + if (environmentId != null) 'EnvironmentId': environmentId, + if (environmentName != null) 'EnvironmentName': environmentName, + if (groupName != null) 'GroupName': groupName, + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + for (var e3 in optionsToRemove[i1].toQueryMap().entries) + 'OptionsToRemove.member.${i1 + 1}.${e3.key}': e3.value, + if (platformArn != null) 'PlatformArn': platformArn, + if (solutionStackName != null) 'SolutionStackName': solutionStackName, + if (templateName != null) 'TemplateName': templateName, + if (tier != null) + for (var e1 in tier.toQueryMap().entries) 'Tier.${e1.key}': e1.value, + if (versionLabel != null) 'VersionLabel': versionLabel, + }; final $result = await _protocol.send( $request, action: 'UpdateEnvironment', @@ -2461,8 +2559,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateEnvironmentMessage'], - shapes: shapes, resultWrapper: 'UpdateEnvironmentResult', ); return EnvironmentDescription.fromXml($result); @@ -2520,10 +2616,22 @@ class ElasticBeanstalk { List? tagsToAdd, List? tagsToRemove, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - tagsToAdd?.also((arg) => $request['TagsToAdd'] = arg); - tagsToRemove?.also((arg) => $request['TagsToRemove'] = arg); + final $request = { + 'ResourceArn': resourceArn, + if (tagsToAdd != null) + if (tagsToAdd.isEmpty) + 'TagsToAdd': '' + else + for (var i1 = 0; i1 < tagsToAdd.length; i1++) + for (var e3 in tagsToAdd[i1].toQueryMap().entries) + 'TagsToAdd.member.${i1 + 1}.${e3.key}': e3.value, + if (tagsToRemove != null) + if (tagsToRemove.isEmpty) + 'TagsToRemove': '' + else + for (var i1 = 0; i1 < tagsToRemove.length; i1++) + 'TagsToRemove.member.${i1 + 1}': tagsToRemove[i1], + }; await _protocol.send( $request, action: 'UpdateTagsForResource', @@ -2531,8 +2639,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateTagsForResourceMessage'], - shapes: shapes, ); } @@ -2568,11 +2674,17 @@ class ElasticBeanstalk { String? environmentName, String? templateName, }) async { - final $request = {}; - $request['ApplicationName'] = applicationName; - $request['OptionSettings'] = optionSettings; - environmentName?.also((arg) => $request['EnvironmentName'] = arg); - templateName?.also((arg) => $request['TemplateName'] = arg); + final $request = { + 'ApplicationName': applicationName, + if (optionSettings.isEmpty) + 'OptionSettings': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSettings.member.${i1 + 1}.${e3.key}': e3.value, + if (environmentName != null) 'EnvironmentName': environmentName, + if (templateName != null) 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'ValidateConfigurationSettings', @@ -2580,8 +2692,6 @@ class ElasticBeanstalk { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ValidateConfigurationSettingsMessage'], - shapes: shapes, resultWrapper: 'ValidateConfigurationSettingsResult', ); return ConfigurationSettingsValidationMessages.fromXml($result); @@ -2864,6 +2974,17 @@ class ApplicationResourceLifecycleConfig { 'VersionLifecycleConfig': versionLifecycleConfig, }; } + + Map toQueryMap() { + final serviceRole = this.serviceRole; + final versionLifecycleConfig = this.versionLifecycleConfig; + return { + if (serviceRole != null) 'ServiceRole': serviceRole, + if (versionLifecycleConfig != null) + for (var e1 in versionLifecycleConfig.toQueryMap().entries) + 'VersionLifecycleConfig.${e1.key}': e1.value, + }; + } } class ApplicationResourceLifecycleDescriptionMessage { @@ -3064,6 +3185,19 @@ class ApplicationVersionLifecycleConfig { if (maxCountRule != null) 'MaxCountRule': maxCountRule, }; } + + Map toQueryMap() { + final maxAgeRule = this.maxAgeRule; + final maxCountRule = this.maxCountRule; + return { + if (maxAgeRule != null) + for (var e1 in maxAgeRule.toQueryMap().entries) + 'MaxAgeRule.${e1.key}': e1.value, + if (maxCountRule != null) + for (var e1 in maxCountRule.toQueryMap().entries) + 'MaxCountRule.${e1.key}': e1.value, + }; + } } enum ApplicationVersionStatus { @@ -3217,6 +3351,22 @@ class BuildConfiguration { if (timeoutInMinutes != null) 'TimeoutInMinutes': timeoutInMinutes, }; } + + Map toQueryMap() { + final codeBuildServiceRole = this.codeBuildServiceRole; + final image = this.image; + final artifactName = this.artifactName; + final computeType = this.computeType; + final timeoutInMinutes = this.timeoutInMinutes; + return { + 'CodeBuildServiceRole': codeBuildServiceRole, + 'Image': image, + if (artifactName != null) 'ArtifactName': artifactName, + if (computeType != null) 'ComputeType': computeType.toValue(), + if (timeoutInMinutes != null) + 'TimeoutInMinutes': timeoutInMinutes.toString(), + }; + } } /// The builder used to build the custom platform. @@ -3578,6 +3728,19 @@ class ConfigurationOptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final namespace = this.namespace; + final optionName = this.optionName; + final resourceName = this.resourceName; + final value = this.value; + return { + if (namespace != null) 'Namespace': namespace, + if (optionName != null) 'OptionName': optionName, + if (resourceName != null) 'ResourceName': resourceName, + if (value != null) 'Value': value, + }; + } } enum ConfigurationOptionValueType { @@ -4726,6 +4889,17 @@ class EnvironmentTier { if (version != null) 'Version': version, }; } + + Map toQueryMap() { + final name = this.name; + final type = this.type; + final version = this.version; + return { + if (name != null) 'Name': name, + if (type != null) 'Type': type, + if (version != null) 'Version': version, + }; + } } /// Describes an event. @@ -5409,6 +5583,18 @@ class MaxAgeRule { if (maxAgeInDays != null) 'MaxAgeInDays': maxAgeInDays, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final deleteSourceFromS3 = this.deleteSourceFromS3; + final maxAgeInDays = this.maxAgeInDays; + return { + 'Enabled': enabled.toString(), + if (deleteSourceFromS3 != null) + 'DeleteSourceFromS3': deleteSourceFromS3.toString(), + if (maxAgeInDays != null) 'MaxAgeInDays': maxAgeInDays.toString(), + }; + } } /// A lifecycle rule that deletes the oldest application version when the @@ -5448,6 +5634,18 @@ class MaxCountRule { if (maxCount != null) 'MaxCount': maxCount, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final deleteSourceFromS3 = this.deleteSourceFromS3; + final maxCount = this.maxCount; + return { + 'Enabled': enabled.toString(), + if (deleteSourceFromS3 != null) + 'DeleteSourceFromS3': deleteSourceFromS3.toString(), + if (maxCount != null) 'MaxCount': maxCount.toString(), + }; + } } /// A regular expression representing a restriction on a string configuration @@ -5499,6 +5697,17 @@ class OptionSpecification { if (resourceName != null) 'ResourceName': resourceName, }; } + + Map toQueryMap() { + final namespace = this.namespace; + final optionName = this.optionName; + final resourceName = this.resourceName; + return { + if (namespace != null) 'Namespace': namespace, + if (optionName != null) 'OptionName': optionName, + if (resourceName != null) 'ResourceName': resourceName, + }; + } } /// Summary information about a platform branch. @@ -5751,6 +5960,22 @@ class PlatformFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final operator = this.operator; + final type = this.type; + final values = this.values; + return { + if (operator != null) 'Operator': operator, + if (type != null) 'Type': type, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// A framework supported by the platform. @@ -6074,6 +6299,15 @@ class S3Location { if (s3Key != null) 'S3Key': s3Key, }; } + + Map toQueryMap() { + final s3Bucket = this.s3Bucket; + final s3Key = this.s3Key; + return { + if (s3Bucket != null) 'S3Bucket': s3Bucket, + if (s3Key != null) 'S3Key': s3Key, + }; + } } /// Describes criteria to restrict a list of results. @@ -6119,6 +6353,22 @@ class SearchFilter { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final attribute = this.attribute; + final operator = this.operator; + final values = this.values; + return { + if (attribute != null) 'Attribute': attribute, + if (operator != null) 'Operator': operator, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Detailed health information about an Amazon EC2 instance in your Elastic @@ -6284,6 +6534,17 @@ class SourceBuildInformation { 'SourceType': sourceType.toValue(), }; } + + Map toQueryMap() { + final sourceLocation = this.sourceLocation; + final sourceRepository = this.sourceRepository; + final sourceType = this.sourceType; + return { + 'SourceLocation': sourceLocation, + 'SourceRepository': sourceRepository.toValue(), + 'SourceType': sourceType.toValue(), + }; + } } /// A specification for an environment configuration. @@ -6307,6 +6568,15 @@ class SourceConfiguration { if (templateName != null) 'TemplateName': templateName, }; } + + Map toQueryMap() { + final applicationName = this.applicationName; + final templateName = this.templateName; + return { + if (applicationName != null) 'ApplicationName': applicationName, + if (templateName != null) 'TemplateName': templateName, + }; + } } enum SourceRepository { @@ -6456,6 +6726,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Describes a trigger. diff --git a/generated/aws_elb_api/lib/elasticloadbalancing-2012-06-01.dart b/generated/aws_elb_api/lib/elasticloadbalancing-2012-06-01.dart index 3cd95ec44..d0477c8c1 100644 --- a/generated/aws_elb_api/lib/elasticloadbalancing-2012-06-01.dart +++ b/generated/aws_elb_api/lib/elasticloadbalancing-2012-06-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'elasticloadbalancing-2012-06-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// A load balancer can distribute incoming traffic across your EC2 instances. @@ -30,7 +29,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// from the load balancer to the instances. class ElasticLoadBalancing { final _s.QueryProtocol _protocol; - final Map shapes; ElasticLoadBalancing({ required String region, @@ -38,7 +36,7 @@ class ElasticLoadBalancing { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticloadbalancing', @@ -47,9 +45,7 @@ class ElasticLoadBalancing { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -84,9 +80,19 @@ class ElasticLoadBalancing { required List loadBalancerNames, required List tags, }) async { - final $request = {}; - $request['LoadBalancerNames'] = loadBalancerNames; - $request['Tags'] = tags; + final $request = { + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTags', @@ -94,8 +100,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsInput'], - shapes: shapes, resultWrapper: 'AddTagsResult', ); } @@ -124,9 +128,14 @@ class ElasticLoadBalancing { required String loadBalancerName, required List securityGroups, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['SecurityGroups'] = securityGroups; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + }; final $result = await _protocol.send( $request, action: 'ApplySecurityGroupsToLoadBalancer', @@ -134,8 +143,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplySecurityGroupsToLoadBalancerInput'], - shapes: shapes, resultWrapper: 'ApplySecurityGroupsToLoadBalancerResult', ); return ApplySecurityGroupsToLoadBalancerOutput.fromXml($result); @@ -165,9 +172,14 @@ class ElasticLoadBalancing { required String loadBalancerName, required List subnets, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['Subnets'] = subnets; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + }; final $result = await _protocol.send( $request, action: 'AttachLoadBalancerToSubnets', @@ -175,8 +187,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachLoadBalancerToSubnetsInput'], - shapes: shapes, resultWrapper: 'AttachLoadBalancerToSubnetsResult', ); return AttachLoadBalancerToSubnetsOutput.fromXml($result); @@ -201,9 +211,11 @@ class ElasticLoadBalancing { required HealthCheck healthCheck, required String loadBalancerName, }) async { - final $request = {}; - $request['HealthCheck'] = healthCheck; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + for (var e1 in healthCheck.toQueryMap().entries) + 'HealthCheck.${e1.key}': e1.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'ConfigureHealthCheck', @@ -211,8 +223,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ConfigureHealthCheckInput'], - shapes: shapes, resultWrapper: 'ConfigureHealthCheckResult', ); return ConfigureHealthCheckOutput.fromXml($result); @@ -256,10 +266,11 @@ class ElasticLoadBalancing { required String loadBalancerName, required String policyName, }) async { - final $request = {}; - $request['CookieName'] = cookieName; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; + final $request = { + 'CookieName': cookieName, + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'CreateAppCookieStickinessPolicy', @@ -267,8 +278,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAppCookieStickinessPolicyInput'], - shapes: shapes, resultWrapper: 'CreateAppCookieStickinessPolicyResult', ); } @@ -317,11 +326,12 @@ class ElasticLoadBalancing { required String policyName, int? cookieExpirationPeriod, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; - cookieExpirationPeriod - ?.also((arg) => $request['CookieExpirationPeriod'] = arg); + final $request = { + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + if (cookieExpirationPeriod != null) + 'CookieExpirationPeriod': cookieExpirationPeriod.toString(), + }; await _protocol.send( $request, action: 'CreateLBCookieStickinessPolicy', @@ -329,8 +339,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLBCookieStickinessPolicyInput'], - shapes: shapes, resultWrapper: 'CreateLBCookieStickinessPolicyResult', ); } @@ -425,14 +433,41 @@ class ElasticLoadBalancing { List? subnets, List? tags, }) async { - final $request = {}; - $request['Listeners'] = listeners; - $request['LoadBalancerName'] = loadBalancerName; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - scheme?.also((arg) => $request['Scheme'] = arg); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); - subnets?.also((arg) => $request['Subnets'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (listeners.isEmpty) + 'Listeners': '' + else + for (var i1 = 0; i1 < listeners.length; i1++) + for (var e3 in listeners[i1].toQueryMap().entries) + 'Listeners.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + if (scheme != null) 'Scheme': scheme, + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (subnets != null) + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateLoadBalancer', @@ -440,8 +475,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAccessPointInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerResult', ); return CreateAccessPointOutput.fromXml($result); @@ -472,9 +505,15 @@ class ElasticLoadBalancing { required List listeners, required String loadBalancerName, }) async { - final $request = {}; - $request['Listeners'] = listeners; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (listeners.isEmpty) + 'Listeners': '' + else + for (var i1 = 0; i1 < listeners.length; i1++) + for (var e3 in listeners[i1].toQueryMap().entries) + 'Listeners.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + }; await _protocol.send( $request, action: 'CreateLoadBalancerListeners', @@ -482,8 +521,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoadBalancerListenerInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerListenersResult', ); } @@ -520,11 +557,18 @@ class ElasticLoadBalancing { required String policyTypeName, List? policyAttributes, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; - $request['PolicyTypeName'] = policyTypeName; - policyAttributes?.also((arg) => $request['PolicyAttributes'] = arg); + final $request = { + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + 'PolicyTypeName': policyTypeName, + if (policyAttributes != null) + if (policyAttributes.isEmpty) + 'PolicyAttributes': '' + else + for (var i1 = 0; i1 < policyAttributes.length; i1++) + for (var e3 in policyAttributes[i1].toQueryMap().entries) + 'PolicyAttributes.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'CreateLoadBalancerPolicy', @@ -532,8 +576,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoadBalancerPolicyInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerPolicyResult', ); } @@ -554,8 +596,9 @@ class ElasticLoadBalancing { Future deleteLoadBalancer({ required String loadBalancerName, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + 'LoadBalancerName': loadBalancerName, + }; await _protocol.send( $request, action: 'DeleteLoadBalancer', @@ -563,8 +606,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAccessPointInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerResult', ); } @@ -582,9 +623,15 @@ class ElasticLoadBalancing { required String loadBalancerName, required List loadBalancerPorts, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['LoadBalancerPorts'] = loadBalancerPorts; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (loadBalancerPorts.isEmpty) + 'LoadBalancerPorts': '' + else + for (var i1 = 0; i1 < loadBalancerPorts.length; i1++) + 'LoadBalancerPorts.member.${i1 + 1}': + loadBalancerPorts[i1].toString(), + }; await _protocol.send( $request, action: 'DeleteLoadBalancerListeners', @@ -592,8 +639,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoadBalancerListenerInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerListenersResult', ); } @@ -613,9 +658,10 @@ class ElasticLoadBalancing { required String loadBalancerName, required String policyName, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyName'] = policyName; + final $request = { + 'LoadBalancerName': loadBalancerName, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'DeleteLoadBalancerPolicy', @@ -623,8 +669,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoadBalancerPolicyInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerPolicyResult', ); } @@ -653,9 +697,15 @@ class ElasticLoadBalancing { required List instances, required String loadBalancerName, }) async { - final $request = {}; - $request['Instances'] = instances; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (instances.isEmpty) + 'Instances': '' + else + for (var i1 = 0; i1 < instances.length; i1++) + for (var e3 in instances[i1].toQueryMap().entries) + 'Instances.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'DeregisterInstancesFromLoadBalancer', @@ -663,8 +713,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterEndPointsInput'], - shapes: shapes, resultWrapper: 'DeregisterInstancesFromLoadBalancerResult', ); return DeregisterEndPointsOutput.fromXml($result); @@ -694,9 +742,10 @@ class ElasticLoadBalancing { 1, 400, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -704,8 +753,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountLimitsInput'], - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsOutput.fromXml($result); @@ -730,9 +777,16 @@ class ElasticLoadBalancing { required String loadBalancerName, List? instances, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - instances?.also((arg) => $request['Instances'] = arg); + final $request = { + 'LoadBalancerName': loadBalancerName, + if (instances != null) + if (instances.isEmpty) + 'Instances': '' + else + for (var i1 = 0; i1 < instances.length; i1++) + for (var e3 in instances[i1].toQueryMap().entries) + 'Instances.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'DescribeInstanceHealth', @@ -740,8 +794,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEndPointStateInput'], - shapes: shapes, resultWrapper: 'DescribeInstanceHealthResult', ); return DescribeEndPointStateOutput.fromXml($result); @@ -757,8 +809,9 @@ class ElasticLoadBalancing { Future describeLoadBalancerAttributes({ required String loadBalancerName, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerAttributes', @@ -766,8 +819,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerAttributesResult', ); return DescribeLoadBalancerAttributesOutput.fromXml($result); @@ -795,9 +846,15 @@ class ElasticLoadBalancing { String? loadBalancerName, List? policyNames, }) async { - final $request = {}; - loadBalancerName?.also((arg) => $request['LoadBalancerName'] = arg); - policyNames?.also((arg) => $request['PolicyNames'] = arg); + final $request = { + if (loadBalancerName != null) 'LoadBalancerName': loadBalancerName, + if (policyNames != null) + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerPolicies', @@ -805,8 +862,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerPoliciesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerPoliciesResult', ); return DescribeLoadBalancerPoliciesOutput.fromXml($result); @@ -834,8 +889,14 @@ class ElasticLoadBalancing { describeLoadBalancerPolicyTypes({ List? policyTypeNames, }) async { - final $request = {}; - policyTypeNames?.also((arg) => $request['PolicyTypeNames'] = arg); + final $request = { + if (policyTypeNames != null) + if (policyTypeNames.isEmpty) + 'PolicyTypeNames': '' + else + for (var i1 = 0; i1 < policyTypeNames.length; i1++) + 'PolicyTypeNames.member.${i1 + 1}': policyTypeNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerPolicyTypes', @@ -843,8 +904,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerPolicyTypesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerPolicyTypesResult', ); return DescribeLoadBalancerPolicyTypesOutput.fromXml($result); @@ -877,10 +936,16 @@ class ElasticLoadBalancing { 1, 400, ); - final $request = {}; - loadBalancerNames?.also((arg) => $request['LoadBalancerNames'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (loadBalancerNames != null) + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancers', @@ -888,8 +953,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccessPointsInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancersResult', ); return DescribeAccessPointsOutput.fromXml($result); @@ -904,8 +967,13 @@ class ElasticLoadBalancing { Future describeTags({ required List loadBalancerNames, }) async { - final $request = {}; - $request['LoadBalancerNames'] = loadBalancerNames; + final $request = { + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -913,8 +981,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsInput'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return DescribeTagsOutput.fromXml($result); @@ -940,9 +1006,14 @@ class ElasticLoadBalancing { required String loadBalancerName, required List subnets, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['Subnets'] = subnets; + final $request = { + 'LoadBalancerName': loadBalancerName, + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + }; final $result = await _protocol.send( $request, action: 'DetachLoadBalancerFromSubnets', @@ -950,8 +1021,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachLoadBalancerFromSubnetsInput'], - shapes: shapes, resultWrapper: 'DetachLoadBalancerFromSubnetsResult', ); return DetachLoadBalancerFromSubnetsOutput.fromXml($result); @@ -988,9 +1057,14 @@ class ElasticLoadBalancing { required List availabilityZones, required String loadBalancerName, }) async { - final $request = {}; - $request['AvailabilityZones'] = availabilityZones; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'DisableAvailabilityZonesForLoadBalancer', @@ -998,8 +1072,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveAvailabilityZonesInput'], - shapes: shapes, resultWrapper: 'DisableAvailabilityZonesForLoadBalancerResult', ); return RemoveAvailabilityZonesOutput.fromXml($result); @@ -1029,9 +1101,14 @@ class ElasticLoadBalancing { required List availabilityZones, required String loadBalancerName, }) async { - final $request = {}; - $request['AvailabilityZones'] = availabilityZones; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.member.${i1 + 1}': availabilityZones[i1], + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'EnableAvailabilityZonesForLoadBalancer', @@ -1039,8 +1116,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddAvailabilityZonesInput'], - shapes: shapes, resultWrapper: 'EnableAvailabilityZonesForLoadBalancerResult', ); return AddAvailabilityZonesOutput.fromXml($result); @@ -1094,9 +1169,11 @@ class ElasticLoadBalancing { required LoadBalancerAttributes loadBalancerAttributes, required String loadBalancerName, }) async { - final $request = {}; - $request['LoadBalancerAttributes'] = loadBalancerAttributes; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + for (var e1 in loadBalancerAttributes.toQueryMap().entries) + 'LoadBalancerAttributes.${e1.key}': e1.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'ModifyLoadBalancerAttributes', @@ -1104,8 +1181,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'ModifyLoadBalancerAttributesResult', ); return ModifyLoadBalancerAttributesOutput.fromXml($result); @@ -1151,9 +1226,15 @@ class ElasticLoadBalancing { required List instances, required String loadBalancerName, }) async { - final $request = {}; - $request['Instances'] = instances; - $request['LoadBalancerName'] = loadBalancerName; + final $request = { + if (instances.isEmpty) + 'Instances': '' + else + for (var i1 = 0; i1 < instances.length; i1++) + for (var e3 in instances[i1].toQueryMap().entries) + 'Instances.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerName': loadBalancerName, + }; final $result = await _protocol.send( $request, action: 'RegisterInstancesWithLoadBalancer', @@ -1161,8 +1242,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterEndPointsInput'], - shapes: shapes, resultWrapper: 'RegisterInstancesWithLoadBalancerResult', ); return RegisterEndPointsOutput.fromXml($result); @@ -1182,9 +1261,19 @@ class ElasticLoadBalancing { required List loadBalancerNames, required List tags, }) async { - final $request = {}; - $request['LoadBalancerNames'] = loadBalancerNames; - $request['Tags'] = tags; + final $request = { + if (loadBalancerNames.isEmpty) + 'LoadBalancerNames': '' + else + for (var i1 = 0; i1 < loadBalancerNames.length; i1++) + 'LoadBalancerNames.member.${i1 + 1}': loadBalancerNames[i1], + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'RemoveTags', @@ -1192,8 +1281,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsInput'], - shapes: shapes, resultWrapper: 'RemoveTagsResult', ); } @@ -1226,10 +1313,11 @@ class ElasticLoadBalancing { required int loadBalancerPort, required String sSLCertificateId, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['LoadBalancerPort'] = loadBalancerPort; - $request['SSLCertificateId'] = sSLCertificateId; + final $request = { + 'LoadBalancerName': loadBalancerName, + 'LoadBalancerPort': loadBalancerPort.toString(), + 'SSLCertificateId': sSLCertificateId, + }; await _protocol.send( $request, action: 'SetLoadBalancerListenerSSLCertificate', @@ -1237,8 +1325,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetLoadBalancerListenerSSLCertificateInput'], - shapes: shapes, resultWrapper: 'SetLoadBalancerListenerSSLCertificateResult', ); } @@ -1283,10 +1369,15 @@ class ElasticLoadBalancing { required String loadBalancerName, required List policyNames, }) async { - final $request = {}; - $request['InstancePort'] = instancePort; - $request['LoadBalancerName'] = loadBalancerName; - $request['PolicyNames'] = policyNames; + final $request = { + 'InstancePort': instancePort.toString(), + 'LoadBalancerName': loadBalancerName, + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; await _protocol.send( $request, action: 'SetLoadBalancerPoliciesForBackendServer', @@ -1294,8 +1385,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetLoadBalancerPoliciesForBackendServerInput'], - shapes: shapes, resultWrapper: 'SetLoadBalancerPoliciesForBackendServerResult', ); } @@ -1334,10 +1423,15 @@ class ElasticLoadBalancing { required int loadBalancerPort, required List policyNames, }) async { - final $request = {}; - $request['LoadBalancerName'] = loadBalancerName; - $request['LoadBalancerPort'] = loadBalancerPort; - $request['PolicyNames'] = policyNames; + final $request = { + 'LoadBalancerName': loadBalancerName, + 'LoadBalancerPort': loadBalancerPort.toString(), + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; await _protocol.send( $request, action: 'SetLoadBalancerPoliciesOfListener', @@ -1345,8 +1439,6 @@ class ElasticLoadBalancing { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetLoadBalancerPoliciesOfListenerInput'], - shapes: shapes, resultWrapper: 'SetLoadBalancerPoliciesOfListenerResult', ); } @@ -1398,6 +1490,19 @@ class AccessLog { if (s3BucketPrefix != null) 'S3BucketPrefix': s3BucketPrefix, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final emitInterval = this.emitInterval; + final s3BucketName = this.s3BucketName; + final s3BucketPrefix = this.s3BucketPrefix; + return { + 'Enabled': enabled.toString(), + if (emitInterval != null) 'EmitInterval': emitInterval.toString(), + if (s3BucketName != null) 'S3BucketName': s3BucketName, + if (s3BucketPrefix != null) 'S3BucketPrefix': s3BucketPrefix, + }; + } } /// Contains the output of EnableAvailabilityZonesForLoadBalancer. @@ -1466,6 +1571,15 @@ class AdditionalAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Information about a policy for application-controlled session stickiness. @@ -1589,6 +1703,15 @@ class ConnectionDraining { if (timeout != null) 'Timeout': timeout, }; } + + Map toQueryMap() { + final enabled = this.enabled; + final timeout = this.timeout; + return { + 'Enabled': enabled.toString(), + if (timeout != null) 'Timeout': timeout.toString(), + }; + } } /// Information about the ConnectionSettings attribute. @@ -1612,6 +1735,13 @@ class ConnectionSettings { 'IdleTimeout': idleTimeout, }; } + + Map toQueryMap() { + final idleTimeout = this.idleTimeout; + return { + 'IdleTimeout': idleTimeout.toString(), + }; + } } /// Contains the output for CreateLoadBalancer. @@ -1690,6 +1820,13 @@ class CrossZoneLoadBalancing { 'Enabled': enabled, }; } + + Map toQueryMap() { + final enabled = this.enabled; + return { + 'Enabled': enabled.toString(), + }; + } } /// Contains the output of DeleteLoadBalancer. @@ -1962,6 +2099,21 @@ class HealthCheck { 'UnhealthyThreshold': unhealthyThreshold, }; } + + Map toQueryMap() { + final healthyThreshold = this.healthyThreshold; + final interval = this.interval; + final target = this.target; + final timeout = this.timeout; + final unhealthyThreshold = this.unhealthyThreshold; + return { + 'HealthyThreshold': healthyThreshold.toString(), + 'Interval': interval.toString(), + 'Target': target, + 'Timeout': timeout.toString(), + 'UnhealthyThreshold': unhealthyThreshold.toString(), + }; + } } /// The ID of an EC2 instance. @@ -1984,6 +2136,13 @@ class Instance { if (instanceId != null) 'InstanceId': instanceId, }; } + + Map toQueryMap() { + final instanceId = this.instanceId; + return { + if (instanceId != null) 'InstanceId': instanceId, + }; + } } /// Information about the state of an EC2 instance. @@ -2192,6 +2351,21 @@ class Listener { if (sSLCertificateId != null) 'SSLCertificateId': sSLCertificateId, }; } + + Map toQueryMap() { + final instancePort = this.instancePort; + final loadBalancerPort = this.loadBalancerPort; + final protocol = this.protocol; + final instanceProtocol = this.instanceProtocol; + final sSLCertificateId = this.sSLCertificateId; + return { + 'InstancePort': instancePort.toString(), + 'LoadBalancerPort': loadBalancerPort.toString(), + 'Protocol': protocol, + if (instanceProtocol != null) 'InstanceProtocol': instanceProtocol, + if (sSLCertificateId != null) 'SSLCertificateId': sSLCertificateId, + }; + } } /// The policies enabled for a listener. @@ -2300,6 +2474,35 @@ class LoadBalancerAttributes { 'CrossZoneLoadBalancing': crossZoneLoadBalancing, }; } + + Map toQueryMap() { + final accessLog = this.accessLog; + final additionalAttributes = this.additionalAttributes; + final connectionDraining = this.connectionDraining; + final connectionSettings = this.connectionSettings; + final crossZoneLoadBalancing = this.crossZoneLoadBalancing; + return { + if (accessLog != null) + for (var e1 in accessLog.toQueryMap().entries) + 'AccessLog.${e1.key}': e1.value, + if (additionalAttributes != null) + if (additionalAttributes.isEmpty) + 'AdditionalAttributes': '' + else + for (var i1 = 0; i1 < additionalAttributes.length; i1++) + for (var e3 in additionalAttributes[i1].toQueryMap().entries) + 'AdditionalAttributes.member.${i1 + 1}.${e3.key}': e3.value, + if (connectionDraining != null) + for (var e1 in connectionDraining.toQueryMap().entries) + 'ConnectionDraining.${e1.key}': e1.value, + if (connectionSettings != null) + for (var e1 in connectionSettings.toQueryMap().entries) + 'ConnectionSettings.${e1.key}': e1.value, + if (crossZoneLoadBalancing != null) + for (var e1 in crossZoneLoadBalancing.toQueryMap().entries) + 'CrossZoneLoadBalancing.${e1.key}': e1.value, + }; + } } /// Information about a load balancer. @@ -2509,6 +2712,15 @@ class PolicyAttribute { if (attributeValue != null) 'AttributeValue': attributeValue, }; } + + Map toQueryMap() { + final attributeName = this.attributeName; + final attributeValue = this.attributeValue; + return { + if (attributeName != null) 'AttributeName': attributeName, + if (attributeValue != null) 'AttributeValue': attributeValue, + }; + } } /// Information about a policy attribute. @@ -2765,6 +2977,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + if (value != null) 'Value': value, + }; + } } /// The tags associated with a load balancer. @@ -2803,6 +3024,13 @@ class TagKeyOnly { if (key != null) 'Key': key, }; } + + Map toQueryMap() { + final key = this.key; + return { + if (key != null) 'Key': key, + }; + } } class AccessPointNotFoundException extends _s.GenericAwsException { diff --git a/generated/aws_elbv2_api/lib/elasticloadbalancingv2-2015-12-01.dart b/generated/aws_elbv2_api/lib/elasticloadbalancingv2-2015-12-01.dart index 036361313..cb368075e 100644 --- a/generated/aws_elbv2_api/lib/elasticloadbalancingv2-2015-12-01.dart +++ b/generated/aws_elbv2_api/lib/elasticloadbalancingv2-2015-12-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'elasticloadbalancingv2-2015-12-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// A load balancer distributes incoming traffic across targets, such as your @@ -32,7 +31,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// health status of the targets. class ElasticLoadBalancingv2 { final _s.QueryProtocol _protocol; - final Map shapes; ElasticLoadBalancingv2({ required String region, @@ -40,7 +38,7 @@ class ElasticLoadBalancingv2 { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'elasticloadbalancing', @@ -49,9 +47,7 @@ class ElasticLoadBalancingv2 { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -89,9 +85,15 @@ class ElasticLoadBalancingv2 { required List certificates, required String listenerArn, }) async { - final $request = {}; - $request['Certificates'] = certificates; - $request['ListenerArn'] = listenerArn; + final $request = { + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + 'ListenerArn': listenerArn, + }; final $result = await _protocol.send( $request, action: 'AddListenerCertificates', @@ -99,8 +101,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddListenerCertificatesInput'], - shapes: shapes, resultWrapper: 'AddListenerCertificatesResult', ); return AddListenerCertificatesOutput.fromXml($result); @@ -130,9 +130,19 @@ class ElasticLoadBalancingv2 { required List resourceArns, required List tags, }) async { - final $request = {}; - $request['ResourceArns'] = resourceArns; - $request['Tags'] = tags; + final $request = { + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTags', @@ -140,8 +150,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsInput'], - shapes: shapes, resultWrapper: 'AddTagsResult', ); } @@ -162,9 +170,16 @@ class ElasticLoadBalancingv2 { required String trustStoreArn, List? revocationContents, }) async { - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; - revocationContents?.also((arg) => $request['RevocationContents'] = arg); + final $request = { + 'TrustStoreArn': trustStoreArn, + if (revocationContents != null) + if (revocationContents.isEmpty) + 'RevocationContents': '' + else + for (var i1 = 0; i1 < revocationContents.length; i1++) + for (var e3 in revocationContents[i1].toQueryMap().entries) + 'RevocationContents.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'AddTrustStoreRevocations', @@ -172,8 +187,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTrustStoreRevocationsInput'], - shapes: shapes, resultWrapper: 'AddTrustStoreRevocationsResult', ); return AddTrustStoreRevocationsOutput.fromXml($result); @@ -306,16 +319,41 @@ class ElasticLoadBalancingv2 { 1, 65535, ); - final $request = {}; - $request['DefaultActions'] = defaultActions; - $request['LoadBalancerArn'] = loadBalancerArn; - alpnPolicy?.also((arg) => $request['AlpnPolicy'] = arg); - certificates?.also((arg) => $request['Certificates'] = arg); - mutualAuthentication?.also((arg) => $request['MutualAuthentication'] = arg); - port?.also((arg) => $request['Port'] = arg); - protocol?.also((arg) => $request['Protocol'] = arg.toValue()); - sslPolicy?.also((arg) => $request['SslPolicy'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (defaultActions.isEmpty) + 'DefaultActions': '' + else + for (var i1 = 0; i1 < defaultActions.length; i1++) + for (var e3 in defaultActions[i1].toQueryMap().entries) + 'DefaultActions.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerArn': loadBalancerArn, + if (alpnPolicy != null) + if (alpnPolicy.isEmpty) + 'AlpnPolicy': '' + else + for (var i1 = 0; i1 < alpnPolicy.length; i1++) + 'AlpnPolicy.member.${i1 + 1}': alpnPolicy[i1], + if (certificates != null) + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + if (mutualAuthentication != null) + for (var e1 in mutualAuthentication.toQueryMap().entries) + 'MutualAuthentication.${e1.key}': e1.value, + if (port != null) 'Port': port.toString(), + if (protocol != null) 'Protocol': protocol.toValue(), + if (sslPolicy != null) 'SslPolicy': sslPolicy, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateListener', @@ -323,8 +361,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateListenerInput'], - shapes: shapes, resultWrapper: 'CreateListenerResult', ); return CreateListenerOutput.fromXml($result); @@ -480,17 +516,40 @@ class ElasticLoadBalancingv2 { List? tags, LoadBalancerTypeEnum? type, }) async { - final $request = {}; - $request['Name'] = name; - customerOwnedIpv4Pool - ?.also((arg) => $request['CustomerOwnedIpv4Pool'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg.toValue()); - scheme?.also((arg) => $request['Scheme'] = arg.toValue()); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); - subnetMappings?.also((arg) => $request['SubnetMappings'] = arg); - subnets?.also((arg) => $request['Subnets'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - type?.also((arg) => $request['Type'] = arg.toValue()); + final $request = { + 'Name': name, + if (customerOwnedIpv4Pool != null) + 'CustomerOwnedIpv4Pool': customerOwnedIpv4Pool, + if (ipAddressType != null) 'IpAddressType': ipAddressType.toValue(), + if (scheme != null) 'Scheme': scheme.toValue(), + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (subnetMappings != null) + if (subnetMappings.isEmpty) + 'SubnetMappings': '' + else + for (var i1 = 0; i1 < subnetMappings.length; i1++) + for (var e3 in subnetMappings[i1].toQueryMap().entries) + 'SubnetMappings.member.${i1 + 1}.${e3.key}': e3.value, + if (subnets != null) + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (type != null) 'Type': type.toValue(), + }; final $result = await _protocol.send( $request, action: 'CreateLoadBalancer', @@ -498,8 +557,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoadBalancerInput'], - shapes: shapes, resultWrapper: 'CreateLoadBalancerResult', ); return CreateLoadBalancerOutput.fromXml($result); @@ -561,12 +618,29 @@ class ElasticLoadBalancingv2 { 50000, isRequired: true, ); - final $request = {}; - $request['Actions'] = actions; - $request['Conditions'] = conditions; - $request['ListenerArn'] = listenerArn; - $request['Priority'] = priority; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (actions.isEmpty) + 'Actions': '' + else + for (var i1 = 0; i1 < actions.length; i1++) + for (var e3 in actions[i1].toQueryMap().entries) + 'Actions.member.${i1 + 1}.${e3.key}': e3.value, + if (conditions.isEmpty) + 'Conditions': '' + else + for (var i1 = 0; i1 < conditions.length; i1++) + for (var e3 in conditions[i1].toQueryMap().entries) + 'Conditions.member.${i1 + 1}.${e3.key}': e3.value, + 'ListenerArn': listenerArn, + 'Priority': priority.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateRule', @@ -574,8 +648,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateRuleInput'], - shapes: shapes, resultWrapper: 'CreateRuleResult', ); return CreateRuleOutput.fromXml($result); @@ -792,29 +864,39 @@ class ElasticLoadBalancingv2 { 2, 10, ); - final $request = {}; - $request['Name'] = name; - healthCheckEnabled?.also((arg) => $request['HealthCheckEnabled'] = arg); - healthCheckIntervalSeconds - ?.also((arg) => $request['HealthCheckIntervalSeconds'] = arg); - healthCheckPath?.also((arg) => $request['HealthCheckPath'] = arg); - healthCheckPort?.also((arg) => $request['HealthCheckPort'] = arg); - healthCheckProtocol - ?.also((arg) => $request['HealthCheckProtocol'] = arg.toValue()); - healthCheckTimeoutSeconds - ?.also((arg) => $request['HealthCheckTimeoutSeconds'] = arg); - healthyThresholdCount - ?.also((arg) => $request['HealthyThresholdCount'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg.toValue()); - matcher?.also((arg) => $request['Matcher'] = arg); - port?.also((arg) => $request['Port'] = arg); - protocol?.also((arg) => $request['Protocol'] = arg.toValue()); - protocolVersion?.also((arg) => $request['ProtocolVersion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetType?.also((arg) => $request['TargetType'] = arg.toValue()); - unhealthyThresholdCount - ?.also((arg) => $request['UnhealthyThresholdCount'] = arg); - vpcId?.also((arg) => $request['VpcId'] = arg); + final $request = { + 'Name': name, + if (healthCheckEnabled != null) + 'HealthCheckEnabled': healthCheckEnabled.toString(), + if (healthCheckIntervalSeconds != null) + 'HealthCheckIntervalSeconds': healthCheckIntervalSeconds.toString(), + if (healthCheckPath != null) 'HealthCheckPath': healthCheckPath, + if (healthCheckPort != null) 'HealthCheckPort': healthCheckPort, + if (healthCheckProtocol != null) + 'HealthCheckProtocol': healthCheckProtocol.toValue(), + if (healthCheckTimeoutSeconds != null) + 'HealthCheckTimeoutSeconds': healthCheckTimeoutSeconds.toString(), + if (healthyThresholdCount != null) + 'HealthyThresholdCount': healthyThresholdCount.toString(), + if (ipAddressType != null) 'IpAddressType': ipAddressType.toValue(), + if (matcher != null) + for (var e1 in matcher.toQueryMap().entries) + 'Matcher.${e1.key}': e1.value, + if (port != null) 'Port': port.toString(), + if (protocol != null) 'Protocol': protocol.toValue(), + if (protocolVersion != null) 'ProtocolVersion': protocolVersion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (targetType != null) 'TargetType': targetType.toValue(), + if (unhealthyThresholdCount != null) + 'UnhealthyThresholdCount': unhealthyThresholdCount.toString(), + if (vpcId != null) 'VpcId': vpcId, + }; final $result = await _protocol.send( $request, action: 'CreateTargetGroup', @@ -822,8 +904,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTargetGroupInput'], - shapes: shapes, resultWrapper: 'CreateTargetGroupResult', ); return CreateTargetGroupOutput.fromXml($result); @@ -862,13 +942,21 @@ class ElasticLoadBalancingv2 { String? caCertificatesBundleS3ObjectVersion, List? tags, }) async { - final $request = {}; - $request['CaCertificatesBundleS3Bucket'] = caCertificatesBundleS3Bucket; - $request['CaCertificatesBundleS3Key'] = caCertificatesBundleS3Key; - $request['Name'] = name; - caCertificatesBundleS3ObjectVersion - ?.also((arg) => $request['CaCertificatesBundleS3ObjectVersion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CaCertificatesBundleS3Bucket': caCertificatesBundleS3Bucket, + 'CaCertificatesBundleS3Key': caCertificatesBundleS3Key, + 'Name': name, + if (caCertificatesBundleS3ObjectVersion != null) + 'CaCertificatesBundleS3ObjectVersion': + caCertificatesBundleS3ObjectVersion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateTrustStore', @@ -876,8 +964,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTrustStoreInput'], - shapes: shapes, resultWrapper: 'CreateTrustStoreResult', ); return CreateTrustStoreOutput.fromXml($result); @@ -896,8 +982,9 @@ class ElasticLoadBalancingv2 { Future deleteListener({ required String listenerArn, }) async { - final $request = {}; - $request['ListenerArn'] = listenerArn; + final $request = { + 'ListenerArn': listenerArn, + }; await _protocol.send( $request, action: 'DeleteListener', @@ -905,8 +992,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteListenerInput'], - shapes: shapes, resultWrapper: 'DeleteListenerResult', ); } @@ -933,8 +1018,9 @@ class ElasticLoadBalancingv2 { Future deleteLoadBalancer({ required String loadBalancerArn, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + 'LoadBalancerArn': loadBalancerArn, + }; await _protocol.send( $request, action: 'DeleteLoadBalancer', @@ -942,8 +1028,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoadBalancerInput'], - shapes: shapes, resultWrapper: 'DeleteLoadBalancerResult', ); } @@ -960,8 +1044,9 @@ class ElasticLoadBalancingv2 { Future deleteRule({ required String ruleArn, }) async { - final $request = {}; - $request['RuleArn'] = ruleArn; + final $request = { + 'RuleArn': ruleArn, + }; await _protocol.send( $request, action: 'DeleteRule', @@ -969,8 +1054,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRuleInput'], - shapes: shapes, resultWrapper: 'DeleteRuleResult', ); } @@ -990,8 +1073,9 @@ class ElasticLoadBalancingv2 { Future deleteTargetGroup({ required String targetGroupArn, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; + final $request = { + 'TargetGroupArn': targetGroupArn, + }; await _protocol.send( $request, action: 'DeleteTargetGroup', @@ -999,8 +1083,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTargetGroupInput'], - shapes: shapes, resultWrapper: 'DeleteTargetGroupResult', ); } @@ -1015,8 +1097,9 @@ class ElasticLoadBalancingv2 { Future deleteTrustStore({ required String trustStoreArn, }) async { - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + 'TrustStoreArn': trustStoreArn, + }; await _protocol.send( $request, action: 'DeleteTrustStore', @@ -1024,8 +1107,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTrustStoreInput'], - shapes: shapes, resultWrapper: 'DeleteTrustStoreResult', ); } @@ -1076,9 +1157,15 @@ class ElasticLoadBalancingv2 { required String targetGroupArn, required List targets, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - $request['Targets'] = targets; + final $request = { + 'TargetGroupArn': targetGroupArn, + if (targets.isEmpty) + 'Targets': '' + else + for (var i1 = 0; i1 < targets.length; i1++) + for (var e3 in targets[i1].toQueryMap().entries) + 'Targets.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'DeregisterTargets', @@ -1086,8 +1173,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterTargetsInput'], - shapes: shapes, resultWrapper: 'DeregisterTargetsResult', ); } @@ -1131,9 +1216,10 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeAccountLimits', @@ -1141,8 +1227,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountLimitsInput'], - shapes: shapes, resultWrapper: 'DescribeAccountLimitsResult', ); return DescribeAccountLimitsOutput.fromXml($result); @@ -1183,10 +1267,11 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - $request['ListenerArn'] = listenerArn; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + 'ListenerArn': listenerArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeListenerCertificates', @@ -1194,8 +1279,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeListenerCertificatesInput'], - shapes: shapes, resultWrapper: 'DescribeListenerCertificatesResult', ); return DescribeListenerCertificatesOutput.fromXml($result); @@ -1234,11 +1317,17 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - listenerArns?.also((arg) => $request['ListenerArns'] = arg); - loadBalancerArn?.also((arg) => $request['LoadBalancerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (listenerArns != null) + if (listenerArns.isEmpty) + 'ListenerArns': '' + else + for (var i1 = 0; i1 < listenerArns.length; i1++) + 'ListenerArns.member.${i1 + 1}': listenerArns[i1], + if (loadBalancerArn != null) 'LoadBalancerArn': loadBalancerArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeListeners', @@ -1246,8 +1335,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeListenersInput'], - shapes: shapes, resultWrapper: 'DescribeListenersResult', ); return DescribeListenersOutput.fromXml($result); @@ -1283,8 +1370,9 @@ class ElasticLoadBalancingv2 { Future describeLoadBalancerAttributes({ required String loadBalancerArn, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + 'LoadBalancerArn': loadBalancerArn, + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancerAttributes', @@ -1292,8 +1380,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancerAttributesResult', ); return DescribeLoadBalancerAttributesOutput.fromXml($result); @@ -1328,11 +1414,22 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - loadBalancerArns?.also((arg) => $request['LoadBalancerArns'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (loadBalancerArns != null) + if (loadBalancerArns.isEmpty) + 'LoadBalancerArns': '' + else + for (var i1 = 0; i1 < loadBalancerArns.length; i1++) + 'LoadBalancerArns.member.${i1 + 1}': loadBalancerArns[i1], + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeLoadBalancers', @@ -1340,8 +1437,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoadBalancersInput'], - shapes: shapes, resultWrapper: 'DescribeLoadBalancersResult', ); return DescribeLoadBalancersOutput.fromXml($result); @@ -1378,11 +1473,17 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - listenerArn?.also((arg) => $request['ListenerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - ruleArns?.also((arg) => $request['RuleArns'] = arg); + final $request = { + if (listenerArn != null) 'ListenerArn': listenerArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + if (ruleArns != null) + if (ruleArns.isEmpty) + 'RuleArns': '' + else + for (var i1 = 0; i1 < ruleArns.length; i1++) + 'RuleArns.member.${i1 + 1}': ruleArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeRules', @@ -1390,8 +1491,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeRulesInput'], - shapes: shapes, resultWrapper: 'DescribeRulesResult', ); return DescribeRulesOutput.fromXml($result); @@ -1432,12 +1531,18 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - loadBalancerType - ?.also((arg) => $request['LoadBalancerType'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + if (loadBalancerType != null) + 'LoadBalancerType': loadBalancerType.toValue(), + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeSSLPolicies', @@ -1445,8 +1550,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSSLPoliciesInput'], - shapes: shapes, resultWrapper: 'DescribeSSLPoliciesResult', ); return DescribeSSLPoliciesOutput.fromXml($result); @@ -1469,8 +1572,13 @@ class ElasticLoadBalancingv2 { Future describeTags({ required List resourceArns, }) async { - final $request = {}; - $request['ResourceArns'] = resourceArns; + final $request = { + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -1478,8 +1586,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsInput'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return DescribeTagsOutput.fromXml($result); @@ -1514,8 +1620,9 @@ class ElasticLoadBalancingv2 { Future describeTargetGroupAttributes({ required String targetGroupArn, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; + final $request = { + 'TargetGroupArn': targetGroupArn, + }; final $result = await _protocol.send( $request, action: 'DescribeTargetGroupAttributes', @@ -1523,8 +1630,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTargetGroupAttributesInput'], - shapes: shapes, resultWrapper: 'DescribeTargetGroupAttributesResult', ); return DescribeTargetGroupAttributesOutput.fromXml($result); @@ -1567,12 +1672,23 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - loadBalancerArn?.also((arg) => $request['LoadBalancerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - targetGroupArns?.also((arg) => $request['TargetGroupArns'] = arg); + final $request = { + if (loadBalancerArn != null) 'LoadBalancerArn': loadBalancerArn, + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + if (targetGroupArns != null) + if (targetGroupArns.isEmpty) + 'TargetGroupArns': '' + else + for (var i1 = 0; i1 < targetGroupArns.length; i1++) + 'TargetGroupArns.member.${i1 + 1}': targetGroupArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTargetGroups', @@ -1580,8 +1696,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTargetGroupsInput'], - shapes: shapes, resultWrapper: 'DescribeTargetGroupsResult', ); return DescribeTargetGroupsOutput.fromXml($result); @@ -1606,11 +1720,22 @@ class ElasticLoadBalancingv2 { List? include, List? targets, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - include?.also( - (arg) => $request['Include'] = arg.map((e) => e.toValue()).toList()); - targets?.also((arg) => $request['Targets'] = arg); + final $request = { + 'TargetGroupArn': targetGroupArn, + if (include != null) + if (include.isEmpty) + 'Include': '' + else + for (var i1 = 0; i1 < include.length; i1++) + 'Include.member.${i1 + 1}': include[i1].toValue(), + if (targets != null) + if (targets.isEmpty) + 'Targets': '' + else + for (var i1 = 0; i1 < targets.length; i1++) + for (var e3 in targets[i1].toQueryMap().entries) + 'Targets.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'DescribeTargetHealth', @@ -1618,8 +1743,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTargetHealthInput'], - shapes: shapes, resultWrapper: 'DescribeTargetHealthResult', ); return DescribeTargetHealthOutput.fromXml($result); @@ -1649,10 +1772,11 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); + final $request = { + 'TrustStoreArn': trustStoreArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeTrustStoreAssociations', @@ -1660,8 +1784,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrustStoreAssociationsInput'], - shapes: shapes, resultWrapper: 'DescribeTrustStoreAssociationsResult', ); return DescribeTrustStoreAssociationsOutput.fromXml($result); @@ -1697,11 +1819,17 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; - marker?.also((arg) => $request['Marker'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - revocationIds?.also((arg) => $request['RevocationIds'] = arg); + final $request = { + 'TrustStoreArn': trustStoreArn, + if (marker != null) 'Marker': marker, + if (pageSize != null) 'PageSize': pageSize.toString(), + if (revocationIds != null) + if (revocationIds.isEmpty) + 'RevocationIds': '' + else + for (var i1 = 0; i1 < revocationIds.length; i1++) + 'RevocationIds.member.${i1 + 1}': revocationIds[i1].toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeTrustStoreRevocations', @@ -1709,8 +1837,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrustStoreRevocationsInput'], - shapes: shapes, resultWrapper: 'DescribeTrustStoreRevocationsResult', ); return DescribeTrustStoreRevocationsOutput.fromXml($result); @@ -1745,11 +1871,22 @@ class ElasticLoadBalancingv2 { 1, 400, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - names?.also((arg) => $request['Names'] = arg); - pageSize?.also((arg) => $request['PageSize'] = arg); - trustStoreArns?.also((arg) => $request['TrustStoreArns'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (names != null) + if (names.isEmpty) + 'Names': '' + else + for (var i1 = 0; i1 < names.length; i1++) + 'Names.member.${i1 + 1}': names[i1], + if (pageSize != null) 'PageSize': pageSize.toString(), + if (trustStoreArns != null) + if (trustStoreArns.isEmpty) + 'TrustStoreArns': '' + else + for (var i1 = 0; i1 < trustStoreArns.length; i1++) + 'TrustStoreArns.member.${i1 + 1}': trustStoreArns[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTrustStores', @@ -1757,8 +1894,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTrustStoresInput'], - shapes: shapes, resultWrapper: 'DescribeTrustStoresResult', ); return DescribeTrustStoresOutput.fromXml($result); @@ -1776,8 +1911,9 @@ class ElasticLoadBalancingv2 { getTrustStoreCaCertificatesBundle({ required String trustStoreArn, }) async { - final $request = {}; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + 'TrustStoreArn': trustStoreArn, + }; final $result = await _protocol.send( $request, action: 'GetTrustStoreCaCertificatesBundle', @@ -1785,8 +1921,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTrustStoreCaCertificatesBundleInput'], - shapes: shapes, resultWrapper: 'GetTrustStoreCaCertificatesBundleResult', ); return GetTrustStoreCaCertificatesBundleOutput.fromXml($result); @@ -1808,9 +1942,10 @@ class ElasticLoadBalancingv2 { required int revocationId, required String trustStoreArn, }) async { - final $request = {}; - $request['RevocationId'] = revocationId; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + 'RevocationId': revocationId.toString(), + 'TrustStoreArn': trustStoreArn, + }; final $result = await _protocol.send( $request, action: 'GetTrustStoreRevocationContent', @@ -1818,8 +1953,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTrustStoreRevocationContentInput'], - shapes: shapes, resultWrapper: 'GetTrustStoreRevocationContentResult', ); return GetTrustStoreRevocationContentOutput.fromXml($result); @@ -1933,15 +2066,35 @@ class ElasticLoadBalancingv2 { 1, 65535, ); - final $request = {}; - $request['ListenerArn'] = listenerArn; - alpnPolicy?.also((arg) => $request['AlpnPolicy'] = arg); - certificates?.also((arg) => $request['Certificates'] = arg); - defaultActions?.also((arg) => $request['DefaultActions'] = arg); - mutualAuthentication?.also((arg) => $request['MutualAuthentication'] = arg); - port?.also((arg) => $request['Port'] = arg); - protocol?.also((arg) => $request['Protocol'] = arg.toValue()); - sslPolicy?.also((arg) => $request['SslPolicy'] = arg); + final $request = { + 'ListenerArn': listenerArn, + if (alpnPolicy != null) + if (alpnPolicy.isEmpty) + 'AlpnPolicy': '' + else + for (var i1 = 0; i1 < alpnPolicy.length; i1++) + 'AlpnPolicy.member.${i1 + 1}': alpnPolicy[i1], + if (certificates != null) + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + if (defaultActions != null) + if (defaultActions.isEmpty) + 'DefaultActions': '' + else + for (var i1 = 0; i1 < defaultActions.length; i1++) + for (var e3 in defaultActions[i1].toQueryMap().entries) + 'DefaultActions.member.${i1 + 1}.${e3.key}': e3.value, + if (mutualAuthentication != null) + for (var e1 in mutualAuthentication.toQueryMap().entries) + 'MutualAuthentication.${e1.key}': e1.value, + if (port != null) 'Port': port.toString(), + if (protocol != null) 'Protocol': protocol.toValue(), + if (sslPolicy != null) 'SslPolicy': sslPolicy, + }; final $result = await _protocol.send( $request, action: 'ModifyListener', @@ -1949,8 +2102,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyListenerInput'], - shapes: shapes, resultWrapper: 'ModifyListenerResult', ); return ModifyListenerOutput.fromXml($result); @@ -1975,9 +2126,15 @@ class ElasticLoadBalancingv2 { required List attributes, required String loadBalancerArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e3 in attributes[i1].toQueryMap().entries) + 'Attributes.member.${i1 + 1}.${e3.key}': e3.value, + 'LoadBalancerArn': loadBalancerArn, + }; final $result = await _protocol.send( $request, action: 'ModifyLoadBalancerAttributes', @@ -1985,8 +2142,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyLoadBalancerAttributesInput'], - shapes: shapes, resultWrapper: 'ModifyLoadBalancerAttributesResult', ); return ModifyLoadBalancerAttributesOutput.fromXml($result); @@ -2024,10 +2179,23 @@ class ElasticLoadBalancingv2 { List? actions, List? conditions, }) async { - final $request = {}; - $request['RuleArn'] = ruleArn; - actions?.also((arg) => $request['Actions'] = arg); - conditions?.also((arg) => $request['Conditions'] = arg); + final $request = { + 'RuleArn': ruleArn, + if (actions != null) + if (actions.isEmpty) + 'Actions': '' + else + for (var i1 = 0; i1 < actions.length; i1++) + for (var e3 in actions[i1].toQueryMap().entries) + 'Actions.member.${i1 + 1}.${e3.key}': e3.value, + if (conditions != null) + if (conditions.isEmpty) + 'Conditions': '' + else + for (var i1 = 0; i1 < conditions.length; i1++) + for (var e3 in conditions[i1].toQueryMap().entries) + 'Conditions.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyRule', @@ -2035,8 +2203,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyRuleInput'], - shapes: shapes, resultWrapper: 'ModifyRuleResult', ); return ModifyRuleOutput.fromXml($result); @@ -2134,22 +2300,26 @@ class ElasticLoadBalancingv2 { 2, 10, ); - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - healthCheckEnabled?.also((arg) => $request['HealthCheckEnabled'] = arg); - healthCheckIntervalSeconds - ?.also((arg) => $request['HealthCheckIntervalSeconds'] = arg); - healthCheckPath?.also((arg) => $request['HealthCheckPath'] = arg); - healthCheckPort?.also((arg) => $request['HealthCheckPort'] = arg); - healthCheckProtocol - ?.also((arg) => $request['HealthCheckProtocol'] = arg.toValue()); - healthCheckTimeoutSeconds - ?.also((arg) => $request['HealthCheckTimeoutSeconds'] = arg); - healthyThresholdCount - ?.also((arg) => $request['HealthyThresholdCount'] = arg); - matcher?.also((arg) => $request['Matcher'] = arg); - unhealthyThresholdCount - ?.also((arg) => $request['UnhealthyThresholdCount'] = arg); + final $request = { + 'TargetGroupArn': targetGroupArn, + if (healthCheckEnabled != null) + 'HealthCheckEnabled': healthCheckEnabled.toString(), + if (healthCheckIntervalSeconds != null) + 'HealthCheckIntervalSeconds': healthCheckIntervalSeconds.toString(), + if (healthCheckPath != null) 'HealthCheckPath': healthCheckPath, + if (healthCheckPort != null) 'HealthCheckPort': healthCheckPort, + if (healthCheckProtocol != null) + 'HealthCheckProtocol': healthCheckProtocol.toValue(), + if (healthCheckTimeoutSeconds != null) + 'HealthCheckTimeoutSeconds': healthCheckTimeoutSeconds.toString(), + if (healthyThresholdCount != null) + 'HealthyThresholdCount': healthyThresholdCount.toString(), + if (matcher != null) + for (var e1 in matcher.toQueryMap().entries) + 'Matcher.${e1.key}': e1.value, + if (unhealthyThresholdCount != null) + 'UnhealthyThresholdCount': unhealthyThresholdCount.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyTargetGroup', @@ -2157,8 +2327,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTargetGroupInput'], - shapes: shapes, resultWrapper: 'ModifyTargetGroupResult', ); return ModifyTargetGroupOutput.fromXml($result); @@ -2178,9 +2346,15 @@ class ElasticLoadBalancingv2 { required List attributes, required String targetGroupArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['TargetGroupArn'] = targetGroupArn; + final $request = { + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e3 in attributes[i1].toQueryMap().entries) + 'Attributes.member.${i1 + 1}.${e3.key}': e3.value, + 'TargetGroupArn': targetGroupArn, + }; final $result = await _protocol.send( $request, action: 'ModifyTargetGroupAttributes', @@ -2188,8 +2362,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTargetGroupAttributesInput'], - shapes: shapes, resultWrapper: 'ModifyTargetGroupAttributesResult', ); return ModifyTargetGroupAttributesOutput.fromXml($result); @@ -2219,12 +2391,14 @@ class ElasticLoadBalancingv2 { required String trustStoreArn, String? caCertificatesBundleS3ObjectVersion, }) async { - final $request = {}; - $request['CaCertificatesBundleS3Bucket'] = caCertificatesBundleS3Bucket; - $request['CaCertificatesBundleS3Key'] = caCertificatesBundleS3Key; - $request['TrustStoreArn'] = trustStoreArn; - caCertificatesBundleS3ObjectVersion - ?.also((arg) => $request['CaCertificatesBundleS3ObjectVersion'] = arg); + final $request = { + 'CaCertificatesBundleS3Bucket': caCertificatesBundleS3Bucket, + 'CaCertificatesBundleS3Key': caCertificatesBundleS3Key, + 'TrustStoreArn': trustStoreArn, + if (caCertificatesBundleS3ObjectVersion != null) + 'CaCertificatesBundleS3ObjectVersion': + caCertificatesBundleS3ObjectVersion, + }; final $result = await _protocol.send( $request, action: 'ModifyTrustStore', @@ -2232,8 +2406,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTrustStoreInput'], - shapes: shapes, resultWrapper: 'ModifyTrustStoreResult', ); return ModifyTrustStoreOutput.fromXml($result); @@ -2269,9 +2441,15 @@ class ElasticLoadBalancingv2 { required String targetGroupArn, required List targets, }) async { - final $request = {}; - $request['TargetGroupArn'] = targetGroupArn; - $request['Targets'] = targets; + final $request = { + 'TargetGroupArn': targetGroupArn, + if (targets.isEmpty) + 'Targets': '' + else + for (var i1 = 0; i1 < targets.length; i1++) + for (var e3 in targets[i1].toQueryMap().entries) + 'Targets.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'RegisterTargets', @@ -2279,8 +2457,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterTargetsInput'], - shapes: shapes, resultWrapper: 'RegisterTargetsResult', ); } @@ -2302,9 +2478,15 @@ class ElasticLoadBalancingv2 { required List certificates, required String listenerArn, }) async { - final $request = {}; - $request['Certificates'] = certificates; - $request['ListenerArn'] = listenerArn; + final $request = { + if (certificates.isEmpty) + 'Certificates': '' + else + for (var i1 = 0; i1 < certificates.length; i1++) + for (var e3 in certificates[i1].toQueryMap().entries) + 'Certificates.member.${i1 + 1}.${e3.key}': e3.value, + 'ListenerArn': listenerArn, + }; await _protocol.send( $request, action: 'RemoveListenerCertificates', @@ -2312,8 +2494,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveListenerCertificatesInput'], - shapes: shapes, resultWrapper: 'RemoveListenerCertificatesResult', ); } @@ -2339,9 +2519,18 @@ class ElasticLoadBalancingv2 { required List resourceArns, required List tagKeys, }) async { - final $request = {}; - $request['ResourceArns'] = resourceArns; - $request['TagKeys'] = tagKeys; + final $request = { + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTags', @@ -2349,8 +2538,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsInput'], - shapes: shapes, resultWrapper: 'RemoveTagsResult', ); } @@ -2369,9 +2556,14 @@ class ElasticLoadBalancingv2 { required List revocationIds, required String trustStoreArn, }) async { - final $request = {}; - $request['RevocationIds'] = revocationIds; - $request['TrustStoreArn'] = trustStoreArn; + final $request = { + if (revocationIds.isEmpty) + 'RevocationIds': '' + else + for (var i1 = 0; i1 < revocationIds.length; i1++) + 'RevocationIds.member.${i1 + 1}': revocationIds[i1].toString(), + 'TrustStoreArn': trustStoreArn, + }; await _protocol.send( $request, action: 'RemoveTrustStoreRevocations', @@ -2379,8 +2571,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTrustStoreRevocationsInput'], - shapes: shapes, resultWrapper: 'RemoveTrustStoreRevocationsResult', ); } @@ -2416,9 +2606,10 @@ class ElasticLoadBalancingv2 { required IpAddressType ipAddressType, required String loadBalancerArn, }) async { - final $request = {}; - $request['IpAddressType'] = ipAddressType.toValue(); - $request['LoadBalancerArn'] = loadBalancerArn; + final $request = { + 'IpAddressType': ipAddressType.toValue(), + 'LoadBalancerArn': loadBalancerArn, + }; final $result = await _protocol.send( $request, action: 'SetIpAddressType', @@ -2426,8 +2617,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIpAddressTypeInput'], - shapes: shapes, resultWrapper: 'SetIpAddressTypeResult', ); return SetIpAddressTypeOutput.fromXml($result); @@ -2448,8 +2637,14 @@ class ElasticLoadBalancingv2 { Future setRulePriorities({ required List rulePriorities, }) async { - final $request = {}; - $request['RulePriorities'] = rulePriorities; + final $request = { + if (rulePriorities.isEmpty) + 'RulePriorities': '' + else + for (var i1 = 0; i1 < rulePriorities.length; i1++) + for (var e3 in rulePriorities[i1].toQueryMap().entries) + 'RulePriorities.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'SetRulePriorities', @@ -2457,8 +2652,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetRulePrioritiesInput'], - shapes: shapes, resultWrapper: 'SetRulePrioritiesResult', ); return SetRulePrioritiesOutput.fromXml($result); @@ -2493,12 +2686,17 @@ class ElasticLoadBalancingv2 { EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum? enforceSecurityGroupInboundRulesOnPrivateLinkTraffic, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; - $request['SecurityGroups'] = securityGroups; - enforceSecurityGroupInboundRulesOnPrivateLinkTraffic?.also((arg) => - $request['EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic'] = - arg.toValue()); + final $request = { + 'LoadBalancerArn': loadBalancerArn, + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + if (enforceSecurityGroupInboundRulesOnPrivateLinkTraffic != null) + 'EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic': + enforceSecurityGroupInboundRulesOnPrivateLinkTraffic.toValue(), + }; final $result = await _protocol.send( $request, action: 'SetSecurityGroups', @@ -2506,8 +2704,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSecurityGroupsInput'], - shapes: shapes, resultWrapper: 'SetSecurityGroupsResult', ); return SetSecurityGroupsOutput.fromXml($result); @@ -2595,11 +2791,23 @@ class ElasticLoadBalancingv2 { List? subnetMappings, List? subnets, }) async { - final $request = {}; - $request['LoadBalancerArn'] = loadBalancerArn; - ipAddressType?.also((arg) => $request['IpAddressType'] = arg.toValue()); - subnetMappings?.also((arg) => $request['SubnetMappings'] = arg); - subnets?.also((arg) => $request['Subnets'] = arg); + final $request = { + 'LoadBalancerArn': loadBalancerArn, + if (ipAddressType != null) 'IpAddressType': ipAddressType.toValue(), + if (subnetMappings != null) + if (subnetMappings.isEmpty) + 'SubnetMappings': '' + else + for (var i1 = 0; i1 < subnetMappings.length; i1++) + for (var e3 in subnetMappings[i1].toQueryMap().entries) + 'SubnetMappings.member.${i1 + 1}.${e3.key}': e3.value, + if (subnets != null) + if (subnets.isEmpty) + 'Subnets': '' + else + for (var i1 = 0; i1 < subnets.length; i1++) + 'Subnets.member.${i1 + 1}': subnets[i1], + }; final $result = await _protocol.send( $request, action: 'SetSubnets', @@ -2607,8 +2815,6 @@ class ElasticLoadBalancingv2 { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSubnetsInput'], - shapes: shapes, resultWrapper: 'SetSubnetsResult', ); return SetSubnetsOutput.fromXml($result); @@ -2718,6 +2924,37 @@ class Action { if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn, }; } + + Map toQueryMap() { + final type = this.type; + final authenticateCognitoConfig = this.authenticateCognitoConfig; + final authenticateOidcConfig = this.authenticateOidcConfig; + final fixedResponseConfig = this.fixedResponseConfig; + final forwardConfig = this.forwardConfig; + final order = this.order; + final redirectConfig = this.redirectConfig; + final targetGroupArn = this.targetGroupArn; + return { + 'Type': type.toValue(), + if (authenticateCognitoConfig != null) + for (var e1 in authenticateCognitoConfig.toQueryMap().entries) + 'AuthenticateCognitoConfig.${e1.key}': e1.value, + if (authenticateOidcConfig != null) + for (var e1 in authenticateOidcConfig.toQueryMap().entries) + 'AuthenticateOidcConfig.${e1.key}': e1.value, + if (fixedResponseConfig != null) + for (var e1 in fixedResponseConfig.toQueryMap().entries) + 'FixedResponseConfig.${e1.key}': e1.value, + if (forwardConfig != null) + for (var e1 in forwardConfig.toQueryMap().entries) + 'ForwardConfig.${e1.key}': e1.value, + if (order != null) 'Order': order.toString(), + if (redirectConfig != null) + for (var e1 in redirectConfig.toQueryMap().entries) + 'RedirectConfig.${e1.key}': e1.value, + if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn, + }; + } } enum ActionTypeEnum { @@ -3001,6 +3238,38 @@ class AuthenticateCognitoActionConfig { if (sessionTimeout != null) 'SessionTimeout': sessionTimeout, }; } + + Map toQueryMap() { + final userPoolArn = this.userPoolArn; + final userPoolClientId = this.userPoolClientId; + final userPoolDomain = this.userPoolDomain; + final authenticationRequestExtraParams = + this.authenticationRequestExtraParams; + final onUnauthenticatedRequest = this.onUnauthenticatedRequest; + final scope = this.scope; + final sessionCookieName = this.sessionCookieName; + final sessionTimeout = this.sessionTimeout; + return { + 'UserPoolArn': userPoolArn, + 'UserPoolClientId': userPoolClientId, + 'UserPoolDomain': userPoolDomain, + if (authenticationRequestExtraParams != null) + for (var e1 in authenticationRequestExtraParams.entries + .toList() + .asMap() + .entries) ...{ + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.key': + e1.value.key, + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.value': + e1.value.value, + }, + if (onUnauthenticatedRequest != null) + 'OnUnauthenticatedRequest': onUnauthenticatedRequest.toValue(), + if (scope != null) 'Scope': scope, + if (sessionCookieName != null) 'SessionCookieName': sessionCookieName, + if (sessionTimeout != null) 'SessionTimeout': sessionTimeout.toString(), + }; + } } enum AuthenticateOidcActionConditionalBehaviorEnum { @@ -3184,6 +3453,47 @@ class AuthenticateOidcActionConfig { 'UseExistingClientSecret': useExistingClientSecret, }; } + + Map toQueryMap() { + final authorizationEndpoint = this.authorizationEndpoint; + final clientId = this.clientId; + final issuer = this.issuer; + final tokenEndpoint = this.tokenEndpoint; + final userInfoEndpoint = this.userInfoEndpoint; + final authenticationRequestExtraParams = + this.authenticationRequestExtraParams; + final clientSecret = this.clientSecret; + final onUnauthenticatedRequest = this.onUnauthenticatedRequest; + final scope = this.scope; + final sessionCookieName = this.sessionCookieName; + final sessionTimeout = this.sessionTimeout; + final useExistingClientSecret = this.useExistingClientSecret; + return { + 'AuthorizationEndpoint': authorizationEndpoint, + 'ClientId': clientId, + 'Issuer': issuer, + 'TokenEndpoint': tokenEndpoint, + 'UserInfoEndpoint': userInfoEndpoint, + if (authenticationRequestExtraParams != null) + for (var e1 in authenticationRequestExtraParams.entries + .toList() + .asMap() + .entries) ...{ + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.key': + e1.value.key, + 'AuthenticationRequestExtraParams.entry.${e1.key + 1}.value': + e1.value.value, + }, + if (clientSecret != null) 'ClientSecret': clientSecret, + if (onUnauthenticatedRequest != null) + 'OnUnauthenticatedRequest': onUnauthenticatedRequest.toValue(), + if (scope != null) 'Scope': scope, + if (sessionCookieName != null) 'SessionCookieName': sessionCookieName, + if (sessionTimeout != null) 'SessionTimeout': sessionTimeout.toString(), + if (useExistingClientSecret != null) + 'UseExistingClientSecret': useExistingClientSecret.toString(), + }; + } } /// Information about an Availability Zone. @@ -3254,6 +3564,15 @@ class Certificate { if (isDefault != null) 'IsDefault': isDefault, }; } + + Map toQueryMap() { + final certificateArn = this.certificateArn; + final isDefault = this.isDefault; + return { + if (certificateArn != null) 'CertificateArn': certificateArn, + if (isDefault != null) 'IsDefault': isDefault.toString(), + }; + } } /// Information about a cipher used in a policy. @@ -3824,6 +4143,17 @@ class FixedResponseActionConfig { if (messageBody != null) 'MessageBody': messageBody, }; } + + Map toQueryMap() { + final statusCode = this.statusCode; + final contentType = this.contentType; + final messageBody = this.messageBody; + return { + 'StatusCode': statusCode, + if (contentType != null) 'ContentType': contentType, + if (messageBody != null) 'MessageBody': messageBody, + }; + } } /// Information about a forward action. @@ -3858,6 +4188,23 @@ class ForwardActionConfig { if (targetGroups != null) 'TargetGroups': targetGroups, }; } + + Map toQueryMap() { + final targetGroupStickinessConfig = this.targetGroupStickinessConfig; + final targetGroups = this.targetGroups; + return { + if (targetGroupStickinessConfig != null) + for (var e1 in targetGroupStickinessConfig.toQueryMap().entries) + 'TargetGroupStickinessConfig.${e1.key}': e1.value, + if (targetGroups != null) + if (targetGroups.isEmpty) + 'TargetGroups': '' + else + for (var i1 = 0; i1 < targetGroups.length; i1++) + for (var e3 in targetGroups[i1].toQueryMap().entries) + 'TargetGroups.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } class GetTrustStoreCaCertificatesBundleOutput { @@ -3916,6 +4263,18 @@ class HostHeaderConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about an HTTP header condition. @@ -3965,6 +4324,20 @@ class HttpHeaderConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final httpHeaderName = this.httpHeaderName; + final values = this.values; + return { + if (httpHeaderName != null) 'HttpHeaderName': httpHeaderName, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about an HTTP method condition. @@ -4002,6 +4375,18 @@ class HttpRequestMethodConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } enum IpAddressType { @@ -4528,6 +4913,15 @@ class LoadBalancerAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } enum LoadBalancerSchemeEnum { @@ -4696,6 +5090,15 @@ class Matcher { if (httpCode != null) 'HttpCode': httpCode, }; } + + Map toQueryMap() { + final grpcCode = this.grpcCode; + final httpCode = this.httpCode; + return { + if (grpcCode != null) 'GrpcCode': grpcCode, + if (httpCode != null) 'HttpCode': httpCode, + }; + } } enum MitigationInEffectEnum { @@ -4858,6 +5261,19 @@ class MutualAuthenticationAttributes { if (trustStoreArn != null) 'TrustStoreArn': trustStoreArn, }; } + + Map toQueryMap() { + final ignoreClientCertificateExpiry = this.ignoreClientCertificateExpiry; + final mode = this.mode; + final trustStoreArn = this.trustStoreArn; + return { + if (ignoreClientCertificateExpiry != null) + 'IgnoreClientCertificateExpiry': + ignoreClientCertificateExpiry.toString(), + if (mode != null) 'Mode': mode, + if (trustStoreArn != null) 'TrustStoreArn': trustStoreArn, + }; + } } /// Information about a path pattern condition. @@ -4890,6 +5306,18 @@ class PathPatternConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } enum ProtocolEnum { @@ -4982,6 +5410,19 @@ class QueryStringConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + for (var e3 in values[i1].toQueryMap().entries) + 'Values.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Information about a key/value pair. @@ -5011,6 +5452,15 @@ class QueryStringKeyValuePair { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// Information about a redirect action. @@ -5104,6 +5554,23 @@ class RedirectActionConfig { if (query != null) 'Query': query, }; } + + Map toQueryMap() { + final statusCode = this.statusCode; + final host = this.host; + final path = this.path; + final port = this.port; + final protocol = this.protocol; + final query = this.query; + return { + 'StatusCode': statusCode.toValue(), + if (host != null) 'Host': host, + if (path != null) 'Path': path, + if (port != null) 'Port': port, + if (protocol != null) 'Protocol': protocol, + if (query != null) 'Query': query, + }; + } } enum RedirectActionStatusCodeEnum { @@ -5204,6 +5671,19 @@ class RevocationContent { if (s3ObjectVersion != null) 'S3ObjectVersion': s3ObjectVersion, }; } + + Map toQueryMap() { + final revocationType = this.revocationType; + final s3Bucket = this.s3Bucket; + final s3Key = this.s3Key; + final s3ObjectVersion = this.s3ObjectVersion; + return { + if (revocationType != null) 'RevocationType': revocationType.toValue(), + if (s3Bucket != null) 'S3Bucket': s3Bucket, + if (s3Key != null) 'S3Key': s3Key, + if (s3ObjectVersion != null) 'S3ObjectVersion': s3ObjectVersion, + }; + } } enum RevocationType { @@ -5441,6 +5921,44 @@ class RuleCondition { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final field = this.field; + final hostHeaderConfig = this.hostHeaderConfig; + final httpHeaderConfig = this.httpHeaderConfig; + final httpRequestMethodConfig = this.httpRequestMethodConfig; + final pathPatternConfig = this.pathPatternConfig; + final queryStringConfig = this.queryStringConfig; + final sourceIpConfig = this.sourceIpConfig; + final values = this.values; + return { + if (field != null) 'Field': field, + if (hostHeaderConfig != null) + for (var e1 in hostHeaderConfig.toQueryMap().entries) + 'HostHeaderConfig.${e1.key}': e1.value, + if (httpHeaderConfig != null) + for (var e1 in httpHeaderConfig.toQueryMap().entries) + 'HttpHeaderConfig.${e1.key}': e1.value, + if (httpRequestMethodConfig != null) + for (var e1 in httpRequestMethodConfig.toQueryMap().entries) + 'HttpRequestMethodConfig.${e1.key}': e1.value, + if (pathPatternConfig != null) + for (var e1 in pathPatternConfig.toQueryMap().entries) + 'PathPatternConfig.${e1.key}': e1.value, + if (queryStringConfig != null) + for (var e1 in queryStringConfig.toQueryMap().entries) + 'QueryStringConfig.${e1.key}': e1.value, + if (sourceIpConfig != null) + for (var e1 in sourceIpConfig.toQueryMap().entries) + 'SourceIpConfig.${e1.key}': e1.value, + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about the priorities for the rules for a listener. @@ -5464,6 +5982,15 @@ class RulePriorityPair { if (ruleArn != null) 'RuleArn': ruleArn, }; } + + Map toQueryMap() { + final priority = this.priority; + final ruleArn = this.ruleArn; + return { + if (priority != null) 'Priority': priority.toString(), + if (ruleArn != null) 'RuleArn': ruleArn, + }; + } } class SetIpAddressTypeOutput { @@ -5585,6 +6112,18 @@ class SourceIpConditionConfig { if (values != null) 'Values': values, }; } + + Map toQueryMap() { + final values = this.values; + return { + if (values != null) + if (values.isEmpty) + 'Values': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Values.member.${i1 + 1}': values[i1], + }; + } } /// Information about a policy used for SSL negotiation. @@ -5657,6 +6196,19 @@ class SubnetMapping { if (subnetId != null) 'SubnetId': subnetId, }; } + + Map toQueryMap() { + final allocationId = this.allocationId; + final iPv6Address = this.iPv6Address; + final privateIPv4Address = this.privateIPv4Address; + final subnetId = this.subnetId; + return { + if (allocationId != null) 'AllocationId': allocationId, + if (iPv6Address != null) 'IPv6Address': iPv6Address, + if (privateIPv4Address != null) 'PrivateIPv4Address': privateIPv4Address, + if (subnetId != null) 'SubnetId': subnetId, + }; + } } /// Information about a tag. @@ -5686,6 +6238,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + if (value != null) 'Value': value, + }; + } } /// The tags associated with a resource. @@ -5774,6 +6335,17 @@ class TargetDescription { if (port != null) 'Port': port, }; } + + Map toQueryMap() { + final id = this.id; + final availabilityZone = this.availabilityZone; + final port = this.port; + return { + 'Id': id, + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (port != null) 'Port': port.toString(), + }; + } } /// Information about a target group. @@ -6127,6 +6699,15 @@ class TargetGroupAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } enum TargetGroupIpAddressTypeEnum { @@ -6186,6 +6767,16 @@ class TargetGroupStickinessConfig { if (enabled != null) 'Enabled': enabled, }; } + + Map toQueryMap() { + final durationSeconds = this.durationSeconds; + final enabled = this.enabled; + return { + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (enabled != null) 'Enabled': enabled.toString(), + }; + } } /// Information about how traffic will be distributed between multiple target @@ -6216,6 +6807,15 @@ class TargetGroupTuple { if (weight != null) 'Weight': weight, }; } + + Map toQueryMap() { + final targetGroupArn = this.targetGroupArn; + final weight = this.weight; + return { + if (targetGroupArn != null) 'TargetGroupArn': targetGroupArn, + if (weight != null) 'Weight': weight.toString(), + }; + } } /// Information about the current health of a target. diff --git a/generated/aws_iam_api/lib/iam-2010-05-08.dart b/generated/aws_iam_api/lib/iam-2010-05-08.dart index bd3a79d31..060548fff 100644 --- a/generated/aws_iam_api/lib/iam-2010-05-08.dart +++ b/generated/aws_iam_api/lib/iam-2010-05-08.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'iam-2010-05-08.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Identity and Access Management (IAM) is a web service for securely @@ -30,7 +29,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// and Access Management User Guide. class IAM { final _s.QueryProtocol _protocol; - final Map shapes; IAM({ String? region, @@ -38,7 +36,7 @@ class IAM { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'iam', @@ -47,9 +45,7 @@ class IAM { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -84,9 +80,10 @@ class IAM { required String clientID, required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['ClientID'] = clientID; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'ClientID': clientID, + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; await _protocol.send( $request, action: 'AddClientIDToOpenIDConnectProvider', @@ -94,8 +91,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddClientIDToOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -147,9 +142,10 @@ class IAM { required String instanceProfileName, required String roleName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['RoleName'] = roleName; + final $request = { + 'InstanceProfileName': instanceProfileName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'AddRoleToInstanceProfile', @@ -157,8 +153,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToInstanceProfileRequest'], - shapes: shapes, ); } @@ -187,9 +181,10 @@ class IAM { required String groupName, required String userName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['UserName'] = userName; + final $request = { + 'GroupName': groupName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'AddUserToGroup', @@ -197,8 +192,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddUserToGroupRequest'], - shapes: shapes, ); } @@ -243,9 +236,10 @@ class IAM { required String groupName, required String policyArn, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyArn'] = policyArn; + final $request = { + 'GroupName': groupName, + 'PolicyArn': policyArn, + }; await _protocol.send( $request, action: 'AttachGroupPolicy', @@ -253,8 +247,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachGroupPolicyRequest'], - shapes: shapes, ); } @@ -309,9 +301,10 @@ class IAM { required String policyArn, required String roleName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['RoleName'] = roleName; + final $request = { + 'PolicyArn': policyArn, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'AttachRolePolicy', @@ -319,8 +312,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachRolePolicyRequest'], - shapes: shapes, ); } @@ -365,9 +356,10 @@ class IAM { required String policyArn, required String userName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['UserName'] = userName; + final $request = { + 'PolicyArn': policyArn, + 'UserName': userName, + }; await _protocol.send( $request, action: 'AttachUserPolicy', @@ -375,8 +367,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AttachUserPolicyRequest'], - shapes: shapes, ); } @@ -420,9 +410,10 @@ class IAM { required String newPassword, required String oldPassword, }) async { - final $request = {}; - $request['NewPassword'] = newPassword; - $request['OldPassword'] = oldPassword; + final $request = { + 'NewPassword': newPassword, + 'OldPassword': oldPassword, + }; await _protocol.send( $request, action: 'ChangePassword', @@ -430,8 +421,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ChangePasswordRequest'], - shapes: shapes, ); } @@ -471,8 +460,9 @@ class IAM { Future createAccessKey({ String? userName, }) async { - final $request = {}; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'CreateAccessKey', @@ -480,8 +470,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAccessKeyRequest'], - shapes: shapes, resultWrapper: 'CreateAccessKeyResult', ); return CreateAccessKeyResponse.fromXml($result); @@ -508,8 +496,9 @@ class IAM { Future createAccountAlias({ required String accountAlias, }) async { - final $request = {}; - $request['AccountAlias'] = accountAlias; + final $request = { + 'AccountAlias': accountAlias, + }; await _protocol.send( $request, action: 'CreateAccountAlias', @@ -517,8 +506,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAccountAliasRequest'], - shapes: shapes, ); } @@ -559,9 +546,10 @@ class IAM { required String groupName, String? path, }) async { - final $request = {}; - $request['GroupName'] = groupName; - path?.also((arg) => $request['Path'] = arg); + final $request = { + 'GroupName': groupName, + if (path != null) 'Path': path, + }; final $result = await _protocol.send( $request, action: 'CreateGroup', @@ -569,8 +557,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGroupRequest'], - shapes: shapes, resultWrapper: 'CreateGroupResult', ); return CreateGroupResponse.fromXml($result); @@ -635,10 +621,17 @@ class IAM { String? path, List? tags, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'InstanceProfileName': instanceProfileName, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateInstanceProfile', @@ -646,8 +639,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateInstanceProfileRequest'], - shapes: shapes, resultWrapper: 'CreateInstanceProfileResult', ); return CreateInstanceProfileResponse.fromXml($result); @@ -704,11 +695,12 @@ class IAM { required String userName, bool? passwordResetRequired, }) async { - final $request = {}; - $request['Password'] = password; - $request['UserName'] = userName; - passwordResetRequired - ?.also((arg) => $request['PasswordResetRequired'] = arg); + final $request = { + 'Password': password, + 'UserName': userName, + if (passwordResetRequired != null) + 'PasswordResetRequired': passwordResetRequired.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateLoginProfile', @@ -716,8 +708,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateLoginProfileRequest'], - shapes: shapes, resultWrapper: 'CreateLoginProfileResult', ); return CreateLoginProfileResponse.fromXml($result); @@ -851,11 +841,28 @@ class IAM { List? tags, List? thumbprintList, }) async { - final $request = {}; - $request['Url'] = url; - clientIDList?.also((arg) => $request['ClientIDList'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - thumbprintList?.also((arg) => $request['ThumbprintList'] = arg); + final $request = { + 'Url': url, + if (clientIDList != null) + if (clientIDList.isEmpty) + 'ClientIDList': '' + else + for (var i1 = 0; i1 < clientIDList.length; i1++) + 'ClientIDList.member.${i1 + 1}': clientIDList[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (thumbprintList != null) + if (thumbprintList.isEmpty) + 'ThumbprintList': '' + else + for (var i1 = 0; i1 < thumbprintList.length; i1++) + 'ThumbprintList.member.${i1 + 1}': thumbprintList[i1], + }; final $result = await _protocol.send( $request, action: 'CreateOpenIDConnectProvider', @@ -863,8 +870,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOpenIDConnectProviderRequest'], - shapes: shapes, resultWrapper: 'CreateOpenIDConnectProviderResult', ); return CreateOpenIDConnectProviderResponse.fromXml($result); @@ -987,12 +992,19 @@ class IAM { String? path, List? tags, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; - description?.also((arg) => $request['Description'] = arg); - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + if (description != null) 'Description': description, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreatePolicy', @@ -1000,8 +1012,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePolicyRequest'], - shapes: shapes, resultWrapper: 'CreatePolicyResult', ); return CreatePolicyResponse.fromXml($result); @@ -1085,10 +1095,11 @@ class IAM { required String policyDocument, bool? setAsDefault, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['PolicyDocument'] = policyDocument; - setAsDefault?.also((arg) => $request['SetAsDefault'] = arg); + final $request = { + 'PolicyArn': policyArn, + 'PolicyDocument': policyDocument, + if (setAsDefault != null) 'SetAsDefault': setAsDefault.toString(), + }; final $result = await _protocol.send( $request, action: 'CreatePolicyVersion', @@ -1096,8 +1107,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePolicyVersionRequest'], - shapes: shapes, resultWrapper: 'CreatePolicyVersionResult', ); return CreatePolicyVersionResponse.fromXml($result); @@ -1240,14 +1249,23 @@ class IAM { 3600, 43200, ); - final $request = {}; - $request['AssumeRolePolicyDocument'] = assumeRolePolicyDocument; - $request['RoleName'] = roleName; - description?.also((arg) => $request['Description'] = arg); - maxSessionDuration?.also((arg) => $request['MaxSessionDuration'] = arg); - path?.also((arg) => $request['Path'] = arg); - permissionsBoundary?.also((arg) => $request['PermissionsBoundary'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'AssumeRolePolicyDocument': assumeRolePolicyDocument, + 'RoleName': roleName, + if (description != null) 'Description': description, + if (maxSessionDuration != null) + 'MaxSessionDuration': maxSessionDuration.toString(), + if (path != null) 'Path': path, + if (permissionsBoundary != null) + 'PermissionsBoundary': permissionsBoundary, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateRole', @@ -1255,8 +1273,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateRoleRequest'], - shapes: shapes, resultWrapper: 'CreateRoleResult', ); return CreateRoleResponse.fromXml($result); @@ -1332,10 +1348,17 @@ class IAM { required String sAMLMetadataDocument, List? tags, }) async { - final $request = {}; - $request['Name'] = name; - $request['SAMLMetadataDocument'] = sAMLMetadataDocument; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Name': name, + 'SAMLMetadataDocument': sAMLMetadataDocument, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSAMLProvider', @@ -1343,8 +1366,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSAMLProviderRequest'], - shapes: shapes, resultWrapper: 'CreateSAMLProviderResult', ); return CreateSAMLProviderResponse.fromXml($result); @@ -1402,10 +1423,11 @@ class IAM { String? customSuffix, String? description, }) async { - final $request = {}; - $request['AWSServiceName'] = awsServiceName; - customSuffix?.also((arg) => $request['CustomSuffix'] = arg); - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'AWSServiceName': awsServiceName, + if (customSuffix != null) 'CustomSuffix': customSuffix, + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'CreateServiceLinkedRole', @@ -1413,8 +1435,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServiceLinkedRoleRequest'], - shapes: shapes, resultWrapper: 'CreateServiceLinkedRoleResult', ); return CreateServiceLinkedRoleResponse.fromXml($result); @@ -1463,9 +1483,10 @@ class IAM { required String serviceName, required String userName, }) async { - final $request = {}; - $request['ServiceName'] = serviceName; - $request['UserName'] = userName; + final $request = { + 'ServiceName': serviceName, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'CreateServiceSpecificCredential', @@ -1473,8 +1494,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateServiceSpecificCredentialRequest'], - shapes: shapes, resultWrapper: 'CreateServiceSpecificCredentialResult', ); return CreateServiceSpecificCredentialResponse.fromXml($result); @@ -1549,11 +1568,19 @@ class IAM { String? permissionsBoundary, List? tags, }) async { - final $request = {}; - $request['UserName'] = userName; - path?.also((arg) => $request['Path'] = arg); - permissionsBoundary?.also((arg) => $request['PermissionsBoundary'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'UserName': userName, + if (path != null) 'Path': path, + if (permissionsBoundary != null) + 'PermissionsBoundary': permissionsBoundary, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateUser', @@ -1561,8 +1588,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUserRequest'], - shapes: shapes, resultWrapper: 'CreateUserResult', ); return CreateUserResponse.fromXml($result); @@ -1636,10 +1661,17 @@ class IAM { String? path, List? tags, }) async { - final $request = {}; - $request['VirtualMFADeviceName'] = virtualMFADeviceName; - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'VirtualMFADeviceName': virtualMFADeviceName, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateVirtualMFADevice', @@ -1647,8 +1679,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateVirtualMFADeviceRequest'], - shapes: shapes, resultWrapper: 'CreateVirtualMFADeviceResult', ); return CreateVirtualMFADeviceResponse.fromXml($result); @@ -1689,9 +1719,10 @@ class IAM { required String serialNumber, required String userName, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - $request['UserName'] = userName; + final $request = { + 'SerialNumber': serialNumber, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeactivateMFADevice', @@ -1699,8 +1730,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeactivateMFADeviceRequest'], - shapes: shapes, ); } @@ -1736,9 +1765,10 @@ class IAM { required String accessKeyId, String? userName, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'AccessKeyId': accessKeyId, + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteAccessKey', @@ -1746,8 +1776,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAccessKeyRequest'], - shapes: shapes, ); } @@ -1772,8 +1800,9 @@ class IAM { Future deleteAccountAlias({ required String accountAlias, }) async { - final $request = {}; - $request['AccountAlias'] = accountAlias; + final $request = { + 'AccountAlias': accountAlias, + }; await _protocol.send( $request, action: 'DeleteAccountAlias', @@ -1781,8 +1810,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAccountAliasRequest'], - shapes: shapes, ); } @@ -1793,7 +1820,7 @@ class IAM { /// May throw [LimitExceededException]. /// May throw [ServiceFailureException]. Future deleteAccountPasswordPolicy() async { - final $request = {}; + final $request = {}; await _protocol.send( $request, action: 'DeleteAccountPasswordPolicy', @@ -1801,7 +1828,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, ); } @@ -1823,8 +1849,9 @@ class IAM { Future deleteGroup({ required String groupName, }) async { - final $request = {}; - $request['GroupName'] = groupName; + final $request = { + 'GroupName': groupName, + }; await _protocol.send( $request, action: 'DeleteGroup', @@ -1832,8 +1859,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGroupRequest'], - shapes: shapes, ); } @@ -1870,9 +1895,10 @@ class IAM { required String groupName, required String policyName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyName'] = policyName; + final $request = { + 'GroupName': groupName, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'DeleteGroupPolicy', @@ -1880,8 +1906,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGroupPolicyRequest'], - shapes: shapes, ); } @@ -1912,8 +1936,9 @@ class IAM { Future deleteInstanceProfile({ required String instanceProfileName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; + final $request = { + 'InstanceProfileName': instanceProfileName, + }; await _protocol.send( $request, action: 'DeleteInstanceProfile', @@ -1921,8 +1946,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteInstanceProfileRequest'], - shapes: shapes, ); } @@ -1959,8 +1982,9 @@ class IAM { Future deleteLoginProfile({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteLoginProfile', @@ -1968,8 +1992,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteLoginProfileRequest'], - shapes: shapes, ); } @@ -1993,8 +2015,9 @@ class IAM { Future deleteOpenIDConnectProvider({ required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; await _protocol.send( $request, action: 'DeleteOpenIDConnectProvider', @@ -2002,8 +2025,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -2053,8 +2074,9 @@ class IAM { Future deletePolicy({ required String policyArn, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; + final $request = { + 'PolicyArn': policyArn, + }; await _protocol.send( $request, action: 'DeletePolicy', @@ -2062,8 +2084,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePolicyRequest'], - shapes: shapes, ); } @@ -2109,9 +2129,10 @@ class IAM { required String policyArn, required String versionId, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['VersionId'] = versionId; + final $request = { + 'PolicyArn': policyArn, + 'VersionId': versionId, + }; await _protocol.send( $request, action: 'DeletePolicyVersion', @@ -2119,8 +2140,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePolicyVersionRequest'], - shapes: shapes, ); } @@ -2170,8 +2189,9 @@ class IAM { Future deleteRole({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DeleteRole', @@ -2179,8 +2199,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRoleRequest'], - shapes: shapes, ); } @@ -2203,8 +2221,9 @@ class IAM { Future deleteRolePermissionsBoundary({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DeleteRolePermissionsBoundary', @@ -2212,8 +2231,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRolePermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -2251,9 +2268,10 @@ class IAM { required String policyName, required String roleName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['RoleName'] = roleName; + final $request = { + 'PolicyName': policyName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DeleteRolePolicy', @@ -2261,8 +2279,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRolePolicyRequest'], - shapes: shapes, ); } @@ -2288,8 +2304,9 @@ class IAM { Future deleteSAMLProvider({ required String sAMLProviderArn, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + }; await _protocol.send( $request, action: 'DeleteSAMLProvider', @@ -2297,8 +2314,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSAMLProviderRequest'], - shapes: shapes, ); } @@ -2331,9 +2346,10 @@ class IAM { required String sSHPublicKeyId, required String userName, }) async { - final $request = {}; - $request['SSHPublicKeyId'] = sSHPublicKeyId; - $request['UserName'] = userName; + final $request = { + 'SSHPublicKeyId': sSHPublicKeyId, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteSSHPublicKey', @@ -2341,8 +2357,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSSHPublicKeyRequest'], - shapes: shapes, ); } @@ -2380,8 +2394,9 @@ class IAM { Future deleteServerCertificate({ required String serverCertificateName, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; + final $request = { + 'ServerCertificateName': serverCertificateName, + }; await _protocol.send( $request, action: 'DeleteServerCertificate', @@ -2389,8 +2404,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServerCertificateRequest'], - shapes: shapes, ); } @@ -2427,8 +2440,9 @@ class IAM { Future deleteServiceLinkedRole({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'DeleteServiceLinkedRole', @@ -2436,8 +2450,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServiceLinkedRoleRequest'], - shapes: shapes, resultWrapper: 'DeleteServiceLinkedRoleResult', ); return DeleteServiceLinkedRoleResponse.fromXml($result); @@ -2468,9 +2480,10 @@ class IAM { required String serviceSpecificCredentialId, String? userName, }) async { - final $request = {}; - $request['ServiceSpecificCredentialId'] = serviceSpecificCredentialId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'ServiceSpecificCredentialId': serviceSpecificCredentialId, + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteServiceSpecificCredential', @@ -2478,8 +2491,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteServiceSpecificCredentialRequest'], - shapes: shapes, ); } @@ -2515,9 +2526,10 @@ class IAM { required String certificateId, String? userName, }) async { - final $request = {}; - $request['CertificateId'] = certificateId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'CertificateId': certificateId, + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteSigningCertificate', @@ -2525,8 +2537,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSigningCertificateRequest'], - shapes: shapes, ); } @@ -2585,8 +2595,9 @@ class IAM { Future deleteUser({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteUser', @@ -2594,8 +2605,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserRequest'], - shapes: shapes, ); } @@ -2615,8 +2624,9 @@ class IAM { Future deleteUserPermissionsBoundary({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteUserPermissionsBoundary', @@ -2624,8 +2634,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserPermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -2662,9 +2670,10 @@ class IAM { required String policyName, required String userName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['UserName'] = userName; + final $request = { + 'PolicyName': policyName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DeleteUserPolicy', @@ -2672,8 +2681,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUserPolicyRequest'], - shapes: shapes, ); } @@ -2701,8 +2708,9 @@ class IAM { Future deleteVirtualMFADevice({ required String serialNumber, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; + final $request = { + 'SerialNumber': serialNumber, + }; await _protocol.send( $request, action: 'DeleteVirtualMFADevice', @@ -2710,8 +2718,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteVirtualMFADeviceRequest'], - shapes: shapes, ); } @@ -2748,9 +2754,10 @@ class IAM { required String groupName, required String policyArn, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyArn'] = policyArn; + final $request = { + 'GroupName': groupName, + 'PolicyArn': policyArn, + }; await _protocol.send( $request, action: 'DetachGroupPolicy', @@ -2758,8 +2765,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachGroupPolicyRequest'], - shapes: shapes, ); } @@ -2797,9 +2802,10 @@ class IAM { required String policyArn, required String roleName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['RoleName'] = roleName; + final $request = { + 'PolicyArn': policyArn, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'DetachRolePolicy', @@ -2807,8 +2813,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachRolePolicyRequest'], - shapes: shapes, ); } @@ -2845,9 +2849,10 @@ class IAM { required String policyArn, required String userName, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['UserName'] = userName; + final $request = { + 'PolicyArn': policyArn, + 'UserName': userName, + }; await _protocol.send( $request, action: 'DetachUserPolicy', @@ -2855,8 +2860,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DetachUserPolicyRequest'], - shapes: shapes, ); } @@ -2922,11 +2925,12 @@ class IAM { required String serialNumber, required String userName, }) async { - final $request = {}; - $request['AuthenticationCode1'] = authenticationCode1; - $request['AuthenticationCode2'] = authenticationCode2; - $request['SerialNumber'] = serialNumber; - $request['UserName'] = userName; + final $request = { + 'AuthenticationCode1': authenticationCode1, + 'AuthenticationCode2': authenticationCode2, + 'SerialNumber': serialNumber, + 'UserName': userName, + }; await _protocol.send( $request, action: 'EnableMFADevice', @@ -2934,8 +2938,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableMFADeviceRequest'], - shapes: shapes, ); } @@ -2947,7 +2949,7 @@ class IAM { /// May throw [LimitExceededException]. /// May throw [ServiceFailureException]. Future generateCredentialReport() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GenerateCredentialReport', @@ -2955,7 +2957,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GenerateCredentialReportResult', ); return GenerateCredentialReportResponse.fromXml($result); @@ -3123,10 +3124,11 @@ class IAM { required String entityPath, String? organizationsPolicyId, }) async { - final $request = {}; - $request['EntityPath'] = entityPath; - organizationsPolicyId - ?.also((arg) => $request['OrganizationsPolicyId'] = arg); + final $request = { + 'EntityPath': entityPath, + if (organizationsPolicyId != null) + 'OrganizationsPolicyId': organizationsPolicyId, + }; final $result = await _protocol.send( $request, action: 'GenerateOrganizationsAccessReport', @@ -3134,8 +3136,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GenerateOrganizationsAccessReportRequest'], - shapes: shapes, resultWrapper: 'GenerateOrganizationsAccessReportResult', ); return GenerateOrganizationsAccessReportResponse.fromXml($result); @@ -3230,9 +3230,10 @@ class IAM { required String arn, AccessAdvisorUsageGranularityType? granularity, }) async { - final $request = {}; - $request['Arn'] = arn; - granularity?.also((arg) => $request['Granularity'] = arg.toValue()); + final $request = { + 'Arn': arn, + if (granularity != null) 'Granularity': granularity.toValue(), + }; final $result = await _protocol.send( $request, action: 'GenerateServiceLastAccessedDetails', @@ -3240,8 +3241,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GenerateServiceLastAccessedDetailsRequest'], - shapes: shapes, resultWrapper: 'GenerateServiceLastAccessedDetailsResult', ); return GenerateServiceLastAccessedDetailsResponse.fromXml($result); @@ -3261,8 +3260,9 @@ class IAM { Future getAccessKeyLastUsed({ required String accessKeyId, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; + final $request = { + 'AccessKeyId': accessKeyId, + }; final $result = await _protocol.send( $request, action: 'GetAccessKeyLastUsed', @@ -3270,8 +3270,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAccessKeyLastUsedRequest'], - shapes: shapes, resultWrapper: 'GetAccessKeyLastUsedResult', ); return GetAccessKeyLastUsedResponse.fromXml($result); @@ -3334,11 +3332,16 @@ class IAM { 1, 1000, ); - final $request = {}; - filter?.also( - (arg) => $request['Filter'] = arg.map((e) => e.toValue()).toList()); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + if (filter != null) + if (filter.isEmpty) + 'Filter': '' + else + for (var i1 = 0; i1 < filter.length; i1++) + 'Filter.member.${i1 + 1}': filter[i1].toValue(), + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetAccountAuthorizationDetails', @@ -3346,8 +3349,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAccountAuthorizationDetailsRequest'], - shapes: shapes, resultWrapper: 'GetAccountAuthorizationDetailsResult', ); return GetAccountAuthorizationDetailsResponse.fromXml($result); @@ -3363,7 +3364,7 @@ class IAM { /// May throw [NoSuchEntityException]. /// May throw [ServiceFailureException]. Future getAccountPasswordPolicy() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetAccountPasswordPolicy', @@ -3371,7 +3372,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetAccountPasswordPolicyResult', ); return GetAccountPasswordPolicyResponse.fromXml($result); @@ -3386,7 +3386,7 @@ class IAM { /// /// May throw [ServiceFailureException]. Future getAccountSummary() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetAccountSummary', @@ -3394,7 +3394,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetAccountSummaryResult', ); return GetAccountSummaryResponse.fromXml($result); @@ -3442,8 +3441,13 @@ class IAM { Future getContextKeysForCustomPolicy({ required List policyInputList, }) async { - final $request = {}; - $request['PolicyInputList'] = policyInputList; + final $request = { + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + }; final $result = await _protocol.send( $request, action: 'GetContextKeysForCustomPolicy', @@ -3451,8 +3455,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetContextKeysForCustomPolicyRequest'], - shapes: shapes, resultWrapper: 'GetContextKeysForCustomPolicyResult', ); return GetContextKeysForPolicyResponse.fromXml($result); @@ -3523,9 +3525,15 @@ class IAM { required String policySourceArn, List? policyInputList, }) async { - final $request = {}; - $request['PolicySourceArn'] = policySourceArn; - policyInputList?.also((arg) => $request['PolicyInputList'] = arg); + final $request = { + 'PolicySourceArn': policySourceArn, + if (policyInputList != null) + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + }; final $result = await _protocol.send( $request, action: 'GetContextKeysForPrincipalPolicy', @@ -3533,8 +3541,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetContextKeysForPrincipalPolicyRequest'], - shapes: shapes, resultWrapper: 'GetContextKeysForPrincipalPolicyResult', ); return GetContextKeysForPolicyResponse.fromXml($result); @@ -3550,7 +3556,7 @@ class IAM { /// May throw [CredentialReportNotReadyException]. /// May throw [ServiceFailureException]. Future getCredentialReport() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetCredentialReport', @@ -3558,7 +3564,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetCredentialReportResult', ); return GetCredentialReportResponse.fromXml($result); @@ -3608,10 +3613,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['GroupName'] = groupName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'GroupName': groupName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetGroup', @@ -3619,8 +3625,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetGroupRequest'], - shapes: shapes, resultWrapper: 'GetGroupResult', ); return GetGroupResponse.fromXml($result); @@ -3667,9 +3671,10 @@ class IAM { required String groupName, required String policyName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyName'] = policyName; + final $request = { + 'GroupName': groupName, + 'PolicyName': policyName, + }; final $result = await _protocol.send( $request, action: 'GetGroupPolicy', @@ -3677,8 +3682,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetGroupPolicyRequest'], - shapes: shapes, resultWrapper: 'GetGroupPolicyResult', ); return GetGroupPolicyResponse.fromXml($result); @@ -3703,8 +3706,9 @@ class IAM { Future getInstanceProfile({ required String instanceProfileName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; + final $request = { + 'InstanceProfileName': instanceProfileName, + }; final $result = await _protocol.send( $request, action: 'GetInstanceProfile', @@ -3712,8 +3716,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetInstanceProfileRequest'], - shapes: shapes, resultWrapper: 'GetInstanceProfileResult', ); return GetInstanceProfileResponse.fromXml($result); @@ -3748,8 +3750,9 @@ class IAM { Future getLoginProfile({ required String userName, }) async { - final $request = {}; - $request['UserName'] = userName; + final $request = { + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetLoginProfile', @@ -3757,8 +3760,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetLoginProfileRequest'], - shapes: shapes, resultWrapper: 'GetLoginProfileResult', ); return GetLoginProfileResponse.fromXml($result); @@ -3780,9 +3781,10 @@ class IAM { required String serialNumber, String? userName, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'SerialNumber': serialNumber, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetMFADevice', @@ -3790,8 +3792,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetMFADeviceRequest'], - shapes: shapes, resultWrapper: 'GetMFADeviceResult', ); return GetMFADeviceResponse.fromXml($result); @@ -3816,8 +3816,9 @@ class IAM { Future getOpenIDConnectProvider({ required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; final $result = await _protocol.send( $request, action: 'GetOpenIDConnectProvider', @@ -3825,8 +3826,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetOpenIDConnectProviderRequest'], - shapes: shapes, resultWrapper: 'GetOpenIDConnectProviderResult', ); return GetOpenIDConnectProviderResponse.fromXml($result); @@ -3898,11 +3897,12 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['JobId'] = jobId; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - sortKey?.also((arg) => $request['SortKey'] = arg.toValue()); + final $request = { + 'JobId': jobId, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (sortKey != null) 'SortKey': sortKey.toValue(), + }; final $result = await _protocol.send( $request, action: 'GetOrganizationsAccessReport', @@ -3910,8 +3910,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetOrganizationsAccessReportRequest'], - shapes: shapes, resultWrapper: 'GetOrganizationsAccessReportResult', ); return GetOrganizationsAccessReportResponse.fromXml($result); @@ -3949,8 +3947,9 @@ class IAM { Future getPolicy({ required String policyArn, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; + final $request = { + 'PolicyArn': policyArn, + }; final $result = await _protocol.send( $request, action: 'GetPolicy', @@ -3958,8 +3957,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPolicyRequest'], - shapes: shapes, resultWrapper: 'GetPolicyResult', ); return GetPolicyResponse.fromXml($result); @@ -4016,9 +4013,10 @@ class IAM { required String policyArn, required String versionId, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['VersionId'] = versionId; + final $request = { + 'PolicyArn': policyArn, + 'VersionId': versionId, + }; final $result = await _protocol.send( $request, action: 'GetPolicyVersion', @@ -4026,8 +4024,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPolicyVersionRequest'], - shapes: shapes, resultWrapper: 'GetPolicyVersionResult', ); return GetPolicyVersionResponse.fromXml($result); @@ -4060,8 +4056,9 @@ class IAM { Future getRole({ required String roleName, }) async { - final $request = {}; - $request['RoleName'] = roleName; + final $request = { + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'GetRole', @@ -4069,8 +4066,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetRoleRequest'], - shapes: shapes, resultWrapper: 'GetRoleResult', ); return GetRoleResponse.fromXml($result); @@ -4121,9 +4116,10 @@ class IAM { required String policyName, required String roleName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['RoleName'] = roleName; + final $request = { + 'PolicyName': policyName, + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'GetRolePolicy', @@ -4131,8 +4127,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetRolePolicyRequest'], - shapes: shapes, resultWrapper: 'GetRolePolicyResult', ); return GetRolePolicyResponse.fromXml($result); @@ -4161,8 +4155,9 @@ class IAM { Future getSAMLProvider({ required String sAMLProviderArn, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + }; final $result = await _protocol.send( $request, action: 'GetSAMLProvider', @@ -4170,8 +4165,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSAMLProviderRequest'], - shapes: shapes, resultWrapper: 'GetSAMLProviderResult', ); return GetSAMLProviderResponse.fromXml($result); @@ -4213,10 +4206,11 @@ class IAM { required String sSHPublicKeyId, required String userName, }) async { - final $request = {}; - $request['Encoding'] = encoding.toValue(); - $request['SSHPublicKeyId'] = sSHPublicKeyId; - $request['UserName'] = userName; + final $request = { + 'Encoding': encoding.toValue(), + 'SSHPublicKeyId': sSHPublicKeyId, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetSSHPublicKey', @@ -4224,8 +4218,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSSHPublicKeyRequest'], - shapes: shapes, resultWrapper: 'GetSSHPublicKeyResult', ); return GetSSHPublicKeyResponse.fromXml($result); @@ -4253,8 +4245,9 @@ class IAM { Future getServerCertificate({ required String serverCertificateName, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; + final $request = { + 'ServerCertificateName': serverCertificateName, + }; final $result = await _protocol.send( $request, action: 'GetServerCertificate', @@ -4262,8 +4255,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServerCertificateRequest'], - shapes: shapes, resultWrapper: 'GetServerCertificateResult', ); return GetServerCertificateResponse.fromXml($result); @@ -4367,10 +4358,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['JobId'] = jobId; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'JobId': jobId, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetServiceLastAccessedDetails', @@ -4378,8 +4370,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServiceLastAccessedDetailsRequest'], - shapes: shapes, resultWrapper: 'GetServiceLastAccessedDetailsResult', ); return GetServiceLastAccessedDetailsResponse.fromXml($result); @@ -4468,11 +4458,12 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['JobId'] = jobId; - $request['ServiceNamespace'] = serviceNamespace; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'JobId': jobId, + 'ServiceNamespace': serviceNamespace, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'GetServiceLastAccessedDetailsWithEntities', @@ -4480,8 +4471,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServiceLastAccessedDetailsWithEntitiesRequest'], - shapes: shapes, resultWrapper: 'GetServiceLastAccessedDetailsWithEntitiesResult', ); return GetServiceLastAccessedDetailsWithEntitiesResponse.fromXml($result); @@ -4506,8 +4495,9 @@ class IAM { getServiceLinkedRoleDeletionStatus({ required String deletionTaskId, }) async { - final $request = {}; - $request['DeletionTaskId'] = deletionTaskId; + final $request = { + 'DeletionTaskId': deletionTaskId, + }; final $result = await _protocol.send( $request, action: 'GetServiceLinkedRoleDeletionStatus', @@ -4515,8 +4505,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetServiceLinkedRoleDeletionStatusRequest'], - shapes: shapes, resultWrapper: 'GetServiceLinkedRoleDeletionStatusResult', ); return GetServiceLinkedRoleDeletionStatusResponse.fromXml($result); @@ -4543,8 +4531,9 @@ class IAM { Future getUser({ String? userName, }) async { - final $request = {}; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetUser', @@ -4552,8 +4541,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetUserRequest'], - shapes: shapes, resultWrapper: 'GetUserResult', ); return GetUserResponse.fromXml($result); @@ -4600,9 +4587,10 @@ class IAM { required String policyName, required String userName, }) async { - final $request = {}; - $request['PolicyName'] = policyName; - $request['UserName'] = userName; + final $request = { + 'PolicyName': policyName, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'GetUserPolicy', @@ -4610,8 +4598,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetUserPolicyRequest'], - shapes: shapes, resultWrapper: 'GetUserPolicyResult', ); return GetUserPolicyResponse.fromXml($result); @@ -4678,10 +4664,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListAccessKeys', @@ -4689,8 +4676,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAccessKeysRequest'], - shapes: shapes, resultWrapper: 'ListAccessKeysResult', ); return ListAccessKeysResponse.fromXml($result); @@ -4733,9 +4718,10 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListAccountAliases', @@ -4743,8 +4729,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAccountAliasesRequest'], - shapes: shapes, resultWrapper: 'ListAccountAliasesResult', ); return ListAccountAliasesResponse.fromXml($result); @@ -4820,11 +4804,12 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['GroupName'] = groupName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + 'GroupName': groupName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListAttachedGroupPolicies', @@ -4832,8 +4817,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAttachedGroupPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListAttachedGroupPoliciesResult', ); return ListAttachedGroupPoliciesResponse.fromXml($result); @@ -4909,11 +4892,12 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListAttachedRolePolicies', @@ -4921,8 +4905,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAttachedRolePoliciesRequest'], - shapes: shapes, resultWrapper: 'ListAttachedRolePoliciesResult', ); return ListAttachedRolePoliciesResponse.fromXml($result); @@ -4998,11 +4980,12 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListAttachedUserPolicies', @@ -5010,8 +4993,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListAttachedUserPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListAttachedUserPoliciesResult', ); return ListAttachedUserPoliciesResponse.fromXml($result); @@ -5105,14 +5086,15 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['PolicyArn'] = policyArn; - entityFilter?.also((arg) => $request['EntityFilter'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); - policyUsageFilter - ?.also((arg) => $request['PolicyUsageFilter'] = arg.toValue()); + final $request = { + 'PolicyArn': policyArn, + if (entityFilter != null) 'EntityFilter': entityFilter.toValue(), + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + if (policyUsageFilter != null) + 'PolicyUsageFilter': policyUsageFilter.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListEntitiesForPolicy', @@ -5120,8 +5102,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListEntitiesForPolicyRequest'], - shapes: shapes, resultWrapper: 'ListEntitiesForPolicyResult', ); return ListEntitiesForPolicyResponse.fromXml($result); @@ -5181,10 +5161,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['GroupName'] = groupName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'GroupName': groupName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListGroupPolicies', @@ -5192,8 +5173,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGroupPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListGroupPoliciesResult', ); return ListGroupPoliciesResponse.fromXml($result); @@ -5249,10 +5228,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListGroups', @@ -5260,8 +5240,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGroupsRequest'], - shapes: shapes, resultWrapper: 'ListGroupsResult', ); return ListGroupsResponse.fromXml($result); @@ -5312,10 +5290,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListGroupsForUser', @@ -5323,8 +5302,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListGroupsForUserRequest'], - shapes: shapes, resultWrapper: 'ListGroupsForUserResult', ); return ListGroupsForUserResponse.fromXml($result); @@ -5376,10 +5353,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'InstanceProfileName': instanceProfileName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListInstanceProfileTags', @@ -5387,8 +5365,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListInstanceProfileTagsRequest'], - shapes: shapes, resultWrapper: 'ListInstanceProfileTagsResult', ); return ListInstanceProfileTagsResponse.fromXml($result); @@ -5454,10 +5430,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListInstanceProfiles', @@ -5465,8 +5442,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListInstanceProfilesRequest'], - shapes: shapes, resultWrapper: 'ListInstanceProfilesResult', ); return ListInstanceProfilesResponse.fromXml($result); @@ -5521,10 +5496,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListInstanceProfilesForRole', @@ -5532,8 +5508,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListInstanceProfilesForRoleRequest'], - shapes: shapes, resultWrapper: 'ListInstanceProfilesForRoleResult', ); return ListInstanceProfilesForRoleResponse.fromXml($result); @@ -5587,10 +5561,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['SerialNumber'] = serialNumber; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'SerialNumber': serialNumber, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListMFADeviceTags', @@ -5598,8 +5573,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMFADeviceTagsRequest'], - shapes: shapes, resultWrapper: 'ListMFADeviceTagsResult', ); return ListMFADeviceTagsResponse.fromXml($result); @@ -5654,10 +5627,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListMFADevices', @@ -5665,8 +5639,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListMFADevicesRequest'], - shapes: shapes, resultWrapper: 'ListMFADevicesResult', ); return ListMFADevicesResponse.fromXml($result); @@ -5724,10 +5696,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListOpenIDConnectProviderTags', @@ -5735,8 +5708,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListOpenIDConnectProviderTagsRequest'], - shapes: shapes, resultWrapper: 'ListOpenIDConnectProviderTagsResult', ); return ListOpenIDConnectProviderTagsResponse.fromXml($result); @@ -5755,7 +5726,7 @@ class IAM { /// May throw [ServiceFailureException]. Future listOpenIDConnectProviders() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListOpenIDConnectProviders', @@ -5763,8 +5734,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListOpenIDConnectProvidersRequest'], - shapes: shapes, resultWrapper: 'ListOpenIDConnectProvidersResult', ); return ListOpenIDConnectProvidersResponse.fromXml($result); @@ -5868,14 +5837,15 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - onlyAttached?.also((arg) => $request['OnlyAttached'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); - policyUsageFilter - ?.also((arg) => $request['PolicyUsageFilter'] = arg.toValue()); - scope?.also((arg) => $request['Scope'] = arg.toValue()); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (onlyAttached != null) 'OnlyAttached': onlyAttached.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + if (policyUsageFilter != null) + 'PolicyUsageFilter': policyUsageFilter.toValue(), + if (scope != null) 'Scope': scope.toValue(), + }; final $result = await _protocol.send( $request, action: 'ListPolicies', @@ -5883,8 +5853,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListPoliciesResult', ); return ListPoliciesResponse.fromXml($result); @@ -5967,10 +5935,15 @@ class IAM { required List serviceNamespaces, String? marker, }) async { - final $request = {}; - $request['Arn'] = arn; - $request['ServiceNamespaces'] = serviceNamespaces; - marker?.also((arg) => $request['Marker'] = arg); + final $request = { + 'Arn': arn, + if (serviceNamespaces.isEmpty) + 'ServiceNamespaces': '' + else + for (var i1 = 0; i1 < serviceNamespaces.length; i1++) + 'ServiceNamespaces.member.${i1 + 1}': serviceNamespaces[i1], + if (marker != null) 'Marker': marker, + }; final $result = await _protocol.send( $request, action: 'ListPoliciesGrantingServiceAccess', @@ -5978,8 +5951,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPoliciesGrantingServiceAccessRequest'], - shapes: shapes, resultWrapper: 'ListPoliciesGrantingServiceAccessResult', ); return ListPoliciesGrantingServiceAccessResponse.fromXml($result); @@ -6032,10 +6003,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['PolicyArn'] = policyArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'PolicyArn': policyArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListPolicyTags', @@ -6043,8 +6015,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPolicyTagsRequest'], - shapes: shapes, resultWrapper: 'ListPolicyTagsResult', ); return ListPolicyTagsResponse.fromXml($result); @@ -6100,10 +6070,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['PolicyArn'] = policyArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'PolicyArn': policyArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListPolicyVersions', @@ -6111,8 +6082,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPolicyVersionsRequest'], - shapes: shapes, resultWrapper: 'ListPolicyVersionsResult', ); return ListPolicyVersionsResponse.fromXml($result); @@ -6172,10 +6141,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListRolePolicies', @@ -6183,8 +6153,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRolePoliciesRequest'], - shapes: shapes, resultWrapper: 'ListRolePoliciesResult', ); return ListRolePoliciesResponse.fromXml($result); @@ -6236,10 +6204,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['RoleName'] = roleName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'RoleName': roleName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListRoleTags', @@ -6247,8 +6216,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRoleTagsRequest'], - shapes: shapes, resultWrapper: 'ListRoleTagsResult', ); return ListRoleTagsResponse.fromXml($result); @@ -6325,10 +6292,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListRoles', @@ -6336,8 +6304,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRolesRequest'], - shapes: shapes, resultWrapper: 'ListRolesResult', ); return ListRolesResponse.fromXml($result); @@ -6395,10 +6361,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListSAMLProviderTags', @@ -6406,8 +6373,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSAMLProviderTagsRequest'], - shapes: shapes, resultWrapper: 'ListSAMLProviderTagsResult', ); return ListSAMLProviderTagsResponse.fromXml($result); @@ -6426,7 +6391,7 @@ class IAM { /// /// May throw [ServiceFailureException]. Future listSAMLProviders() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListSAMLProviders', @@ -6434,8 +6399,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSAMLProvidersRequest'], - shapes: shapes, resultWrapper: 'ListSAMLProvidersResult', ); return ListSAMLProvidersResponse.fromXml($result); @@ -6496,10 +6459,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListSSHPublicKeys', @@ -6507,8 +6471,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSSHPublicKeysRequest'], - shapes: shapes, resultWrapper: 'ListSSHPublicKeysResult', ); return ListSSHPublicKeysResponse.fromXml($result); @@ -6568,10 +6530,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'ServerCertificateName': serverCertificateName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListServerCertificateTags', @@ -6579,8 +6542,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListServerCertificateTagsRequest'], - shapes: shapes, resultWrapper: 'ListServerCertificateTagsResult', ); return ListServerCertificateTagsResponse.fromXml($result); @@ -6650,10 +6611,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListServerCertificates', @@ -6661,8 +6623,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListServerCertificatesRequest'], - shapes: shapes, resultWrapper: 'ListServerCertificatesResult', ); return ListServerCertificatesResponse.fromXml($result); @@ -6699,9 +6659,10 @@ class IAM { String? serviceName, String? userName, }) async { - final $request = {}; - serviceName?.also((arg) => $request['ServiceName'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (serviceName != null) 'ServiceName': serviceName, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListServiceSpecificCredentials', @@ -6709,8 +6670,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListServiceSpecificCredentialsRequest'], - shapes: shapes, resultWrapper: 'ListServiceSpecificCredentialsResult', ); return ListServiceSpecificCredentialsResponse.fromXml($result); @@ -6770,10 +6729,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ListSigningCertificates', @@ -6781,8 +6741,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSigningCertificatesRequest'], - shapes: shapes, resultWrapper: 'ListSigningCertificatesResult', ); return ListSigningCertificatesResponse.fromXml($result); @@ -6841,10 +6799,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListUserPolicies', @@ -6852,8 +6811,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListUserPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListUserPoliciesResult', ); return ListUserPoliciesResponse.fromXml($result); @@ -6905,10 +6862,11 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['UserName'] = userName; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + 'UserName': userName, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListUserTags', @@ -6916,8 +6874,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListUserTagsRequest'], - shapes: shapes, resultWrapper: 'ListUserTagsResult', ); return ListUserTagsResponse.fromXml($result); @@ -6989,10 +6945,11 @@ class IAM { 1, 1000, ); - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - pathPrefix?.also((arg) => $request['PathPrefix'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (pathPrefix != null) 'PathPrefix': pathPrefix, + }; final $result = await _protocol.send( $request, action: 'ListUsers', @@ -7000,8 +6957,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListUsersRequest'], - shapes: shapes, resultWrapper: 'ListUsersResult', ); return ListUsersResponse.fromXml($result); @@ -7055,11 +7010,12 @@ class IAM { 1, 1000, ); - final $request = {}; - assignmentStatus - ?.also((arg) => $request['AssignmentStatus'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); + final $request = { + if (assignmentStatus != null) + 'AssignmentStatus': assignmentStatus.toValue(), + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + }; final $result = await _protocol.send( $request, action: 'ListVirtualMFADevices', @@ -7067,8 +7023,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListVirtualMFADevicesRequest'], - shapes: shapes, resultWrapper: 'ListVirtualMFADevicesResult', ); return ListVirtualMFADevicesResponse.fromXml($result); @@ -7151,10 +7105,11 @@ class IAM { required String policyDocument, required String policyName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; + final $request = { + 'GroupName': groupName, + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'PutGroupPolicy', @@ -7162,8 +7117,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutGroupPolicyRequest'], - shapes: shapes, ); } @@ -7211,9 +7164,10 @@ class IAM { required String permissionsBoundary, required String roleName, }) async { - final $request = {}; - $request['PermissionsBoundary'] = permissionsBoundary; - $request['RoleName'] = roleName; + final $request = { + 'PermissionsBoundary': permissionsBoundary, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'PutRolePermissionsBoundary', @@ -7221,8 +7175,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutRolePermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -7315,10 +7267,11 @@ class IAM { required String policyName, required String roleName, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; - $request['RoleName'] = roleName; + final $request = { + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'PutRolePolicy', @@ -7326,8 +7279,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutRolePolicyRequest'], - shapes: shapes, ); } @@ -7372,9 +7323,10 @@ class IAM { required String permissionsBoundary, required String userName, }) async { - final $request = {}; - $request['PermissionsBoundary'] = permissionsBoundary; - $request['UserName'] = userName; + final $request = { + 'PermissionsBoundary': permissionsBoundary, + 'UserName': userName, + }; await _protocol.send( $request, action: 'PutUserPermissionsBoundary', @@ -7382,8 +7334,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutUserPermissionsBoundaryRequest'], - shapes: shapes, ); } @@ -7463,10 +7413,11 @@ class IAM { required String policyName, required String userName, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['PolicyName'] = policyName; - $request['UserName'] = userName; + final $request = { + 'PolicyDocument': policyDocument, + 'PolicyName': policyName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'PutUserPolicy', @@ -7474,8 +7425,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutUserPolicyRequest'], - shapes: shapes, ); } @@ -7508,9 +7457,10 @@ class IAM { required String clientID, required String openIDConnectProviderArn, }) async { - final $request = {}; - $request['ClientID'] = clientID; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; + final $request = { + 'ClientID': clientID, + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + }; await _protocol.send( $request, action: 'RemoveClientIDFromOpenIDConnectProvider', @@ -7518,8 +7468,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveClientIDFromOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -7562,9 +7510,10 @@ class IAM { required String instanceProfileName, required String roleName, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['RoleName'] = roleName; + final $request = { + 'InstanceProfileName': instanceProfileName, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'RemoveRoleFromInstanceProfile', @@ -7572,8 +7521,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromInstanceProfileRequest'], - shapes: shapes, ); } @@ -7602,9 +7549,10 @@ class IAM { required String groupName, required String userName, }) async { - final $request = {}; - $request['GroupName'] = groupName; - $request['UserName'] = userName; + final $request = { + 'GroupName': groupName, + 'UserName': userName, + }; await _protocol.send( $request, action: 'RemoveUserFromGroup', @@ -7612,8 +7560,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveUserFromGroupRequest'], - shapes: shapes, ); } @@ -7645,9 +7591,10 @@ class IAM { required String serviceSpecificCredentialId, String? userName, }) async { - final $request = {}; - $request['ServiceSpecificCredentialId'] = serviceSpecificCredentialId; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'ServiceSpecificCredentialId': serviceSpecificCredentialId, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'ResetServiceSpecificCredential', @@ -7655,8 +7602,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetServiceSpecificCredentialRequest'], - shapes: shapes, resultWrapper: 'ResetServiceSpecificCredentialResult', ); return ResetServiceSpecificCredentialResponse.fromXml($result); @@ -7707,11 +7652,12 @@ class IAM { required String serialNumber, required String userName, }) async { - final $request = {}; - $request['AuthenticationCode1'] = authenticationCode1; - $request['AuthenticationCode2'] = authenticationCode2; - $request['SerialNumber'] = serialNumber; - $request['UserName'] = userName; + final $request = { + 'AuthenticationCode1': authenticationCode1, + 'AuthenticationCode2': authenticationCode2, + 'SerialNumber': serialNumber, + 'UserName': userName, + }; await _protocol.send( $request, action: 'ResyncMFADevice', @@ -7719,8 +7665,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResyncMFADeviceRequest'], - shapes: shapes, ); } @@ -7759,9 +7703,10 @@ class IAM { required String policyArn, required String versionId, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['VersionId'] = versionId; + final $request = { + 'PolicyArn': policyArn, + 'VersionId': versionId, + }; await _protocol.send( $request, action: 'SetDefaultPolicyVersion', @@ -7769,8 +7714,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetDefaultPolicyVersionRequest'], - shapes: shapes, ); } @@ -7819,9 +7762,9 @@ class IAM { Future setSecurityTokenServicePreferences({ required GlobalEndpointTokenVersion globalEndpointTokenVersion, }) async { - final $request = {}; - $request['GlobalEndpointTokenVersion'] = - globalEndpointTokenVersion.toValue(); + final $request = { + 'GlobalEndpointTokenVersion': globalEndpointTokenVersion.toValue(), + }; await _protocol.send( $request, action: 'SetSecurityTokenServicePreferences', @@ -7829,8 +7772,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSecurityTokenServicePreferencesRequest'], - shapes: shapes, ); } @@ -8119,20 +8060,45 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['ActionNames'] = actionNames; - $request['PolicyInputList'] = policyInputList; - callerArn?.also((arg) => $request['CallerArn'] = arg); - contextEntries?.also((arg) => $request['ContextEntries'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - permissionsBoundaryPolicyInputList - ?.also((arg) => $request['PermissionsBoundaryPolicyInputList'] = arg); - resourceArns?.also((arg) => $request['ResourceArns'] = arg); - resourceHandlingOption - ?.also((arg) => $request['ResourceHandlingOption'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - resourcePolicy?.also((arg) => $request['ResourcePolicy'] = arg); + final $request = { + if (actionNames.isEmpty) + 'ActionNames': '' + else + for (var i1 = 0; i1 < actionNames.length; i1++) + 'ActionNames.member.${i1 + 1}': actionNames[i1], + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + if (callerArn != null) 'CallerArn': callerArn, + if (contextEntries != null) + if (contextEntries.isEmpty) + 'ContextEntries': '' + else + for (var i1 = 0; i1 < contextEntries.length; i1++) + for (var e3 in contextEntries[i1].toQueryMap().entries) + 'ContextEntries.member.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (permissionsBoundaryPolicyInputList != null) + if (permissionsBoundaryPolicyInputList.isEmpty) + 'PermissionsBoundaryPolicyInputList': '' + else + for (var i1 = 0; i1 < permissionsBoundaryPolicyInputList.length; i1++) + 'PermissionsBoundaryPolicyInputList.member.${i1 + 1}': + permissionsBoundaryPolicyInputList[i1], + if (resourceArns != null) + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (resourceHandlingOption != null) + 'ResourceHandlingOption': resourceHandlingOption, + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (resourcePolicy != null) 'ResourcePolicy': resourcePolicy, + }; final $result = await _protocol.send( $request, action: 'SimulateCustomPolicy', @@ -8140,8 +8106,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SimulateCustomPolicyRequest'], - shapes: shapes, resultWrapper: 'SimulateCustomPolicyResult', ); return SimulatePolicyResponse.fromXml($result); @@ -8461,21 +8425,47 @@ class IAM { 1, 1000, ); - final $request = {}; - $request['ActionNames'] = actionNames; - $request['PolicySourceArn'] = policySourceArn; - callerArn?.also((arg) => $request['CallerArn'] = arg); - contextEntries?.also((arg) => $request['ContextEntries'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxItems?.also((arg) => $request['MaxItems'] = arg); - permissionsBoundaryPolicyInputList - ?.also((arg) => $request['PermissionsBoundaryPolicyInputList'] = arg); - policyInputList?.also((arg) => $request['PolicyInputList'] = arg); - resourceArns?.also((arg) => $request['ResourceArns'] = arg); - resourceHandlingOption - ?.also((arg) => $request['ResourceHandlingOption'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - resourcePolicy?.also((arg) => $request['ResourcePolicy'] = arg); + final $request = { + if (actionNames.isEmpty) + 'ActionNames': '' + else + for (var i1 = 0; i1 < actionNames.length; i1++) + 'ActionNames.member.${i1 + 1}': actionNames[i1], + 'PolicySourceArn': policySourceArn, + if (callerArn != null) 'CallerArn': callerArn, + if (contextEntries != null) + if (contextEntries.isEmpty) + 'ContextEntries': '' + else + for (var i1 = 0; i1 < contextEntries.length; i1++) + for (var e3 in contextEntries[i1].toQueryMap().entries) + 'ContextEntries.member.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (permissionsBoundaryPolicyInputList != null) + if (permissionsBoundaryPolicyInputList.isEmpty) + 'PermissionsBoundaryPolicyInputList': '' + else + for (var i1 = 0; i1 < permissionsBoundaryPolicyInputList.length; i1++) + 'PermissionsBoundaryPolicyInputList.member.${i1 + 1}': + permissionsBoundaryPolicyInputList[i1], + if (policyInputList != null) + if (policyInputList.isEmpty) + 'PolicyInputList': '' + else + for (var i1 = 0; i1 < policyInputList.length; i1++) + 'PolicyInputList.member.${i1 + 1}': policyInputList[i1], + if (resourceArns != null) + if (resourceArns.isEmpty) + 'ResourceArns': '' + else + for (var i1 = 0; i1 < resourceArns.length; i1++) + 'ResourceArns.member.${i1 + 1}': resourceArns[i1], + if (resourceHandlingOption != null) + 'ResourceHandlingOption': resourceHandlingOption, + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (resourcePolicy != null) 'ResourcePolicy': resourcePolicy, + }; final $result = await _protocol.send( $request, action: 'SimulatePrincipalPolicy', @@ -8483,8 +8473,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SimulatePrincipalPolicyRequest'], - shapes: shapes, resultWrapper: 'SimulatePrincipalPolicyResult', ); return SimulatePolicyResponse.fromXml($result); @@ -8550,9 +8538,15 @@ class IAM { required String instanceProfileName, required List tags, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['Tags'] = tags; + final $request = { + 'InstanceProfileName': instanceProfileName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagInstanceProfile', @@ -8560,8 +8554,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagInstanceProfileRequest'], - shapes: shapes, ); } @@ -8628,9 +8620,15 @@ class IAM { required String serialNumber, required List tags, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - $request['Tags'] = tags; + final $request = { + 'SerialNumber': serialNumber, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagMFADevice', @@ -8638,8 +8636,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagMFADeviceRequest'], - shapes: shapes, ); } @@ -8707,9 +8703,15 @@ class IAM { required String openIDConnectProviderArn, required List tags, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - $request['Tags'] = tags; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagOpenIDConnectProvider', @@ -8717,8 +8719,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -8783,9 +8783,15 @@ class IAM { required String policyArn, required List tags, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['Tags'] = tags; + final $request = { + 'PolicyArn': policyArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagPolicy', @@ -8793,8 +8799,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagPolicyRequest'], - shapes: shapes, ); } @@ -8868,9 +8872,15 @@ class IAM { required String roleName, required List tags, }) async { - final $request = {}; - $request['RoleName'] = roleName; - $request['Tags'] = tags; + final $request = { + 'RoleName': roleName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagRole', @@ -8878,8 +8888,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagRoleRequest'], - shapes: shapes, ); } @@ -8947,9 +8955,15 @@ class IAM { required String sAMLProviderArn, required List tags, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; - $request['Tags'] = tags; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagSAMLProvider', @@ -8957,8 +8971,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagSAMLProviderRequest'], - shapes: shapes, ); } @@ -9033,9 +9045,15 @@ class IAM { required String serverCertificateName, required List tags, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - $request['Tags'] = tags; + final $request = { + 'ServerCertificateName': serverCertificateName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagServerCertificate', @@ -9043,8 +9061,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagServerCertificateRequest'], - shapes: shapes, ); } @@ -9117,9 +9133,15 @@ class IAM { required List tags, required String userName, }) async { - final $request = {}; - $request['Tags'] = tags; - $request['UserName'] = userName; + final $request = { + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + 'UserName': userName, + }; await _protocol.send( $request, action: 'TagUser', @@ -9127,8 +9149,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagUserRequest'], - shapes: shapes, ); } @@ -9157,9 +9177,14 @@ class IAM { required String instanceProfileName, required List tagKeys, }) async { - final $request = {}; - $request['InstanceProfileName'] = instanceProfileName; - $request['TagKeys'] = tagKeys; + final $request = { + 'InstanceProfileName': instanceProfileName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagInstanceProfile', @@ -9167,8 +9192,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagInstanceProfileRequest'], - shapes: shapes, ); } @@ -9199,9 +9222,14 @@ class IAM { required String serialNumber, required List tagKeys, }) async { - final $request = {}; - $request['SerialNumber'] = serialNumber; - $request['TagKeys'] = tagKeys; + final $request = { + 'SerialNumber': serialNumber, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagMFADevice', @@ -9209,8 +9237,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagMFADeviceRequest'], - shapes: shapes, ); } @@ -9242,9 +9268,14 @@ class IAM { required String openIDConnectProviderArn, required List tagKeys, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagOpenIDConnectProvider', @@ -9252,8 +9283,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagOpenIDConnectProviderRequest'], - shapes: shapes, ); } @@ -9283,9 +9312,14 @@ class IAM { required String policyArn, required List tagKeys, }) async { - final $request = {}; - $request['PolicyArn'] = policyArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'PolicyArn': policyArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagPolicy', @@ -9293,8 +9327,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagPolicyRequest'], - shapes: shapes, ); } @@ -9323,9 +9355,14 @@ class IAM { required String roleName, required List tagKeys, }) async { - final $request = {}; - $request['RoleName'] = roleName; - $request['TagKeys'] = tagKeys; + final $request = { + 'RoleName': roleName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagRole', @@ -9333,8 +9370,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagRoleRequest'], - shapes: shapes, ); } @@ -9367,9 +9402,14 @@ class IAM { required String sAMLProviderArn, required List tagKeys, }) async { - final $request = {}; - $request['SAMLProviderArn'] = sAMLProviderArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'SAMLProviderArn': sAMLProviderArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagSAMLProvider', @@ -9377,8 +9417,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagSAMLProviderRequest'], - shapes: shapes, ); } @@ -9415,9 +9453,14 @@ class IAM { required String serverCertificateName, required List tagKeys, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ServerCertificateName': serverCertificateName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagServerCertificate', @@ -9425,8 +9468,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagServerCertificateRequest'], - shapes: shapes, ); } @@ -9454,9 +9495,14 @@ class IAM { required List tagKeys, required String userName, }) async { - final $request = {}; - $request['TagKeys'] = tagKeys; - $request['UserName'] = userName; + final $request = { + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + 'UserName': userName, + }; await _protocol.send( $request, action: 'UntagUser', @@ -9464,8 +9510,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagUserRequest'], - shapes: shapes, ); } @@ -9515,10 +9559,11 @@ class IAM { required StatusType status, String? userName, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; - $request['Status'] = status.toValue(); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'AccessKeyId': accessKeyId, + 'Status': status.toValue(), + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateAccessKey', @@ -9526,8 +9571,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAccessKeyRequest'], - shapes: shapes, ); } @@ -9666,21 +9709,22 @@ class IAM { 1, 24, ); - final $request = {}; - allowUsersToChangePassword - ?.also((arg) => $request['AllowUsersToChangePassword'] = arg); - hardExpiry?.also((arg) => $request['HardExpiry'] = arg); - maxPasswordAge?.also((arg) => $request['MaxPasswordAge'] = arg); - minimumPasswordLength - ?.also((arg) => $request['MinimumPasswordLength'] = arg); - passwordReusePrevention - ?.also((arg) => $request['PasswordReusePrevention'] = arg); - requireLowercaseCharacters - ?.also((arg) => $request['RequireLowercaseCharacters'] = arg); - requireNumbers?.also((arg) => $request['RequireNumbers'] = arg); - requireSymbols?.also((arg) => $request['RequireSymbols'] = arg); - requireUppercaseCharacters - ?.also((arg) => $request['RequireUppercaseCharacters'] = arg); + final $request = { + if (allowUsersToChangePassword != null) + 'AllowUsersToChangePassword': allowUsersToChangePassword.toString(), + if (hardExpiry != null) 'HardExpiry': hardExpiry.toString(), + if (maxPasswordAge != null) 'MaxPasswordAge': maxPasswordAge.toString(), + if (minimumPasswordLength != null) + 'MinimumPasswordLength': minimumPasswordLength.toString(), + if (passwordReusePrevention != null) + 'PasswordReusePrevention': passwordReusePrevention.toString(), + if (requireLowercaseCharacters != null) + 'RequireLowercaseCharacters': requireLowercaseCharacters.toString(), + if (requireNumbers != null) 'RequireNumbers': requireNumbers.toString(), + if (requireSymbols != null) 'RequireSymbols': requireSymbols.toString(), + if (requireUppercaseCharacters != null) + 'RequireUppercaseCharacters': requireUppercaseCharacters.toString(), + }; await _protocol.send( $request, action: 'UpdateAccountPasswordPolicy', @@ -9688,8 +9732,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAccountPasswordPolicyRequest'], - shapes: shapes, ); } @@ -9743,9 +9785,10 @@ class IAM { required String policyDocument, required String roleName, }) async { - final $request = {}; - $request['PolicyDocument'] = policyDocument; - $request['RoleName'] = roleName; + final $request = { + 'PolicyDocument': policyDocument, + 'RoleName': roleName, + }; await _protocol.send( $request, action: 'UpdateAssumeRolePolicy', @@ -9753,8 +9796,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAssumeRolePolicyRequest'], - shapes: shapes, ); } @@ -9814,10 +9855,11 @@ class IAM { String? newGroupName, String? newPath, }) async { - final $request = {}; - $request['GroupName'] = groupName; - newGroupName?.also((arg) => $request['NewGroupName'] = arg); - newPath?.also((arg) => $request['NewPath'] = arg); + final $request = { + 'GroupName': groupName, + if (newGroupName != null) 'NewGroupName': newGroupName, + if (newPath != null) 'NewPath': newPath, + }; await _protocol.send( $request, action: 'UpdateGroup', @@ -9825,8 +9867,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateGroupRequest'], - shapes: shapes, ); } @@ -9887,11 +9927,12 @@ class IAM { String? password, bool? passwordResetRequired, }) async { - final $request = {}; - $request['UserName'] = userName; - password?.also((arg) => $request['Password'] = arg); - passwordResetRequired - ?.also((arg) => $request['PasswordResetRequired'] = arg); + final $request = { + 'UserName': userName, + if (password != null) 'Password': password, + if (passwordResetRequired != null) + 'PasswordResetRequired': passwordResetRequired.toString(), + }; await _protocol.send( $request, action: 'UpdateLoginProfile', @@ -9899,8 +9940,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateLoginProfileRequest'], - shapes: shapes, ); } @@ -9953,9 +9992,14 @@ class IAM { required String openIDConnectProviderArn, required List thumbprintList, }) async { - final $request = {}; - $request['OpenIDConnectProviderArn'] = openIDConnectProviderArn; - $request['ThumbprintList'] = thumbprintList; + final $request = { + 'OpenIDConnectProviderArn': openIDConnectProviderArn, + if (thumbprintList.isEmpty) + 'ThumbprintList': '' + else + for (var i1 = 0; i1 < thumbprintList.length; i1++) + 'ThumbprintList.member.${i1 + 1}': thumbprintList[i1], + }; await _protocol.send( $request, action: 'UpdateOpenIDConnectProviderThumbprint', @@ -9963,8 +10007,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateOpenIDConnectProviderThumbprintRequest'], - shapes: shapes, ); } @@ -10014,10 +10056,12 @@ class IAM { 3600, 43200, ); - final $request = {}; - $request['RoleName'] = roleName; - description?.also((arg) => $request['Description'] = arg); - maxSessionDuration?.also((arg) => $request['MaxSessionDuration'] = arg); + final $request = { + 'RoleName': roleName, + if (description != null) 'Description': description, + if (maxSessionDuration != null) + 'MaxSessionDuration': maxSessionDuration.toString(), + }; await _protocol.send( $request, action: 'UpdateRole', @@ -10025,8 +10069,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateRoleRequest'], - shapes: shapes, resultWrapper: 'UpdateRoleResult', ); } @@ -10050,9 +10092,10 @@ class IAM { required String description, required String roleName, }) async { - final $request = {}; - $request['Description'] = description; - $request['RoleName'] = roleName; + final $request = { + 'Description': description, + 'RoleName': roleName, + }; final $result = await _protocol.send( $request, action: 'UpdateRoleDescription', @@ -10060,8 +10103,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateRoleDescriptionRequest'], - shapes: shapes, resultWrapper: 'UpdateRoleDescriptionResult', ); return UpdateRoleDescriptionResponse.fromXml($result); @@ -10099,9 +10140,10 @@ class IAM { required String sAMLMetadataDocument, required String sAMLProviderArn, }) async { - final $request = {}; - $request['SAMLMetadataDocument'] = sAMLMetadataDocument; - $request['SAMLProviderArn'] = sAMLProviderArn; + final $request = { + 'SAMLMetadataDocument': sAMLMetadataDocument, + 'SAMLProviderArn': sAMLProviderArn, + }; final $result = await _protocol.send( $request, action: 'UpdateSAMLProvider', @@ -10109,8 +10151,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSAMLProviderRequest'], - shapes: shapes, resultWrapper: 'UpdateSAMLProviderResult', ); return UpdateSAMLProviderResponse.fromXml($result); @@ -10154,10 +10194,11 @@ class IAM { required StatusType status, required String userName, }) async { - final $request = {}; - $request['SSHPublicKeyId'] = sSHPublicKeyId; - $request['Status'] = status.toValue(); - $request['UserName'] = userName; + final $request = { + 'SSHPublicKeyId': sSHPublicKeyId, + 'Status': status.toValue(), + 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateSSHPublicKey', @@ -10165,8 +10206,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSSHPublicKeyRequest'], - shapes: shapes, ); } @@ -10235,11 +10274,12 @@ class IAM { String? newPath, String? newServerCertificateName, }) async { - final $request = {}; - $request['ServerCertificateName'] = serverCertificateName; - newPath?.also((arg) => $request['NewPath'] = arg); - newServerCertificateName - ?.also((arg) => $request['NewServerCertificateName'] = arg); + final $request = { + 'ServerCertificateName': serverCertificateName, + if (newPath != null) 'NewPath': newPath, + if (newServerCertificateName != null) + 'NewServerCertificateName': newServerCertificateName, + }; await _protocol.send( $request, action: 'UpdateServerCertificate', @@ -10247,8 +10287,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServerCertificateRequest'], - shapes: shapes, ); } @@ -10284,10 +10322,11 @@ class IAM { required StatusType status, String? userName, }) async { - final $request = {}; - $request['ServiceSpecificCredentialId'] = serviceSpecificCredentialId; - $request['Status'] = status.toValue(); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'ServiceSpecificCredentialId': serviceSpecificCredentialId, + 'Status': status.toValue(), + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateServiceSpecificCredential', @@ -10295,8 +10334,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateServiceSpecificCredentialRequest'], - shapes: shapes, ); } @@ -10340,10 +10377,11 @@ class IAM { required StatusType status, String? userName, }) async { - final $request = {}; - $request['CertificateId'] = certificateId; - $request['Status'] = status.toValue(); - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'CertificateId': certificateId, + 'Status': status.toValue(), + if (userName != null) 'UserName': userName, + }; await _protocol.send( $request, action: 'UpdateSigningCertificate', @@ -10351,8 +10389,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateSigningCertificateRequest'], - shapes: shapes, ); } @@ -10414,10 +10450,11 @@ class IAM { String? newPath, String? newUserName, }) async { - final $request = {}; - $request['UserName'] = userName; - newPath?.also((arg) => $request['NewPath'] = arg); - newUserName?.also((arg) => $request['NewUserName'] = arg); + final $request = { + 'UserName': userName, + if (newPath != null) 'NewPath': newPath, + if (newUserName != null) 'NewUserName': newUserName, + }; await _protocol.send( $request, action: 'UpdateUser', @@ -10425,8 +10462,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateUserRequest'], - shapes: shapes, ); } @@ -10481,9 +10516,10 @@ class IAM { required String sSHPublicKeyBody, required String userName, }) async { - final $request = {}; - $request['SSHPublicKeyBody'] = sSHPublicKeyBody; - $request['UserName'] = userName; + final $request = { + 'SSHPublicKeyBody': sSHPublicKeyBody, + 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'UploadSSHPublicKey', @@ -10491,8 +10527,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UploadSSHPublicKeyRequest'], - shapes: shapes, resultWrapper: 'UploadSSHPublicKeyResult', ); return UploadSSHPublicKeyResponse.fromXml($result); @@ -10659,13 +10693,20 @@ class IAM { String? path, List? tags, }) async { - final $request = {}; - $request['CertificateBody'] = certificateBody; - $request['PrivateKey'] = privateKey; - $request['ServerCertificateName'] = serverCertificateName; - certificateChain?.also((arg) => $request['CertificateChain'] = arg); - path?.also((arg) => $request['Path'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'CertificateBody': certificateBody, + 'PrivateKey': privateKey, + 'ServerCertificateName': serverCertificateName, + if (certificateChain != null) 'CertificateChain': certificateChain, + if (path != null) 'Path': path, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'UploadServerCertificate', @@ -10673,8 +10714,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UploadServerCertificateRequest'], - shapes: shapes, resultWrapper: 'UploadServerCertificateResult', ); return UploadServerCertificateResponse.fromXml($result); @@ -10752,9 +10791,10 @@ class IAM { required String certificateBody, String? userName, }) async { - final $request = {}; - $request['CertificateBody'] = certificateBody; - userName?.also((arg) => $request['UserName'] = arg); + final $request = { + 'CertificateBody': certificateBody, + if (userName != null) 'UserName': userName, + }; final $result = await _protocol.send( $request, action: 'UploadSigningCertificate', @@ -10762,8 +10802,6 @@ class IAM { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UploadSigningCertificateRequest'], - shapes: shapes, resultWrapper: 'UploadSigningCertificateResult', ); return UploadSigningCertificateResponse.fromXml($result); @@ -11136,6 +11174,22 @@ class ContextEntry { if (contextKeyValues != null) 'ContextKeyValues': contextKeyValues, }; } + + Map toQueryMap() { + final contextKeyName = this.contextKeyName; + final contextKeyType = this.contextKeyType; + final contextKeyValues = this.contextKeyValues; + return { + if (contextKeyName != null) 'ContextKeyName': contextKeyName, + if (contextKeyType != null) 'ContextKeyType': contextKeyType.toValue(), + if (contextKeyValues != null) + if (contextKeyValues.isEmpty) + 'ContextKeyValues': '' + else + for (var i1 = 0; i1 < contextKeyValues.length; i1++) + 'ContextKeyValues.member.${i1 + 1}': contextKeyValues[i1], + }; + } } enum ContextKeyTypeEnum { @@ -15895,6 +15949,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } /// Contains details about the most recent attempt to access an action within diff --git a/generated/aws_importexport_api/lib/importexport-2010-06-01.dart b/generated/aws_importexport_api/lib/importexport-2010-06-01.dart index 7c90ded87..4be573a9c 100644 --- a/generated/aws_importexport_api/lib/importexport-2010-06-01.dart +++ b/generated/aws_importexport_api/lib/importexport-2010-06-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'importexport-2010-06-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// transferring large amounts of data between the AWS cloud and portable @@ -28,7 +27,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// than upgrading your connectivity. class ImportExport { final _s.QueryProtocol _protocol; - final Map shapes; ImportExport({ String? region, @@ -36,7 +34,7 @@ class ImportExport { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'importexport', @@ -45,9 +43,7 @@ class ImportExport { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -71,9 +67,10 @@ class ImportExport { required String jobId, String? aPIVersion, }) async { - final $request = {}; - $request['JobId'] = jobId; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); + final $request = { + 'JobId': jobId, + if (aPIVersion != null) 'APIVersion': aPIVersion, + }; final $result = await _protocol.send( $request, action: 'CancelJob', @@ -81,8 +78,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=CancelJob', exceptionFnMap: _exceptionFns, - shape: shapes['CancelJobInput'], - shapes: shapes, resultWrapper: 'CancelJobResult', ); return CancelJobOutput.fromXml($result); @@ -118,12 +113,13 @@ class ImportExport { String? aPIVersion, String? manifestAddendum, }) async { - final $request = {}; - $request['JobType'] = jobType.toValue(); - $request['Manifest'] = manifest; - $request['ValidateOnly'] = validateOnly; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); - manifestAddendum?.also((arg) => $request['ManifestAddendum'] = arg); + final $request = { + 'JobType': jobType.toValue(), + 'Manifest': manifest, + 'ValidateOnly': validateOnly.toString(), + if (aPIVersion != null) 'APIVersion': aPIVersion, + if (manifestAddendum != null) 'ManifestAddendum': manifestAddendum, + }; final $result = await _protocol.send( $request, action: 'CreateJob', @@ -131,8 +127,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=CreateJob', exceptionFnMap: _exceptionFns, - shape: shapes['CreateJobInput'], - shapes: shapes, resultWrapper: 'CreateJobResult', ); return CreateJobOutput.fromXml($result); @@ -162,19 +156,24 @@ class ImportExport { String? street2, String? street3, }) async { - final $request = {}; - $request['jobIds'] = jobIds; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); - city?.also((arg) => $request['city'] = arg); - company?.also((arg) => $request['company'] = arg); - country?.also((arg) => $request['country'] = arg); - name?.also((arg) => $request['name'] = arg); - phoneNumber?.also((arg) => $request['phoneNumber'] = arg); - postalCode?.also((arg) => $request['postalCode'] = arg); - stateOrProvince?.also((arg) => $request['stateOrProvince'] = arg); - street1?.also((arg) => $request['street1'] = arg); - street2?.also((arg) => $request['street2'] = arg); - street3?.also((arg) => $request['street3'] = arg); + final $request = { + if (jobIds.isEmpty) + 'jobIds': '' + else + for (var i1 = 0; i1 < jobIds.length; i1++) + 'jobIds.member.${i1 + 1}': jobIds[i1], + if (aPIVersion != null) 'APIVersion': aPIVersion, + if (city != null) 'city': city, + if (company != null) 'company': company, + if (country != null) 'country': country, + if (name != null) 'name': name, + if (phoneNumber != null) 'phoneNumber': phoneNumber, + if (postalCode != null) 'postalCode': postalCode, + if (stateOrProvince != null) 'stateOrProvince': stateOrProvince, + if (street1 != null) 'street1': street1, + if (street2 != null) 'street2': street2, + if (street3 != null) 'street3': street3, + }; final $result = await _protocol.send( $request, action: 'GetShippingLabel', @@ -182,8 +181,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=GetShippingLabel', exceptionFnMap: _exceptionFns, - shape: shapes['GetShippingLabelInput'], - shapes: shapes, resultWrapper: 'GetShippingLabelResult', ); return GetShippingLabelOutput.fromXml($result); @@ -203,9 +200,10 @@ class ImportExport { required String jobId, String? aPIVersion, }) async { - final $request = {}; - $request['JobId'] = jobId; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); + final $request = { + 'JobId': jobId, + if (aPIVersion != null) 'APIVersion': aPIVersion, + }; final $result = await _protocol.send( $request, action: 'GetStatus', @@ -213,8 +211,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=GetStatus', exceptionFnMap: _exceptionFns, - shape: shapes['GetStatusInput'], - shapes: shapes, resultWrapper: 'GetStatusResult', ); return GetStatusOutput.fromXml($result); @@ -234,10 +230,11 @@ class ImportExport { String? marker, int? maxJobs, }) async { - final $request = {}; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxJobs?.also((arg) => $request['MaxJobs'] = arg); + final $request = { + if (aPIVersion != null) 'APIVersion': aPIVersion, + if (marker != null) 'Marker': marker, + if (maxJobs != null) 'MaxJobs': maxJobs.toString(), + }; final $result = await _protocol.send( $request, action: 'ListJobs', @@ -245,8 +242,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=ListJobs', exceptionFnMap: _exceptionFns, - shape: shapes['ListJobsInput'], - shapes: shapes, resultWrapper: 'ListJobsResult', ); return ListJobsOutput.fromXml($result); @@ -283,12 +278,13 @@ class ImportExport { required bool validateOnly, String? aPIVersion, }) async { - final $request = {}; - $request['JobId'] = jobId; - $request['JobType'] = jobType.toValue(); - $request['Manifest'] = manifest; - $request['ValidateOnly'] = validateOnly; - aPIVersion?.also((arg) => $request['APIVersion'] = arg); + final $request = { + 'JobId': jobId, + 'JobType': jobType.toValue(), + 'Manifest': manifest, + 'ValidateOnly': validateOnly.toString(), + if (aPIVersion != null) 'APIVersion': aPIVersion, + }; final $result = await _protocol.send( $request, action: 'UpdateJob', @@ -296,8 +292,6 @@ class ImportExport { method: 'POST', requestUri: '/?Operation=UpdateJob', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateJobInput'], - shapes: shapes, resultWrapper: 'UpdateJobResult', ); return UpdateJobOutput.fromXml($result); diff --git a/generated/aws_neptune_api/lib/neptune-2014-10-31.dart b/generated/aws_neptune_api/lib/neptune-2014-10-31.dart index e89118294..ab74174ab 100644 --- a/generated/aws_neptune_api/lib/neptune-2014-10-31.dart +++ b/generated/aws_neptune_api/lib/neptune-2014-10-31.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'neptune-2014-10-31.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon Neptune is a fast, reliable, fully-managed graph database service @@ -33,7 +32,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// security. class Neptune { final _s.QueryProtocol _protocol; - final Map shapes; Neptune({ required String region, @@ -41,7 +39,7 @@ class Neptune { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -51,9 +49,7 @@ class Neptune { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -89,10 +85,11 @@ class Neptune { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'AddRoleToDBCluster', @@ -100,8 +97,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToDBClusterMessage'], - shapes: shapes, ); } @@ -142,9 +137,10 @@ class Neptune { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -152,8 +148,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -180,9 +174,15 @@ class Neptune { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -190,8 +190,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -236,10 +234,11 @@ class Neptune { required String optInType, required String resourceIdentifier, }) async { - final $request = {}; - $request['ApplyAction'] = applyAction; - $request['OptInType'] = optInType; - $request['ResourceIdentifier'] = resourceIdentifier; + final $request = { + 'ApplyAction': applyAction, + 'OptInType': optInType, + 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'ApplyPendingMaintenanceAction', @@ -247,8 +246,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyPendingMaintenanceActionMessage'], - shapes: shapes, resultWrapper: 'ApplyPendingMaintenanceActionResult', ); return ApplyPendingMaintenanceActionResult.fromXml($result); @@ -316,14 +313,21 @@ class Neptune { required String targetDBClusterParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterParameterGroupIdentifier'] = - sourceDBClusterParameterGroupIdentifier; - $request['TargetDBClusterParameterGroupDescription'] = - targetDBClusterParameterGroupDescription; - $request['TargetDBClusterParameterGroupIdentifier'] = - targetDBClusterParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterParameterGroupIdentifier': + sourceDBClusterParameterGroupIdentifier, + 'TargetDBClusterParameterGroupDescription': + targetDBClusterParameterGroupDescription, + 'TargetDBClusterParameterGroupIdentifier': + targetDBClusterParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterParameterGroup', @@ -331,8 +335,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterParameterGroupResult', ); return CopyDBClusterParameterGroupResult.fromXml($result); @@ -425,15 +427,20 @@ class Neptune { String? preSignedUrl, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterSnapshotIdentifier'] = - sourceDBClusterSnapshotIdentifier; - $request['TargetDBClusterSnapshotIdentifier'] = - targetDBClusterSnapshotIdentifier; - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterSnapshotIdentifier': sourceDBClusterSnapshotIdentifier, + 'TargetDBClusterSnapshotIdentifier': targetDBClusterSnapshotIdentifier, + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterSnapshot', @@ -441,8 +448,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterSnapshotResult', ); return CopyDBClusterSnapshotResult.fromXml($result); @@ -504,14 +509,18 @@ class Neptune { required String targetDBParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBParameterGroupIdentifier'] = - sourceDBParameterGroupIdentifier; - $request['TargetDBParameterGroupDescription'] = - targetDBParameterGroupDescription; - $request['TargetDBParameterGroupIdentifier'] = - targetDBParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBParameterGroupIdentifier': sourceDBParameterGroupIdentifier, + 'TargetDBParameterGroupDescription': targetDBParameterGroupDescription, + 'TargetDBParameterGroupIdentifier': targetDBParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBParameterGroup', @@ -519,8 +528,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBParameterGroupResult', ); return CopyDBParameterGroupResult.fromXml($result); @@ -822,44 +829,73 @@ class Neptune { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - replicationSourceIdentifier - ?.also((arg) => $request['ReplicationSourceIdentifier'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (replicationSourceIdentifier != null) + 'ReplicationSourceIdentifier': replicationSourceIdentifier, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBCluster', @@ -867,8 +903,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterResult', ); return CreateDBClusterResult.fromXml($result); @@ -915,13 +949,30 @@ class Neptune { List? staticMembers, List? tags, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['EndpointType'] = endpointType; - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + 'DBClusterIdentifier': dBClusterIdentifier, + 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterEndpoint', @@ -929,8 +980,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterEndpointResult', ); return CreateDBClusterEndpointOutput.fromXml($result); @@ -998,11 +1047,18 @@ class Neptune { required String description, List? tags, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterParameterGroup', @@ -1010,8 +1066,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterParameterGroupResult', ); return CreateDBClusterParameterGroupResult.fromXml($result); @@ -1064,10 +1118,17 @@ class Neptune { required String dBClusterSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterSnapshot', @@ -1075,8 +1136,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterSnapshotResult', ); return CreateDBClusterSnapshotResult.fromXml($result); @@ -1431,59 +1490,91 @@ class Neptune { String? timezone, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - timezone?.also((arg) => $request['Timezone'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (timezone != null) 'Timezone': timezone, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -1491,8 +1582,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -1561,11 +1650,18 @@ class Neptune { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -1573,8 +1669,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -1612,11 +1706,22 @@ class Neptune { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -1624,8 +1729,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -1732,14 +1835,31 @@ class Neptune { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -1747,8 +1867,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -1801,14 +1919,17 @@ class Neptune { String? sourceDBClusterIdentifier, bool? storageEncrypted, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateGlobalCluster', @@ -1816,8 +1937,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalClusterResult', ); return CreateGlobalClusterResult.fromXml($result); @@ -1886,11 +2005,13 @@ class Neptune { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBCluster', @@ -1898,8 +2019,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterResult', ); return DeleteDBClusterResult.fromXml($result); @@ -1918,8 +2037,9 @@ class Neptune { Future deleteDBClusterEndpoint({ required String dBClusterEndpointIdentifier, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterEndpoint', @@ -1927,8 +2047,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterEndpointResult', ); return DeleteDBClusterEndpointOutput.fromXml($result); @@ -1959,8 +2077,9 @@ class Neptune { Future deleteDBClusterParameterGroup({ required String dBClusterParameterGroupName, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBClusterParameterGroup', @@ -1968,8 +2087,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -1991,8 +2108,9 @@ class Neptune { Future deleteDBClusterSnapshot({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterSnapshot', @@ -2000,8 +2118,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterSnapshotResult', ); return DeleteDBClusterSnapshotResult.fromXml($result); @@ -2089,11 +2205,13 @@ class Neptune { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -2101,8 +2219,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -2133,8 +2249,9 @@ class Neptune { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -2142,8 +2259,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -2171,8 +2286,9 @@ class Neptune { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -2180,8 +2296,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -2195,8 +2309,9 @@ class Neptune { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -2204,8 +2319,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -2222,8 +2335,9 @@ class Neptune { Future deleteGlobalCluster({ required String globalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalCluster', @@ -2231,8 +2345,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalClusterResult', ); return DeleteGlobalClusterResult.fromXml($result); @@ -2292,13 +2404,21 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterEndpointIdentifier - ?.also((arg) => $request['DBClusterEndpointIdentifier'] = arg); - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterEndpointIdentifier != null) + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterEndpoints', @@ -2306,8 +2426,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterEndpointsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterEndpointsResult', ); return DBClusterEndpointMessage.fromXml($result); @@ -2355,12 +2473,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameterGroups', @@ -2368,8 +2493,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParameterGroupsResult', ); return DBClusterParameterGroupsMessage.fromXml($result); @@ -2422,12 +2545,19 @@ class Neptune { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameters', @@ -2435,8 +2565,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParametersResult', ); return DBClusterParameterGroupDetails.fromXml($result); @@ -2465,8 +2593,9 @@ class Neptune { describeDBClusterSnapshotAttributes({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshotAttributes', @@ -2474,8 +2603,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotAttributesResult', ); return DescribeDBClusterSnapshotAttributesResult.fromXml($result); @@ -2598,16 +2725,24 @@ class Neptune { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshots', @@ -2615,8 +2750,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotsResult', ); return DBClusterSnapshotMessage.fromXml($result); @@ -2686,11 +2819,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusters', @@ -2698,8 +2839,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClustersResult', ); return DBClusterMessage.fromXml($result); @@ -2769,19 +2908,26 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - listSupportedTimezones - ?.also((arg) => $request['ListSupportedTimezones'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (listSupportedTimezones != null) + 'ListSupportedTimezones': listSupportedTimezones.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -2789,8 +2935,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -2860,11 +3004,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -2872,8 +3024,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -2920,11 +3070,19 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -2932,8 +3090,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -2986,12 +3142,19 @@ class Neptune { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -2999,8 +3162,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -3043,11 +3204,18 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -3055,8 +3223,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -3094,11 +3260,18 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultClusterParameters', @@ -3106,8 +3279,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultClusterParametersResult', ); return DescribeEngineDefaultClusterParametersResult.fromXml($result); @@ -3144,11 +3315,18 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -3156,8 +3334,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -3178,9 +3354,16 @@ class Neptune { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -3188,8 +3371,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -3231,11 +3412,18 @@ class Neptune { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -3243,8 +3431,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -3343,16 +3529,28 @@ class Neptune { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -3360,8 +3558,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -3399,11 +3595,12 @@ class Neptune { String? marker, int? maxRecords, }) async { - final $request = {}; - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalClusters', @@ -3411,8 +3608,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalClustersResult', ); return GlobalClustersMessage.fromXml($result); @@ -3467,15 +3662,22 @@ class Neptune { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -3483,8 +3685,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -3538,11 +3738,18 @@ class Neptune { int? maxRecords, String? resourceIdentifier, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribePendingMaintenanceActions', @@ -3550,8 +3757,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePendingMaintenanceActionsMessage'], - shapes: shapes, resultWrapper: 'DescribePendingMaintenanceActionsResult', ); return PendingMaintenanceActionsMessage.fromXml($result); @@ -3570,8 +3775,9 @@ class Neptune { describeValidDBInstanceModifications({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeValidDBInstanceModifications', @@ -3579,8 +3785,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeValidDBInstanceModificationsMessage'], - shapes: shapes, resultWrapper: 'DescribeValidDBInstanceModificationsResult', ); return DescribeValidDBInstanceModificationsResult.fromXml($result); @@ -3624,10 +3828,12 @@ class Neptune { String? dBClusterIdentifier, String? targetDBInstanceIdentifier, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - targetDBInstanceIdentifier - ?.also((arg) => $request['TargetDBInstanceIdentifier'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (targetDBInstanceIdentifier != null) + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverDBCluster', @@ -3635,8 +3841,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverDBClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverDBClusterResult', ); return FailoverDBClusterResult.fromXml($result); @@ -3678,9 +3882,10 @@ class Neptune { required String globalClusterIdentifier, required String targetDbClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverGlobalCluster', @@ -3688,8 +3893,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverGlobalClusterResult', ); return FailoverGlobalClusterResult.fromXml($result); @@ -3713,9 +3916,16 @@ class Neptune { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -3723,8 +3933,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -3974,37 +4182,50 @@ class Neptune { String? storageType, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBInstanceParameterGroupName - ?.also((arg) => $request['DBInstanceParameterGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - newDBClusterIdentifier - ?.also((arg) => $request['NewDBClusterIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBInstanceParameterGroupName != null) + 'DBInstanceParameterGroupName': dBInstanceParameterGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (newDBClusterIdentifier != null) + 'NewDBClusterIdentifier': newDBClusterIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBCluster', @@ -4012,8 +4233,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterResult', ); return ModifyDBClusterResult.fromXml($result); @@ -4049,11 +4268,22 @@ class Neptune { List? excludedMembers, List? staticMembers, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - endpointType?.also((arg) => $request['EndpointType'] = arg); - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (endpointType != null) 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterEndpoint', @@ -4061,8 +4291,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterEndpointResult', ); return ModifyDBClusterEndpointOutput.fromXml($result); @@ -4103,9 +4331,15 @@ class Neptune { required String dBClusterParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterParameterGroup', @@ -4113,8 +4347,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -4182,11 +4414,22 @@ class Neptune { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterSnapshotAttribute', @@ -4194,8 +4437,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterSnapshotAttributeResult', ); return ModifyDBClusterSnapshotAttributeResult.fromXml($result); @@ -4568,56 +4809,78 @@ class Neptune { String? tdeCredentialPassword, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBPortNumber?.also((arg) => $request['DBPortNumber'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBPortNumber != null) 'DBPortNumber': dBPortNumber.toString(), + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -4625,8 +4888,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -4685,9 +4946,15 @@ class Neptune { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -4695,8 +4962,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -4730,11 +4995,16 @@ class Neptune { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -4742,8 +5012,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -4796,12 +5064,18 @@ class Neptune { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -4809,8 +5083,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -4880,14 +5152,16 @@ class Neptune { String? engineVersion, String? newGlobalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - newGlobalClusterIdentifier - ?.also((arg) => $request['NewGlobalClusterIdentifier'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (newGlobalClusterIdentifier != null) + 'NewGlobalClusterIdentifier': newGlobalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalCluster', @@ -4895,8 +5169,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalClusterResult', ); return ModifyGlobalClusterResult.fromXml($result); @@ -4912,8 +5184,9 @@ class Neptune { Future promoteReadReplicaDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplicaDBCluster', @@ -4921,8 +5194,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaDBClusterMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaDBClusterResult', ); return PromoteReadReplicaDBClusterResult.fromXml($result); @@ -4962,9 +5233,10 @@ class Neptune { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -4972,8 +5244,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -4999,9 +5269,10 @@ class Neptune { required String dbClusterIdentifier, required String globalClusterIdentifier, }) async { - final $request = {}; - $request['DbClusterIdentifier'] = dbClusterIdentifier; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'DbClusterIdentifier': dbClusterIdentifier, + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RemoveFromGlobalCluster', @@ -5009,8 +5280,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveFromGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'RemoveFromGlobalClusterResult', ); return RemoveFromGlobalClusterResult.fromXml($result); @@ -5040,10 +5309,11 @@ class Neptune { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'RemoveRoleFromDBCluster', @@ -5051,8 +5321,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromDBClusterMessage'], - shapes: shapes, ); } @@ -5075,9 +5343,10 @@ class Neptune { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -5085,8 +5354,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -5111,9 +5378,14 @@ class Neptune { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -5121,8 +5393,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -5160,10 +5430,18 @@ class Neptune { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBClusterParameterGroup', @@ -5171,8 +5449,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -5221,10 +5497,18 @@ class Neptune { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -5232,8 +5516,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -5436,30 +5718,58 @@ class Neptune { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['SnapshotIdentifier'] = snapshotIdentifier; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'SnapshotIdentifier': snapshotIdentifier, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromSnapshot', @@ -5467,8 +5777,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromSnapshotResult', ); return RestoreDBClusterFromSnapshotResult.fromXml($result); @@ -5702,30 +6010,51 @@ class Neptune { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['SourceDBClusterIdentifier'] = sourceDBClusterIdentifier; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - restoreToTime - ?.also((arg) => $request['RestoreToTime'] = _s.iso8601ToJson(arg)); - restoreType?.also((arg) => $request['RestoreType'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (restoreToTime != null) + 'RestoreToTime': _s.iso8601ToJson(restoreToTime), + if (restoreType != null) 'RestoreType': restoreType, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterToPointInTime', @@ -5733,8 +6062,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterToPointInTimeResult', ); return RestoreDBClusterToPointInTimeResult.fromXml($result); @@ -5753,8 +6080,9 @@ class Neptune { Future startDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBCluster', @@ -5762,8 +6090,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBClusterMessage'], - shapes: shapes, resultWrapper: 'StartDBClusterResult', ); return StartDBClusterResult.fromXml($result); @@ -5786,8 +6112,9 @@ class Neptune { Future stopDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBCluster', @@ -5795,8 +6122,6 @@ class Neptune { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBClusterMessage'], - shapes: shapes, resultWrapper: 'StopDBClusterResult', ); return StopDBClusterResult.fromXml($result); @@ -5927,6 +6252,25 @@ class CloudwatchLogsExportConfiguration { if (enableLogTypes != null) 'EnableLogTypes': enableLogTypes, }; } + + Map toQueryMap() { + final disableLogTypes = this.disableLogTypes; + final enableLogTypes = this.enableLogTypes; + return { + if (disableLogTypes != null) + if (disableLogTypes.isEmpty) + 'DisableLogTypes': '' + else + for (var i1 = 0; i1 < disableLogTypes.length; i1++) + 'DisableLogTypes.member.${i1 + 1}': disableLogTypes[i1], + if (enableLogTypes != null) + if (enableLogTypes.isEmpty) + 'EnableLogTypes': '' + else + for (var i1 = 0; i1 < enableLogTypes.length; i1++) + 'EnableLogTypes.member.${i1 + 1}': enableLogTypes[i1], + }; + } } /// This data type is used as a response element in the @@ -8562,6 +8906,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } /// Contains the details of an Amazon Neptune global database. @@ -9141,6 +9498,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } /// A list of the log types whose configuration is still pending. In other @@ -9515,6 +9898,15 @@ class ServerlessV2ScalingConfiguration { if (minCapacity != null) 'MinCapacity': minCapacity, }; } + + Map toQueryMap() { + final maxCapacity = this.maxCapacity; + final minCapacity = this.minCapacity; + return { + if (maxCapacity != null) 'MaxCapacity': maxCapacity.toString(), + if (minCapacity != null) 'MinCapacity': minCapacity.toString(), + }; + } } /// Shows the scaling configuration for a Neptune Serverless DB cluster. @@ -9685,6 +10077,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/generated/aws_rds_api/lib/rds-2013-01-10.dart b/generated/aws_rds_api/lib/rds-2013-01-10.dart index c13b04015..86266873e 100644 --- a/generated/aws_rds_api/lib/rds-2013-01-10.dart +++ b/generated/aws_rds_api/lib/rds-2013-01-10.dart @@ -17,12 +17,10 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'rds-2013-01-10.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; class RDS { final _s.QueryProtocol _protocol; - final Map shapes; RDS({ required String region, @@ -30,7 +28,7 @@ class RDS { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class RDS { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class RDS { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -142,9 +141,10 @@ class RDS { required String sourceDBSnapshotIdentifier, required String targetDBSnapshotIdentifier, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -152,8 +152,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -198,35 +196,50 @@ class RDS { bool? publiclyAccessible, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -234,8 +247,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -267,17 +278,19 @@ class RDS { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -285,8 +298,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -300,10 +311,11 @@ class RDS { required String dBParameterGroupName, required String description, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -311,8 +323,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -326,9 +336,10 @@ class RDS { required String dBSecurityGroupDescription, required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -336,8 +347,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -352,9 +361,10 @@ class RDS { required String dBInstanceIdentifier, required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -362,8 +372,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -380,10 +388,15 @@ class RDS { required String dBSubnetGroupName, required List subnetIds, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -391,8 +404,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -414,13 +425,24 @@ class RDS { List? sourceIds, String? sourceType, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -428,8 +450,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -444,11 +464,12 @@ class RDS { required String optionGroupDescription, required String optionGroupName, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -456,8 +477,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -473,11 +492,13 @@ class RDS { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -485,8 +506,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -498,8 +517,9 @@ class RDS { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -507,8 +527,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -518,8 +536,9 @@ class RDS { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -527,8 +546,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -538,8 +555,9 @@ class RDS { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -547,8 +565,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -561,8 +577,9 @@ class RDS { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -570,8 +587,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -581,8 +596,9 @@ class RDS { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -590,8 +606,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -603,8 +617,9 @@ class RDS { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -612,8 +627,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -626,16 +639,17 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -643,8 +657,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -657,10 +669,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -668,8 +682,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -682,10 +694,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -693,8 +707,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -708,11 +720,12 @@ class RDS { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -720,8 +733,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -734,10 +745,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -745,8 +758,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -761,12 +772,15 @@ class RDS { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -774,8 +788,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -788,10 +800,11 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -799,8 +812,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -812,10 +823,11 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -823,8 +835,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -833,8 +843,9 @@ class RDS { Future describeEventCategories({ String? sourceType, }) async { - final $request = {}; - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -842,8 +853,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -856,10 +865,11 @@ class RDS { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -867,8 +877,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -884,15 +892,21 @@ class RDS { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -900,8 +914,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -913,11 +925,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -925,8 +938,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -941,12 +952,13 @@ class RDS { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -954,8 +966,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -970,14 +980,15 @@ class RDS { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -985,8 +996,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1005,17 +1014,19 @@ class RDS { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1023,8 +1034,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1043,16 +1052,17 @@ class RDS { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1060,8 +1070,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1073,8 +1081,9 @@ class RDS { Future listTagsForResource({ required String resourceName, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; + final $request = { + 'ResourceName': resourceName, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1082,8 +1091,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1122,31 +1129,47 @@ class RDS { String? preferredMaintenanceWindow, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1154,8 +1177,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1168,9 +1189,15 @@ class RDS { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1178,8 +1205,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1196,11 +1221,16 @@ class RDS { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1208,8 +1238,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1229,12 +1257,18 @@ class RDS { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1242,8 +1276,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1258,11 +1290,25 @@ class RDS { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1270,8 +1316,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1285,12 +1329,13 @@ class RDS { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1298,8 +1343,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1315,10 +1358,13 @@ class RDS { int? dBInstanceCount, String? reservedDBInstanceId, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1326,8 +1372,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1340,9 +1384,10 @@ class RDS { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1350,8 +1395,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1365,9 +1408,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1375,8 +1419,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1389,9 +1431,14 @@ class RDS { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1399,8 +1446,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1412,10 +1457,18 @@ class RDS { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1423,8 +1476,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1461,22 +1512,24 @@ class RDS { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1484,8 +1537,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1524,25 +1575,27 @@ class RDS { DateTime? restoreTime, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1550,8 +1603,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1568,13 +1619,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1582,8 +1635,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -2703,6 +2754,31 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -2957,6 +3033,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -3345,6 +3447,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/generated/aws_rds_api/lib/rds-2013-02-12.dart b/generated/aws_rds_api/lib/rds-2013-02-12.dart index c851699f4..49affb72a 100644 --- a/generated/aws_rds_api/lib/rds-2013-02-12.dart +++ b/generated/aws_rds_api/lib/rds-2013-02-12.dart @@ -17,12 +17,10 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'rds-2013-02-12.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; class RDS { final _s.QueryProtocol _protocol; - final Map shapes; RDS({ required String region, @@ -30,7 +28,7 @@ class RDS { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class RDS { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class RDS { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -142,9 +141,10 @@ class RDS { required String sourceDBSnapshotIdentifier, required String targetDBSnapshotIdentifier, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -152,8 +152,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -198,35 +196,50 @@ class RDS { bool? publiclyAccessible, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -234,8 +247,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -267,17 +278,19 @@ class RDS { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -285,8 +298,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -300,10 +311,11 @@ class RDS { required String dBParameterGroupName, required String description, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -311,8 +323,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -326,9 +336,10 @@ class RDS { required String dBSecurityGroupDescription, required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -336,8 +347,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -352,9 +361,10 @@ class RDS { required String dBInstanceIdentifier, required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -362,8 +372,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -380,10 +388,15 @@ class RDS { required String dBSubnetGroupName, required List subnetIds, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -391,8 +404,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -414,13 +425,24 @@ class RDS { List? sourceIds, String? sourceType, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -428,8 +450,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -444,11 +464,12 @@ class RDS { required String optionGroupDescription, required String optionGroupName, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -456,8 +477,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -473,11 +492,13 @@ class RDS { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -485,8 +506,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -498,8 +517,9 @@ class RDS { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -507,8 +527,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -518,8 +536,9 @@ class RDS { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -527,8 +546,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -538,8 +555,9 @@ class RDS { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -547,8 +565,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -561,8 +577,9 @@ class RDS { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -570,8 +587,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -581,8 +596,9 @@ class RDS { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -590,8 +606,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -603,8 +617,9 @@ class RDS { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -612,8 +627,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -626,16 +639,17 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -643,8 +657,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -657,10 +669,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -668,8 +682,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -685,13 +697,15 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -699,8 +713,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -713,10 +725,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -724,8 +738,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -739,11 +751,12 @@ class RDS { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -751,8 +764,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -765,10 +776,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -776,8 +789,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -792,12 +803,15 @@ class RDS { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -805,8 +819,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -819,10 +831,11 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -830,8 +843,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -843,10 +854,11 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -854,8 +866,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -864,8 +874,9 @@ class RDS { Future describeEventCategories({ String? sourceType, }) async { - final $request = {}; - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -873,8 +884,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -887,10 +896,11 @@ class RDS { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -898,8 +908,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -915,15 +923,21 @@ class RDS { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -931,8 +945,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -944,11 +956,12 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -956,8 +969,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -972,12 +983,13 @@ class RDS { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -985,8 +997,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -1001,14 +1011,15 @@ class RDS { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -1016,8 +1027,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1036,17 +1045,19 @@ class RDS { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1054,8 +1065,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1074,16 +1083,17 @@ class RDS { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1091,8 +1101,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1107,11 +1115,12 @@ class RDS { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -1119,8 +1128,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -1132,8 +1139,9 @@ class RDS { Future listTagsForResource({ required String resourceName, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; + final $request = { + 'ResourceName': resourceName, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1141,8 +1149,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1181,31 +1187,47 @@ class RDS { String? preferredMaintenanceWindow, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1213,8 +1235,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1227,9 +1247,15 @@ class RDS { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1237,8 +1263,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1255,11 +1279,16 @@ class RDS { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1267,8 +1296,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1288,12 +1315,18 @@ class RDS { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1301,8 +1334,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1317,11 +1348,25 @@ class RDS { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1329,8 +1374,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1344,12 +1387,13 @@ class RDS { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1357,8 +1401,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1374,10 +1416,13 @@ class RDS { int? dBInstanceCount, String? reservedDBInstanceId, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1385,8 +1430,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1399,9 +1442,10 @@ class RDS { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1409,8 +1453,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1424,9 +1466,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1434,8 +1477,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1448,9 +1489,14 @@ class RDS { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1458,8 +1504,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1471,10 +1515,18 @@ class RDS { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1482,8 +1534,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1520,22 +1570,24 @@ class RDS { int? port, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1543,8 +1595,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1583,25 +1633,27 @@ class RDS { DateTime? restoreTime, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1609,8 +1661,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1627,13 +1677,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1641,8 +1693,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -2838,6 +2888,39 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -3064,6 +3147,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class OrderableDBInstanceOption { @@ -3191,6 +3297,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -3579,6 +3711,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/generated/aws_rds_api/lib/rds-2013-09-09.dart b/generated/aws_rds_api/lib/rds-2013-09-09.dart index b112e3b32..906a9e011 100644 --- a/generated/aws_rds_api/lib/rds-2013-09-09.dart +++ b/generated/aws_rds_api/lib/rds-2013-09-09.dart @@ -17,12 +17,10 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'rds-2013-09-09.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; class RDS { final _s.QueryProtocol _protocol; - final Map shapes; RDS({ required String region, @@ -30,7 +28,7 @@ class RDS { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class RDS { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class RDS { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -143,10 +142,17 @@ class RDS { required String targetDBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -154,8 +160,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -201,36 +205,57 @@ class RDS { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -238,8 +263,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -275,19 +298,27 @@ class RDS { bool? publiclyAccessible, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -295,8 +326,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -311,11 +340,18 @@ class RDS { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -323,8 +359,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -339,10 +373,17 @@ class RDS { required String dBSecurityGroupName, List? tags, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -350,8 +391,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -367,10 +406,17 @@ class RDS { required String dBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -378,8 +424,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -397,11 +441,22 @@ class RDS { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -409,8 +464,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -433,14 +486,31 @@ class RDS { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -448,8 +518,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -465,12 +533,19 @@ class RDS { required String optionGroupName, List? tags, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -478,8 +553,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -495,11 +568,13 @@ class RDS { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -507,8 +582,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -520,8 +593,9 @@ class RDS { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -529,8 +603,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -540,8 +612,9 @@ class RDS { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -549,8 +622,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -560,8 +631,9 @@ class RDS { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -569,8 +641,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -583,8 +653,9 @@ class RDS { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -592,8 +663,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -603,8 +672,9 @@ class RDS { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -612,8 +682,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -625,8 +693,9 @@ class RDS { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -634,8 +703,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -649,17 +716,24 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -667,8 +741,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -682,11 +754,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -694,8 +774,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -712,14 +790,22 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -727,8 +813,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -742,11 +826,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -754,8 +846,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -770,12 +860,19 @@ class RDS { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -783,8 +880,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -798,11 +893,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -810,8 +913,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -827,13 +928,22 @@ class RDS { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -841,8 +951,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -856,11 +964,18 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -868,8 +983,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -882,11 +995,18 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -894,8 +1014,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -905,9 +1023,16 @@ class RDS { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -915,8 +1040,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -930,11 +1053,18 @@ class RDS { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -942,8 +1072,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -960,16 +1088,28 @@ class RDS { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -977,8 +1117,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -991,12 +1129,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -1004,8 +1149,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -1021,13 +1164,20 @@ class RDS { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -1035,8 +1185,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -1052,15 +1200,22 @@ class RDS { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -1068,8 +1223,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1089,18 +1242,26 @@ class RDS { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1108,8 +1269,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1129,17 +1288,24 @@ class RDS { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1147,8 +1313,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1163,11 +1327,12 @@ class RDS { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -1175,8 +1340,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -1189,9 +1352,16 @@ class RDS { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1199,8 +1369,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1239,31 +1407,47 @@ class RDS { String? preferredMaintenanceWindow, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1271,8 +1455,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1285,9 +1467,15 @@ class RDS { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1295,8 +1483,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1313,11 +1499,16 @@ class RDS { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1325,8 +1516,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1346,12 +1535,18 @@ class RDS { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1359,8 +1554,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1375,11 +1568,25 @@ class RDS { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1387,8 +1594,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1402,12 +1607,13 @@ class RDS { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1415,8 +1621,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1433,11 +1637,20 @@ class RDS { String? reservedDBInstanceId, List? tags, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1445,8 +1658,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1459,9 +1670,10 @@ class RDS { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1469,8 +1681,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1484,9 +1694,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1494,8 +1705,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1508,9 +1717,14 @@ class RDS { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1518,8 +1732,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1531,10 +1743,18 @@ class RDS { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1542,8 +1762,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1581,23 +1799,31 @@ class RDS { bool? publiclyAccessible, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1605,8 +1831,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1646,26 +1870,34 @@ class RDS { List? tags, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1673,8 +1905,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1691,13 +1921,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1705,8 +1937,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -2804,6 +3034,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } class IPRange { @@ -2958,6 +3201,39 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -3187,6 +3463,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class OrderableDBInstanceOption { @@ -3314,6 +3613,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -3702,6 +4027,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/generated/aws_rds_api/lib/rds-2014-09-01.dart b/generated/aws_rds_api/lib/rds-2014-09-01.dart index 7a8d515a3..be02e4901 100644 --- a/generated/aws_rds_api/lib/rds-2014-09-01.dart +++ b/generated/aws_rds_api/lib/rds-2014-09-01.dart @@ -17,12 +17,10 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'rds-2014-09-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; class RDS { final _s.QueryProtocol _protocol; - final Map shapes; RDS({ required String region, @@ -30,7 +28,7 @@ class RDS { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -39,9 +37,7 @@ class RDS { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -60,9 +56,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -70,8 +67,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -84,9 +79,15 @@ class RDS { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -94,8 +95,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -112,13 +111,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -126,8 +127,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -143,14 +142,18 @@ class RDS { required String targetDBParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBParameterGroupIdentifier'] = - sourceDBParameterGroupIdentifier; - $request['TargetDBParameterGroupDescription'] = - targetDBParameterGroupDescription; - $request['TargetDBParameterGroupIdentifier'] = - targetDBParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBParameterGroupIdentifier': sourceDBParameterGroupIdentifier, + 'TargetDBParameterGroupDescription': targetDBParameterGroupDescription, + 'TargetDBParameterGroupIdentifier': targetDBParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBParameterGroup', @@ -158,8 +161,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBParameterGroupResult', ); return CopyDBParameterGroupResult.fromXml($result); @@ -175,10 +176,17 @@ class RDS { required String targetDBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -186,8 +194,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -203,11 +209,18 @@ class RDS { required String targetOptionGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceOptionGroupIdentifier'] = sourceOptionGroupIdentifier; - $request['TargetOptionGroupDescription'] = targetOptionGroupDescription; - $request['TargetOptionGroupIdentifier'] = targetOptionGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceOptionGroupIdentifier': sourceOptionGroupIdentifier, + 'TargetOptionGroupDescription': targetOptionGroupDescription, + 'TargetOptionGroupIdentifier': targetOptionGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyOptionGroup', @@ -215,8 +228,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CopyOptionGroupResult', ); return CopyOptionGroupResult.fromXml($result); @@ -267,40 +278,61 @@ class RDS { String? tdeCredentialPassword, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['AllocatedStorage'] = allocatedStorage; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'AllocatedStorage': allocatedStorage.toString(), + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -308,8 +340,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -347,20 +377,28 @@ class RDS { String? storageType, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (iops != null) 'Iops': iops.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -368,8 +406,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -384,11 +420,18 @@ class RDS { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -396,8 +439,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -412,10 +453,17 @@ class RDS { required String dBSecurityGroupName, List? tags, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -423,8 +471,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -440,10 +486,17 @@ class RDS { required String dBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -451,8 +504,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -470,11 +521,22 @@ class RDS { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -482,8 +544,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -506,14 +566,31 @@ class RDS { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -521,8 +598,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -538,12 +613,19 @@ class RDS { required String optionGroupName, List? tags, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -551,8 +633,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -568,11 +648,13 @@ class RDS { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -580,8 +662,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -593,8 +673,9 @@ class RDS { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -602,8 +683,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -613,8 +692,9 @@ class RDS { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -622,8 +702,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -633,8 +711,9 @@ class RDS { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -642,8 +721,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -656,8 +733,9 @@ class RDS { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -665,8 +743,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -676,8 +752,9 @@ class RDS { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -685,8 +762,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -698,8 +773,9 @@ class RDS { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -707,8 +783,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -722,17 +796,24 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -740,8 +821,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -755,11 +834,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -767,8 +854,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -785,14 +870,22 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -800,8 +893,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -815,11 +906,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -827,8 +926,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -843,12 +940,19 @@ class RDS { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -856,8 +960,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -871,11 +973,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -883,8 +993,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -900,13 +1008,22 @@ class RDS { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -914,8 +1031,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -929,11 +1044,18 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -941,8 +1063,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -955,11 +1075,18 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -967,8 +1094,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -978,9 +1103,16 @@ class RDS { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -988,8 +1120,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -1003,11 +1133,18 @@ class RDS { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -1015,8 +1152,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -1033,16 +1168,28 @@ class RDS { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -1050,8 +1197,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -1064,12 +1209,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -1077,8 +1229,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -1094,13 +1244,20 @@ class RDS { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -1108,8 +1265,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -1125,15 +1280,22 @@ class RDS { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -1141,8 +1303,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -1162,18 +1322,26 @@ class RDS { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -1181,8 +1349,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -1202,17 +1368,24 @@ class RDS { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -1220,8 +1393,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -1236,11 +1407,12 @@ class RDS { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -1248,8 +1420,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -1262,9 +1432,16 @@ class RDS { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1272,8 +1449,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -1317,35 +1492,51 @@ class RDS { String? tdeCredentialPassword, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (storageType != null) 'StorageType': storageType, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -1353,8 +1544,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -1367,9 +1556,15 @@ class RDS { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -1377,8 +1572,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1395,11 +1588,16 @@ class RDS { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -1407,8 +1605,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -1428,12 +1624,18 @@ class RDS { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -1441,8 +1643,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -1457,11 +1657,25 @@ class RDS { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -1469,8 +1683,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -1484,12 +1696,13 @@ class RDS { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -1497,8 +1710,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -1515,11 +1726,20 @@ class RDS { String? reservedDBInstanceId, List? tags, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -1527,8 +1747,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -1541,9 +1759,10 @@ class RDS { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -1551,8 +1770,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -1566,9 +1783,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -1576,8 +1794,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -1590,9 +1806,14 @@ class RDS { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -1600,8 +1821,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -1613,10 +1832,18 @@ class RDS { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -1624,8 +1851,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -1668,27 +1893,35 @@ class RDS { String? tdeCredentialArn, String? tdeCredentialPassword, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -1696,8 +1929,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -1742,30 +1973,38 @@ class RDS { String? tdeCredentialPassword, bool? useLatestRestorableTime, }) async { - final $request = {}; - $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); + final $request = { + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (engine != null) 'Engine': engine, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -1773,8 +2012,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -1791,13 +2028,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -1805,8 +2044,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -2941,6 +3178,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } class IPRange { @@ -3095,6 +3345,39 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } class OptionGroup { @@ -3324,6 +3607,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class OrderableDBInstanceOption { @@ -3457,6 +3763,32 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } class PendingModifiedValues { @@ -3848,6 +4180,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } class TagListMessage { diff --git a/generated/aws_rds_api/lib/rds-2014-10-31.dart b/generated/aws_rds_api/lib/rds-2014-10-31.dart index 9d6b89db2..5c760d475 100644 --- a/generated/aws_rds_api/lib/rds-2014-10-31.dart +++ b/generated/aws_rds_api/lib/rds-2014-10-31.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'rds-2014-10-31.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon Relational Database Service (Amazon RDS) is a web service that makes @@ -28,7 +27,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// businesses unique. class RDS { final _s.QueryProtocol _protocol; - final Map shapes; RDS({ required String region, @@ -36,7 +34,7 @@ class RDS { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'rds', @@ -45,9 +43,7 @@ class RDS { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -82,10 +78,11 @@ class RDS { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'AddRoleToDBCluster', @@ -93,8 +90,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToDBClusterMessage'], - shapes: shapes, ); } @@ -128,10 +123,11 @@ class RDS { required String featureName, required String roleArn, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['FeatureName'] = featureName; - $request['RoleArn'] = roleArn; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'FeatureName': featureName, + 'RoleArn': roleArn, + }; await _protocol.send( $request, action: 'AddRoleToDBInstance', @@ -139,8 +135,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddRoleToDBInstanceMessage'], - shapes: shapes, ); } @@ -194,9 +188,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'AddSourceIdentifierToSubscription', @@ -204,8 +199,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddSourceIdentifierToSubscriptionMessage'], - shapes: shapes, resultWrapper: 'AddSourceIdentifierToSubscriptionResult', ); return AddSourceIdentifierToSubscriptionResult.fromXml($result); @@ -244,9 +237,15 @@ class RDS { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'AddTagsToResource', @@ -254,8 +253,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddTagsToResourceMessage'], - shapes: shapes, ); } @@ -303,10 +300,11 @@ class RDS { required String optInType, required String resourceIdentifier, }) async { - final $request = {}; - $request['ApplyAction'] = applyAction; - $request['OptInType'] = optInType; - $request['ResourceIdentifier'] = resourceIdentifier; + final $request = { + 'ApplyAction': applyAction, + 'OptInType': optInType, + 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'ApplyPendingMaintenanceAction', @@ -314,8 +312,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ApplyPendingMaintenanceActionMessage'], - shapes: shapes, resultWrapper: 'ApplyPendingMaintenanceActionResult', ); return ApplyPendingMaintenanceActionResult.fromXml($result); @@ -393,13 +389,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeDBSecurityGroupIngress', @@ -407,8 +405,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDBSecurityGroupIngressResult', ); return AuthorizeDBSecurityGroupIngressResult.fromXml($result); @@ -484,12 +480,14 @@ class RDS { bool? force, bool? useEarliestTimeOnPointInTimeUnavailable, }) async { - final $request = {}; - $request['BacktrackTo'] = _s.iso8601ToJson(backtrackTo); - $request['DBClusterIdentifier'] = dBClusterIdentifier; - force?.also((arg) => $request['Force'] = arg); - useEarliestTimeOnPointInTimeUnavailable?.also( - (arg) => $request['UseEarliestTimeOnPointInTimeUnavailable'] = arg); + final $request = { + 'BacktrackTo': _s.iso8601ToJson(backtrackTo), + 'DBClusterIdentifier': dBClusterIdentifier, + if (force != null) 'Force': force.toString(), + if (useEarliestTimeOnPointInTimeUnavailable != null) + 'UseEarliestTimeOnPointInTimeUnavailable': + useEarliestTimeOnPointInTimeUnavailable.toString(), + }; final $result = await _protocol.send( $request, action: 'BacktrackDBCluster', @@ -497,8 +495,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BacktrackDBClusterMessage'], - shapes: shapes, resultWrapper: 'BacktrackDBClusterResult', ); return DBClusterBacktrack.fromXml($result); @@ -516,8 +512,9 @@ class RDS { Future cancelExportTask({ required String exportTaskIdentifier, }) async { - final $request = {}; - $request['ExportTaskIdentifier'] = exportTaskIdentifier; + final $request = { + 'ExportTaskIdentifier': exportTaskIdentifier, + }; final $result = await _protocol.send( $request, action: 'CancelExportTask', @@ -525,8 +522,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelExportTaskMessage'], - shapes: shapes, resultWrapper: 'CancelExportTaskResult', ); return ExportTask.fromXml($result); @@ -587,14 +582,21 @@ class RDS { required String targetDBClusterParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterParameterGroupIdentifier'] = - sourceDBClusterParameterGroupIdentifier; - $request['TargetDBClusterParameterGroupDescription'] = - targetDBClusterParameterGroupDescription; - $request['TargetDBClusterParameterGroupIdentifier'] = - targetDBClusterParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterParameterGroupIdentifier': + sourceDBClusterParameterGroupIdentifier, + 'TargetDBClusterParameterGroupDescription': + targetDBClusterParameterGroupDescription, + 'TargetDBClusterParameterGroupIdentifier': + targetDBClusterParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterParameterGroup', @@ -602,8 +604,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterParameterGroupResult', ); return CopyDBClusterParameterGroupResult.fromXml($result); @@ -816,16 +816,21 @@ class RDS { String? sourceRegion, List? tags, }) async { - final $request = {}; - $request['SourceDBClusterSnapshotIdentifier'] = - sourceDBClusterSnapshotIdentifier; - $request['TargetDBClusterSnapshotIdentifier'] = - targetDBClusterSnapshotIdentifier; - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBClusterSnapshotIdentifier': sourceDBClusterSnapshotIdentifier, + 'TargetDBClusterSnapshotIdentifier': targetDBClusterSnapshotIdentifier, + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBClusterSnapshot', @@ -833,8 +838,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBClusterSnapshotResult', ); return CopyDBClusterSnapshotResult.fromXml($result); @@ -895,14 +898,18 @@ class RDS { required String targetDBParameterGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceDBParameterGroupIdentifier'] = - sourceDBParameterGroupIdentifier; - $request['TargetDBParameterGroupDescription'] = - targetDBParameterGroupDescription; - $request['TargetDBParameterGroupIdentifier'] = - targetDBParameterGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceDBParameterGroupIdentifier': sourceDBParameterGroupIdentifier, + 'TargetDBParameterGroupDescription': targetDBParameterGroupDescription, + 'TargetDBParameterGroupIdentifier': targetDBParameterGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyDBParameterGroup', @@ -910,8 +917,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CopyDBParameterGroupResult', ); return CopyDBParameterGroupResult.fromXml($result); @@ -1124,18 +1129,26 @@ class RDS { List? tags, String? targetCustomAvailabilityZone, }) async { - final $request = {}; - $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier; - $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier; - copyOptionGroup?.also((arg) => $request['CopyOptionGroup'] = arg); - copyTags?.also((arg) => $request['CopyTags'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - targetCustomAvailabilityZone - ?.also((arg) => $request['TargetCustomAvailabilityZone'] = arg); + final $request = { + 'SourceDBSnapshotIdentifier': sourceDBSnapshotIdentifier, + 'TargetDBSnapshotIdentifier': targetDBSnapshotIdentifier, + if (copyOptionGroup != null) + 'CopyOptionGroup': copyOptionGroup.toString(), + if (copyTags != null) 'CopyTags': copyTags.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetCustomAvailabilityZone != null) + 'TargetCustomAvailabilityZone': targetCustomAvailabilityZone, + }; final $result = await _protocol.send( $request, action: 'CopyDBSnapshot', @@ -1143,8 +1156,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyDBSnapshotResult', ); return CopyDBSnapshotResult.fromXml($result); @@ -1196,11 +1207,18 @@ class RDS { required String targetOptionGroupIdentifier, List? tags, }) async { - final $request = {}; - $request['SourceOptionGroupIdentifier'] = sourceOptionGroupIdentifier; - $request['TargetOptionGroupDescription'] = targetOptionGroupDescription; - $request['TargetOptionGroupIdentifier'] = targetOptionGroupIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SourceOptionGroupIdentifier': sourceOptionGroupIdentifier, + 'TargetOptionGroupDescription': targetOptionGroupDescription, + 'TargetOptionGroupIdentifier': targetOptionGroupIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CopyOptionGroup', @@ -1208,8 +1226,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CopyOptionGroupResult', ); return CopyOptionGroupResult.fromXml($result); @@ -1320,19 +1336,27 @@ class RDS { String? targetEngineVersion, bool? upgradeTargetStorageConfig, }) async { - final $request = {}; - $request['BlueGreenDeploymentName'] = blueGreenDeploymentName; - $request['Source'] = source; - tags?.also((arg) => $request['Tags'] = arg); - targetDBClusterParameterGroupName - ?.also((arg) => $request['TargetDBClusterParameterGroupName'] = arg); - targetDBInstanceClass - ?.also((arg) => $request['TargetDBInstanceClass'] = arg); - targetDBParameterGroupName - ?.also((arg) => $request['TargetDBParameterGroupName'] = arg); - targetEngineVersion?.also((arg) => $request['TargetEngineVersion'] = arg); - upgradeTargetStorageConfig - ?.also((arg) => $request['UpgradeTargetStorageConfig'] = arg); + final $request = { + 'BlueGreenDeploymentName': blueGreenDeploymentName, + 'Source': source, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetDBClusterParameterGroupName != null) + 'TargetDBClusterParameterGroupName': targetDBClusterParameterGroupName, + if (targetDBInstanceClass != null) + 'TargetDBInstanceClass': targetDBInstanceClass, + if (targetDBParameterGroupName != null) + 'TargetDBParameterGroupName': targetDBParameterGroupName, + if (targetEngineVersion != null) + 'TargetEngineVersion': targetEngineVersion, + if (upgradeTargetStorageConfig != null) + 'UpgradeTargetStorageConfig': upgradeTargetStorageConfig.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateBlueGreenDeployment', @@ -1340,8 +1364,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateBlueGreenDeploymentRequest'], - shapes: shapes, resultWrapper: 'CreateBlueGreenDeploymentResult', ); return CreateBlueGreenDeploymentResponse.fromXml($result); @@ -1467,22 +1489,31 @@ class RDS { List? tags, bool? useAwsProvidedLatestImage, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['EngineVersion'] = engineVersion; - databaseInstallationFilesS3BucketName?.also( - (arg) => $request['DatabaseInstallationFilesS3BucketName'] = arg); - databaseInstallationFilesS3Prefix - ?.also((arg) => $request['DatabaseInstallationFilesS3Prefix'] = arg); - description?.also((arg) => $request['Description'] = arg); - imageId?.also((arg) => $request['ImageId'] = arg); - kMSKeyId?.also((arg) => $request['KMSKeyId'] = arg); - manifest?.also((arg) => $request['Manifest'] = arg); - sourceCustomDbEngineVersionIdentifier?.also( - (arg) => $request['SourceCustomDbEngineVersionIdentifier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useAwsProvidedLatestImage - ?.also((arg) => $request['UseAwsProvidedLatestImage'] = arg); + final $request = { + 'Engine': engine, + 'EngineVersion': engineVersion, + if (databaseInstallationFilesS3BucketName != null) + 'DatabaseInstallationFilesS3BucketName': + databaseInstallationFilesS3BucketName, + if (databaseInstallationFilesS3Prefix != null) + 'DatabaseInstallationFilesS3Prefix': databaseInstallationFilesS3Prefix, + if (description != null) 'Description': description, + if (imageId != null) 'ImageId': imageId, + if (kMSKeyId != null) 'KMSKeyId': kMSKeyId, + if (manifest != null) 'Manifest': manifest, + if (sourceCustomDbEngineVersionIdentifier != null) + 'SourceCustomDbEngineVersionIdentifier': + sourceCustomDbEngineVersionIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useAwsProvidedLatestImage != null) + 'UseAwsProvidedLatestImage': useAwsProvidedLatestImage.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateCustomDBEngineVersion', @@ -1490,8 +1521,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCustomDBEngineVersionMessage'], - shapes: shapes, resultWrapper: 'CreateCustomDBEngineVersionResult', ); return DBEngineVersion.fromXml($result); @@ -2539,84 +2568,122 @@ class RDS { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dBSystemId?.also((arg) => $request['DBSystemId'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableGlobalWriteForwarding - ?.also((arg) => $request['EnableGlobalWriteForwarding'] = arg); - enableHttpEndpoint?.also((arg) => $request['EnableHttpEndpoint'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enableLimitlessDatabase - ?.also((arg) => $request['EnableLimitlessDatabase'] = arg); - enableLocalWriteForwarding - ?.also((arg) => $request['EnableLocalWriteForwarding'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - rdsCustomClusterConfiguration - ?.also((arg) => $request['RdsCustomClusterConfiguration'] = arg); - replicationSourceIdentifier - ?.also((arg) => $request['ReplicationSourceIdentifier'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dBSystemId != null) 'DBSystemId': dBSystemId, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableGlobalWriteForwarding != null) + 'EnableGlobalWriteForwarding': enableGlobalWriteForwarding.toString(), + if (enableHttpEndpoint != null) + 'EnableHttpEndpoint': enableHttpEndpoint.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enableLimitlessDatabase != null) + 'EnableLimitlessDatabase': enableLimitlessDatabase.toString(), + if (enableLocalWriteForwarding != null) + 'EnableLocalWriteForwarding': enableLocalWriteForwarding.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineMode != null) 'EngineMode': engineMode, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (rdsCustomClusterConfiguration != null) + for (var e1 in rdsCustomClusterConfiguration.toQueryMap().entries) + 'RdsCustomClusterConfiguration.${e1.key}': e1.value, + if (replicationSourceIdentifier != null) + 'ReplicationSourceIdentifier': replicationSourceIdentifier, + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBCluster', @@ -2624,8 +2691,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterResult', ); return CreateDBClusterResult.fromXml($result); @@ -2676,13 +2741,30 @@ class RDS { List? staticMembers, List? tags, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['EndpointType'] = endpointType; - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + 'DBClusterIdentifier': dBClusterIdentifier, + 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterEndpoint', @@ -2690,8 +2772,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterEndpointResult', ); return DBClusterEndpoint.fromXml($result); @@ -2819,11 +2899,18 @@ class RDS { required String description, List? tags, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterParameterGroup', @@ -2831,8 +2918,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterParameterGroupResult', ); return CreateDBClusterParameterGroupResult.fromXml($result); @@ -2893,10 +2978,17 @@ class RDS { required String dBClusterSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBClusterSnapshot', @@ -2904,8 +2996,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBClusterSnapshotResult', ); return CreateDBClusterSnapshotResult.fromXml($result); @@ -4440,87 +4530,137 @@ class RDS { String? timezone, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - backupTarget?.also((arg) => $request['BackupTarget'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dBSystemId?.also((arg) => $request['DBSystemId'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - multiTenant?.also((arg) => $request['MultiTenant'] = arg); - ncharCharacterSetName - ?.also((arg) => $request['NcharCharacterSetName'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - timezone?.also((arg) => $request['Timezone'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (backupTarget != null) 'BackupTarget': backupTarget, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dBSystemId != null) 'DBSystemId': dBSystemId, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (multiTenant != null) 'MultiTenant': multiTenant.toString(), + if (ncharCharacterSetName != null) + 'NcharCharacterSetName': ncharCharacterSetName, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (timezone != null) 'Timezone': timezone, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstance', @@ -4528,8 +4668,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceResult', ); return CreateDBInstanceResult.fromXml($result); @@ -5288,65 +5426,108 @@ class RDS { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - replicaMode?.also((arg) => $request['ReplicaMode'] = arg.toValue()); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - sourceDBInstanceIdentifier - ?.also((arg) => $request['SourceDBInstanceIdentifier'] = arg); - sourceRegion?.also((arg) => $request['SourceRegion'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - upgradeStorageConfig?.also((arg) => $request['UpgradeStorageConfig'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (replicaMode != null) 'ReplicaMode': replicaMode.toValue(), + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (sourceDBInstanceIdentifier != null) + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (sourceRegion != null) 'SourceRegion': sourceRegion, + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (upgradeStorageConfig != null) + 'UpgradeStorageConfig': upgradeStorageConfig.toString(), + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBInstanceReadReplica', @@ -5354,8 +5535,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBInstanceReadReplicaMessage'], - shapes: shapes, resultWrapper: 'CreateDBInstanceReadReplicaResult', ); return CreateDBInstanceReadReplicaResult.fromXml($result); @@ -5489,11 +5668,18 @@ class RDS { required String description, List? tags, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + 'DBParameterGroupName': dBParameterGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBParameterGroup', @@ -5501,8 +5687,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBParameterGroupResult', ); return CreateDBParameterGroupResult.fromXml($result); @@ -5577,17 +5761,39 @@ class RDS { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['Auth'] = auth; - $request['DBProxyName'] = dBProxyName; - $request['EngineFamily'] = engineFamily.toValue(); - $request['RoleArn'] = roleArn; - $request['VpcSubnetIds'] = vpcSubnetIds; - debugLogging?.also((arg) => $request['DebugLogging'] = arg); - idleClientTimeout?.also((arg) => $request['IdleClientTimeout'] = arg); - requireTLS?.also((arg) => $request['RequireTLS'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + if (auth.isEmpty) + 'Auth': '' + else + for (var i1 = 0; i1 < auth.length; i1++) + for (var e3 in auth[i1].toQueryMap().entries) + 'Auth.member.${i1 + 1}.${e3.key}': e3.value, + 'DBProxyName': dBProxyName, + 'EngineFamily': engineFamily.toValue(), + 'RoleArn': roleArn, + if (vpcSubnetIds.isEmpty) + 'VpcSubnetIds': '' + else + for (var i1 = 0; i1 < vpcSubnetIds.length; i1++) + 'VpcSubnetIds.member.${i1 + 1}': vpcSubnetIds[i1], + if (debugLogging != null) 'DebugLogging': debugLogging.toString(), + if (idleClientTimeout != null) + 'IdleClientTimeout': idleClientTimeout.toString(), + if (requireTLS != null) 'RequireTLS': requireTLS.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.member.${i1 + 1}': vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBProxy', @@ -5595,8 +5801,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBProxyRequest'], - shapes: shapes, resultWrapper: 'CreateDBProxyResult', ); return CreateDBProxyResponse.fromXml($result); @@ -5643,13 +5847,29 @@ class RDS { DBProxyEndpointTargetRole? targetRole, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBProxyEndpointName'] = dBProxyEndpointName; - $request['DBProxyName'] = dBProxyName; - $request['VpcSubnetIds'] = vpcSubnetIds; - tags?.also((arg) => $request['Tags'] = arg); - targetRole?.also((arg) => $request['TargetRole'] = arg.toValue()); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBProxyEndpointName': dBProxyEndpointName, + 'DBProxyName': dBProxyName, + if (vpcSubnetIds.isEmpty) + 'VpcSubnetIds': '' + else + for (var i1 = 0; i1 < vpcSubnetIds.length; i1++) + 'VpcSubnetIds.member.${i1 + 1}': vpcSubnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (targetRole != null) 'TargetRole': targetRole.toValue(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.member.${i1 + 1}': vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateDBProxyEndpoint', @@ -5657,8 +5877,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBProxyEndpointRequest'], - shapes: shapes, resultWrapper: 'CreateDBProxyEndpointResult', ); return CreateDBProxyEndpointResponse.fromXml($result); @@ -5719,10 +5937,17 @@ class RDS { required String dBSecurityGroupName, List? tags, }) async { - final $request = {}; - $request['DBSecurityGroupDescription'] = dBSecurityGroupDescription; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSecurityGroupDescription': dBSecurityGroupDescription, + 'DBSecurityGroupName': dBSecurityGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSecurityGroup', @@ -5730,8 +5955,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSecurityGroupResult', ); return CreateDBSecurityGroupResult.fromXml($result); @@ -5829,12 +6052,15 @@ class RDS { int? computeRedundancy, bool? publiclyAccessible, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; - $request['MaxACU'] = maxACU; - computeRedundancy?.also((arg) => $request['ComputeRedundancy'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + 'MaxACU': maxACU.toString(), + if (computeRedundancy != null) + 'ComputeRedundancy': computeRedundancy.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateDBShardGroup', @@ -5842,8 +6068,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -5893,10 +6117,17 @@ class RDS { required String dBSnapshotIdentifier, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSnapshot', @@ -5904,8 +6135,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateDBSnapshotResult', ); return CreateDBSnapshotResult.fromXml($result); @@ -5954,11 +6183,22 @@ class RDS { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['DBSubnetGroupDescription'] = dBSubnetGroupDescription; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateDBSubnetGroup', @@ -5966,8 +6206,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateDBSubnetGroupResult', ); return CreateDBSubnetGroupResult.fromXml($result); @@ -6115,14 +6353,31 @@ class RDS { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -6130,8 +6385,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -6277,18 +6530,21 @@ class RDS { String? sourceDBClusterIdentifier, bool? storageEncrypted, }) async { - final $request = {}; - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); + final $request = { + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engine != null) 'Engine': engine, + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + }; final $result = await _protocol.send( $request, action: 'CreateGlobalCluster', @@ -6296,8 +6552,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'CreateGlobalClusterResult', ); return CreateGlobalClusterResult.fromXml($result); @@ -6358,16 +6612,30 @@ class RDS { String? kMSKeyId, List? tags, }) async { - final $request = {}; - $request['IntegrationName'] = integrationName; - $request['SourceArn'] = sourceArn; - $request['TargetArn'] = targetArn; - additionalEncryptionContext - ?.also((arg) => $request['AdditionalEncryptionContext'] = arg); - dataFilter?.also((arg) => $request['DataFilter'] = arg); - description?.also((arg) => $request['Description'] = arg); - kMSKeyId?.also((arg) => $request['KMSKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'IntegrationName': integrationName, + 'SourceArn': sourceArn, + 'TargetArn': targetArn, + if (additionalEncryptionContext != null) + for (var e1 in additionalEncryptionContext.entries + .toList() + .asMap() + .entries) ...{ + 'AdditionalEncryptionContext.entry.${e1.key + 1}.key': e1.value.key, + 'AdditionalEncryptionContext.entry.${e1.key + 1}.value': + e1.value.value, + }, + if (dataFilter != null) 'DataFilter': dataFilter, + if (description != null) 'Description': description, + if (kMSKeyId != null) 'KMSKeyId': kMSKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateIntegration', @@ -6375,8 +6643,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateIntegrationMessage'], - shapes: shapes, resultWrapper: 'CreateIntegrationResult', ); return Integration.fromXml($result); @@ -6470,12 +6736,19 @@ class RDS { required String optionGroupName, List? tags, }) async { - final $request = {}; - $request['EngineName'] = engineName; - $request['MajorEngineVersion'] = majorEngineVersion; - $request['OptionGroupDescription'] = optionGroupDescription; - $request['OptionGroupName'] = optionGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'EngineName': engineName, + 'MajorEngineVersion': majorEngineVersion, + 'OptionGroupDescription': optionGroupDescription, + 'OptionGroupName': optionGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateOptionGroup', @@ -6483,8 +6756,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateOptionGroupMessage'], - shapes: shapes, resultWrapper: 'CreateOptionGroupResult', ); return CreateOptionGroupResult.fromXml($result); @@ -6559,15 +6830,22 @@ class RDS { String? ncharCharacterSetName, List? tags, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['MasterUserPassword'] = masterUserPassword; - $request['MasterUsername'] = masterUsername; - $request['TenantDBName'] = tenantDBName; - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - ncharCharacterSetName - ?.also((arg) => $request['NcharCharacterSetName'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'MasterUserPassword': masterUserPassword, + 'MasterUsername': masterUsername, + 'TenantDBName': tenantDBName, + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (ncharCharacterSetName != null) + 'NcharCharacterSetName': ncharCharacterSetName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateTenantDatabase', @@ -6575,8 +6853,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTenantDatabaseMessage'], - shapes: shapes, resultWrapper: 'CreateTenantDatabaseResult', ); return CreateTenantDatabaseResult.fromXml($result); @@ -6616,9 +6892,10 @@ class RDS { required String blueGreenDeploymentIdentifier, bool? deleteTarget, }) async { - final $request = {}; - $request['BlueGreenDeploymentIdentifier'] = blueGreenDeploymentIdentifier; - deleteTarget?.also((arg) => $request['DeleteTarget'] = arg); + final $request = { + 'BlueGreenDeploymentIdentifier': blueGreenDeploymentIdentifier, + if (deleteTarget != null) 'DeleteTarget': deleteTarget.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteBlueGreenDeployment', @@ -6626,8 +6903,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteBlueGreenDeploymentRequest'], - shapes: shapes, resultWrapper: 'DeleteBlueGreenDeploymentResult', ); return DeleteBlueGreenDeploymentResponse.fromXml($result); @@ -6690,9 +6965,10 @@ class RDS { required String engine, required String engineVersion, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['EngineVersion'] = engineVersion; + final $request = { + 'Engine': engine, + 'EngineVersion': engineVersion, + }; final $result = await _protocol.send( $request, action: 'DeleteCustomDBEngineVersion', @@ -6700,8 +6976,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCustomDBEngineVersionMessage'], - shapes: shapes, resultWrapper: 'DeleteCustomDBEngineVersionResult', ); return DBEngineVersion.fromXml($result); @@ -6787,13 +7061,15 @@ class RDS { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - deleteAutomatedBackups - ?.also((arg) => $request['DeleteAutomatedBackups'] = arg); - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (deleteAutomatedBackups != null) + 'DeleteAutomatedBackups': deleteAutomatedBackups.toString(), + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBCluster', @@ -6801,8 +7077,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterResult', ); return DeleteDBClusterResult.fromXml($result); @@ -6821,8 +7095,9 @@ class RDS { Future deleteDBClusterAutomatedBackup({ required String dbClusterResourceId, }) async { - final $request = {}; - $request['DbClusterResourceId'] = dbClusterResourceId; + final $request = { + 'DbClusterResourceId': dbClusterResourceId, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterAutomatedBackup', @@ -6830,8 +7105,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterAutomatedBackupMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterAutomatedBackupResult', ); return DeleteDBClusterAutomatedBackupResult.fromXml($result); @@ -6852,8 +7125,9 @@ class RDS { Future deleteDBClusterEndpoint({ required String dBClusterEndpointIdentifier, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterEndpoint', @@ -6861,8 +7135,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterEndpointResult', ); return DBClusterEndpoint.fromXml($result); @@ -6901,8 +7173,9 @@ class RDS { Future deleteDBClusterParameterGroup({ required String dBClusterParameterGroupName, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBClusterParameterGroup', @@ -6910,8 +7183,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -6940,8 +7211,9 @@ class RDS { Future deleteDBClusterSnapshot({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBClusterSnapshot', @@ -6949,8 +7221,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBClusterSnapshotResult', ); return DeleteDBClusterSnapshotResult.fromXml($result); @@ -7070,13 +7340,15 @@ class RDS { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - deleteAutomatedBackups - ?.also((arg) => $request['DeleteAutomatedBackups'] = arg); - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (deleteAutomatedBackups != null) + 'DeleteAutomatedBackups': deleteAutomatedBackups.toString(), + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstance', @@ -7084,8 +7356,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceResult', ); return DeleteDBInstanceResult.fromXml($result); @@ -7113,10 +7383,11 @@ class RDS { String? dBInstanceAutomatedBackupsArn, String? dbiResourceId, }) async { - final $request = {}; - dBInstanceAutomatedBackupsArn - ?.also((arg) => $request['DBInstanceAutomatedBackupsArn'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); + final $request = { + if (dBInstanceAutomatedBackupsArn != null) + 'DBInstanceAutomatedBackupsArn': dBInstanceAutomatedBackupsArn, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + }; final $result = await _protocol.send( $request, action: 'DeleteDBInstanceAutomatedBackup', @@ -7124,8 +7395,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBInstanceAutomatedBackupMessage'], - shapes: shapes, resultWrapper: 'DeleteDBInstanceAutomatedBackupResult', ); return DeleteDBInstanceAutomatedBackupResult.fromXml($result); @@ -7156,8 +7425,9 @@ class RDS { Future deleteDBParameterGroup({ required String dBParameterGroupName, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + }; await _protocol.send( $request, action: 'DeleteDBParameterGroup', @@ -7165,8 +7435,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBParameterGroupMessage'], - shapes: shapes, ); } @@ -7180,8 +7448,9 @@ class RDS { Future deleteDBProxy({ required String dBProxyName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; + final $request = { + 'DBProxyName': dBProxyName, + }; final $result = await _protocol.send( $request, action: 'DeleteDBProxy', @@ -7189,8 +7458,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBProxyRequest'], - shapes: shapes, resultWrapper: 'DeleteDBProxyResult', ); return DeleteDBProxyResponse.fromXml($result); @@ -7210,8 +7477,9 @@ class RDS { Future deleteDBProxyEndpoint({ required String dBProxyEndpointName, }) async { - final $request = {}; - $request['DBProxyEndpointName'] = dBProxyEndpointName; + final $request = { + 'DBProxyEndpointName': dBProxyEndpointName, + }; final $result = await _protocol.send( $request, action: 'DeleteDBProxyEndpoint', @@ -7219,8 +7487,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBProxyEndpointRequest'], - shapes: shapes, resultWrapper: 'DeleteDBProxyEndpointResult', ); return DeleteDBProxyEndpointResponse.fromXml($result); @@ -7271,8 +7537,9 @@ class RDS { Future deleteDBSecurityGroup({ required String dBSecurityGroupName, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSecurityGroup', @@ -7280,8 +7547,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSecurityGroupMessage'], - shapes: shapes, ); } @@ -7296,8 +7561,9 @@ class RDS { Future deleteDBShardGroup({ required String dBShardGroupIdentifier, }) async { - final $request = {}; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; + final $request = { + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBShardGroup', @@ -7305,8 +7571,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'DeleteDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -7329,8 +7593,9 @@ class RDS { Future deleteDBSnapshot({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteDBSnapshot', @@ -7338,8 +7603,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteDBSnapshotResult', ); return DeleteDBSnapshotResult.fromXml($result); @@ -7367,8 +7630,9 @@ class RDS { Future deleteDBSubnetGroup({ required String dBSubnetGroupName, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteDBSubnetGroup', @@ -7376,8 +7640,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDBSubnetGroupMessage'], - shapes: shapes, ); } @@ -7391,8 +7653,9 @@ class RDS { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -7400,8 +7663,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'DeleteEventSubscriptionResult', ); return DeleteEventSubscriptionResult.fromXml($result); @@ -7421,8 +7682,9 @@ class RDS { Future deleteGlobalCluster({ required String globalClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteGlobalCluster', @@ -7430,8 +7692,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteGlobalClusterResult', ); return DeleteGlobalClusterResult.fromXml($result); @@ -7448,8 +7708,9 @@ class RDS { Future deleteIntegration({ required String integrationIdentifier, }) async { - final $request = {}; - $request['IntegrationIdentifier'] = integrationIdentifier; + final $request = { + 'IntegrationIdentifier': integrationIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteIntegration', @@ -7457,8 +7718,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIntegrationMessage'], - shapes: shapes, resultWrapper: 'DeleteIntegrationResult', ); return Integration.fromXml($result); @@ -7477,8 +7736,9 @@ class RDS { Future deleteOptionGroup({ required String optionGroupName, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; + final $request = { + 'OptionGroupName': optionGroupName, + }; await _protocol.send( $request, action: 'DeleteOptionGroup', @@ -7486,8 +7746,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteOptionGroupMessage'], - shapes: shapes, ); } @@ -7532,12 +7790,14 @@ class RDS { String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['TenantDBName'] = tenantDBName; - finalDBSnapshotIdentifier - ?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg); - skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'TenantDBName': tenantDBName, + if (finalDBSnapshotIdentifier != null) + 'FinalDBSnapshotIdentifier': finalDBSnapshotIdentifier, + if (skipFinalSnapshot != null) + 'SkipFinalSnapshot': skipFinalSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteTenantDatabase', @@ -7545,8 +7805,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTenantDatabaseMessage'], - shapes: shapes, resultWrapper: 'DeleteTenantDatabaseResult', ); return DeleteTenantDatabaseResult.fromXml($result); @@ -7578,12 +7836,22 @@ class RDS { List? dBInstanceIdentifiers, String? targetGroupName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - dBClusterIdentifiers?.also((arg) => $request['DBClusterIdentifiers'] = arg); - dBInstanceIdentifiers - ?.also((arg) => $request['DBInstanceIdentifiers'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (dBClusterIdentifiers != null) + if (dBClusterIdentifiers.isEmpty) + 'DBClusterIdentifiers': '' + else + for (var i1 = 0; i1 < dBClusterIdentifiers.length; i1++) + 'DBClusterIdentifiers.member.${i1 + 1}': dBClusterIdentifiers[i1], + if (dBInstanceIdentifiers != null) + if (dBInstanceIdentifiers.isEmpty) + 'DBInstanceIdentifiers': '' + else + for (var i1 = 0; i1 < dBInstanceIdentifiers.length; i1++) + 'DBInstanceIdentifiers.member.${i1 + 1}': dBInstanceIdentifiers[i1], + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; await _protocol.send( $request, action: 'DeregisterDBProxyTargets', @@ -7591,8 +7859,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeregisterDBProxyTargetsRequest'], - shapes: shapes, resultWrapper: 'DeregisterDBProxyTargetsResult', ); } @@ -7604,7 +7870,7 @@ class RDS { /// /// This command doesn't take any parameters. Future describeAccountAttributes() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeAccountAttributes', @@ -7612,8 +7878,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeAccountAttributesResult', ); return AccountAttributesMessage.fromXml($result); @@ -7709,12 +7973,19 @@ class RDS { 20, 100, ); - final $request = {}; - blueGreenDeploymentIdentifier - ?.also((arg) => $request['BlueGreenDeploymentIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (blueGreenDeploymentIdentifier != null) + 'BlueGreenDeploymentIdentifier': blueGreenDeploymentIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeBlueGreenDeployments', @@ -7722,8 +7993,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeBlueGreenDeploymentsRequest'], - shapes: shapes, resultWrapper: 'DescribeBlueGreenDeploymentsResult', ); return DescribeBlueGreenDeploymentsResponse.fromXml($result); @@ -7779,12 +8048,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - certificateIdentifier - ?.also((arg) => $request['CertificateIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (certificateIdentifier != null) + 'CertificateIdentifier': certificateIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCertificates', @@ -7792,8 +8068,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCertificatesMessage'], - shapes: shapes, resultWrapper: 'DescribeCertificatesResult', ); return CertificateMessage.fromXml($result); @@ -7865,12 +8139,21 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dbClusterResourceId?.also((arg) => $request['DbClusterResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dbClusterResourceId != null) + 'DbClusterResourceId': dbClusterResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterAutomatedBackups', @@ -7878,8 +8161,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterAutomatedBackupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterAutomatedBackupsResult', ); return DBClusterAutomatedBackupMessage.fromXml($result); @@ -7987,12 +8268,20 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - backtrackIdentifier?.also((arg) => $request['BacktrackIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (backtrackIdentifier != null) + 'BacktrackIdentifier': backtrackIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterBacktracks', @@ -8000,8 +8289,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterBacktracksMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterBacktracksResult', ); return DBClusterBacktrackMessage.fromXml($result); @@ -8060,13 +8347,21 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterEndpointIdentifier - ?.also((arg) => $request['DBClusterEndpointIdentifier'] = arg); - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterEndpointIdentifier != null) + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterEndpoints', @@ -8074,8 +8369,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterEndpointsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterEndpointsResult', ); return DBClusterEndpointMessage.fromXml($result); @@ -8131,12 +8424,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameterGroups', @@ -8144,8 +8444,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParameterGroupsResult', ); return DBClusterParameterGroupsMessage.fromXml($result); @@ -8218,12 +8516,19 @@ class RDS { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterParameters', @@ -8231,8 +8536,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterParametersResult', ); return DBClusterParameterGroupDetails.fromXml($result); @@ -8263,8 +8566,9 @@ class RDS { describeDBClusterSnapshotAttributes({ required String dBClusterSnapshotIdentifier, }) async { - final $request = {}; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; + final $request = { + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshotAttributes', @@ -8272,8 +8576,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotAttributesResult', ); return DescribeDBClusterSnapshotAttributesResult.fromXml($result); @@ -8428,17 +8730,26 @@ class RDS { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - dbClusterResourceId?.also((arg) => $request['DbClusterResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (dbClusterResourceId != null) + 'DbClusterResourceId': dbClusterResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusterSnapshots', @@ -8446,8 +8757,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClusterSnapshotsResult', ); return DBClusterSnapshotMessage.fromXml($result); @@ -8540,12 +8849,20 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBClusterIdentifier?.also((arg) => $request['DBClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBClusterIdentifier != null) + 'DBClusterIdentifier': dBClusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBClusters', @@ -8553,8 +8870,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBClustersResult', ); return DBClusterMessage.fromXml($result); @@ -8757,20 +9072,27 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupFamily - ?.also((arg) => $request['DBParameterGroupFamily'] = arg); - defaultOnly?.also((arg) => $request['DefaultOnly'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includeAll?.also((arg) => $request['IncludeAll'] = arg); - listSupportedCharacterSets - ?.also((arg) => $request['ListSupportedCharacterSets'] = arg); - listSupportedTimezones - ?.also((arg) => $request['ListSupportedTimezones'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupFamily != null) + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (defaultOnly != null) 'DefaultOnly': defaultOnly.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includeAll != null) 'IncludeAll': includeAll.toString(), + if (listSupportedCharacterSets != null) + 'ListSupportedCharacterSets': listSupportedCharacterSets.toString(), + if (listSupportedTimezones != null) + 'ListSupportedTimezones': listSupportedTimezones.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBEngineVersions', @@ -8778,8 +9100,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBEngineVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBEngineVersionsResult', ); return DBEngineVersionMessage.fromXml($result); @@ -8867,14 +9187,22 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceAutomatedBackupsArn - ?.also((arg) => $request['DBInstanceAutomatedBackupsArn'] = arg); - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceAutomatedBackupsArn != null) + 'DBInstanceAutomatedBackupsArn': dBInstanceAutomatedBackupsArn, + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstanceAutomatedBackups', @@ -8882,8 +9210,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstanceAutomatedBackupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstanceAutomatedBackupsResult', ); return DBInstanceAutomatedBackupMessage.fromXml($result); @@ -8964,11 +9290,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBInstances', @@ -8976,8 +9310,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBInstancesResult', ); return DBInstanceMessage.fromXml($result); @@ -9034,14 +9366,22 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - fileLastWritten?.also((arg) => $request['FileLastWritten'] = arg); - fileSize?.also((arg) => $request['FileSize'] = arg); - filenameContains?.also((arg) => $request['FilenameContains'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (fileLastWritten != null) + 'FileLastWritten': fileLastWritten.toString(), + if (fileSize != null) 'FileSize': fileSize.toString(), + if (filenameContains != null) 'FilenameContains': filenameContains, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBLogFiles', @@ -9049,8 +9389,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBLogFilesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBLogFilesResult', ); return DescribeDBLogFilesResponse.fromXml($result); @@ -9097,11 +9435,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameterGroups', @@ -9109,8 +9455,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParameterGroupsResult', ); return DBParameterGroupsMessage.fromXml($result); @@ -9163,12 +9507,19 @@ class RDS { int? maxRecords, String? source, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeDBParameters', @@ -9176,8 +9527,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDBParametersResult', ); return DBParameterGroupDetails.fromXml($result); @@ -9221,11 +9570,18 @@ class RDS { 20, 100, ); - final $request = {}; - dBProxyName?.also((arg) => $request['DBProxyName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBProxyName != null) 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxies', @@ -9233,8 +9589,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxiesRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxiesResult', ); return DescribeDBProxiesResponse.fromXml($result); @@ -9285,12 +9639,20 @@ class RDS { 20, 100, ); - final $request = {}; - dBProxyEndpointName?.also((arg) => $request['DBProxyEndpointName'] = arg); - dBProxyName?.also((arg) => $request['DBProxyName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBProxyEndpointName != null) + 'DBProxyEndpointName': dBProxyEndpointName, + if (dBProxyName != null) 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxyEndpoints', @@ -9298,8 +9660,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxyEndpointsRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxyEndpointsResult', ); return DescribeDBProxyEndpointsResponse.fromXml($result); @@ -9349,12 +9709,19 @@ class RDS { 20, 100, ); - final $request = {}; - $request['DBProxyName'] = dBProxyName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxyTargetGroups', @@ -9362,8 +9729,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxyTargetGroupsRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxyTargetGroupsResult', ); return DescribeDBProxyTargetGroupsResponse.fromXml($result); @@ -9413,12 +9778,19 @@ class RDS { 20, 100, ); - final $request = {}; - $request['DBProxyName'] = dBProxyName; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeDBProxyTargets', @@ -9426,8 +9798,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBProxyTargetsRequest'], - shapes: shapes, resultWrapper: 'DescribeDBProxyTargetsResult', ); return DescribeDBProxyTargetsResponse.fromXml($result); @@ -9590,15 +9960,22 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - lastUpdatedAfter - ?.also((arg) => $request['LastUpdatedAfter'] = _s.iso8601ToJson(arg)); - lastUpdatedBefore - ?.also((arg) => $request['LastUpdatedBefore'] = _s.iso8601ToJson(arg)); - locale?.also((arg) => $request['Locale'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (lastUpdatedAfter != null) + 'LastUpdatedAfter': _s.iso8601ToJson(lastUpdatedAfter), + if (lastUpdatedBefore != null) + 'LastUpdatedBefore': _s.iso8601ToJson(lastUpdatedBefore), + if (locale != null) 'Locale': locale, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBRecommendations', @@ -9606,8 +9983,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBRecommendationsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBRecommendationsResult', ); return DBRecommendationsMessage.fromXml($result); @@ -9659,11 +10034,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSecurityGroupName?.also((arg) => $request['DBSecurityGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSecurityGroupName != null) + 'DBSecurityGroupName': dBSecurityGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSecurityGroups', @@ -9671,8 +10054,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSecurityGroupsResult', ); return DBSecurityGroupMessage.fromXml($result); @@ -9727,12 +10108,19 @@ class RDS { 20, 100, ); - final $request = {}; - dBShardGroupIdentifier - ?.also((arg) => $request['DBShardGroupIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBShardGroupIdentifier != null) + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBShardGroups', @@ -9740,8 +10128,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBShardGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBShardGroupsResult', ); return DescribeDBShardGroupsResponse.fromXml($result); @@ -9769,8 +10155,9 @@ class RDS { Future describeDBSnapshotAttributes({ required String dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshotAttributes', @@ -9778,8 +10165,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotAttributesResult', ); return DescribeDBSnapshotAttributesResult.fromXml($result); @@ -9910,14 +10295,23 @@ class RDS { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshotTenantDatabases', @@ -9925,8 +10319,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotTenantDatabasesMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotTenantDatabasesResult', ); return DBSnapshotTenantDatabasesMessage.fromXml($result); @@ -10086,16 +10478,25 @@ class RDS { int? maxRecords, String? snapshotType, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - dbiResourceId?.also((arg) => $request['DbiResourceId'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - includePublic?.also((arg) => $request['IncludePublic'] = arg); - includeShared?.also((arg) => $request['IncludeShared'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (dbiResourceId != null) 'DbiResourceId': dbiResourceId, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (includePublic != null) 'IncludePublic': includePublic.toString(), + if (includeShared != null) 'IncludeShared': includeShared.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotType != null) 'SnapshotType': snapshotType, + }; final $result = await _protocol.send( $request, action: 'DescribeDBSnapshots', @@ -10103,8 +10504,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSnapshotsResult', ); return DBSnapshotMessage.fromXml($result); @@ -10147,11 +10546,18 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDBSubnetGroups', @@ -10159,8 +10565,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDBSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeDBSubnetGroupsResult', ); return DBSubnetGroupMessage.fromXml($result); @@ -10202,11 +10606,18 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultClusterParameters', @@ -10214,8 +10625,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultClusterParametersResult', ); return DescribeEngineDefaultClusterParametersResult.fromXml($result); @@ -10404,11 +10813,18 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['DBParameterGroupFamily'] = dBParameterGroupFamily; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'DBParameterGroupFamily': dBParameterGroupFamily, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEngineDefaultParameters', @@ -10416,8 +10832,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEngineDefaultParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeEngineDefaultParametersResult', ); return DescribeEngineDefaultParametersResult.fromXml($result); @@ -10446,9 +10860,16 @@ class RDS { List? filters, String? sourceType, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -10456,8 +10877,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -10501,11 +10920,18 @@ class RDS { int? maxRecords, String? subscriptionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -10513,8 +10939,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -10636,16 +11060,28 @@ class RDS { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -10653,8 +11089,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -10750,13 +11184,21 @@ class RDS { 20, 100, ); - final $request = {}; - exportTaskIdentifier?.also((arg) => $request['ExportTaskIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); + final $request = { + if (exportTaskIdentifier != null) + 'ExportTaskIdentifier': exportTaskIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceArn != null) 'SourceArn': sourceArn, + if (sourceType != null) 'SourceType': sourceType.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeExportTasks', @@ -10764,8 +11206,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeExportTasksMessage'], - shapes: shapes, resultWrapper: 'DescribeExportTasksResult', ); return ExportTasksMessage.fromXml($result); @@ -10827,12 +11267,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeGlobalClusters', @@ -10840,8 +11287,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeGlobalClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeGlobalClustersResult', ); return GlobalClustersMessage.fromXml($result); @@ -10878,12 +11323,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - integrationIdentifier - ?.also((arg) => $request['IntegrationIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (integrationIdentifier != null) + 'IntegrationIdentifier': integrationIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeIntegrations', @@ -10891,8 +11343,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeIntegrationsMessage'], - shapes: shapes, resultWrapper: 'DescribeIntegrationsResult', ); return DescribeIntegrationsResponse.fromXml($result); @@ -10975,12 +11425,19 @@ class RDS { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['EngineName'] = engineName; - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroupOptions', @@ -10988,8 +11445,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupOptionsResult', ); return OptionGroupOptionsMessage.fromXml($result); @@ -11082,13 +11537,20 @@ class RDS { int? maxRecords, String? optionGroupName, }) async { - final $request = {}; - engineName?.also((arg) => $request['EngineName'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + if (engineName != null) 'EngineName': engineName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (majorEngineVersion != null) 'MajorEngineVersion': majorEngineVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'DescribeOptionGroups', @@ -11096,8 +11558,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOptionGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeOptionGroupsResult', ); return OptionGroups.fromXml($result); @@ -11229,17 +11689,24 @@ class RDS { int? maxRecords, bool? vpc, }) async { - final $request = {}; - $request['Engine'] = engine; - availabilityZoneGroup - ?.also((arg) => $request['AvailabilityZoneGroup'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - vpc?.also((arg) => $request['Vpc'] = arg); + final $request = { + 'Engine': engine, + if (availabilityZoneGroup != null) + 'AvailabilityZoneGroup': availabilityZoneGroup, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (vpc != null) 'Vpc': vpc.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableDBInstanceOptions', @@ -11247,8 +11714,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableDBInstanceOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableDBInstanceOptionsResult', ); return OrderableDBInstanceOptionsMessage.fromXml($result); @@ -11302,11 +11767,18 @@ class RDS { int? maxRecords, String? resourceIdentifier, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceIdentifier?.also((arg) => $request['ResourceIdentifier'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceIdentifier != null) 'ResourceIdentifier': resourceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribePendingMaintenanceActions', @@ -11314,8 +11786,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePendingMaintenanceActionsMessage'], - shapes: shapes, resultWrapper: 'DescribePendingMaintenanceActionsResult', ); return PendingMaintenanceActionsMessage.fromXml($result); @@ -11396,19 +11866,27 @@ class RDS { String? reservedDBInstanceId, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - leaseId?.also((arg) => $request['LeaseId'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (leaseId != null) 'LeaseId': leaseId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstances', @@ -11416,8 +11894,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesResult', ); return ReservedDBInstanceMessage.fromXml($result); @@ -11489,17 +11965,24 @@ class RDS { String? productDescription, String? reservedDBInstancesOfferingId, }) async { - final $request = {}; - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - duration?.also((arg) => $request['Duration'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - offeringType?.also((arg) => $request['OfferingType'] = arg); - productDescription?.also((arg) => $request['ProductDescription'] = arg); - reservedDBInstancesOfferingId - ?.also((arg) => $request['ReservedDBInstancesOfferingId'] = arg); + final $request = { + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (duration != null) 'Duration': duration, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (offeringType != null) 'OfferingType': offeringType, + if (productDescription != null) 'ProductDescription': productDescription, + if (reservedDBInstancesOfferingId != null) + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedDBInstancesOfferings', @@ -11507,8 +11990,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedDBInstancesOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedDBInstancesOfferingsResult', ); return ReservedDBInstancesOfferingMessage.fromXml($result); @@ -11564,11 +12045,18 @@ class RDS { int? maxRecords, String? regionName, }) async { - final $request = {}; - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - regionName?.also((arg) => $request['RegionName'] = arg); + final $request = { + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (regionName != null) 'RegionName': regionName, + }; final $result = await _protocol.send( $request, action: 'DescribeSourceRegions', @@ -11576,8 +12064,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSourceRegionsMessage'], - shapes: shapes, resultWrapper: 'DescribeSourceRegionsResult', ); return SourceRegionMessage.fromXml($result); @@ -11638,12 +12124,20 @@ class RDS { int? maxRecords, String? tenantDBName, }) async { - final $request = {}; - dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tenantDBName?.also((arg) => $request['TenantDBName'] = arg); + final $request = { + if (dBInstanceIdentifier != null) + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tenantDBName != null) 'TenantDBName': tenantDBName, + }; final $result = await _protocol.send( $request, action: 'DescribeTenantDatabases', @@ -11651,8 +12145,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTenantDatabasesMessage'], - shapes: shapes, resultWrapper: 'DescribeTenantDatabasesResult', ); return TenantDatabasesMessage.fromXml($result); @@ -11673,8 +12165,9 @@ class RDS { describeValidDBInstanceModifications({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeValidDBInstanceModifications', @@ -11682,8 +12175,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeValidDBInstanceModificationsMessage'], - shapes: shapes, resultWrapper: 'DescribeValidDBInstanceModificationsResult', ); return DescribeValidDBInstanceModificationsResult.fromXml($result); @@ -11710,8 +12201,9 @@ class RDS { Future disableHttpEndpoint({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'DisableHttpEndpoint', @@ -11719,8 +12211,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableHttpEndpointRequest'], - shapes: shapes, resultWrapper: 'DisableHttpEndpointResult', ); return DisableHttpEndpointResponse.fromXml($result); @@ -11789,11 +12279,12 @@ class RDS { String? marker, int? numberOfLines, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['LogFileName'] = logFileName; - marker?.also((arg) => $request['Marker'] = arg); - numberOfLines?.also((arg) => $request['NumberOfLines'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'LogFileName': logFileName, + if (marker != null) 'Marker': marker, + if (numberOfLines != null) 'NumberOfLines': numberOfLines.toString(), + }; final $result = await _protocol.send( $request, action: 'DownloadDBLogFilePortion', @@ -11801,8 +12292,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DownloadDBLogFilePortionMessage'], - shapes: shapes, resultWrapper: 'DownloadDBLogFilePortionResult', ); return DownloadDBLogFilePortionDetails.fromXml($result); @@ -11833,8 +12322,9 @@ class RDS { Future enableHttpEndpoint({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'EnableHttpEndpoint', @@ -11842,8 +12332,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableHttpEndpointRequest'], - shapes: shapes, resultWrapper: 'EnableHttpEndpointResult', ); return EnableHttpEndpointResponse.fromXml($result); @@ -11907,10 +12395,11 @@ class RDS { required String dBClusterIdentifier, String? targetDBInstanceIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - targetDBInstanceIdentifier - ?.also((arg) => $request['TargetDBInstanceIdentifier'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (targetDBInstanceIdentifier != null) + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverDBCluster', @@ -11918,8 +12407,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverDBClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverDBClusterResult', ); return FailoverDBClusterResult.fromXml($result); @@ -12040,11 +12527,12 @@ class RDS { bool? allowDataLoss, bool? switchover, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; - allowDataLoss?.also((arg) => $request['AllowDataLoss'] = arg); - switchover?.also((arg) => $request['Switchover'] = arg); + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + if (allowDataLoss != null) 'AllowDataLoss': allowDataLoss.toString(), + if (switchover != null) 'Switchover': switchover.toString(), + }; final $result = await _protocol.send( $request, action: 'FailoverGlobalCluster', @@ -12052,8 +12540,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'FailoverGlobalClusterResult', ); return FailoverGlobalClusterResult.fromXml($result); @@ -12088,9 +12574,16 @@ class RDS { required String resourceName, List? filters, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - filters?.also((arg) => $request['Filters'] = arg); + final $request = { + 'ResourceName': resourceName, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.Filter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -12098,8 +12591,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceMessage'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return TagListMessage.fromXml($result); @@ -12134,10 +12625,11 @@ class RDS { AuditPolicyState? auditPolicyState, String? resourceArn, }) async { - final $request = {}; - auditPolicyState - ?.also((arg) => $request['AuditPolicyState'] = arg.toValue()); - resourceArn?.also((arg) => $request['ResourceArn'] = arg); + final $request = { + if (auditPolicyState != null) + 'AuditPolicyState': auditPolicyState.toValue(), + if (resourceArn != null) 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'ModifyActivityStream', @@ -12145,8 +12637,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyActivityStreamRequest'], - shapes: shapes, resultWrapper: 'ModifyActivityStreamResult', ); return ModifyActivityStreamResponse.fromXml($result); @@ -12204,11 +12694,12 @@ class RDS { String? certificateIdentifier, bool? removeCustomerOverride, }) async { - final $request = {}; - certificateIdentifier - ?.also((arg) => $request['CertificateIdentifier'] = arg); - removeCustomerOverride - ?.also((arg) => $request['RemoveCustomerOverride'] = arg); + final $request = { + if (certificateIdentifier != null) + 'CertificateIdentifier': certificateIdentifier, + if (removeCustomerOverride != null) + 'RemoveCustomerOverride': removeCustomerOverride.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyCertificates', @@ -12216,8 +12707,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCertificatesMessage'], - shapes: shapes, resultWrapper: 'ModifyCertificatesResult', ); return ModifyCertificatesResult.fromXml($result); @@ -12311,11 +12800,13 @@ class RDS { int? secondsBeforeTimeout, String? timeoutAction, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - capacity?.also((arg) => $request['Capacity'] = arg); - secondsBeforeTimeout?.also((arg) => $request['SecondsBeforeTimeout'] = arg); - timeoutAction?.also((arg) => $request['TimeoutAction'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (capacity != null) 'Capacity': capacity.toString(), + if (secondsBeforeTimeout != null) + 'SecondsBeforeTimeout': secondsBeforeTimeout.toString(), + if (timeoutAction != null) 'TimeoutAction': timeoutAction, + }; final $result = await _protocol.send( $request, action: 'ModifyCurrentDBClusterCapacity', @@ -12323,8 +12814,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCurrentDBClusterCapacityMessage'], - shapes: shapes, resultWrapper: 'ModifyCurrentDBClusterCapacityResult', ); return DBClusterCapacityInfo.fromXml($result); @@ -12397,11 +12886,12 @@ class RDS { String? description, CustomEngineVersionStatus? status, }) async { - final $request = {}; - $request['Engine'] = engine; - $request['EngineVersion'] = engineVersion; - description?.also((arg) => $request['Description'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + 'Engine': engine, + 'EngineVersion': engineVersion, + if (description != null) 'Description': description, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'ModifyCustomDBEngineVersion', @@ -12409,8 +12899,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCustomDBEngineVersionMessage'], - shapes: shapes, resultWrapper: 'ModifyCustomDBEngineVersionResult', ); return DBEngineVersion.fromXml($result); @@ -13193,76 +13681,96 @@ class RDS { String? storageType, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowEngineModeChange - ?.also((arg) => $request['AllowEngineModeChange'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - awsBackupRecoveryPointArn - ?.also((arg) => $request['AwsBackupRecoveryPointArn'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBInstanceParameterGroupName - ?.also((arg) => $request['DBInstanceParameterGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableGlobalWriteForwarding - ?.also((arg) => $request['EnableGlobalWriteForwarding'] = arg); - enableHttpEndpoint?.also((arg) => $request['EnableHttpEndpoint'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enableLimitlessDatabase - ?.also((arg) => $request['EnableLimitlessDatabase'] = arg); - enableLocalWriteForwarding - ?.also((arg) => $request['EnableLocalWriteForwarding'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - newDBClusterIdentifier - ?.also((arg) => $request['NewDBClusterIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - rotateMasterUserPassword - ?.also((arg) => $request['RotateMasterUserPassword'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowEngineModeChange != null) + 'AllowEngineModeChange': allowEngineModeChange.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (awsBackupRecoveryPointArn != null) + 'AwsBackupRecoveryPointArn': awsBackupRecoveryPointArn, + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBInstanceParameterGroupName != null) + 'DBInstanceParameterGroupName': dBInstanceParameterGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableGlobalWriteForwarding != null) + 'EnableGlobalWriteForwarding': enableGlobalWriteForwarding.toString(), + if (enableHttpEndpoint != null) + 'EnableHttpEndpoint': enableHttpEndpoint.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enableLimitlessDatabase != null) + 'EnableLimitlessDatabase': enableLimitlessDatabase.toString(), + if (enableLocalWriteForwarding != null) + 'EnableLocalWriteForwarding': enableLocalWriteForwarding.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineMode != null) 'EngineMode': engineMode, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (networkType != null) 'NetworkType': networkType, + if (newDBClusterIdentifier != null) + 'NewDBClusterIdentifier': newDBClusterIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (rotateMasterUserPassword != null) + 'RotateMasterUserPassword': rotateMasterUserPassword.toString(), + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBCluster', @@ -13270,8 +13778,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterResult', ); return ModifyDBClusterResult.fromXml($result); @@ -13310,11 +13816,22 @@ class RDS { List? excludedMembers, List? staticMembers, }) async { - final $request = {}; - $request['DBClusterEndpointIdentifier'] = dBClusterEndpointIdentifier; - endpointType?.also((arg) => $request['EndpointType'] = arg); - excludedMembers?.also((arg) => $request['ExcludedMembers'] = arg); - staticMembers?.also((arg) => $request['StaticMembers'] = arg); + final $request = { + 'DBClusterEndpointIdentifier': dBClusterEndpointIdentifier, + if (endpointType != null) 'EndpointType': endpointType, + if (excludedMembers != null) + if (excludedMembers.isEmpty) + 'ExcludedMembers': '' + else + for (var i1 = 0; i1 < excludedMembers.length; i1++) + 'ExcludedMembers.member.${i1 + 1}': excludedMembers[i1], + if (staticMembers != null) + if (staticMembers.isEmpty) + 'StaticMembers': '' + else + for (var i1 = 0; i1 < staticMembers.length; i1++) + 'StaticMembers.member.${i1 + 1}': staticMembers[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterEndpoint', @@ -13322,8 +13839,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterEndpointMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterEndpointResult', ); return DBClusterEndpoint.fromXml($result); @@ -13389,9 +13904,15 @@ class RDS { required String dBClusterParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterParameterGroup', @@ -13399,8 +13920,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -13481,11 +14000,22 @@ class RDS { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBClusterSnapshotAttribute', @@ -13493,8 +14023,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBClusterSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBClusterSnapshotAttributeResult', ); return ModifyDBClusterSnapshotAttributeResult.fromXml($result); @@ -14740,88 +15268,128 @@ class RDS { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - automationMode?.also((arg) => $request['AutomationMode'] = arg.toValue()); - awsBackupRecoveryPointArn - ?.also((arg) => $request['AwsBackupRecoveryPointArn'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - certificateRotationRestart - ?.also((arg) => $request['CertificateRotationRestart'] = arg); - cloudwatchLogsExportConfiguration - ?.also((arg) => $request['CloudwatchLogsExportConfiguration'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBPortNumber?.also((arg) => $request['DBPortNumber'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - disableDomain?.also((arg) => $request['DisableDomain'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - multiTenant?.also((arg) => $request['MultiTenant'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - newDBInstanceIdentifier - ?.also((arg) => $request['NewDBInstanceIdentifier'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - promotionTier?.also((arg) => $request['PromotionTier'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - replicaMode?.also((arg) => $request['ReplicaMode'] = arg.toValue()); - resumeFullAutomationModeMinutes - ?.also((arg) => $request['ResumeFullAutomationModeMinutes'] = arg); - rotateMasterUserPassword - ?.also((arg) => $request['RotateMasterUserPassword'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (automationMode != null) 'AutomationMode': automationMode.toValue(), + if (awsBackupRecoveryPointArn != null) + 'AwsBackupRecoveryPointArn': awsBackupRecoveryPointArn, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (certificateRotationRestart != null) + 'CertificateRotationRestart': certificateRotationRestart.toString(), + if (cloudwatchLogsExportConfiguration != null) + for (var e1 in cloudwatchLogsExportConfiguration.toQueryMap().entries) + 'CloudwatchLogsExportConfiguration.${e1.key}': e1.value, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBPortNumber != null) 'DBPortNumber': dBPortNumber.toString(), + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (disableDomain != null) 'DisableDomain': disableDomain.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engine != null) 'Engine': engine, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (multiTenant != null) 'MultiTenant': multiTenant.toString(), + if (networkType != null) 'NetworkType': networkType, + if (newDBInstanceIdentifier != null) + 'NewDBInstanceIdentifier': newDBInstanceIdentifier, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (promotionTier != null) 'PromotionTier': promotionTier.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (replicaMode != null) 'ReplicaMode': replicaMode.toValue(), + if (resumeFullAutomationModeMinutes != null) + 'ResumeFullAutomationModeMinutes': + resumeFullAutomationModeMinutes.toString(), + if (rotateMasterUserPassword != null) + 'RotateMasterUserPassword': rotateMasterUserPassword.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBInstance', @@ -14829,8 +15397,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBInstanceMessage'], - shapes: shapes, resultWrapper: 'ModifyDBInstanceResult', ); return ModifyDBInstanceResult.fromXml($result); @@ -14901,9 +15467,15 @@ class RDS { required String dBParameterGroupName, required List parameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyDBParameterGroup', @@ -14911,8 +15483,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -14971,15 +15541,28 @@ class RDS { String? roleArn, List? securityGroups, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - auth?.also((arg) => $request['Auth'] = arg); - debugLogging?.also((arg) => $request['DebugLogging'] = arg); - idleClientTimeout?.also((arg) => $request['IdleClientTimeout'] = arg); - newDBProxyName?.also((arg) => $request['NewDBProxyName'] = arg); - requireTLS?.also((arg) => $request['RequireTLS'] = arg); - roleArn?.also((arg) => $request['RoleArn'] = arg); - securityGroups?.also((arg) => $request['SecurityGroups'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (auth != null) + if (auth.isEmpty) + 'Auth': '' + else + for (var i1 = 0; i1 < auth.length; i1++) + for (var e3 in auth[i1].toQueryMap().entries) + 'Auth.member.${i1 + 1}.${e3.key}': e3.value, + if (debugLogging != null) 'DebugLogging': debugLogging.toString(), + if (idleClientTimeout != null) + 'IdleClientTimeout': idleClientTimeout.toString(), + if (newDBProxyName != null) 'NewDBProxyName': newDBProxyName, + if (requireTLS != null) 'RequireTLS': requireTLS.toString(), + if (roleArn != null) 'RoleArn': roleArn, + if (securityGroups != null) + if (securityGroups.isEmpty) + 'SecurityGroups': '' + else + for (var i1 = 0; i1 < securityGroups.length; i1++) + 'SecurityGroups.member.${i1 + 1}': securityGroups[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBProxy', @@ -14987,8 +15570,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBProxyRequest'], - shapes: shapes, resultWrapper: 'ModifyDBProxyResult', ); return ModifyDBProxyResponse.fromXml($result); @@ -15019,11 +15600,17 @@ class RDS { String? newDBProxyEndpointName, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBProxyEndpointName'] = dBProxyEndpointName; - newDBProxyEndpointName - ?.also((arg) => $request['NewDBProxyEndpointName'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBProxyEndpointName': dBProxyEndpointName, + if (newDBProxyEndpointName != null) + 'NewDBProxyEndpointName': newDBProxyEndpointName, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.member.${i1 + 1}': vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBProxyEndpoint', @@ -15031,8 +15618,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBProxyEndpointRequest'], - shapes: shapes, resultWrapper: 'ModifyDBProxyEndpointResult', ); return ModifyDBProxyEndpointResponse.fromXml($result); @@ -15064,11 +15649,14 @@ class RDS { ConnectionPoolConfiguration? connectionPoolConfig, String? newName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - $request['TargetGroupName'] = targetGroupName; - connectionPoolConfig?.also((arg) => $request['ConnectionPoolConfig'] = arg); - newName?.also((arg) => $request['NewName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + 'TargetGroupName': targetGroupName, + if (connectionPoolConfig != null) + for (var e1 in connectionPoolConfig.toQueryMap().entries) + 'ConnectionPoolConfig.${e1.key}': e1.value, + if (newName != null) 'NewName': newName, + }; final $result = await _protocol.send( $request, action: 'ModifyDBProxyTargetGroup', @@ -15076,8 +15664,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBProxyTargetGroupRequest'], - shapes: shapes, resultWrapper: 'ModifyDBProxyTargetGroupResult', ); return ModifyDBProxyTargetGroupResponse.fromXml($result); @@ -15115,12 +15701,18 @@ class RDS { List? recommendedActionUpdates, String? status, }) async { - final $request = {}; - $request['RecommendationId'] = recommendationId; - locale?.also((arg) => $request['Locale'] = arg); - recommendedActionUpdates - ?.also((arg) => $request['RecommendedActionUpdates'] = arg); - status?.also((arg) => $request['Status'] = arg); + final $request = { + 'RecommendationId': recommendationId, + if (locale != null) 'Locale': locale, + if (recommendedActionUpdates != null) + if (recommendedActionUpdates.isEmpty) + 'RecommendedActionUpdates': '' + else + for (var i1 = 0; i1 < recommendedActionUpdates.length; i1++) + for (var e3 in recommendedActionUpdates[i1].toQueryMap().entries) + 'RecommendedActionUpdates.member.${i1 + 1}.${e3.key}': e3.value, + if (status != null) 'Status': status, + }; final $result = await _protocol.send( $request, action: 'ModifyDBRecommendation', @@ -15128,8 +15720,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBRecommendationMessage'], - shapes: shapes, resultWrapper: 'ModifyDBRecommendationResult', ); return DBRecommendationMessage.fromXml($result); @@ -15154,9 +15744,10 @@ class RDS { required String dBShardGroupIdentifier, double? maxACU, }) async { - final $request = {}; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; - maxACU?.also((arg) => $request['MaxACU'] = arg); + final $request = { + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + if (maxACU != null) 'MaxACU': maxACU.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyDBShardGroup', @@ -15164,8 +15755,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -15238,10 +15827,11 @@ class RDS { String? engineVersion, String? optionGroupName, }) async { - final $request = {}; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); + final $request = { + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSnapshot', @@ -15249,8 +15839,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSnapshotResult', ); return ModifyDBSnapshotResult.fromXml($result); @@ -15326,11 +15914,22 @@ class RDS { List? valuesToAdd, List? valuesToRemove, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier; - valuesToAdd?.also((arg) => $request['ValuesToAdd'] = arg); - valuesToRemove?.also((arg) => $request['ValuesToRemove'] = arg); + final $request = { + 'AttributeName': attributeName, + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (valuesToAdd != null) + if (valuesToAdd.isEmpty) + 'ValuesToAdd': '' + else + for (var i1 = 0; i1 < valuesToAdd.length; i1++) + 'ValuesToAdd.AttributeValue.${i1 + 1}': valuesToAdd[i1], + if (valuesToRemove != null) + if (valuesToRemove.isEmpty) + 'ValuesToRemove': '' + else + for (var i1 = 0; i1 < valuesToRemove.length; i1++) + 'ValuesToRemove.AttributeValue.${i1 + 1}': valuesToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyDBSnapshotAttribute', @@ -15338,8 +15937,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSnapshotAttributeMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSnapshotAttributeResult', ); return ModifyDBSnapshotAttributeResult.fromXml($result); @@ -15373,11 +15970,16 @@ class RDS { required List subnetIds, String? dBSubnetGroupDescription, }) async { - final $request = {}; - $request['DBSubnetGroupName'] = dBSubnetGroupName; - $request['SubnetIds'] = subnetIds; - dBSubnetGroupDescription - ?.also((arg) => $request['DBSubnetGroupDescription'] = arg); + final $request = { + 'DBSubnetGroupName': dBSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (dBSubnetGroupDescription != null) + 'DBSubnetGroupDescription': dBSubnetGroupDescription, + }; final $result = await _protocol.send( $request, action: 'ModifyDBSubnetGroup', @@ -15385,8 +15987,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyDBSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyDBSubnetGroupResult', ); return ModifyDBSubnetGroupResult.fromXml($result); @@ -15446,12 +16046,18 @@ class RDS { String? snsTopicArn, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -15459,8 +16065,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -15551,15 +16155,17 @@ class RDS { String? globalClusterIdentifier, String? newGlobalClusterIdentifier, }) async { - final $request = {}; - allowMajorVersionUpgrade - ?.also((arg) => $request['AllowMajorVersionUpgrade'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); - newGlobalClusterIdentifier - ?.also((arg) => $request['NewGlobalClusterIdentifier'] = arg); + final $request = { + if (allowMajorVersionUpgrade != null) + 'AllowMajorVersionUpgrade': allowMajorVersionUpgrade.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (engineVersion != null) 'EngineVersion': engineVersion, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + if (newGlobalClusterIdentifier != null) + 'NewGlobalClusterIdentifier': newGlobalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifyGlobalCluster', @@ -15567,8 +16173,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyGlobalClusterResult', ); return ModifyGlobalClusterResult.fromXml($result); @@ -15604,11 +16208,12 @@ class RDS { String? description, String? integrationName, }) async { - final $request = {}; - $request['IntegrationIdentifier'] = integrationIdentifier; - dataFilter?.also((arg) => $request['DataFilter'] = arg); - description?.also((arg) => $request['Description'] = arg); - integrationName?.also((arg) => $request['IntegrationName'] = arg); + final $request = { + 'IntegrationIdentifier': integrationIdentifier, + if (dataFilter != null) 'DataFilter': dataFilter, + if (description != null) 'Description': description, + if (integrationName != null) 'IntegrationName': integrationName, + }; final $result = await _protocol.send( $request, action: 'ModifyIntegration', @@ -15616,8 +16221,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyIntegrationMessage'], - shapes: shapes, resultWrapper: 'ModifyIntegrationResult', ); return Integration.fromXml($result); @@ -15651,11 +16254,25 @@ class RDS { List? optionsToInclude, List? optionsToRemove, }) async { - final $request = {}; - $request['OptionGroupName'] = optionGroupName; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - optionsToInclude?.also((arg) => $request['OptionsToInclude'] = arg); - optionsToRemove?.also((arg) => $request['OptionsToRemove'] = arg); + final $request = { + 'OptionGroupName': optionGroupName, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (optionsToInclude != null) + if (optionsToInclude.isEmpty) + 'OptionsToInclude': '' + else + for (var i1 = 0; i1 < optionsToInclude.length; i1++) + for (var e3 in optionsToInclude[i1].toQueryMap().entries) + 'OptionsToInclude.OptionConfiguration.${i1 + 1}.${e3.key}': + e3.value, + if (optionsToRemove != null) + if (optionsToRemove.isEmpty) + 'OptionsToRemove': '' + else + for (var i1 = 0; i1 < optionsToRemove.length; i1++) + 'OptionsToRemove.member.${i1 + 1}': optionsToRemove[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyOptionGroup', @@ -15663,8 +16280,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyOptionGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyOptionGroupResult', ); return ModifyOptionGroupResult.fromXml($result); @@ -15750,11 +16365,12 @@ class RDS { String? masterUserPassword, String? newTenantDBName, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['TenantDBName'] = tenantDBName; - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - newTenantDBName?.also((arg) => $request['NewTenantDBName'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'TenantDBName': tenantDBName, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (newTenantDBName != null) 'NewTenantDBName': newTenantDBName, + }; final $result = await _protocol.send( $request, action: 'ModifyTenantDatabase', @@ -15762,8 +16378,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyTenantDatabaseMessage'], - shapes: shapes, resultWrapper: 'ModifyTenantDatabaseResult', ); return ModifyTenantDatabaseResult.fromXml($result); @@ -15854,12 +16468,13 @@ class RDS { int? backupRetentionPeriod, String? preferredBackupWindow, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplica', @@ -15867,8 +16482,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaResult', ); return PromoteReadReplicaResult.fromXml($result); @@ -15894,8 +16507,9 @@ class RDS { Future promoteReadReplicaDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'PromoteReadReplicaDBCluster', @@ -15903,8 +16517,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PromoteReadReplicaDBClusterMessage'], - shapes: shapes, resultWrapper: 'PromoteReadReplicaDBClusterResult', ); return PromoteReadReplicaDBClusterResult.fromXml($result); @@ -15937,11 +16549,20 @@ class RDS { String? reservedDBInstanceId, List? tags, }) async { - final $request = {}; - $request['ReservedDBInstancesOfferingId'] = reservedDBInstancesOfferingId; - dBInstanceCount?.also((arg) => $request['DBInstanceCount'] = arg); - reservedDBInstanceId?.also((arg) => $request['ReservedDBInstanceId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ReservedDBInstancesOfferingId': reservedDBInstancesOfferingId, + if (dBInstanceCount != null) + 'DBInstanceCount': dBInstanceCount.toString(), + if (reservedDBInstanceId != null) + 'ReservedDBInstanceId': reservedDBInstanceId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedDBInstancesOffering', @@ -15949,8 +16570,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedDBInstancesOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedDBInstancesOfferingResult', ); return PurchaseReservedDBInstancesOfferingResult.fromXml($result); @@ -15988,8 +16607,9 @@ class RDS { Future rebootDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RebootDBCluster', @@ -15997,8 +16617,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBClusterMessage'], - shapes: shapes, resultWrapper: 'RebootDBClusterResult', ); return RebootDBClusterResult.fromXml($result); @@ -16046,9 +16664,10 @@ class RDS { required String dBInstanceIdentifier, bool? forceFailover, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - forceFailover?.also((arg) => $request['ForceFailover'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (forceFailover != null) 'ForceFailover': forceFailover.toString(), + }; final $result = await _protocol.send( $request, action: 'RebootDBInstance', @@ -16056,8 +16675,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBInstanceMessage'], - shapes: shapes, resultWrapper: 'RebootDBInstanceResult', ); return RebootDBInstanceResult.fromXml($result); @@ -16077,8 +16694,9 @@ class RDS { Future rebootDBShardGroup({ required String dBShardGroupIdentifier, }) async { - final $request = {}; - $request['DBShardGroupIdentifier'] = dBShardGroupIdentifier; + final $request = { + 'DBShardGroupIdentifier': dBShardGroupIdentifier, + }; final $result = await _protocol.send( $request, action: 'RebootDBShardGroup', @@ -16086,8 +16704,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootDBShardGroupMessage'], - shapes: shapes, resultWrapper: 'RebootDBShardGroupResult', ); return DBShardGroup.fromXml($result); @@ -16124,12 +16740,22 @@ class RDS { List? dBInstanceIdentifiers, String? targetGroupName, }) async { - final $request = {}; - $request['DBProxyName'] = dBProxyName; - dBClusterIdentifiers?.also((arg) => $request['DBClusterIdentifiers'] = arg); - dBInstanceIdentifiers - ?.also((arg) => $request['DBInstanceIdentifiers'] = arg); - targetGroupName?.also((arg) => $request['TargetGroupName'] = arg); + final $request = { + 'DBProxyName': dBProxyName, + if (dBClusterIdentifiers != null) + if (dBClusterIdentifiers.isEmpty) + 'DBClusterIdentifiers': '' + else + for (var i1 = 0; i1 < dBClusterIdentifiers.length; i1++) + 'DBClusterIdentifiers.member.${i1 + 1}': dBClusterIdentifiers[i1], + if (dBInstanceIdentifiers != null) + if (dBInstanceIdentifiers.isEmpty) + 'DBInstanceIdentifiers': '' + else + for (var i1 = 0; i1 < dBInstanceIdentifiers.length; i1++) + 'DBInstanceIdentifiers.member.${i1 + 1}': dBInstanceIdentifiers[i1], + if (targetGroupName != null) 'TargetGroupName': targetGroupName, + }; final $result = await _protocol.send( $request, action: 'RegisterDBProxyTargets', @@ -16137,8 +16763,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RegisterDBProxyTargetsRequest'], - shapes: shapes, resultWrapper: 'RegisterDBProxyTargetsResult', ); return RegisterDBProxyTargetsResponse.fromXml($result); @@ -16166,10 +16790,12 @@ class RDS { String? dbClusterIdentifier, String? globalClusterIdentifier, }) async { - final $request = {}; - dbClusterIdentifier?.also((arg) => $request['DbClusterIdentifier'] = arg); - globalClusterIdentifier - ?.also((arg) => $request['GlobalClusterIdentifier'] = arg); + final $request = { + if (dbClusterIdentifier != null) + 'DbClusterIdentifier': dbClusterIdentifier, + if (globalClusterIdentifier != null) + 'GlobalClusterIdentifier': globalClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RemoveFromGlobalCluster', @@ -16177,8 +16803,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveFromGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'RemoveFromGlobalClusterResult', ); return RemoveFromGlobalClusterResult.fromXml($result); @@ -16216,10 +16840,11 @@ class RDS { required String roleArn, String? featureName, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['RoleArn'] = roleArn; - featureName?.also((arg) => $request['FeatureName'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'RoleArn': roleArn, + if (featureName != null) 'FeatureName': featureName, + }; await _protocol.send( $request, action: 'RemoveRoleFromDBCluster', @@ -16227,8 +16852,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromDBClusterMessage'], - shapes: shapes, ); } @@ -16256,10 +16879,11 @@ class RDS { required String featureName, required String roleArn, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['FeatureName'] = featureName; - $request['RoleArn'] = roleArn; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'FeatureName': featureName, + 'RoleArn': roleArn, + }; await _protocol.send( $request, action: 'RemoveRoleFromDBInstance', @@ -16267,8 +16891,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveRoleFromDBInstanceMessage'], - shapes: shapes, ); } @@ -16291,9 +16913,10 @@ class RDS { required String sourceIdentifier, required String subscriptionName, }) async { - final $request = {}; - $request['SourceIdentifier'] = sourceIdentifier; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SourceIdentifier': sourceIdentifier, + 'SubscriptionName': subscriptionName, + }; final $result = await _protocol.send( $request, action: 'RemoveSourceIdentifierFromSubscription', @@ -16301,8 +16924,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'], - shapes: shapes, resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult', ); return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result); @@ -16337,9 +16958,14 @@ class RDS { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'RemoveTagsFromResource', @@ -16347,8 +16973,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemoveTagsFromResourceMessage'], - shapes: shapes, ); } @@ -16395,10 +17019,18 @@ class RDS { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBClusterParameterGroupName'] = dBClusterParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBClusterParameterGroup', @@ -16406,8 +17038,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBClusterParameterGroupResult', ); return DBClusterParameterGroupNameMessage.fromXml($result); @@ -16475,10 +17105,18 @@ class RDS { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['DBParameterGroupName'] = dBParameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'DBParameterGroupName': dBParameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetDBParameterGroup', @@ -16486,8 +17124,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetDBParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetDBParameterGroupResult', ); return DBParameterGroupNameMessage.fromXml($result); @@ -16967,54 +17603,84 @@ class RDS { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['MasterUsername'] = masterUsername; - $request['S3BucketName'] = s3BucketName; - $request['S3IngestionRoleArn'] = s3IngestionRoleArn; - $request['SourceEngine'] = sourceEngine; - $request['SourceEngineVersion'] = sourceEngineVersion; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - characterSetName?.also((arg) => $request['CharacterSetName'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - s3Prefix?.also((arg) => $request['S3Prefix'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'MasterUsername': masterUsername, + 'S3BucketName': s3BucketName, + 'S3IngestionRoleArn': s3IngestionRoleArn, + 'SourceEngine': sourceEngine, + 'SourceEngineVersion': sourceEngineVersion, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (characterSetName != null) 'CharacterSetName': characterSetName, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (s3Prefix != null) 'S3Prefix': s3Prefix, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromS3', @@ -17022,8 +17688,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromS3Message'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromS3Result', ); return RestoreDBClusterFromS3Result.fromXml($result); @@ -17565,44 +18229,77 @@ class RDS { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - $request['Engine'] = engine; - $request['SnapshotIdentifier'] = snapshotIdentifier; - availabilityZones?.also((arg) => $request['AvailabilityZones'] = arg); - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - databaseName?.also((arg) => $request['DatabaseName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - rdsCustomClusterConfiguration - ?.also((arg) => $request['RdsCustomClusterConfiguration'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + 'Engine': engine, + 'SnapshotIdentifier': snapshotIdentifier, + if (availabilityZones != null) + if (availabilityZones.isEmpty) + 'AvailabilityZones': '' + else + for (var i1 = 0; i1 < availabilityZones.length; i1++) + 'AvailabilityZones.AvailabilityZone.${i1 + 1}': + availabilityZones[i1], + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (databaseName != null) 'DatabaseName': databaseName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineMode != null) 'EngineMode': engineMode, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (rdsCustomClusterConfiguration != null) + for (var e1 in rdsCustomClusterConfiguration.toQueryMap().entries) + 'RdsCustomClusterConfiguration.${e1.key}': e1.value, + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterFromSnapshot', @@ -17610,8 +18307,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterFromSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterFromSnapshotResult', ); return RestoreDBClusterFromSnapshotResult.fromXml($result); @@ -18128,48 +18823,75 @@ class RDS { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; - backtrackWindow?.also((arg) => $request['BacktrackWindow'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBClusterInstanceClass - ?.also((arg) => $request['DBClusterInstanceClass'] = arg); - dBClusterParameterGroupName - ?.also((arg) => $request['DBClusterParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineMode?.also((arg) => $request['EngineMode'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - rdsCustomClusterConfiguration - ?.also((arg) => $request['RdsCustomClusterConfiguration'] = arg); - restoreToTime - ?.also((arg) => $request['RestoreToTime'] = _s.iso8601ToJson(arg)); - restoreType?.also((arg) => $request['RestoreType'] = arg); - scalingConfiguration?.also((arg) => $request['ScalingConfiguration'] = arg); - serverlessV2ScalingConfiguration - ?.also((arg) => $request['ServerlessV2ScalingConfiguration'] = arg); - sourceDBClusterIdentifier - ?.also((arg) => $request['SourceDBClusterIdentifier'] = arg); - sourceDbClusterResourceId - ?.also((arg) => $request['SourceDbClusterResourceId'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + if (backtrackWindow != null) + 'BacktrackWindow': backtrackWindow.toString(), + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBClusterInstanceClass != null) + 'DBClusterInstanceClass': dBClusterInstanceClass, + if (dBClusterParameterGroupName != null) + 'DBClusterParameterGroupName': dBClusterParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineMode != null) 'EngineMode': engineMode, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (rdsCustomClusterConfiguration != null) + for (var e1 in rdsCustomClusterConfiguration.toQueryMap().entries) + 'RdsCustomClusterConfiguration.${e1.key}': e1.value, + if (restoreToTime != null) + 'RestoreToTime': _s.iso8601ToJson(restoreToTime), + if (restoreType != null) 'RestoreType': restoreType, + if (scalingConfiguration != null) + for (var e1 in scalingConfiguration.toQueryMap().entries) + 'ScalingConfiguration.${e1.key}': e1.value, + if (serverlessV2ScalingConfiguration != null) + for (var e1 in serverlessV2ScalingConfiguration.toQueryMap().entries) + 'ServerlessV2ScalingConfiguration.${e1.key}': e1.value, + if (sourceDBClusterIdentifier != null) + 'SourceDBClusterIdentifier': sourceDBClusterIdentifier, + if (sourceDbClusterResourceId != null) + 'SourceDbClusterResourceId': sourceDbClusterResourceId, + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBClusterToPointInTime', @@ -18177,8 +18899,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBClusterToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBClusterToPointInTimeResult', ); return RestoreDBClusterToPointInTimeResult.fromXml($result); @@ -18865,59 +19585,99 @@ class RDS { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupTarget?.also((arg) => $request['BackupTarget'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBClusterSnapshotIdentifier - ?.also((arg) => $request['DBClusterSnapshotIdentifier'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupTarget != null) 'BackupTarget': backupTarget, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBClusterSnapshotIdentifier != null) + 'DBClusterSnapshotIdentifier': dBClusterSnapshotIdentifier, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engine != null) 'Engine': engine, + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromDBSnapshot', @@ -18925,8 +19685,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromDBSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromDBSnapshotResult', ); return RestoreDBInstanceFromDBSnapshotResult.fromXml($result); @@ -19565,72 +20323,115 @@ class RDS { bool? useDefaultProcessorFeatures, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['DBInstanceClass'] = dBInstanceClass; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - $request['Engine'] = engine; - $request['S3BucketName'] = s3BucketName; - $request['S3IngestionRoleArn'] = s3IngestionRoleArn; - $request['SourceEngine'] = sourceEngine; - $request['SourceEngineVersion'] = sourceEngineVersion; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSecurityGroups?.also((arg) => $request['DBSecurityGroups'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - enablePerformanceInsights - ?.also((arg) => $request['EnablePerformanceInsights'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - engineVersion?.also((arg) => $request['EngineVersion'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - manageMasterUserPassword - ?.also((arg) => $request['ManageMasterUserPassword'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - masterUserSecretKmsKeyId - ?.also((arg) => $request['MasterUserSecretKmsKeyId'] = arg); - masterUsername?.also((arg) => $request['MasterUsername'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - monitoringInterval?.also((arg) => $request['MonitoringInterval'] = arg); - monitoringRoleArn?.also((arg) => $request['MonitoringRoleArn'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - performanceInsightsKMSKeyId - ?.also((arg) => $request['PerformanceInsightsKMSKeyId'] = arg); - performanceInsightsRetentionPeriod - ?.also((arg) => $request['PerformanceInsightsRetentionPeriod'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredBackupWindow - ?.also((arg) => $request['PreferredBackupWindow'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - s3Prefix?.also((arg) => $request['S3Prefix'] = arg); - storageEncrypted?.also((arg) => $request['StorageEncrypted'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'DBInstanceClass': dBInstanceClass, + 'DBInstanceIdentifier': dBInstanceIdentifier, + 'Engine': engine, + 'S3BucketName': s3BucketName, + 'S3IngestionRoleArn': s3IngestionRoleArn, + 'SourceEngine': sourceEngine, + 'SourceEngineVersion': sourceEngineVersion, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSecurityGroups != null) + if (dBSecurityGroups.isEmpty) + 'DBSecurityGroups': '' + else + for (var i1 = 0; i1 < dBSecurityGroups.length; i1++) + 'DBSecurityGroups.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroups[i1], + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (enablePerformanceInsights != null) + 'EnablePerformanceInsights': enablePerformanceInsights.toString(), + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (engineVersion != null) 'EngineVersion': engineVersion, + if (iops != null) 'Iops': iops.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (licenseModel != null) 'LicenseModel': licenseModel, + if (manageMasterUserPassword != null) + 'ManageMasterUserPassword': manageMasterUserPassword.toString(), + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (masterUserSecretKmsKeyId != null) + 'MasterUserSecretKmsKeyId': masterUserSecretKmsKeyId, + if (masterUsername != null) 'MasterUsername': masterUsername, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (monitoringInterval != null) + 'MonitoringInterval': monitoringInterval.toString(), + if (monitoringRoleArn != null) 'MonitoringRoleArn': monitoringRoleArn, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (performanceInsightsKMSKeyId != null) + 'PerformanceInsightsKMSKeyId': performanceInsightsKMSKeyId, + if (performanceInsightsRetentionPeriod != null) + 'PerformanceInsightsRetentionPeriod': + performanceInsightsRetentionPeriod.toString(), + if (port != null) 'Port': port.toString(), + if (preferredBackupWindow != null) + 'PreferredBackupWindow': preferredBackupWindow, + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (s3Prefix != null) 'S3Prefix': s3Prefix, + if (storageEncrypted != null) + 'StorageEncrypted': storageEncrypted.toString(), + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceFromS3', @@ -19638,8 +20439,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceFromS3Message'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceFromS3Result', ); return RestoreDBInstanceFromS3Result.fromXml($result); @@ -20369,65 +21168,107 @@ class RDS { bool? useLatestRestorableTime, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier; - allocatedStorage?.also((arg) => $request['AllocatedStorage'] = arg); - autoMinorVersionUpgrade - ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - backupTarget?.also((arg) => $request['BackupTarget'] = arg); - cACertificateIdentifier - ?.also((arg) => $request['CACertificateIdentifier'] = arg); - copyTagsToSnapshot?.also((arg) => $request['CopyTagsToSnapshot'] = arg); - customIamInstanceProfile - ?.also((arg) => $request['CustomIamInstanceProfile'] = arg); - dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - dBParameterGroupName?.also((arg) => $request['DBParameterGroupName'] = arg); - dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg); - dedicatedLogVolume?.also((arg) => $request['DedicatedLogVolume'] = arg); - deletionProtection?.also((arg) => $request['DeletionProtection'] = arg); - domain?.also((arg) => $request['Domain'] = arg); - domainAuthSecretArn?.also((arg) => $request['DomainAuthSecretArn'] = arg); - domainDnsIps?.also((arg) => $request['DomainDnsIps'] = arg); - domainFqdn?.also((arg) => $request['DomainFqdn'] = arg); - domainIAMRoleName?.also((arg) => $request['DomainIAMRoleName'] = arg); - domainOu?.also((arg) => $request['DomainOu'] = arg); - enableCloudwatchLogsExports - ?.also((arg) => $request['EnableCloudwatchLogsExports'] = arg); - enableCustomerOwnedIp - ?.also((arg) => $request['EnableCustomerOwnedIp'] = arg); - enableIAMDatabaseAuthentication - ?.also((arg) => $request['EnableIAMDatabaseAuthentication'] = arg); - engine?.also((arg) => $request['Engine'] = arg); - engineLifecycleSupport - ?.also((arg) => $request['EngineLifecycleSupport'] = arg); - iops?.also((arg) => $request['Iops'] = arg); - licenseModel?.also((arg) => $request['LicenseModel'] = arg); - maxAllocatedStorage?.also((arg) => $request['MaxAllocatedStorage'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - networkType?.also((arg) => $request['NetworkType'] = arg); - optionGroupName?.also((arg) => $request['OptionGroupName'] = arg); - port?.also((arg) => $request['Port'] = arg); - processorFeatures?.also((arg) => $request['ProcessorFeatures'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg)); - sourceDBInstanceAutomatedBackupsArn - ?.also((arg) => $request['SourceDBInstanceAutomatedBackupsArn'] = arg); - sourceDBInstanceIdentifier - ?.also((arg) => $request['SourceDBInstanceIdentifier'] = arg); - sourceDbiResourceId?.also((arg) => $request['SourceDbiResourceId'] = arg); - storageThroughput?.also((arg) => $request['StorageThroughput'] = arg); - storageType?.also((arg) => $request['StorageType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tdeCredentialArn?.also((arg) => $request['TdeCredentialArn'] = arg); - tdeCredentialPassword - ?.also((arg) => $request['TdeCredentialPassword'] = arg); - useDefaultProcessorFeatures - ?.also((arg) => $request['UseDefaultProcessorFeatures'] = arg); - useLatestRestorableTime - ?.also((arg) => $request['UseLatestRestorableTime'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'TargetDBInstanceIdentifier': targetDBInstanceIdentifier, + if (allocatedStorage != null) + 'AllocatedStorage': allocatedStorage.toString(), + if (autoMinorVersionUpgrade != null) + 'AutoMinorVersionUpgrade': autoMinorVersionUpgrade.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (backupTarget != null) 'BackupTarget': backupTarget, + if (cACertificateIdentifier != null) + 'CACertificateIdentifier': cACertificateIdentifier, + if (copyTagsToSnapshot != null) + 'CopyTagsToSnapshot': copyTagsToSnapshot.toString(), + if (customIamInstanceProfile != null) + 'CustomIamInstanceProfile': customIamInstanceProfile, + if (dBInstanceClass != null) 'DBInstanceClass': dBInstanceClass, + if (dBName != null) 'DBName': dBName, + if (dBParameterGroupName != null) + 'DBParameterGroupName': dBParameterGroupName, + if (dBSubnetGroupName != null) 'DBSubnetGroupName': dBSubnetGroupName, + if (dedicatedLogVolume != null) + 'DedicatedLogVolume': dedicatedLogVolume.toString(), + if (deletionProtection != null) + 'DeletionProtection': deletionProtection.toString(), + if (domain != null) 'Domain': domain, + if (domainAuthSecretArn != null) + 'DomainAuthSecretArn': domainAuthSecretArn, + if (domainDnsIps != null) + if (domainDnsIps.isEmpty) + 'DomainDnsIps': '' + else + for (var i1 = 0; i1 < domainDnsIps.length; i1++) + 'DomainDnsIps.member.${i1 + 1}': domainDnsIps[i1], + if (domainFqdn != null) 'DomainFqdn': domainFqdn, + if (domainIAMRoleName != null) 'DomainIAMRoleName': domainIAMRoleName, + if (domainOu != null) 'DomainOu': domainOu, + if (enableCloudwatchLogsExports != null) + if (enableCloudwatchLogsExports.isEmpty) + 'EnableCloudwatchLogsExports': '' + else + for (var i1 = 0; i1 < enableCloudwatchLogsExports.length; i1++) + 'EnableCloudwatchLogsExports.member.${i1 + 1}': + enableCloudwatchLogsExports[i1], + if (enableCustomerOwnedIp != null) + 'EnableCustomerOwnedIp': enableCustomerOwnedIp.toString(), + if (enableIAMDatabaseAuthentication != null) + 'EnableIAMDatabaseAuthentication': + enableIAMDatabaseAuthentication.toString(), + if (engine != null) 'Engine': engine, + if (engineLifecycleSupport != null) + 'EngineLifecycleSupport': engineLifecycleSupport, + if (iops != null) 'Iops': iops.toString(), + if (licenseModel != null) 'LicenseModel': licenseModel, + if (maxAllocatedStorage != null) + 'MaxAllocatedStorage': maxAllocatedStorage.toString(), + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (networkType != null) 'NetworkType': networkType, + if (optionGroupName != null) 'OptionGroupName': optionGroupName, + if (port != null) 'Port': port.toString(), + if (processorFeatures != null) + if (processorFeatures.isEmpty) + 'ProcessorFeatures': '' + else + for (var i1 = 0; i1 < processorFeatures.length; i1++) + for (var e3 in processorFeatures[i1].toQueryMap().entries) + 'ProcessorFeatures.ProcessorFeature.${i1 + 1}.${e3.key}': + e3.value, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (restoreTime != null) 'RestoreTime': _s.iso8601ToJson(restoreTime), + if (sourceDBInstanceAutomatedBackupsArn != null) + 'SourceDBInstanceAutomatedBackupsArn': + sourceDBInstanceAutomatedBackupsArn, + if (sourceDBInstanceIdentifier != null) + 'SourceDBInstanceIdentifier': sourceDBInstanceIdentifier, + if (sourceDbiResourceId != null) + 'SourceDbiResourceId': sourceDbiResourceId, + if (storageThroughput != null) + 'StorageThroughput': storageThroughput.toString(), + if (storageType != null) 'StorageType': storageType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (tdeCredentialArn != null) 'TdeCredentialArn': tdeCredentialArn, + if (tdeCredentialPassword != null) + 'TdeCredentialPassword': tdeCredentialPassword, + if (useDefaultProcessorFeatures != null) + 'UseDefaultProcessorFeatures': useDefaultProcessorFeatures.toString(), + if (useLatestRestorableTime != null) + 'UseLatestRestorableTime': useLatestRestorableTime.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreDBInstanceToPointInTime', @@ -20435,8 +21276,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreDBInstanceToPointInTimeMessage'], - shapes: shapes, resultWrapper: 'RestoreDBInstanceToPointInTimeResult', ); return RestoreDBInstanceToPointInTimeResult.fromXml($result); @@ -20502,13 +21341,15 @@ class RDS { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['DBSecurityGroupName'] = dBSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupId?.also((arg) => $request['EC2SecurityGroupId'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'DBSecurityGroupName': dBSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupId != null) 'EC2SecurityGroupId': eC2SecurityGroupId, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeDBSecurityGroupIngress', @@ -20516,8 +21357,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeDBSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeDBSecurityGroupIngressResult', ); return RevokeDBSecurityGroupIngressResult.fromXml($result); @@ -20568,13 +21407,16 @@ class RDS { bool? applyImmediately, bool? engineNativeAuditFieldsIncluded, }) async { - final $request = {}; - $request['KmsKeyId'] = kmsKeyId; - $request['Mode'] = mode.toValue(); - $request['ResourceArn'] = resourceArn; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); - engineNativeAuditFieldsIncluded - ?.also((arg) => $request['EngineNativeAuditFieldsIncluded'] = arg); + final $request = { + 'KmsKeyId': kmsKeyId, + 'Mode': mode.toValue(), + 'ResourceArn': resourceArn, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + if (engineNativeAuditFieldsIncluded != null) + 'EngineNativeAuditFieldsIncluded': + engineNativeAuditFieldsIncluded.toString(), + }; final $result = await _protocol.send( $request, action: 'StartActivityStream', @@ -20582,8 +21424,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartActivityStreamRequest'], - shapes: shapes, resultWrapper: 'StartActivityStreamResult', ); return StartActivityStreamResponse.fromXml($result); @@ -20611,8 +21451,9 @@ class RDS { Future startDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBCluster', @@ -20620,8 +21461,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBClusterMessage'], - shapes: shapes, resultWrapper: 'StartDBClusterResult', ); return StartDBClusterResult.fromXml($result); @@ -20658,8 +21497,9 @@ class RDS { Future startDBInstance({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'StartDBInstance', @@ -20667,8 +21507,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBInstanceMessage'], - shapes: shapes, resultWrapper: 'StartDBInstanceResult', ); return StartDBInstanceResult.fromXml($result); @@ -20739,12 +21577,13 @@ class RDS { String? kmsKeyId, String? preSignedUrl, }) async { - final $request = {}; - $request['SourceDBInstanceArn'] = sourceDBInstanceArn; - backupRetentionPeriod - ?.also((arg) => $request['BackupRetentionPeriod'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - preSignedUrl?.also((arg) => $request['PreSignedUrl'] = arg); + final $request = { + 'SourceDBInstanceArn': sourceDBInstanceArn, + if (backupRetentionPeriod != null) + 'BackupRetentionPeriod': backupRetentionPeriod.toString(), + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (preSignedUrl != null) 'PreSignedUrl': preSignedUrl, + }; final $result = await _protocol.send( $request, action: 'StartDBInstanceAutomatedBackupsReplication', @@ -20752,8 +21591,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartDBInstanceAutomatedBackupsReplicationMessage'], - shapes: shapes, resultWrapper: 'StartDBInstanceAutomatedBackupsReplicationResult', ); return StartDBInstanceAutomatedBackupsReplicationResult.fromXml($result); @@ -20915,14 +21752,20 @@ class RDS { List? exportOnly, String? s3Prefix, }) async { - final $request = {}; - $request['ExportTaskIdentifier'] = exportTaskIdentifier; - $request['IamRoleArn'] = iamRoleArn; - $request['KmsKeyId'] = kmsKeyId; - $request['S3BucketName'] = s3BucketName; - $request['SourceArn'] = sourceArn; - exportOnly?.also((arg) => $request['ExportOnly'] = arg); - s3Prefix?.also((arg) => $request['S3Prefix'] = arg); + final $request = { + 'ExportTaskIdentifier': exportTaskIdentifier, + 'IamRoleArn': iamRoleArn, + 'KmsKeyId': kmsKeyId, + 'S3BucketName': s3BucketName, + 'SourceArn': sourceArn, + if (exportOnly != null) + if (exportOnly.isEmpty) + 'ExportOnly': '' + else + for (var i1 = 0; i1 < exportOnly.length; i1++) + 'ExportOnly.member.${i1 + 1}': exportOnly[i1], + if (s3Prefix != null) 'S3Prefix': s3Prefix, + }; final $result = await _protocol.send( $request, action: 'StartExportTask', @@ -20930,8 +21773,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StartExportTaskMessage'], - shapes: shapes, resultWrapper: 'StartExportTaskResult', ); return ExportTask.fromXml($result); @@ -20967,9 +21808,11 @@ class RDS { required String resourceArn, bool? applyImmediately, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - applyImmediately?.also((arg) => $request['ApplyImmediately'] = arg); + final $request = { + 'ResourceArn': resourceArn, + if (applyImmediately != null) + 'ApplyImmediately': applyImmediately.toString(), + }; final $result = await _protocol.send( $request, action: 'StopActivityStream', @@ -20977,8 +21820,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopActivityStreamRequest'], - shapes: shapes, resultWrapper: 'StopActivityStreamResult', ); return StopActivityStreamResponse.fromXml($result); @@ -21007,8 +21848,9 @@ class RDS { Future stopDBCluster({ required String dBClusterIdentifier, }) async { - final $request = {}; - $request['DBClusterIdentifier'] = dBClusterIdentifier; + final $request = { + 'DBClusterIdentifier': dBClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBCluster', @@ -21016,8 +21858,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBClusterMessage'], - shapes: shapes, resultWrapper: 'StopDBClusterResult', ); return StopDBClusterResult.fromXml($result); @@ -21053,9 +21893,11 @@ class RDS { required String dBInstanceIdentifier, String? dBSnapshotIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; - dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg); + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + if (dBSnapshotIdentifier != null) + 'DBSnapshotIdentifier': dBSnapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'StopDBInstance', @@ -21063,8 +21905,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBInstanceMessage'], - shapes: shapes, resultWrapper: 'StopDBInstanceResult', ); return StopDBInstanceResult.fromXml($result); @@ -21091,8 +21931,9 @@ class RDS { stopDBInstanceAutomatedBackupsReplication({ required String sourceDBInstanceArn, }) async { - final $request = {}; - $request['SourceDBInstanceArn'] = sourceDBInstanceArn; + final $request = { + 'SourceDBInstanceArn': sourceDBInstanceArn, + }; final $result = await _protocol.send( $request, action: 'StopDBInstanceAutomatedBackupsReplication', @@ -21100,8 +21941,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StopDBInstanceAutomatedBackupsReplicationMessage'], - shapes: shapes, resultWrapper: 'StopDBInstanceAutomatedBackupsReplicationResult', ); return StopDBInstanceAutomatedBackupsReplicationResult.fromXml($result); @@ -21152,9 +21991,11 @@ class RDS { 30, 1152921504606846976, ); - final $request = {}; - $request['BlueGreenDeploymentIdentifier'] = blueGreenDeploymentIdentifier; - switchoverTimeout?.also((arg) => $request['SwitchoverTimeout'] = arg); + final $request = { + 'BlueGreenDeploymentIdentifier': blueGreenDeploymentIdentifier, + if (switchoverTimeout != null) + 'SwitchoverTimeout': switchoverTimeout.toString(), + }; final $result = await _protocol.send( $request, action: 'SwitchoverBlueGreenDeployment', @@ -21162,8 +22003,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverBlueGreenDeploymentRequest'], - shapes: shapes, resultWrapper: 'SwitchoverBlueGreenDeploymentResult', ); return SwitchoverBlueGreenDeploymentResponse.fromXml($result); @@ -21218,9 +22057,10 @@ class RDS { required String globalClusterIdentifier, required String targetDbClusterIdentifier, }) async { - final $request = {}; - $request['GlobalClusterIdentifier'] = globalClusterIdentifier; - $request['TargetDbClusterIdentifier'] = targetDbClusterIdentifier; + final $request = { + 'GlobalClusterIdentifier': globalClusterIdentifier, + 'TargetDbClusterIdentifier': targetDbClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'SwitchoverGlobalCluster', @@ -21228,8 +22068,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverGlobalClusterMessage'], - shapes: shapes, resultWrapper: 'SwitchoverGlobalClusterResult', ); return SwitchoverGlobalClusterResult.fromXml($result); @@ -21256,8 +22094,9 @@ class RDS { Future switchoverReadReplica({ required String dBInstanceIdentifier, }) async { - final $request = {}; - $request['DBInstanceIdentifier'] = dBInstanceIdentifier; + final $request = { + 'DBInstanceIdentifier': dBInstanceIdentifier, + }; final $result = await _protocol.send( $request, action: 'SwitchoverReadReplica', @@ -21265,8 +22104,6 @@ class RDS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SwitchoverReadReplicaMessage'], - shapes: shapes, resultWrapper: 'SwitchoverReadReplicaResult', ); return SwitchoverReadReplicaResult.fromXml($result); @@ -22119,6 +22956,25 @@ class CloudwatchLogsExportConfiguration { if (enableLogTypes != null) 'EnableLogTypes': enableLogTypes, }; } + + Map toQueryMap() { + final disableLogTypes = this.disableLogTypes; + final enableLogTypes = this.enableLogTypes; + return { + if (disableLogTypes != null) + if (disableLogTypes.isEmpty) + 'DisableLogTypes': '' + else + for (var i1 = 0; i1 < disableLogTypes.length; i1++) + 'DisableLogTypes.member.${i1 + 1}': disableLogTypes[i1], + if (enableLogTypes != null) + if (enableLogTypes.isEmpty) + 'EnableLogTypes': '' + else + for (var i1 = 0; i1 < enableLogTypes.length; i1++) + 'EnableLogTypes.member.${i1 + 1}': enableLogTypes[i1], + }; + } } /// This data type is used as a response element in the @@ -22309,6 +23165,29 @@ class ConnectionPoolConfiguration { 'SessionPinningFilters': sessionPinningFilters, }; } + + Map toQueryMap() { + final connectionBorrowTimeout = this.connectionBorrowTimeout; + final initQuery = this.initQuery; + final maxConnectionsPercent = this.maxConnectionsPercent; + final maxIdleConnectionsPercent = this.maxIdleConnectionsPercent; + final sessionPinningFilters = this.sessionPinningFilters; + return { + if (connectionBorrowTimeout != null) + 'ConnectionBorrowTimeout': connectionBorrowTimeout.toString(), + if (initQuery != null) 'InitQuery': initQuery, + if (maxConnectionsPercent != null) + 'MaxConnectionsPercent': maxConnectionsPercent.toString(), + if (maxIdleConnectionsPercent != null) + 'MaxIdleConnectionsPercent': maxIdleConnectionsPercent.toString(), + if (sessionPinningFilters != null) + if (sessionPinningFilters.isEmpty) + 'SessionPinningFilters': '' + else + for (var i1 = 0; i1 < sessionPinningFilters.length; i1++) + 'SessionPinningFilters.member.${i1 + 1}': sessionPinningFilters[i1], + }; + } } /// Displays the settings that control the size and behavior of the connection @@ -28849,6 +29728,19 @@ class Filter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name, + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.Value.${i1 + 1}': values[i1], + }; + } } /// A data type representing an Aurora global database. @@ -29931,6 +30823,41 @@ class OptionConfiguration { 'VpcSecurityGroupMemberships': vpcSecurityGroupMemberships, }; } + + Map toQueryMap() { + final optionName = this.optionName; + final dBSecurityGroupMemberships = this.dBSecurityGroupMemberships; + final optionSettings = this.optionSettings; + final optionVersion = this.optionVersion; + final port = this.port; + final vpcSecurityGroupMemberships = this.vpcSecurityGroupMemberships; + return { + 'OptionName': optionName, + if (dBSecurityGroupMemberships != null) + if (dBSecurityGroupMemberships.isEmpty) + 'DBSecurityGroupName': '' + else + for (var i1 = 0; i1 < dBSecurityGroupMemberships.length; i1++) + 'DBSecurityGroupName.DBSecurityGroupName.${i1 + 1}': + dBSecurityGroupMemberships[i1], + if (optionSettings != null) + if (optionSettings.isEmpty) + 'OptionSetting': '' + else + for (var i1 = 0; i1 < optionSettings.length; i1++) + for (var e3 in optionSettings[i1].toQueryMap().entries) + 'OptionSetting.OptionSetting.${i1 + 1}.${e3.key}': e3.value, + if (optionVersion != null) 'OptionVersion': optionVersion, + if (port != null) 'Port': port.toString(), + if (vpcSecurityGroupMemberships != null) + if (vpcSecurityGroupMemberships.isEmpty) + 'VpcSecurityGroupId': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupMemberships.length; i1++) + 'VpcSecurityGroupId.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupMemberships[i1], + }; + } } ///

    @@ -30348,6 +31275,29 @@ class OptionSetting { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final defaultValue = this.defaultValue; + final description = this.description; + final isCollection = this.isCollection; + final isModifiable = this.isModifiable; + final name = this.name; + final value = this.value; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (defaultValue != null) 'DefaultValue': defaultValue, + if (description != null) 'Description': description, + if (isCollection != null) 'IsCollection': isCollection.toString(), + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } /// The version for an option. Option group option versions are returned by the @@ -30770,6 +31720,39 @@ class Parameter { 'SupportedEngineModes': supportedEngineModes, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyMethod = this.applyMethod; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + final supportedEngineModes = this.supportedEngineModes; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(), + if (applyType != null) 'ApplyType': applyType, + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + if (supportedEngineModes != null) + if (supportedEngineModes.isEmpty) + 'SupportedEngineModes': '' + else + for (var i1 = 0; i1 < supportedEngineModes.length; i1++) + 'SupportedEngineModes.member.${i1 + 1}': supportedEngineModes[i1], + }; + } } /// A list of the log types whose configuration is still pending. In other @@ -31287,6 +32270,15 @@ class ProcessorFeature { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } class PromoteReadReplicaDBClusterResult { @@ -31400,6 +32392,20 @@ class RdsCustomClusterConfiguration { 'TransitGatewayMulticastDomainId': transitGatewayMulticastDomainId, }; } + + Map toQueryMap() { + final interconnectSubnetId = this.interconnectSubnetId; + final replicaMode = this.replicaMode; + final transitGatewayMulticastDomainId = + this.transitGatewayMulticastDomainId; + return { + if (interconnectSubnetId != null) + 'InterconnectSubnetId': interconnectSubnetId, + if (replicaMode != null) 'ReplicaMode': replicaMode.toValue(), + if (transitGatewayMulticastDomainId != null) + 'TransitGatewayMulticastDomainId': transitGatewayMulticastDomainId, + }; + } } class RebootDBClusterResult { @@ -31581,6 +32587,15 @@ class RecommendedActionUpdate { 'Status': status, }; } + + Map toQueryMap() { + final actionId = this.actionId; + final status = this.status; + return { + 'ActionId': actionId, + 'Status': status, + }; + } } /// This data type is used as a response element in the @@ -32183,6 +33198,25 @@ class ScalingConfiguration { if (timeoutAction != null) 'TimeoutAction': timeoutAction, }; } + + Map toQueryMap() { + final autoPause = this.autoPause; + final maxCapacity = this.maxCapacity; + final minCapacity = this.minCapacity; + final secondsBeforeTimeout = this.secondsBeforeTimeout; + final secondsUntilAutoPause = this.secondsUntilAutoPause; + final timeoutAction = this.timeoutAction; + return { + if (autoPause != null) 'AutoPause': autoPause.toString(), + if (maxCapacity != null) 'MaxCapacity': maxCapacity.toString(), + if (minCapacity != null) 'MinCapacity': minCapacity.toString(), + if (secondsBeforeTimeout != null) + 'SecondsBeforeTimeout': secondsBeforeTimeout.toString(), + if (secondsUntilAutoPause != null) + 'SecondsUntilAutoPause': secondsUntilAutoPause.toString(), + if (timeoutAction != null) 'TimeoutAction': timeoutAction, + }; + } } /// The scaling configuration for an Aurora DB cluster in @@ -32281,6 +33315,15 @@ class ServerlessV2ScalingConfiguration { if (minCapacity != null) 'MinCapacity': minCapacity, }; } + + Map toQueryMap() { + final maxCapacity = this.maxCapacity; + final minCapacity = this.minCapacity; + return { + if (maxCapacity != null) 'MaxCapacity': maxCapacity.toString(), + if (minCapacity != null) 'MinCapacity': minCapacity.toString(), + }; + } } /// The scaling configuration for an Aurora Serverless v2 DB cluster. @@ -32779,6 +33822,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } ///

    @@ -33268,6 +34320,24 @@ class UserAuthConfig { if (userName != null) 'UserName': userName, }; } + + Map toQueryMap() { + final authScheme = this.authScheme; + final clientPasswordAuthType = this.clientPasswordAuthType; + final description = this.description; + final iAMAuth = this.iAMAuth; + final secretArn = this.secretArn; + final userName = this.userName; + return { + if (authScheme != null) 'AuthScheme': authScheme.toValue(), + if (clientPasswordAuthType != null) + 'ClientPasswordAuthType': clientPasswordAuthType.toValue(), + if (description != null) 'Description': description, + if (iAMAuth != null) 'IAMAuth': iAMAuth.toValue(), + if (secretArn != null) 'SecretArn': secretArn, + if (userName != null) 'UserName': userName, + }; + } } /// Returns the details of authentication used by a proxy to log in as a diff --git a/generated/aws_redshift_api/lib/redshift-2012-12-01.dart b/generated/aws_redshift_api/lib/redshift-2012-12-01.dart index b1d987dbd..5f46fe9af 100644 --- a/generated/aws_redshift_api/lib/redshift-2012-12-01.dart +++ b/generated/aws_redshift_api/lib/redshift-2012-12-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'redshift-2012-12-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// This is an interface reference for Amazon Redshift. It contains @@ -33,7 +32,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// the Amazon Redshift Management Interfaces. class Redshift { final _s.QueryProtocol _protocol; - final Map shapes; Redshift({ required String region, @@ -41,7 +39,7 @@ class Redshift { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'redshift', @@ -50,9 +48,7 @@ class Redshift { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -87,9 +83,10 @@ class Redshift { required String reservedNodeId, required String targetReservedNodeOfferingId, }) async { - final $request = {}; - $request['ReservedNodeId'] = reservedNodeId; - $request['TargetReservedNodeOfferingId'] = targetReservedNodeOfferingId; + final $request = { + 'ReservedNodeId': reservedNodeId, + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + }; final $result = await _protocol.send( $request, action: 'AcceptReservedNodeExchange', @@ -97,8 +94,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AcceptReservedNodeExchangeInputMessage'], - shapes: shapes, resultWrapper: 'AcceptReservedNodeExchangeResult', ); return AcceptReservedNodeExchangeOutputMessage.fromXml($result); @@ -130,11 +125,12 @@ class Redshift { required String databaseName, required String partnerName, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DatabaseName'] = databaseName; - $request['PartnerName'] = partnerName; + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + 'DatabaseName': databaseName, + 'PartnerName': partnerName, + }; final $result = await _protocol.send( $request, action: 'AddPartner', @@ -142,8 +138,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PartnerIntegrationInputMessage'], - shapes: shapes, resultWrapper: 'AddPartnerResult', ); return PartnerIntegrationOutputMessage.fromXml($result); @@ -182,13 +176,14 @@ class Redshift { String? consumerArn, String? consumerRegion, }) async { - final $request = {}; - $request['DataShareArn'] = dataShareArn; - allowWrites?.also((arg) => $request['AllowWrites'] = arg); - associateEntireAccount - ?.also((arg) => $request['AssociateEntireAccount'] = arg); - consumerArn?.also((arg) => $request['ConsumerArn'] = arg); - consumerRegion?.also((arg) => $request['ConsumerRegion'] = arg); + final $request = { + 'DataShareArn': dataShareArn, + if (allowWrites != null) 'AllowWrites': allowWrites.toString(), + if (associateEntireAccount != null) + 'AssociateEntireAccount': associateEntireAccount.toString(), + if (consumerArn != null) 'ConsumerArn': consumerArn, + if (consumerRegion != null) 'ConsumerRegion': consumerRegion, + }; final $result = await _protocol.send( $request, action: 'AssociateDataShareConsumer', @@ -196,8 +191,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssociateDataShareConsumerMessage'], - shapes: shapes, resultWrapper: 'AssociateDataShareConsumerResult', ); return DataShare.fromXml($result); @@ -255,12 +248,14 @@ class Redshift { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'AuthorizeClusterSecurityGroupIngress', @@ -268,8 +263,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeClusterSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'AuthorizeClusterSecurityGroupIngressResult', ); return AuthorizeClusterSecurityGroupIngressResult.fromXml($result); @@ -298,10 +291,11 @@ class Redshift { required String dataShareArn, bool? allowWrites, }) async { - final $request = {}; - $request['ConsumerIdentifier'] = consumerIdentifier; - $request['DataShareArn'] = dataShareArn; - allowWrites?.also((arg) => $request['AllowWrites'] = arg); + final $request = { + 'ConsumerIdentifier': consumerIdentifier, + 'DataShareArn': dataShareArn, + if (allowWrites != null) 'AllowWrites': allowWrites.toString(), + }; final $result = await _protocol.send( $request, action: 'AuthorizeDataShare', @@ -309,8 +303,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeDataShareMessage'], - shapes: shapes, resultWrapper: 'AuthorizeDataShareResult', ); return DataShare.fromXml($result); @@ -338,10 +330,16 @@ class Redshift { String? clusterIdentifier, List? vpcIds, }) async { - final $request = {}; - $request['Account'] = account; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - vpcIds?.also((arg) => $request['VpcIds'] = arg); + final $request = { + 'Account': account, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (vpcIds != null) + if (vpcIds.isEmpty) + 'VpcIds': '' + else + for (var i1 = 0; i1 < vpcIds.length; i1++) + 'VpcIds.VpcIdentifier.${i1 + 1}': vpcIds[i1], + }; final $result = await _protocol.send( $request, action: 'AuthorizeEndpointAccess', @@ -349,8 +347,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'AuthorizeEndpointAccessResult', ); return EndpointAuthorization.fromXml($result); @@ -407,12 +403,13 @@ class Redshift { String? snapshotClusterIdentifier, String? snapshotIdentifier, }) async { - final $request = {}; - $request['AccountWithRestoreAccess'] = accountWithRestoreAccess; - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'AccountWithRestoreAccess': accountWithRestoreAccess, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'AuthorizeSnapshotAccess', @@ -420,8 +417,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AuthorizeSnapshotAccessMessage'], - shapes: shapes, resultWrapper: 'AuthorizeSnapshotAccessResult', ); return AuthorizeSnapshotAccessResult.fromXml($result); @@ -436,8 +431,15 @@ class Redshift { Future batchDeleteClusterSnapshots({ required List identifiers, }) async { - final $request = {}; - $request['Identifiers'] = identifiers; + final $request = { + if (identifiers.isEmpty) + 'Identifiers': '' + else + for (var i1 = 0; i1 < identifiers.length; i1++) + for (var e3 in identifiers[i1].toQueryMap().entries) + 'Identifiers.DeleteClusterSnapshotMessage.${i1 + 1}.${e3.key}': + e3.value, + }; final $result = await _protocol.send( $request, action: 'BatchDeleteClusterSnapshots', @@ -445,8 +447,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDeleteClusterSnapshotsRequest'], - shapes: shapes, resultWrapper: 'BatchDeleteClusterSnapshotsResult', ); return BatchDeleteClusterSnapshotsResult.fromXml($result); @@ -479,11 +479,17 @@ class Redshift { bool? force, int? manualSnapshotRetentionPeriod, }) async { - final $request = {}; - $request['SnapshotIdentifierList'] = snapshotIdentifierList; - force?.also((arg) => $request['Force'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); + final $request = { + if (snapshotIdentifierList.isEmpty) + 'SnapshotIdentifierList': '' + else + for (var i1 = 0; i1 < snapshotIdentifierList.length; i1++) + 'SnapshotIdentifierList.String.${i1 + 1}': snapshotIdentifierList[i1], + if (force != null) 'Force': force.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + }; final $result = await _protocol.send( $request, action: 'BatchModifyClusterSnapshots', @@ -491,8 +497,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchModifyClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'BatchModifyClusterSnapshotsResult', ); return BatchModifyClusterSnapshotsOutputMessage.fromXml($result); @@ -511,8 +515,9 @@ class Redshift { Future cancelResize({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'CancelResize', @@ -520,8 +525,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CancelResizeMessage'], - shapes: shapes, resultWrapper: 'CancelResizeResult', ); return ResizeProgressMessage.fromXml($result); @@ -612,13 +615,15 @@ class Redshift { int? manualSnapshotRetentionPeriod, String? sourceSnapshotClusterIdentifier, }) async { - final $request = {}; - $request['SourceSnapshotIdentifier'] = sourceSnapshotIdentifier; - $request['TargetSnapshotIdentifier'] = targetSnapshotIdentifier; - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - sourceSnapshotClusterIdentifier - ?.also((arg) => $request['SourceSnapshotClusterIdentifier'] = arg); + final $request = { + 'SourceSnapshotIdentifier': sourceSnapshotIdentifier, + 'TargetSnapshotIdentifier': targetSnapshotIdentifier, + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (sourceSnapshotClusterIdentifier != null) + 'SourceSnapshotClusterIdentifier': sourceSnapshotClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'CopyClusterSnapshot', @@ -626,8 +631,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CopyClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CopyClusterSnapshotResult', ); return CopyClusterSnapshotResult.fromXml($result); @@ -649,9 +652,10 @@ class Redshift { required String authenticationProfileContent, required String authenticationProfileName, }) async { - final $request = {}; - $request['AuthenticationProfileContent'] = authenticationProfileContent; - $request['AuthenticationProfileName'] = authenticationProfileName; + final $request = { + 'AuthenticationProfileContent': authenticationProfileContent, + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'CreateAuthenticationProfile', @@ -659,8 +663,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateAuthenticationProfileMessage'], - shapes: shapes, resultWrapper: 'CreateAuthenticationProfileResult', ); return CreateAuthenticationProfileResult.fromXml($result); @@ -1143,59 +1145,89 @@ class Redshift { List? tags, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['MasterUsername'] = masterUsername; - $request['NodeType'] = nodeType; - additionalInfo?.also((arg) => $request['AdditionalInfo'] = arg); - allowVersionUpgrade?.also((arg) => $request['AllowVersionUpgrade'] = arg); - aquaConfigurationStatus - ?.also((arg) => $request['AquaConfigurationStatus'] = arg.toValue()); - automatedSnapshotRetentionPeriod - ?.also((arg) => $request['AutomatedSnapshotRetentionPeriod'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - availabilityZoneRelocation - ?.also((arg) => $request['AvailabilityZoneRelocation'] = arg); - clusterParameterGroupName - ?.also((arg) => $request['ClusterParameterGroupName'] = arg); - clusterSecurityGroups - ?.also((arg) => $request['ClusterSecurityGroups'] = arg); - clusterSubnetGroupName - ?.also((arg) => $request['ClusterSubnetGroupName'] = arg); - clusterType?.also((arg) => $request['ClusterType'] = arg); - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - dBName?.also((arg) => $request['DBName'] = arg); - defaultIamRoleArn?.also((arg) => $request['DefaultIamRoleArn'] = arg); - elasticIp?.also((arg) => $request['ElasticIp'] = arg); - encrypted?.also((arg) => $request['Encrypted'] = arg); - enhancedVpcRouting?.also((arg) => $request['EnhancedVpcRouting'] = arg); - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - iamRoles?.also((arg) => $request['IamRoles'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - loadSampleData?.also((arg) => $request['LoadSampleData'] = arg); - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - manageMasterPassword?.also((arg) => $request['ManageMasterPassword'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - masterPasswordSecretKmsKeyId - ?.also((arg) => $request['MasterPasswordSecretKmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - redshiftIdcApplicationArn - ?.also((arg) => $request['RedshiftIdcApplicationArn'] = arg); - snapshotScheduleIdentifier - ?.also((arg) => $request['SnapshotScheduleIdentifier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'MasterUsername': masterUsername, + 'NodeType': nodeType, + if (additionalInfo != null) 'AdditionalInfo': additionalInfo, + if (allowVersionUpgrade != null) + 'AllowVersionUpgrade': allowVersionUpgrade.toString(), + if (aquaConfigurationStatus != null) + 'AquaConfigurationStatus': aquaConfigurationStatus.toValue(), + if (automatedSnapshotRetentionPeriod != null) + 'AutomatedSnapshotRetentionPeriod': + automatedSnapshotRetentionPeriod.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (availabilityZoneRelocation != null) + 'AvailabilityZoneRelocation': availabilityZoneRelocation.toString(), + if (clusterParameterGroupName != null) + 'ClusterParameterGroupName': clusterParameterGroupName, + if (clusterSecurityGroups != null) + if (clusterSecurityGroups.isEmpty) + 'ClusterSecurityGroups': '' + else + for (var i1 = 0; i1 < clusterSecurityGroups.length; i1++) + 'ClusterSecurityGroups.ClusterSecurityGroupName.${i1 + 1}': + clusterSecurityGroups[i1], + if (clusterSubnetGroupName != null) + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (clusterType != null) 'ClusterType': clusterType, + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (dBName != null) 'DBName': dBName, + if (defaultIamRoleArn != null) 'DefaultIamRoleArn': defaultIamRoleArn, + if (elasticIp != null) 'ElasticIp': elasticIp, + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (enhancedVpcRouting != null) + 'EnhancedVpcRouting': enhancedVpcRouting.toString(), + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (iamRoles != null) + if (iamRoles.isEmpty) + 'IamRoles': '' + else + for (var i1 = 0; i1 < iamRoles.length; i1++) + 'IamRoles.IamRoleArn.${i1 + 1}': iamRoles[i1], + if (ipAddressType != null) 'IpAddressType': ipAddressType, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (loadSampleData != null) 'LoadSampleData': loadSampleData, + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (manageMasterPassword != null) + 'ManageMasterPassword': manageMasterPassword.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (masterPasswordSecretKmsKeyId != null) + 'MasterPasswordSecretKmsKeyId': masterPasswordSecretKmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (port != null) 'Port': port.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (redshiftIdcApplicationArn != null) + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + if (snapshotScheduleIdentifier != null) + 'SnapshotScheduleIdentifier': snapshotScheduleIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateCluster', @@ -1203,8 +1235,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterMessage'], - shapes: shapes, resultWrapper: 'CreateClusterResult', ); return CreateClusterResult.fromXml($result); @@ -1274,11 +1304,18 @@ class Redshift { required String parameterGroupName, List? tags, }) async { - final $request = {}; - $request['Description'] = description; - $request['ParameterGroupFamily'] = parameterGroupFamily; - $request['ParameterGroupName'] = parameterGroupName; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Description': description, + 'ParameterGroupFamily': parameterGroupFamily, + 'ParameterGroupName': parameterGroupName, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterParameterGroup', @@ -1286,8 +1323,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'CreateClusterParameterGroupResult', ); return CreateClusterParameterGroupResult.fromXml($result); @@ -1336,10 +1371,17 @@ class Redshift { required String description, List? tags, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; - $request['Description'] = description; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + 'Description': description, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterSecurityGroup', @@ -1347,8 +1389,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterSecurityGroupMessage'], - shapes: shapes, resultWrapper: 'CreateClusterSecurityGroupResult', ); return CreateClusterSecurityGroupResult.fromXml($result); @@ -1412,12 +1452,20 @@ class Redshift { int? manualSnapshotRetentionPeriod, List? tags, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['SnapshotIdentifier'] = snapshotIdentifier; - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'SnapshotIdentifier': snapshotIdentifier, + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterSnapshot', @@ -1425,8 +1473,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'CreateClusterSnapshotResult', ); return CreateClusterSnapshotResult.fromXml($result); @@ -1485,11 +1531,22 @@ class Redshift { required List subnetIds, List? tags, }) async { - final $request = {}; - $request['ClusterSubnetGroupName'] = clusterSubnetGroupName; - $request['Description'] = description; - $request['SubnetIds'] = subnetIds; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'ClusterSubnetGroupName': clusterSubnetGroupName, + 'Description': description, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateClusterSubnetGroup', @@ -1497,8 +1554,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateClusterSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'CreateClusterSubnetGroupResult', ); return CreateClusterSubnetGroupResult.fromXml($result); @@ -1526,10 +1581,11 @@ class Redshift { required String customDomainCertificateArn, required String customDomainName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['CustomDomainCertificateArn'] = customDomainCertificateArn; - $request['CustomDomainName'] = customDomainName; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'CustomDomainCertificateArn': customDomainCertificateArn, + 'CustomDomainName': customDomainName, + }; final $result = await _protocol.send( $request, action: 'CreateCustomDomainAssociation', @@ -1537,8 +1593,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCustomDomainAssociationMessage'], - shapes: shapes, resultWrapper: 'CreateCustomDomainAssociationResult', ); return CreateCustomDomainAssociationResult.fromXml($result); @@ -1585,12 +1639,19 @@ class Redshift { String? resourceOwner, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['EndpointName'] = endpointName; - $request['SubnetGroupName'] = subnetGroupName; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'EndpointName': endpointName, + 'SubnetGroupName': subnetGroupName, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'CreateEndpointAccess', @@ -1598,8 +1659,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'CreateEndpointAccessResult', ); return EndpointAccess.fromXml($result); @@ -1717,15 +1776,32 @@ class Redshift { String? sourceType, List? tags, }) async { - final $request = {}; - $request['SnsTopicArn'] = snsTopicArn; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - severity?.also((arg) => $request['Severity'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnsTopicArn': snsTopicArn, + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (severity != null) 'Severity': severity, + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateEventSubscription', @@ -1733,8 +1809,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'CreateEventSubscriptionResult', ); return CreateEventSubscriptionResult.fromXml($result); @@ -1769,9 +1843,16 @@ class Redshift { required String hsmClientCertificateIdentifier, List? tags, }) async { - final $request = {}; - $request['HsmClientCertificateIdentifier'] = hsmClientCertificateIdentifier; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateHsmClientCertificate', @@ -1779,8 +1860,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateHsmClientCertificateMessage'], - shapes: shapes, resultWrapper: 'CreateHsmClientCertificateResult', ); return CreateHsmClientCertificateResult.fromXml($result); @@ -1835,14 +1914,21 @@ class Redshift { required String hsmServerPublicCertificate, List? tags, }) async { - final $request = {}; - $request['Description'] = description; - $request['HsmConfigurationIdentifier'] = hsmConfigurationIdentifier; - $request['HsmIpAddress'] = hsmIpAddress; - $request['HsmPartitionName'] = hsmPartitionName; - $request['HsmPartitionPassword'] = hsmPartitionPassword; - $request['HsmServerPublicCertificate'] = hsmServerPublicCertificate; - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Description': description, + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + 'HsmIpAddress': hsmIpAddress, + 'HsmPartitionName': hsmPartitionName, + 'HsmPartitionPassword': hsmPartitionPassword, + 'HsmServerPublicCertificate': hsmServerPublicCertificate, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateHsmConfiguration', @@ -1850,8 +1936,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateHsmConfigurationMessage'], - shapes: shapes, resultWrapper: 'CreateHsmConfigurationResult', ); return CreateHsmConfigurationResult.fromXml($result); @@ -1902,15 +1986,27 @@ class Redshift { String? identityNamespace, List? serviceIntegrations, }) async { - final $request = {}; - $request['IamRoleArn'] = iamRoleArn; - $request['IdcDisplayName'] = idcDisplayName; - $request['IdcInstanceArn'] = idcInstanceArn; - $request['RedshiftIdcApplicationName'] = redshiftIdcApplicationName; - authorizedTokenIssuerList - ?.also((arg) => $request['AuthorizedTokenIssuerList'] = arg); - identityNamespace?.also((arg) => $request['IdentityNamespace'] = arg); - serviceIntegrations?.also((arg) => $request['ServiceIntegrations'] = arg); + final $request = { + 'IamRoleArn': iamRoleArn, + 'IdcDisplayName': idcDisplayName, + 'IdcInstanceArn': idcInstanceArn, + 'RedshiftIdcApplicationName': redshiftIdcApplicationName, + if (authorizedTokenIssuerList != null) + if (authorizedTokenIssuerList.isEmpty) + 'AuthorizedTokenIssuerList': '' + else + for (var i1 = 0; i1 < authorizedTokenIssuerList.length; i1++) + for (var e3 in authorizedTokenIssuerList[i1].toQueryMap().entries) + 'AuthorizedTokenIssuerList.member.${i1 + 1}.${e3.key}': e3.value, + if (identityNamespace != null) 'IdentityNamespace': identityNamespace, + if (serviceIntegrations != null) + if (serviceIntegrations.isEmpty) + 'ServiceIntegrations': '' + else + for (var i1 = 0; i1 < serviceIntegrations.length; i1++) + for (var e3 in serviceIntegrations[i1].toQueryMap().entries) + 'ServiceIntegrations.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateRedshiftIdcApplication', @@ -1918,8 +2014,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateRedshiftIdcApplicationMessage'], - shapes: shapes, resultWrapper: 'CreateRedshiftIdcApplicationResult', ); return CreateRedshiftIdcApplicationResult.fromXml($result); @@ -1983,16 +2077,18 @@ class Redshift { String? scheduledActionDescription, DateTime? startTime, }) async { - final $request = {}; - $request['IamRole'] = iamRole; - $request['Schedule'] = schedule; - $request['ScheduledActionName'] = scheduledActionName; - $request['TargetAction'] = targetAction; - enable?.also((arg) => $request['Enable'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - scheduledActionDescription - ?.also((arg) => $request['ScheduledActionDescription'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + 'IamRole': iamRole, + 'Schedule': schedule, + 'ScheduledActionName': scheduledActionName, + for (var e1 in targetAction.toQueryMap().entries) + 'TargetAction.${e1.key}': e1.value, + if (enable != null) 'Enable': enable.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (scheduledActionDescription != null) + 'ScheduledActionDescription': scheduledActionDescription, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'CreateScheduledAction', @@ -2000,8 +2096,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateScheduledActionMessage'], - shapes: shapes, resultWrapper: 'CreateScheduledActionResult', ); return ScheduledAction.fromXml($result); @@ -2059,10 +2153,17 @@ class Redshift { String? kmsKeyId, List? tags, }) async { - final $request = {}; - $request['SnapshotCopyGrantName'] = snapshotCopyGrantName; - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'SnapshotCopyGrantName': snapshotCopyGrantName, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSnapshotCopyGrant', @@ -2070,8 +2171,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSnapshotCopyGrantMessage'], - shapes: shapes, resultWrapper: 'CreateSnapshotCopyGrantResult', ); return CreateSnapshotCopyGrantResult.fromXml($result); @@ -2114,13 +2213,28 @@ class Redshift { String? scheduleIdentifier, List? tags, }) async { - final $request = {}; - dryRun?.also((arg) => $request['DryRun'] = arg); - nextInvocations?.also((arg) => $request['NextInvocations'] = arg); - scheduleDefinitions?.also((arg) => $request['ScheduleDefinitions'] = arg); - scheduleDescription?.also((arg) => $request['ScheduleDescription'] = arg); - scheduleIdentifier?.also((arg) => $request['ScheduleIdentifier'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + if (dryRun != null) 'DryRun': dryRun.toString(), + if (nextInvocations != null) + 'NextInvocations': nextInvocations.toString(), + if (scheduleDefinitions != null) + if (scheduleDefinitions.isEmpty) + 'ScheduleDefinitions': '' + else + for (var i1 = 0; i1 < scheduleDefinitions.length; i1++) + 'ScheduleDefinitions.ScheduleDefinition.${i1 + 1}': + scheduleDefinitions[i1], + if (scheduleDescription != null) + 'ScheduleDescription': scheduleDescription, + if (scheduleIdentifier != null) 'ScheduleIdentifier': scheduleIdentifier, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateSnapshotSchedule', @@ -2128,8 +2242,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSnapshotScheduleMessage'], - shapes: shapes, resultWrapper: 'CreateSnapshotScheduleResult', ); return SnapshotSchedule.fromXml($result); @@ -2164,9 +2276,15 @@ class Redshift { required String resourceName, required List tags, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['Tags'] = tags; + final $request = { + 'ResourceName': resourceName, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'CreateTags', @@ -2174,8 +2292,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTagsMessage'], - shapes: shapes, ); } @@ -2231,14 +2347,21 @@ class Redshift { UsageLimitPeriod? period, List? tags, }) async { - final $request = {}; - $request['Amount'] = amount; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['FeatureType'] = featureType.toValue(); - $request['LimitType'] = limitType.toValue(); - breachAction?.also((arg) => $request['BreachAction'] = arg.toValue()); - period?.also((arg) => $request['Period'] = arg.toValue()); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Amount': amount.toString(), + 'ClusterIdentifier': clusterIdentifier, + 'FeatureType': featureType.toValue(), + 'LimitType': limitType.toValue(), + if (breachAction != null) 'BreachAction': breachAction.toValue(), + if (period != null) 'Period': period.toValue(), + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.Tag.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateUsageLimit', @@ -2246,8 +2369,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateUsageLimitMessage'], - shapes: shapes, resultWrapper: 'CreateUsageLimitResult', ); return UsageLimit.fromXml($result); @@ -2270,9 +2391,10 @@ class Redshift { required String consumerIdentifier, required String dataShareArn, }) async { - final $request = {}; - $request['ConsumerIdentifier'] = consumerIdentifier; - $request['DataShareArn'] = dataShareArn; + final $request = { + 'ConsumerIdentifier': consumerIdentifier, + 'DataShareArn': dataShareArn, + }; final $result = await _protocol.send( $request, action: 'DeauthorizeDataShare', @@ -2280,8 +2402,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeauthorizeDataShareMessage'], - shapes: shapes, resultWrapper: 'DeauthorizeDataShareResult', ); return DataShare.fromXml($result); @@ -2297,8 +2417,9 @@ class Redshift { Future deleteAuthenticationProfile({ required String authenticationProfileName, }) async { - final $request = {}; - $request['AuthenticationProfileName'] = authenticationProfileName; + final $request = { + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'DeleteAuthenticationProfile', @@ -2306,8 +2427,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAuthenticationProfileMessage'], - shapes: shapes, resultWrapper: 'DeleteAuthenticationProfileResult', ); return DeleteAuthenticationProfileResult.fromXml($result); @@ -2405,14 +2524,16 @@ class Redshift { int? finalClusterSnapshotRetentionPeriod, bool? skipFinalClusterSnapshot, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - finalClusterSnapshotIdentifier - ?.also((arg) => $request['FinalClusterSnapshotIdentifier'] = arg); - finalClusterSnapshotRetentionPeriod - ?.also((arg) => $request['FinalClusterSnapshotRetentionPeriod'] = arg); - skipFinalClusterSnapshot - ?.also((arg) => $request['SkipFinalClusterSnapshot'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (finalClusterSnapshotIdentifier != null) + 'FinalClusterSnapshotIdentifier': finalClusterSnapshotIdentifier, + if (finalClusterSnapshotRetentionPeriod != null) + 'FinalClusterSnapshotRetentionPeriod': + finalClusterSnapshotRetentionPeriod.toString(), + if (skipFinalClusterSnapshot != null) + 'SkipFinalClusterSnapshot': skipFinalClusterSnapshot.toString(), + }; final $result = await _protocol.send( $request, action: 'DeleteCluster', @@ -2420,8 +2541,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterMessage'], - shapes: shapes, resultWrapper: 'DeleteClusterResult', ); return DeleteClusterResult.fromXml($result); @@ -2451,8 +2570,9 @@ class Redshift { Future deleteClusterParameterGroup({ required String parameterGroupName, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; + final $request = { + 'ParameterGroupName': parameterGroupName, + }; await _protocol.send( $request, action: 'DeleteClusterParameterGroup', @@ -2460,8 +2580,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterParameterGroupMessage'], - shapes: shapes, ); } @@ -2483,8 +2601,9 @@ class Redshift { Future deleteClusterSecurityGroup({ required String clusterSecurityGroupName, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + }; await _protocol.send( $request, action: 'DeleteClusterSecurityGroup', @@ -2492,8 +2611,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterSecurityGroupMessage'], - shapes: shapes, ); } @@ -2528,10 +2645,11 @@ class Redshift { required String snapshotIdentifier, String? snapshotClusterIdentifier, }) async { - final $request = {}; - $request['SnapshotIdentifier'] = snapshotIdentifier; - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); + final $request = { + 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DeleteClusterSnapshot', @@ -2539,8 +2657,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'DeleteClusterSnapshotResult', ); return DeleteClusterSnapshotResult.fromXml($result); @@ -2557,8 +2673,9 @@ class Redshift { Future deleteClusterSubnetGroup({ required String clusterSubnetGroupName, }) async { - final $request = {}; - $request['ClusterSubnetGroupName'] = clusterSubnetGroupName; + final $request = { + 'ClusterSubnetGroupName': clusterSubnetGroupName, + }; await _protocol.send( $request, action: 'DeleteClusterSubnetGroup', @@ -2566,8 +2683,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteClusterSubnetGroupMessage'], - shapes: shapes, ); } @@ -2588,9 +2703,10 @@ class Redshift { required String clusterIdentifier, required String customDomainName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['CustomDomainName'] = customDomainName; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'CustomDomainName': customDomainName, + }; await _protocol.send( $request, action: 'DeleteCustomDomainAssociation', @@ -2598,8 +2714,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCustomDomainAssociationMessage'], - shapes: shapes, ); } @@ -2616,8 +2730,9 @@ class Redshift { Future deleteEndpointAccess({ required String endpointName, }) async { - final $request = {}; - $request['EndpointName'] = endpointName; + final $request = { + 'EndpointName': endpointName, + }; final $result = await _protocol.send( $request, action: 'DeleteEndpointAccess', @@ -2625,8 +2740,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'DeleteEndpointAccessResult', ); return EndpointAccess.fromXml($result); @@ -2643,8 +2756,9 @@ class Redshift { Future deleteEventSubscription({ required String subscriptionName, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; + final $request = { + 'SubscriptionName': subscriptionName, + }; await _protocol.send( $request, action: 'DeleteEventSubscription', @@ -2652,8 +2766,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEventSubscriptionMessage'], - shapes: shapes, ); } @@ -2667,8 +2779,9 @@ class Redshift { Future deleteHsmClientCertificate({ required String hsmClientCertificateIdentifier, }) async { - final $request = {}; - $request['HsmClientCertificateIdentifier'] = hsmClientCertificateIdentifier; + final $request = { + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + }; await _protocol.send( $request, action: 'DeleteHsmClientCertificate', @@ -2676,8 +2789,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteHsmClientCertificateMessage'], - shapes: shapes, ); } @@ -2691,8 +2802,9 @@ class Redshift { Future deleteHsmConfiguration({ required String hsmConfigurationIdentifier, }) async { - final $request = {}; - $request['HsmConfigurationIdentifier'] = hsmConfigurationIdentifier; + final $request = { + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + }; await _protocol.send( $request, action: 'DeleteHsmConfiguration', @@ -2700,8 +2812,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteHsmConfigurationMessage'], - shapes: shapes, ); } @@ -2730,11 +2840,12 @@ class Redshift { required String databaseName, required String partnerName, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DatabaseName'] = databaseName; - $request['PartnerName'] = partnerName; + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + 'DatabaseName': databaseName, + 'PartnerName': partnerName, + }; final $result = await _protocol.send( $request, action: 'DeletePartner', @@ -2742,8 +2853,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PartnerIntegrationInputMessage'], - shapes: shapes, resultWrapper: 'DeletePartnerResult', ); return PartnerIntegrationOutputMessage.fromXml($result); @@ -2761,8 +2870,9 @@ class Redshift { Future deleteRedshiftIdcApplication({ required String redshiftIdcApplicationArn, }) async { - final $request = {}; - $request['RedshiftIdcApplicationArn'] = redshiftIdcApplicationArn; + final $request = { + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + }; await _protocol.send( $request, action: 'DeleteRedshiftIdcApplication', @@ -2770,8 +2880,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteRedshiftIdcApplicationMessage'], - shapes: shapes, ); } @@ -2786,8 +2894,9 @@ class Redshift { Future deleteResourcePolicy({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; await _protocol.send( $request, action: 'DeleteResourcePolicy', @@ -2795,8 +2904,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteResourcePolicyMessage'], - shapes: shapes, ); } @@ -2810,8 +2917,9 @@ class Redshift { Future deleteScheduledAction({ required String scheduledActionName, }) async { - final $request = {}; - $request['ScheduledActionName'] = scheduledActionName; + final $request = { + 'ScheduledActionName': scheduledActionName, + }; await _protocol.send( $request, action: 'DeleteScheduledAction', @@ -2819,8 +2927,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteScheduledActionMessage'], - shapes: shapes, ); } @@ -2834,8 +2940,9 @@ class Redshift { Future deleteSnapshotCopyGrant({ required String snapshotCopyGrantName, }) async { - final $request = {}; - $request['SnapshotCopyGrantName'] = snapshotCopyGrantName; + final $request = { + 'SnapshotCopyGrantName': snapshotCopyGrantName, + }; await _protocol.send( $request, action: 'DeleteSnapshotCopyGrant', @@ -2843,8 +2950,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSnapshotCopyGrantMessage'], - shapes: shapes, ); } @@ -2858,8 +2963,9 @@ class Redshift { Future deleteSnapshotSchedule({ required String scheduleIdentifier, }) async { - final $request = {}; - $request['ScheduleIdentifier'] = scheduleIdentifier; + final $request = { + 'ScheduleIdentifier': scheduleIdentifier, + }; await _protocol.send( $request, action: 'DeleteSnapshotSchedule', @@ -2867,8 +2973,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSnapshotScheduleMessage'], - shapes: shapes, ); } @@ -2889,9 +2993,14 @@ class Redshift { required String resourceName, required List tagKeys, }) async { - final $request = {}; - $request['ResourceName'] = resourceName; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceName': resourceName, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'DeleteTags', @@ -2899,8 +3008,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTagsMessage'], - shapes: shapes, ); } @@ -2914,8 +3021,9 @@ class Redshift { Future deleteUsageLimit({ required String usageLimitId, }) async { - final $request = {}; - $request['UsageLimitId'] = usageLimitId; + final $request = { + 'UsageLimitId': usageLimitId, + }; await _protocol.send( $request, action: 'DeleteUsageLimit', @@ -2923,8 +3031,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteUsageLimitMessage'], - shapes: shapes, ); } @@ -2935,8 +3041,14 @@ class Redshift { Future describeAccountAttributes({ List? attributeNames, }) async { - final $request = {}; - attributeNames?.also((arg) => $request['AttributeNames'] = arg); + final $request = { + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeNames.AttributeName.${i1 + 1}': attributeNames[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeAccountAttributes', @@ -2944,8 +3056,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAccountAttributesMessage'], - shapes: shapes, resultWrapper: 'DescribeAccountAttributesResult', ); return AccountAttributeList.fromXml($result); @@ -2962,9 +3072,10 @@ class Redshift { Future describeAuthenticationProfiles({ String? authenticationProfileName, }) async { - final $request = {}; - authenticationProfileName - ?.also((arg) => $request['AuthenticationProfileName'] = arg); + final $request = { + if (authenticationProfileName != null) + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'DescribeAuthenticationProfiles', @@ -2972,8 +3083,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeAuthenticationProfilesMessage'], - shapes: shapes, resultWrapper: 'DescribeAuthenticationProfilesResult', ); return DescribeAuthenticationProfilesResult.fromXml($result); @@ -3017,10 +3126,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeClusterDbRevisions', @@ -3028,8 +3138,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterDbRevisionsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterDbRevisionsResult', ); return ClusterDbRevisionsMessage.fromXml($result); @@ -3109,12 +3217,23 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - parameterGroupName?.also((arg) => $request['ParameterGroupName'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (parameterGroupName != null) 'ParameterGroupName': parameterGroupName, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterParameterGroups', @@ -3122,8 +3241,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterParameterGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterParameterGroupsResult', ); return ClusterParameterGroupsMessage.fromXml($result); @@ -3184,11 +3301,12 @@ class Redshift { int? maxRecords, String? source, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - source?.also((arg) => $request['Source'] = arg); + final $request = { + 'ParameterGroupName': parameterGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (source != null) 'Source': source, + }; final $result = await _protocol.send( $request, action: 'DescribeClusterParameters', @@ -3196,8 +3314,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterParametersResult', ); return ClusterParameterGroupDetails.fromXml($result); @@ -3280,13 +3396,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterSecurityGroupName - ?.also((arg) => $request['ClusterSecurityGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterSecurityGroupName != null) + 'ClusterSecurityGroupName': clusterSecurityGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterSecurityGroups', @@ -3294,8 +3421,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterSecurityGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterSecurityGroupsResult', ); return ClusterSecurityGroupMessage.fromXml($result); @@ -3445,20 +3570,38 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterExists?.also((arg) => $request['ClusterExists'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - ownerAccount?.also((arg) => $request['OwnerAccount'] = arg); - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); - snapshotType?.also((arg) => $request['SnapshotType'] = arg); - sortingEntities?.also((arg) => $request['SortingEntities'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterExists != null) 'ClusterExists': clusterExists.toString(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (ownerAccount != null) 'OwnerAccount': ownerAccount, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotType != null) 'SnapshotType': snapshotType, + if (sortingEntities != null) + if (sortingEntities.isEmpty) + 'SortingEntities': '' + else + for (var i1 = 0; i1 < sortingEntities.length; i1++) + for (var e3 in sortingEntities[i1].toQueryMap().entries) + 'SortingEntities.SnapshotSortingEntity.${i1 + 1}.${e3.key}': + e3.value, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterSnapshots', @@ -3466,8 +3609,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterSnapshotsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterSnapshotsResult', ); return SnapshotMessage.fromXml($result); @@ -3539,13 +3680,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterSubnetGroupName - ?.also((arg) => $request['ClusterSubnetGroupName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterSubnetGroupName != null) + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusterSubnetGroups', @@ -3553,8 +3705,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterSubnetGroupsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterSubnetGroupsResult', ); return ClusterSubnetGroupMessage.fromXml($result); @@ -3584,10 +3734,12 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeClusterTracks', @@ -3595,8 +3747,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterTracksMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterTracksResult', ); return TrackListMessage.fromXml($result); @@ -3658,12 +3808,13 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - clusterParameterGroupFamily - ?.also((arg) => $request['ClusterParameterGroupFamily'] = arg); - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (clusterParameterGroupFamily != null) + 'ClusterParameterGroupFamily': clusterParameterGroupFamily, + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeClusterVersions', @@ -3671,8 +3822,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClusterVersionsMessage'], - shapes: shapes, resultWrapper: 'DescribeClusterVersionsResult', ); return ClusterVersionsMessage.fromXml($result); @@ -3751,12 +3900,23 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeClusters', @@ -3764,8 +3924,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeClustersMessage'], - shapes: shapes, resultWrapper: 'DescribeClustersResult', ); return ClustersMessage.fromXml($result); @@ -3794,12 +3952,13 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - customDomainCertificateArn - ?.also((arg) => $request['CustomDomainCertificateArn'] = arg); - customDomainName?.also((arg) => $request['CustomDomainName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (customDomainCertificateArn != null) + 'CustomDomainCertificateArn': customDomainCertificateArn, + if (customDomainName != null) 'CustomDomainName': customDomainName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeCustomDomainAssociations', @@ -3807,8 +3966,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeCustomDomainAssociationsMessage'], - shapes: shapes, resultWrapper: 'DescribeCustomDomainAssociationsResult', ); return CustomDomainAssociationsMessage.fromXml($result); @@ -3841,10 +3998,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - dataShareArn?.also((arg) => $request['DataShareArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (dataShareArn != null) 'DataShareArn': dataShareArn, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDataShares', @@ -3852,8 +4010,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDataSharesMessage'], - shapes: shapes, resultWrapper: 'DescribeDataSharesResult', ); return DescribeDataSharesResult.fromXml($result); @@ -3894,11 +4050,12 @@ class Redshift { int? maxRecords, DataShareStatusForConsumer? status, }) async { - final $request = {}; - consumerArn?.also((arg) => $request['ConsumerArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (consumerArn != null) 'ConsumerArn': consumerArn, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeDataSharesForConsumer', @@ -3906,8 +4063,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDataSharesForConsumerMessage'], - shapes: shapes, resultWrapper: 'DescribeDataSharesForConsumerResult', ); return DescribeDataSharesForConsumerResult.fromXml($result); @@ -3948,11 +4103,12 @@ class Redshift { String? producerArn, DataShareStatusForProducer? status, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - producerArn?.also((arg) => $request['ProducerArn'] = arg); - status?.also((arg) => $request['Status'] = arg.toValue()); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (producerArn != null) 'ProducerArn': producerArn, + if (status != null) 'Status': status.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeDataSharesForProducer', @@ -3960,8 +4116,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDataSharesForProducerMessage'], - shapes: shapes, resultWrapper: 'DescribeDataSharesForProducerResult', ); return DescribeDataSharesForProducerResult.fromXml($result); @@ -4003,10 +4157,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['ParameterGroupFamily'] = parameterGroupFamily; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'ParameterGroupFamily': parameterGroupFamily, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeDefaultClusterParameters', @@ -4014,8 +4169,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeDefaultClusterParametersMessage'], - shapes: shapes, resultWrapper: 'DescribeDefaultClusterParametersResult', ); return DescribeDefaultClusterParametersResult.fromXml($result); @@ -4058,13 +4211,14 @@ class Redshift { String? resourceOwner, String? vpcId, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - endpointName?.also((arg) => $request['EndpointName'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceOwner?.also((arg) => $request['ResourceOwner'] = arg); - vpcId?.also((arg) => $request['VpcId'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (endpointName != null) 'EndpointName': endpointName, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceOwner != null) 'ResourceOwner': resourceOwner, + if (vpcId != null) 'VpcId': vpcId, + }; final $result = await _protocol.send( $request, action: 'DescribeEndpointAccess', @@ -4072,8 +4226,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'DescribeEndpointAccessResult', ); return EndpointAccessList.fromXml($result); @@ -4116,12 +4268,13 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - account?.also((arg) => $request['Account'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - grantee?.also((arg) => $request['Grantee'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + if (account != null) 'Account': account, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (grantee != null) 'Grantee': grantee.toString(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'DescribeEndpointAuthorization', @@ -4129,8 +4282,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEndpointAuthorizationMessage'], - shapes: shapes, resultWrapper: 'DescribeEndpointAuthorizationResult', ); return EndpointAuthorizationList.fromXml($result); @@ -4151,8 +4302,9 @@ class Redshift { Future describeEventCategories({ String? sourceType, }) async { - final $request = {}; - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'DescribeEventCategories', @@ -4160,8 +4312,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventCategoriesMessage'], - shapes: shapes, resultWrapper: 'DescribeEventCategoriesResult', ); return EventCategoriesMessage.fromXml($result); @@ -4232,12 +4382,23 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - subscriptionName?.also((arg) => $request['SubscriptionName'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (subscriptionName != null) 'SubscriptionName': subscriptionName, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeEventSubscriptions', @@ -4245,8 +4406,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventSubscriptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventSubscriptionsResult', ); return EventSubscriptionsMessage.fromXml($result); @@ -4364,14 +4523,15 @@ class Redshift { SourceType? sourceType, DateTime? startTime, }) async { - final $request = {}; - duration?.also((arg) => $request['Duration'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg.toValue()); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); + final $request = { + if (duration != null) 'Duration': duration.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (sourceIdentifier != null) 'SourceIdentifier': sourceIdentifier, + if (sourceType != null) 'SourceType': sourceType.toValue(), + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + }; final $result = await _protocol.send( $request, action: 'DescribeEvents', @@ -4379,8 +4539,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeEventsMessage'], - shapes: shapes, resultWrapper: 'DescribeEventsResult', ); return EventsMessage.fromXml($result); @@ -4453,13 +4611,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeHsmClientCertificates', @@ -4467,8 +4636,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeHsmClientCertificatesMessage'], - shapes: shapes, resultWrapper: 'DescribeHsmClientCertificatesResult', ); return HsmClientCertificateMessage.fromXml($result); @@ -4541,13 +4708,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeHsmConfigurations', @@ -4555,8 +4733,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeHsmConfigurationsMessage'], - shapes: shapes, resultWrapper: 'DescribeHsmConfigurationsResult', ); return HsmConfigurationMessage.fromXml($result); @@ -4599,11 +4775,12 @@ class Redshift { int? maxRecords, String? targetArn, }) async { - final $request = {}; - integrationArn?.also((arg) => $request['IntegrationArn'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - targetArn?.also((arg) => $request['TargetArn'] = arg); + final $request = { + if (integrationArn != null) 'IntegrationArn': integrationArn, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (targetArn != null) 'TargetArn': targetArn, + }; final $result = await _protocol.send( $request, action: 'DescribeInboundIntegrations', @@ -4611,8 +4788,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeInboundIntegrationsMessage'], - shapes: shapes, resultWrapper: 'DescribeInboundIntegrationsResult', ); return InboundIntegrationsMessage.fromXml($result); @@ -4631,8 +4806,9 @@ class Redshift { Future describeLoggingStatus({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeLoggingStatus', @@ -4640,8 +4816,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeLoggingStatusMessage'], - shapes: shapes, resultWrapper: 'DescribeLoggingStatusResult', ); return LoggingStatus.fromXml($result); @@ -4713,15 +4887,23 @@ class Redshift { String? snapshotArn, String? snapshotIdentifier, }) async { - final $request = {}; - $request['ActionType'] = actionType.toValue(); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - ownerAccount?.also((arg) => $request['OwnerAccount'] = arg); - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'ActionType': actionType.toValue(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.NodeConfigurationOptionsFilter.${i1 + 1}.${e3.key}': + e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (ownerAccount != null) 'OwnerAccount': ownerAccount, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeNodeConfigurationOptions', @@ -4729,8 +4911,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeNodeConfigurationOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeNodeConfigurationOptionsResult', ); return NodeConfigurationOptionsMessage.fromXml($result); @@ -4786,11 +4966,12 @@ class Redshift { int? maxRecords, String? nodeType, }) async { - final $request = {}; - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); + final $request = { + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (nodeType != null) 'NodeType': nodeType, + }; final $result = await _protocol.send( $request, action: 'DescribeOrderableClusterOptions', @@ -4798,8 +4979,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeOrderableClusterOptionsMessage'], - shapes: shapes, resultWrapper: 'DescribeOrderableClusterOptionsResult', ); return OrderableClusterOptionsMessage.fromXml($result); @@ -4832,11 +5011,12 @@ class Redshift { String? databaseName, String? partnerName, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - databaseName?.also((arg) => $request['DatabaseName'] = arg); - partnerName?.also((arg) => $request['PartnerName'] = arg); + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + if (databaseName != null) 'DatabaseName': databaseName, + if (partnerName != null) 'PartnerName': partnerName, + }; final $result = await _protocol.send( $request, action: 'DescribePartners', @@ -4844,8 +5024,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribePartnersInputMessage'], - shapes: shapes, resultWrapper: 'DescribePartnersResult', ); return DescribePartnersOutputMessage.fromXml($result); @@ -4881,11 +5059,12 @@ class Redshift { int? maxRecords, String? redshiftIdcApplicationArn, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - redshiftIdcApplicationArn - ?.also((arg) => $request['RedshiftIdcApplicationArn'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (redshiftIdcApplicationArn != null) + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + }; final $result = await _protocol.send( $request, action: 'DescribeRedshiftIdcApplications', @@ -4893,8 +5072,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeRedshiftIdcApplicationsMessage'], - shapes: shapes, resultWrapper: 'DescribeRedshiftIdcApplicationsResult', ); return DescribeRedshiftIdcApplicationsResult.fromXml($result); @@ -4936,12 +5113,13 @@ class Redshift { String? reservedNodeExchangeRequestId, String? reservedNodeId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - reservedNodeExchangeRequestId - ?.also((arg) => $request['ReservedNodeExchangeRequestId'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (reservedNodeExchangeRequestId != null) + 'ReservedNodeExchangeRequestId': reservedNodeExchangeRequestId, + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedNodeExchangeStatus', @@ -4949,8 +5127,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedNodeExchangeStatusInputMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedNodeExchangeStatusResult', ); return DescribeReservedNodeExchangeStatusOutputMessage.fromXml($result); @@ -4999,11 +5175,12 @@ class Redshift { int? maxRecords, String? reservedNodeOfferingId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - reservedNodeOfferingId - ?.also((arg) => $request['ReservedNodeOfferingId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (reservedNodeOfferingId != null) + 'ReservedNodeOfferingId': reservedNodeOfferingId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedNodeOfferings', @@ -5011,8 +5188,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedNodeOfferingsMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedNodeOfferingsResult', ); return ReservedNodeOfferingsMessage.fromXml($result); @@ -5050,10 +5225,11 @@ class Redshift { int? maxRecords, String? reservedNodeId, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + }; final $result = await _protocol.send( $request, action: 'DescribeReservedNodes', @@ -5061,8 +5237,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReservedNodesMessage'], - shapes: shapes, resultWrapper: 'DescribeReservedNodesResult', ); return ReservedNodesMessage.fromXml($result); @@ -5090,8 +5264,9 @@ class Redshift { Future describeResize({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DescribeResize', @@ -5099,8 +5274,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeResizeMessage'], - shapes: shapes, resultWrapper: 'DescribeResizeResult', ); return ResizeProgressMessage.fromXml($result); @@ -5161,16 +5334,24 @@ class Redshift { DateTime? startTime, ScheduledActionTypeValues? targetActionType, }) async { - final $request = {}; - active?.also((arg) => $request['Active'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - filters?.also((arg) => $request['Filters'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - scheduledActionName?.also((arg) => $request['ScheduledActionName'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - targetActionType - ?.also((arg) => $request['TargetActionType'] = arg.toValue()); + final $request = { + if (active != null) 'Active': active.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (filters != null) + if (filters.isEmpty) + 'Filters': '' + else + for (var i1 = 0; i1 < filters.length; i1++) + for (var e3 in filters[i1].toQueryMap().entries) + 'Filters.ScheduledActionFilter.${i1 + 1}.${e3.key}': e3.value, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (scheduledActionName != null) + 'ScheduledActionName': scheduledActionName, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (targetActionType != null) + 'TargetActionType': targetActionType.toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeScheduledActions', @@ -5178,8 +5359,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeScheduledActionsMessage'], - shapes: shapes, resultWrapper: 'DescribeScheduledActionsResult', ); return ScheduledActionsMessage.fromXml($result); @@ -5245,13 +5424,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotCopyGrantName - ?.also((arg) => $request['SnapshotCopyGrantName'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotCopyGrantName != null) + 'SnapshotCopyGrantName': snapshotCopyGrantName, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeSnapshotCopyGrants', @@ -5259,8 +5449,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSnapshotCopyGrantsMessage'], - shapes: shapes, resultWrapper: 'DescribeSnapshotCopyGrantsResult', ); return SnapshotCopyGrantMessage.fromXml($result); @@ -5304,13 +5492,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - scheduleIdentifier?.also((arg) => $request['ScheduleIdentifier'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (scheduleIdentifier != null) 'ScheduleIdentifier': scheduleIdentifier, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeSnapshotSchedules', @@ -5318,8 +5517,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeSnapshotSchedulesMessage'], - shapes: shapes, resultWrapper: 'DescribeSnapshotSchedulesResult', ); return DescribeSnapshotSchedulesOutputMessage.fromXml($result); @@ -5327,7 +5524,7 @@ class Redshift { /// Returns account level backups storage size and provisional storage. Future describeStorage() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeStorage', @@ -5335,7 +5532,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'DescribeStorageResult', ); return CustomerStorageMessage.fromXml($result); @@ -5378,12 +5574,13 @@ class Redshift { int? maxRecords, String? tableRestoreRequestId, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tableRestoreRequestId - ?.also((arg) => $request['TableRestoreRequestId'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tableRestoreRequestId != null) + 'TableRestoreRequestId': tableRestoreRequestId, + }; final $result = await _protocol.send( $request, action: 'DescribeTableRestoreStatus', @@ -5391,8 +5588,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTableRestoreStatusMessage'], - shapes: shapes, resultWrapper: 'DescribeTableRestoreStatusResult', ); return TableRestoreStatusMessage.fromXml($result); @@ -5519,13 +5714,24 @@ class Redshift { List? tagKeys, List? tagValues, }) async { - final $request = {}; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - resourceName?.also((arg) => $request['ResourceName'] = arg); - resourceType?.also((arg) => $request['ResourceType'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); + final $request = { + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (resourceName != null) 'ResourceName': resourceName, + if (resourceType != null) 'ResourceType': resourceType, + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + }; final $result = await _protocol.send( $request, action: 'DescribeTags', @@ -5533,8 +5739,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeTagsMessage'], - shapes: shapes, resultWrapper: 'DescribeTagsResult', ); return TaggedResourceListMessage.fromXml($result); @@ -5621,14 +5825,25 @@ class Redshift { List? tagValues, String? usageLimitId, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - featureType?.also((arg) => $request['FeatureType'] = arg.toValue()); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - tagKeys?.also((arg) => $request['TagKeys'] = arg); - tagValues?.also((arg) => $request['TagValues'] = arg); - usageLimitId?.also((arg) => $request['UsageLimitId'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (featureType != null) 'FeatureType': featureType.toValue(), + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (tagKeys != null) + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.TagKey.${i1 + 1}': tagKeys[i1], + if (tagValues != null) + if (tagValues.isEmpty) + 'TagValues': '' + else + for (var i1 = 0; i1 < tagValues.length; i1++) + 'TagValues.TagValue.${i1 + 1}': tagValues[i1], + if (usageLimitId != null) 'UsageLimitId': usageLimitId, + }; final $result = await _protocol.send( $request, action: 'DescribeUsageLimits', @@ -5636,8 +5851,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeUsageLimitsMessage'], - shapes: shapes, resultWrapper: 'DescribeUsageLimitsResult', ); return UsageLimitList.fromXml($result); @@ -5657,8 +5870,9 @@ class Redshift { Future disableLogging({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DisableLogging', @@ -5666,8 +5880,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableLoggingMessage'], - shapes: shapes, resultWrapper: 'DisableLoggingResult', ); return LoggingStatus.fromXml($result); @@ -5696,8 +5908,9 @@ class Redshift { Future disableSnapshotCopy({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'DisableSnapshotCopy', @@ -5705,8 +5918,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisableSnapshotCopyMessage'], - shapes: shapes, resultWrapper: 'DisableSnapshotCopyResult', ); return DisableSnapshotCopyResult.fromXml($result); @@ -5739,12 +5950,13 @@ class Redshift { String? consumerRegion, bool? disassociateEntireAccount, }) async { - final $request = {}; - $request['DataShareArn'] = dataShareArn; - consumerArn?.also((arg) => $request['ConsumerArn'] = arg); - consumerRegion?.also((arg) => $request['ConsumerRegion'] = arg); - disassociateEntireAccount - ?.also((arg) => $request['DisassociateEntireAccount'] = arg); + final $request = { + 'DataShareArn': dataShareArn, + if (consumerArn != null) 'ConsumerArn': consumerArn, + if (consumerRegion != null) 'ConsumerRegion': consumerRegion, + if (disassociateEntireAccount != null) + 'DisassociateEntireAccount': disassociateEntireAccount.toString(), + }; final $result = await _protocol.send( $request, action: 'DisassociateDataShareConsumer', @@ -5752,8 +5964,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DisassociateDataShareConsumerMessage'], - shapes: shapes, resultWrapper: 'DisassociateDataShareConsumerResult', ); return DataShare.fromXml($result); @@ -5837,13 +6047,19 @@ class Redshift { List? logExports, String? s3KeyPrefix, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - bucketName?.also((arg) => $request['BucketName'] = arg); - logDestinationType - ?.also((arg) => $request['LogDestinationType'] = arg.toValue()); - logExports?.also((arg) => $request['LogExports'] = arg); - s3KeyPrefix?.also((arg) => $request['S3KeyPrefix'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (bucketName != null) 'BucketName': bucketName, + if (logDestinationType != null) + 'LogDestinationType': logDestinationType.toValue(), + if (logExports != null) + if (logExports.isEmpty) + 'LogExports': '' + else + for (var i1 = 0; i1 < logExports.length; i1++) + 'LogExports.member.${i1 + 1}': logExports[i1], + if (s3KeyPrefix != null) 'S3KeyPrefix': s3KeyPrefix, + }; final $result = await _protocol.send( $request, action: 'EnableLogging', @@ -5851,8 +6067,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableLoggingMessage'], - shapes: shapes, resultWrapper: 'EnableLoggingResult', ); return LoggingStatus.fromXml($result); @@ -5914,14 +6128,17 @@ class Redshift { int? retentionPeriod, String? snapshotCopyGrantName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DestinationRegion'] = destinationRegion; - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - retentionPeriod?.also((arg) => $request['RetentionPeriod'] = arg); - snapshotCopyGrantName - ?.also((arg) => $request['SnapshotCopyGrantName'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'DestinationRegion': destinationRegion, + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (retentionPeriod != null) + 'RetentionPeriod': retentionPeriod.toString(), + if (snapshotCopyGrantName != null) + 'SnapshotCopyGrantName': snapshotCopyGrantName, + }; final $result = await _protocol.send( $request, action: 'EnableSnapshotCopy', @@ -5929,8 +6146,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['EnableSnapshotCopyMessage'], - shapes: shapes, resultWrapper: 'EnableSnapshotCopyResult', ); return EnableSnapshotCopyResult.fromXml($result); @@ -5950,8 +6165,9 @@ class Redshift { Future failoverPrimaryCompute({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'FailoverPrimaryCompute', @@ -5959,8 +6175,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['FailoverPrimaryComputeInputMessage'], - shapes: shapes, resultWrapper: 'FailoverPrimaryComputeResult', ); return FailoverPrimaryComputeResult.fromXml($result); @@ -6124,14 +6338,21 @@ class Redshift { String? dbName, int? durationSeconds, }) async { - final $request = {}; - $request['DbUser'] = dbUser; - autoCreate?.also((arg) => $request['AutoCreate'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - customDomainName?.also((arg) => $request['CustomDomainName'] = arg); - dbGroups?.also((arg) => $request['DbGroups'] = arg); - dbName?.also((arg) => $request['DbName'] = arg); - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); + final $request = { + 'DbUser': dbUser, + if (autoCreate != null) 'AutoCreate': autoCreate.toString(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (customDomainName != null) 'CustomDomainName': customDomainName, + if (dbGroups != null) + if (dbGroups.isEmpty) + 'DbGroups': '' + else + for (var i1 = 0; i1 < dbGroups.length; i1++) + 'DbGroups.DbGroup.${i1 + 1}': dbGroups[i1], + if (dbName != null) 'DbName': dbName, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + }; final $result = await _protocol.send( $request, action: 'GetClusterCredentials', @@ -6139,8 +6360,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetClusterCredentialsMessage'], - shapes: shapes, resultWrapper: 'GetClusterCredentialsResult', ); return ClusterCredentials.fromXml($result); @@ -6187,11 +6406,13 @@ class Redshift { String? dbName, int? durationSeconds, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - customDomainName?.also((arg) => $request['CustomDomainName'] = arg); - dbName?.also((arg) => $request['DbName'] = arg); - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (customDomainName != null) 'CustomDomainName': customDomainName, + if (dbName != null) 'DbName': dbName, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + }; final $result = await _protocol.send( $request, action: 'GetClusterCredentialsWithIAM', @@ -6199,8 +6420,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetClusterCredentialsWithIAMMessage'], - shapes: shapes, resultWrapper: 'GetClusterCredentialsWithIAMResult', ); return ClusterExtendedCredentials.fromXml($result); @@ -6255,12 +6474,13 @@ class Redshift { int? maxRecords, String? snapshotIdentifier, }) async { - final $request = {}; - $request['ActionType'] = actionType.toValue(); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'ActionType': actionType.toValue(), + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'GetReservedNodeExchangeConfigurationOptions', @@ -6268,8 +6488,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetReservedNodeExchangeConfigurationOptionsInputMessage'], - shapes: shapes, resultWrapper: 'GetReservedNodeExchangeConfigurationOptionsResult', ); return GetReservedNodeExchangeConfigurationOptionsOutputMessage.fromXml( @@ -6303,10 +6521,11 @@ class Redshift { String? marker, int? maxRecords, }) async { - final $request = {}; - $request['ReservedNodeId'] = reservedNodeId; - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); + final $request = { + 'ReservedNodeId': reservedNodeId, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + }; final $result = await _protocol.send( $request, action: 'GetReservedNodeExchangeOfferings', @@ -6314,8 +6533,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetReservedNodeExchangeOfferingsInputMessage'], - shapes: shapes, resultWrapper: 'GetReservedNodeExchangeOfferingsResult', ); return GetReservedNodeExchangeOfferingsOutputMessage.fromXml($result); @@ -6333,8 +6550,9 @@ class Redshift { Future getResourcePolicy({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'GetResourcePolicy', @@ -6342,8 +6560,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetResourcePolicyMessage'], - shapes: shapes, resultWrapper: 'GetResourcePolicyResult', ); return GetResourcePolicyResult.fromXml($result); @@ -6386,11 +6602,12 @@ class Redshift { int? maxRecords, String? namespaceArn, }) async { - final $request = {}; - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - marker?.also((arg) => $request['Marker'] = arg); - maxRecords?.also((arg) => $request['MaxRecords'] = arg); - namespaceArn?.also((arg) => $request['NamespaceArn'] = arg); + final $request = { + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (marker != null) 'Marker': marker, + if (maxRecords != null) 'MaxRecords': maxRecords.toString(), + if (namespaceArn != null) 'NamespaceArn': namespaceArn, + }; final $result = await _protocol.send( $request, action: 'ListRecommendations', @@ -6398,8 +6615,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListRecommendationsMessage'], - shapes: shapes, resultWrapper: 'ListRecommendationsResult', ); return ListRecommendationsResult.fromXml($result); @@ -6423,10 +6638,11 @@ class Redshift { required String clusterIdentifier, AquaConfigurationStatus? aquaConfigurationStatus, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - aquaConfigurationStatus - ?.also((arg) => $request['AquaConfigurationStatus'] = arg.toValue()); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (aquaConfigurationStatus != null) + 'AquaConfigurationStatus': aquaConfigurationStatus.toValue(), + }; final $result = await _protocol.send( $request, action: 'ModifyAquaConfiguration', @@ -6434,8 +6650,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyAquaInputMessage'], - shapes: shapes, resultWrapper: 'ModifyAquaConfigurationResult', ); return ModifyAquaOutputMessage.fromXml($result); @@ -6457,9 +6671,10 @@ class Redshift { required String authenticationProfileContent, required String authenticationProfileName, }) async { - final $request = {}; - $request['AuthenticationProfileContent'] = authenticationProfileContent; - $request['AuthenticationProfileName'] = authenticationProfileName; + final $request = { + 'AuthenticationProfileContent': authenticationProfileContent, + 'AuthenticationProfileName': authenticationProfileName, + }; final $result = await _protocol.send( $request, action: 'ModifyAuthenticationProfile', @@ -6467,8 +6682,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyAuthenticationProfileMessage'], - shapes: shapes, resultWrapper: 'ModifyAuthenticationProfileResult', ); return ModifyAuthenticationProfileResult.fromXml($result); @@ -6850,45 +7063,65 @@ class Redshift { bool? publiclyAccessible, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - allowVersionUpgrade?.also((arg) => $request['AllowVersionUpgrade'] = arg); - automatedSnapshotRetentionPeriod - ?.also((arg) => $request['AutomatedSnapshotRetentionPeriod'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - availabilityZoneRelocation - ?.also((arg) => $request['AvailabilityZoneRelocation'] = arg); - clusterParameterGroupName - ?.also((arg) => $request['ClusterParameterGroupName'] = arg); - clusterSecurityGroups - ?.also((arg) => $request['ClusterSecurityGroups'] = arg); - clusterType?.also((arg) => $request['ClusterType'] = arg); - clusterVersion?.also((arg) => $request['ClusterVersion'] = arg); - elasticIp?.also((arg) => $request['ElasticIp'] = arg); - encrypted?.also((arg) => $request['Encrypted'] = arg); - enhancedVpcRouting?.also((arg) => $request['EnhancedVpcRouting'] = arg); - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - manageMasterPassword?.also((arg) => $request['ManageMasterPassword'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - masterPasswordSecretKmsKeyId - ?.also((arg) => $request['MasterPasswordSecretKmsKeyId'] = arg); - masterUserPassword?.also((arg) => $request['MasterUserPassword'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - newClusterIdentifier?.also((arg) => $request['NewClusterIdentifier'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (allowVersionUpgrade != null) + 'AllowVersionUpgrade': allowVersionUpgrade.toString(), + if (automatedSnapshotRetentionPeriod != null) + 'AutomatedSnapshotRetentionPeriod': + automatedSnapshotRetentionPeriod.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (availabilityZoneRelocation != null) + 'AvailabilityZoneRelocation': availabilityZoneRelocation.toString(), + if (clusterParameterGroupName != null) + 'ClusterParameterGroupName': clusterParameterGroupName, + if (clusterSecurityGroups != null) + if (clusterSecurityGroups.isEmpty) + 'ClusterSecurityGroups': '' + else + for (var i1 = 0; i1 < clusterSecurityGroups.length; i1++) + 'ClusterSecurityGroups.ClusterSecurityGroupName.${i1 + 1}': + clusterSecurityGroups[i1], + if (clusterType != null) 'ClusterType': clusterType, + if (clusterVersion != null) 'ClusterVersion': clusterVersion, + if (elasticIp != null) 'ElasticIp': elasticIp, + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (enhancedVpcRouting != null) + 'EnhancedVpcRouting': enhancedVpcRouting.toString(), + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (ipAddressType != null) 'IpAddressType': ipAddressType, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (manageMasterPassword != null) + 'ManageMasterPassword': manageMasterPassword.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (masterPasswordSecretKmsKeyId != null) + 'MasterPasswordSecretKmsKeyId': masterPasswordSecretKmsKeyId, + if (masterUserPassword != null) 'MasterUserPassword': masterUserPassword, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (newClusterIdentifier != null) + 'NewClusterIdentifier': newClusterIdentifier, + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (port != null) 'Port': port.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyCluster', @@ -6896,8 +7129,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterResult', ); return ModifyClusterResult.fromXml($result); @@ -6924,9 +7155,10 @@ class Redshift { required String clusterIdentifier, required String revisionTarget, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['RevisionTarget'] = revisionTarget; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'RevisionTarget': revisionTarget, + }; final $result = await _protocol.send( $request, action: 'ModifyClusterDbRevision', @@ -6934,8 +7166,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterDbRevisionMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterDbRevisionResult', ); return ModifyClusterDbRevisionResult.fromXml($result); @@ -6972,11 +7202,22 @@ class Redshift { String? defaultIamRoleArn, List? removeIamRoles, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - addIamRoles?.also((arg) => $request['AddIamRoles'] = arg); - defaultIamRoleArn?.also((arg) => $request['DefaultIamRoleArn'] = arg); - removeIamRoles?.also((arg) => $request['RemoveIamRoles'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (addIamRoles != null) + if (addIamRoles.isEmpty) + 'AddIamRoles': '' + else + for (var i1 = 0; i1 < addIamRoles.length; i1++) + 'AddIamRoles.IamRoleArn.${i1 + 1}': addIamRoles[i1], + if (defaultIamRoleArn != null) 'DefaultIamRoleArn': defaultIamRoleArn, + if (removeIamRoles != null) + if (removeIamRoles.isEmpty) + 'RemoveIamRoles': '' + else + for (var i1 = 0; i1 < removeIamRoles.length; i1++) + 'RemoveIamRoles.IamRoleArn.${i1 + 1}': removeIamRoles[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyClusterIamRoles', @@ -6984,8 +7225,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterIamRolesMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterIamRolesResult', ); return ModifyClusterIamRolesResult.fromXml($result); @@ -7024,17 +7263,20 @@ class Redshift { String? deferMaintenanceIdentifier, DateTime? deferMaintenanceStartTime, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - deferMaintenance?.also((arg) => $request['DeferMaintenance'] = arg); - deferMaintenanceDuration - ?.also((arg) => $request['DeferMaintenanceDuration'] = arg); - deferMaintenanceEndTime?.also( - (arg) => $request['DeferMaintenanceEndTime'] = _s.iso8601ToJson(arg)); - deferMaintenanceIdentifier - ?.also((arg) => $request['DeferMaintenanceIdentifier'] = arg); - deferMaintenanceStartTime?.also( - (arg) => $request['DeferMaintenanceStartTime'] = _s.iso8601ToJson(arg)); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (deferMaintenance != null) + 'DeferMaintenance': deferMaintenance.toString(), + if (deferMaintenanceDuration != null) + 'DeferMaintenanceDuration': deferMaintenanceDuration.toString(), + if (deferMaintenanceEndTime != null) + 'DeferMaintenanceEndTime': _s.iso8601ToJson(deferMaintenanceEndTime), + if (deferMaintenanceIdentifier != null) + 'DeferMaintenanceIdentifier': deferMaintenanceIdentifier, + if (deferMaintenanceStartTime != null) + 'DeferMaintenanceStartTime': + _s.iso8601ToJson(deferMaintenanceStartTime), + }; final $result = await _protocol.send( $request, action: 'ModifyClusterMaintenance', @@ -7042,8 +7284,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterMaintenanceMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterMaintenanceResult', ); return ModifyClusterMaintenanceResult.fromXml($result); @@ -7077,9 +7317,15 @@ class Redshift { required String parameterGroupName, required List parameters, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; - $request['Parameters'] = parameters; + final $request = { + 'ParameterGroupName': parameterGroupName, + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyClusterParameterGroup', @@ -7087,8 +7333,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterParameterGroupResult', ); return ClusterParameterGroupNameMessage.fromXml($result); @@ -7123,11 +7367,13 @@ class Redshift { bool? force, int? manualSnapshotRetentionPeriod, }) async { - final $request = {}; - $request['SnapshotIdentifier'] = snapshotIdentifier; - force?.also((arg) => $request['Force'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); + final $request = { + 'SnapshotIdentifier': snapshotIdentifier, + if (force != null) 'Force': force.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifyClusterSnapshot', @@ -7135,8 +7381,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterSnapshotResult', ); return ModifyClusterSnapshotResult.fromXml($result); @@ -7164,10 +7408,12 @@ class Redshift { bool? disassociateSchedule, String? scheduleIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - disassociateSchedule?.also((arg) => $request['DisassociateSchedule'] = arg); - scheduleIdentifier?.also((arg) => $request['ScheduleIdentifier'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (disassociateSchedule != null) + 'DisassociateSchedule': disassociateSchedule.toString(), + if (scheduleIdentifier != null) 'ScheduleIdentifier': scheduleIdentifier, + }; await _protocol.send( $request, action: 'ModifyClusterSnapshotSchedule', @@ -7175,8 +7421,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterSnapshotScheduleMessage'], - shapes: shapes, ); } @@ -7205,10 +7449,15 @@ class Redshift { required List subnetIds, String? description, }) async { - final $request = {}; - $request['ClusterSubnetGroupName'] = clusterSubnetGroupName; - $request['SubnetIds'] = subnetIds; - description?.also((arg) => $request['Description'] = arg); + final $request = { + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (subnetIds.isEmpty) + 'SubnetIds': '' + else + for (var i1 = 0; i1 < subnetIds.length; i1++) + 'SubnetIds.SubnetIdentifier.${i1 + 1}': subnetIds[i1], + if (description != null) 'Description': description, + }; final $result = await _protocol.send( $request, action: 'ModifyClusterSubnetGroup', @@ -7216,8 +7465,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyClusterSubnetGroupMessage'], - shapes: shapes, resultWrapper: 'ModifyClusterSubnetGroupResult', ); return ModifyClusterSubnetGroupResult.fromXml($result); @@ -7244,10 +7491,11 @@ class Redshift { required String customDomainCertificateArn, required String customDomainName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['CustomDomainCertificateArn'] = customDomainCertificateArn; - $request['CustomDomainName'] = customDomainName; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'CustomDomainCertificateArn': customDomainCertificateArn, + 'CustomDomainName': customDomainName, + }; final $result = await _protocol.send( $request, action: 'ModifyCustomDomainAssociation', @@ -7255,8 +7503,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyCustomDomainAssociationMessage'], - shapes: shapes, resultWrapper: 'ModifyCustomDomainAssociationResult', ); return ModifyCustomDomainAssociationResult.fromXml($result); @@ -7281,9 +7527,16 @@ class Redshift { required String endpointName, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['EndpointName'] = endpointName; - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'EndpointName': endpointName, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'ModifyEndpointAccess', @@ -7291,8 +7544,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'ModifyEndpointAccessResult', ); return EndpointAccess.fromXml($result); @@ -7362,14 +7613,25 @@ class Redshift { List? sourceIds, String? sourceType, }) async { - final $request = {}; - $request['SubscriptionName'] = subscriptionName; - enabled?.also((arg) => $request['Enabled'] = arg); - eventCategories?.also((arg) => $request['EventCategories'] = arg); - severity?.also((arg) => $request['Severity'] = arg); - snsTopicArn?.also((arg) => $request['SnsTopicArn'] = arg); - sourceIds?.also((arg) => $request['SourceIds'] = arg); - sourceType?.also((arg) => $request['SourceType'] = arg); + final $request = { + 'SubscriptionName': subscriptionName, + if (enabled != null) 'Enabled': enabled.toString(), + if (eventCategories != null) + if (eventCategories.isEmpty) + 'EventCategories': '' + else + for (var i1 = 0; i1 < eventCategories.length; i1++) + 'EventCategories.EventCategory.${i1 + 1}': eventCategories[i1], + if (severity != null) 'Severity': severity, + if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn, + if (sourceIds != null) + if (sourceIds.isEmpty) + 'SourceIds': '' + else + for (var i1 = 0; i1 < sourceIds.length; i1++) + 'SourceIds.SourceId.${i1 + 1}': sourceIds[i1], + if (sourceType != null) 'SourceType': sourceType, + }; final $result = await _protocol.send( $request, action: 'ModifyEventSubscription', @@ -7377,8 +7639,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyEventSubscriptionMessage'], - shapes: shapes, resultWrapper: 'ModifyEventSubscriptionResult', ); return ModifyEventSubscriptionResult.fromXml($result); @@ -7423,14 +7683,26 @@ class Redshift { String? identityNamespace, List? serviceIntegrations, }) async { - final $request = {}; - $request['RedshiftIdcApplicationArn'] = redshiftIdcApplicationArn; - authorizedTokenIssuerList - ?.also((arg) => $request['AuthorizedTokenIssuerList'] = arg); - iamRoleArn?.also((arg) => $request['IamRoleArn'] = arg); - idcDisplayName?.also((arg) => $request['IdcDisplayName'] = arg); - identityNamespace?.also((arg) => $request['IdentityNamespace'] = arg); - serviceIntegrations?.also((arg) => $request['ServiceIntegrations'] = arg); + final $request = { + 'RedshiftIdcApplicationArn': redshiftIdcApplicationArn, + if (authorizedTokenIssuerList != null) + if (authorizedTokenIssuerList.isEmpty) + 'AuthorizedTokenIssuerList': '' + else + for (var i1 = 0; i1 < authorizedTokenIssuerList.length; i1++) + for (var e3 in authorizedTokenIssuerList[i1].toQueryMap().entries) + 'AuthorizedTokenIssuerList.member.${i1 + 1}.${e3.key}': e3.value, + if (iamRoleArn != null) 'IamRoleArn': iamRoleArn, + if (idcDisplayName != null) 'IdcDisplayName': idcDisplayName, + if (identityNamespace != null) 'IdentityNamespace': identityNamespace, + if (serviceIntegrations != null) + if (serviceIntegrations.isEmpty) + 'ServiceIntegrations': '' + else + for (var i1 = 0; i1 < serviceIntegrations.length; i1++) + for (var e3 in serviceIntegrations[i1].toQueryMap().entries) + 'ServiceIntegrations.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'ModifyRedshiftIdcApplication', @@ -7438,8 +7710,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyRedshiftIdcApplicationMessage'], - shapes: shapes, resultWrapper: 'ModifyRedshiftIdcApplicationResult', ); return ModifyRedshiftIdcApplicationResult.fromXml($result); @@ -7495,16 +7765,19 @@ class Redshift { DateTime? startTime, ScheduledActionType? targetAction, }) async { - final $request = {}; - $request['ScheduledActionName'] = scheduledActionName; - enable?.also((arg) => $request['Enable'] = arg); - endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg)); - iamRole?.also((arg) => $request['IamRole'] = arg); - schedule?.also((arg) => $request['Schedule'] = arg); - scheduledActionDescription - ?.also((arg) => $request['ScheduledActionDescription'] = arg); - startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg)); - targetAction?.also((arg) => $request['TargetAction'] = arg); + final $request = { + 'ScheduledActionName': scheduledActionName, + if (enable != null) 'Enable': enable.toString(), + if (endTime != null) 'EndTime': _s.iso8601ToJson(endTime), + if (iamRole != null) 'IamRole': iamRole, + if (schedule != null) 'Schedule': schedule, + if (scheduledActionDescription != null) + 'ScheduledActionDescription': scheduledActionDescription, + if (startTime != null) 'StartTime': _s.iso8601ToJson(startTime), + if (targetAction != null) + for (var e1 in targetAction.toQueryMap().entries) + 'TargetAction.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'ModifyScheduledAction', @@ -7512,8 +7785,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyScheduledActionMessage'], - shapes: shapes, resultWrapper: 'ModifyScheduledActionResult', ); return ScheduledAction.fromXml($result); @@ -7577,10 +7848,11 @@ class Redshift { required int retentionPeriod, bool? manual, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['RetentionPeriod'] = retentionPeriod; - manual?.also((arg) => $request['Manual'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'RetentionPeriod': retentionPeriod.toString(), + if (manual != null) 'Manual': manual.toString(), + }; final $result = await _protocol.send( $request, action: 'ModifySnapshotCopyRetentionPeriod', @@ -7588,8 +7860,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifySnapshotCopyRetentionPeriodMessage'], - shapes: shapes, resultWrapper: 'ModifySnapshotCopyRetentionPeriodResult', ); return ModifySnapshotCopyRetentionPeriodResult.fromXml($result); @@ -7612,9 +7882,15 @@ class Redshift { required List scheduleDefinitions, required String scheduleIdentifier, }) async { - final $request = {}; - $request['ScheduleDefinitions'] = scheduleDefinitions; - $request['ScheduleIdentifier'] = scheduleIdentifier; + final $request = { + if (scheduleDefinitions.isEmpty) + 'ScheduleDefinitions': '' + else + for (var i1 = 0; i1 < scheduleDefinitions.length; i1++) + 'ScheduleDefinitions.ScheduleDefinition.${i1 + 1}': + scheduleDefinitions[i1], + 'ScheduleIdentifier': scheduleIdentifier, + }; final $result = await _protocol.send( $request, action: 'ModifySnapshotSchedule', @@ -7622,8 +7898,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifySnapshotScheduleMessage'], - shapes: shapes, resultWrapper: 'ModifySnapshotScheduleResult', ); return SnapshotSchedule.fromXml($result); @@ -7651,10 +7925,11 @@ class Redshift { int? amount, UsageLimitBreachAction? breachAction, }) async { - final $request = {}; - $request['UsageLimitId'] = usageLimitId; - amount?.also((arg) => $request['Amount'] = arg); - breachAction?.also((arg) => $request['BreachAction'] = arg.toValue()); + final $request = { + 'UsageLimitId': usageLimitId, + if (amount != null) 'Amount': amount.toString(), + if (breachAction != null) 'BreachAction': breachAction.toValue(), + }; final $result = await _protocol.send( $request, action: 'ModifyUsageLimit', @@ -7662,8 +7937,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ModifyUsageLimitMessage'], - shapes: shapes, resultWrapper: 'ModifyUsageLimitResult', ); return UsageLimit.fromXml($result); @@ -7680,8 +7953,9 @@ class Redshift { Future pauseCluster({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'PauseCluster', @@ -7689,8 +7963,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PauseClusterMessage'], - shapes: shapes, resultWrapper: 'PauseClusterResult', ); return PauseClusterResult.fromXml($result); @@ -7723,9 +7995,10 @@ class Redshift { required String reservedNodeOfferingId, int? nodeCount, }) async { - final $request = {}; - $request['ReservedNodeOfferingId'] = reservedNodeOfferingId; - nodeCount?.also((arg) => $request['NodeCount'] = arg); + final $request = { + 'ReservedNodeOfferingId': reservedNodeOfferingId, + if (nodeCount != null) 'NodeCount': nodeCount.toString(), + }; final $result = await _protocol.send( $request, action: 'PurchaseReservedNodeOffering', @@ -7733,8 +8006,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PurchaseReservedNodeOfferingMessage'], - shapes: shapes, resultWrapper: 'PurchaseReservedNodeOfferingResult', ); return PurchaseReservedNodeOfferingResult.fromXml($result); @@ -7757,9 +8028,10 @@ class Redshift { required String policy, required String resourceArn, }) async { - final $request = {}; - $request['Policy'] = policy; - $request['ResourceArn'] = resourceArn; + final $request = { + 'Policy': policy, + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'PutResourcePolicy', @@ -7767,8 +8039,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutResourcePolicyMessage'], - shapes: shapes, resultWrapper: 'PutResourcePolicyResult', ); return PutResourcePolicyResult.fromXml($result); @@ -7792,8 +8062,9 @@ class Redshift { Future rebootCluster({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RebootCluster', @@ -7801,8 +8072,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RebootClusterMessage'], - shapes: shapes, resultWrapper: 'RebootClusterResult', ); return RebootClusterResult.fromXml($result); @@ -7817,8 +8086,9 @@ class Redshift { Future rejectDataShare({ required String dataShareArn, }) async { - final $request = {}; - $request['DataShareArn'] = dataShareArn; + final $request = { + 'DataShareArn': dataShareArn, + }; final $result = await _protocol.send( $request, action: 'RejectDataShare', @@ -7826,8 +8096,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RejectDataShareMessage'], - shapes: shapes, resultWrapper: 'RejectDataShareResult', ); return DataShare.fromXml($result); @@ -7861,10 +8129,18 @@ class Redshift { List? parameters, bool? resetAllParameters, }) async { - final $request = {}; - $request['ParameterGroupName'] = parameterGroupName; - parameters?.also((arg) => $request['Parameters'] = arg); - resetAllParameters?.also((arg) => $request['ResetAllParameters'] = arg); + final $request = { + 'ParameterGroupName': parameterGroupName, + if (parameters != null) + if (parameters.isEmpty) + 'Parameters': '' + else + for (var i1 = 0; i1 < parameters.length; i1++) + for (var e3 in parameters[i1].toQueryMap().entries) + 'Parameters.Parameter.${i1 + 1}.${e3.key}': e3.value, + if (resetAllParameters != null) + 'ResetAllParameters': resetAllParameters.toString(), + }; final $result = await _protocol.send( $request, action: 'ResetClusterParameterGroup', @@ -7872,8 +8148,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResetClusterParameterGroupMessage'], - shapes: shapes, resultWrapper: 'ResetClusterParameterGroupResult', ); return ClusterParameterGroupNameMessage.fromXml($result); @@ -7974,15 +8248,16 @@ class Redshift { String? reservedNodeId, String? targetReservedNodeOfferingId, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - classic?.also((arg) => $request['Classic'] = arg); - clusterType?.also((arg) => $request['ClusterType'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); - targetReservedNodeOfferingId - ?.also((arg) => $request['TargetReservedNodeOfferingId'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (classic != null) 'Classic': classic.toString(), + if (clusterType != null) 'ClusterType': clusterType, + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + if (targetReservedNodeOfferingId != null) + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + }; final $result = await _protocol.send( $request, action: 'ResizeCluster', @@ -7990,8 +8265,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResizeClusterMessage'], - shapes: shapes, resultWrapper: 'ResizeClusterResult', ); return ResizeClusterResult.fromXml($result); @@ -8360,58 +8633,82 @@ class Redshift { String? targetReservedNodeOfferingId, List? vpcSecurityGroupIds, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - additionalInfo?.also((arg) => $request['AdditionalInfo'] = arg); - allowVersionUpgrade?.also((arg) => $request['AllowVersionUpgrade'] = arg); - aquaConfigurationStatus - ?.also((arg) => $request['AquaConfigurationStatus'] = arg.toValue()); - automatedSnapshotRetentionPeriod - ?.also((arg) => $request['AutomatedSnapshotRetentionPeriod'] = arg); - availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg); - availabilityZoneRelocation - ?.also((arg) => $request['AvailabilityZoneRelocation'] = arg); - clusterParameterGroupName - ?.also((arg) => $request['ClusterParameterGroupName'] = arg); - clusterSecurityGroups - ?.also((arg) => $request['ClusterSecurityGroups'] = arg); - clusterSubnetGroupName - ?.also((arg) => $request['ClusterSubnetGroupName'] = arg); - defaultIamRoleArn?.also((arg) => $request['DefaultIamRoleArn'] = arg); - elasticIp?.also((arg) => $request['ElasticIp'] = arg); - encrypted?.also((arg) => $request['Encrypted'] = arg); - enhancedVpcRouting?.also((arg) => $request['EnhancedVpcRouting'] = arg); - hsmClientCertificateIdentifier - ?.also((arg) => $request['HsmClientCertificateIdentifier'] = arg); - hsmConfigurationIdentifier - ?.also((arg) => $request['HsmConfigurationIdentifier'] = arg); - iamRoles?.also((arg) => $request['IamRoles'] = arg); - ipAddressType?.also((arg) => $request['IpAddressType'] = arg); - kmsKeyId?.also((arg) => $request['KmsKeyId'] = arg); - maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg); - manageMasterPassword?.also((arg) => $request['ManageMasterPassword'] = arg); - manualSnapshotRetentionPeriod - ?.also((arg) => $request['ManualSnapshotRetentionPeriod'] = arg); - masterPasswordSecretKmsKeyId - ?.also((arg) => $request['MasterPasswordSecretKmsKeyId'] = arg); - multiAZ?.also((arg) => $request['MultiAZ'] = arg); - nodeType?.also((arg) => $request['NodeType'] = arg); - numberOfNodes?.also((arg) => $request['NumberOfNodes'] = arg); - ownerAccount?.also((arg) => $request['OwnerAccount'] = arg); - port?.also((arg) => $request['Port'] = arg); - preferredMaintenanceWindow - ?.also((arg) => $request['PreferredMaintenanceWindow'] = arg); - publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg); - reservedNodeId?.also((arg) => $request['ReservedNodeId'] = arg); - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); - snapshotScheduleIdentifier - ?.also((arg) => $request['SnapshotScheduleIdentifier'] = arg); - targetReservedNodeOfferingId - ?.also((arg) => $request['TargetReservedNodeOfferingId'] = arg); - vpcSecurityGroupIds?.also((arg) => $request['VpcSecurityGroupIds'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + if (additionalInfo != null) 'AdditionalInfo': additionalInfo, + if (allowVersionUpgrade != null) + 'AllowVersionUpgrade': allowVersionUpgrade.toString(), + if (aquaConfigurationStatus != null) + 'AquaConfigurationStatus': aquaConfigurationStatus.toValue(), + if (automatedSnapshotRetentionPeriod != null) + 'AutomatedSnapshotRetentionPeriod': + automatedSnapshotRetentionPeriod.toString(), + if (availabilityZone != null) 'AvailabilityZone': availabilityZone, + if (availabilityZoneRelocation != null) + 'AvailabilityZoneRelocation': availabilityZoneRelocation.toString(), + if (clusterParameterGroupName != null) + 'ClusterParameterGroupName': clusterParameterGroupName, + if (clusterSecurityGroups != null) + if (clusterSecurityGroups.isEmpty) + 'ClusterSecurityGroups': '' + else + for (var i1 = 0; i1 < clusterSecurityGroups.length; i1++) + 'ClusterSecurityGroups.ClusterSecurityGroupName.${i1 + 1}': + clusterSecurityGroups[i1], + if (clusterSubnetGroupName != null) + 'ClusterSubnetGroupName': clusterSubnetGroupName, + if (defaultIamRoleArn != null) 'DefaultIamRoleArn': defaultIamRoleArn, + if (elasticIp != null) 'ElasticIp': elasticIp, + if (encrypted != null) 'Encrypted': encrypted.toString(), + if (enhancedVpcRouting != null) + 'EnhancedVpcRouting': enhancedVpcRouting.toString(), + if (hsmClientCertificateIdentifier != null) + 'HsmClientCertificateIdentifier': hsmClientCertificateIdentifier, + if (hsmConfigurationIdentifier != null) + 'HsmConfigurationIdentifier': hsmConfigurationIdentifier, + if (iamRoles != null) + if (iamRoles.isEmpty) + 'IamRoles': '' + else + for (var i1 = 0; i1 < iamRoles.length; i1++) + 'IamRoles.IamRoleArn.${i1 + 1}': iamRoles[i1], + if (ipAddressType != null) 'IpAddressType': ipAddressType, + if (kmsKeyId != null) 'KmsKeyId': kmsKeyId, + if (maintenanceTrackName != null) + 'MaintenanceTrackName': maintenanceTrackName, + if (manageMasterPassword != null) + 'ManageMasterPassword': manageMasterPassword.toString(), + if (manualSnapshotRetentionPeriod != null) + 'ManualSnapshotRetentionPeriod': + manualSnapshotRetentionPeriod.toString(), + if (masterPasswordSecretKmsKeyId != null) + 'MasterPasswordSecretKmsKeyId': masterPasswordSecretKmsKeyId, + if (multiAZ != null) 'MultiAZ': multiAZ.toString(), + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (ownerAccount != null) 'OwnerAccount': ownerAccount, + if (port != null) 'Port': port.toString(), + if (preferredMaintenanceWindow != null) + 'PreferredMaintenanceWindow': preferredMaintenanceWindow, + if (publiclyAccessible != null) + 'PubliclyAccessible': publiclyAccessible.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotScheduleIdentifier != null) + 'SnapshotScheduleIdentifier': snapshotScheduleIdentifier, + if (targetReservedNodeOfferingId != null) + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + if (vpcSecurityGroupIds != null) + if (vpcSecurityGroupIds.isEmpty) + 'VpcSecurityGroupIds': '' + else + for (var i1 = 0; i1 < vpcSecurityGroupIds.length; i1++) + 'VpcSecurityGroupIds.VpcSecurityGroupId.${i1 + 1}': + vpcSecurityGroupIds[i1], + }; final $result = await _protocol.send( $request, action: 'RestoreFromClusterSnapshot', @@ -8419,8 +8716,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreFromClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreFromClusterSnapshotResult', ); return RestoreFromClusterSnapshotResult.fromXml($result); @@ -8497,17 +8792,19 @@ class Redshift { String? targetDatabaseName, String? targetSchemaName, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['NewTableName'] = newTableName; - $request['SnapshotIdentifier'] = snapshotIdentifier; - $request['SourceDatabaseName'] = sourceDatabaseName; - $request['SourceTableName'] = sourceTableName; - enableCaseSensitiveIdentifier - ?.also((arg) => $request['EnableCaseSensitiveIdentifier'] = arg); - sourceSchemaName?.also((arg) => $request['SourceSchemaName'] = arg); - targetDatabaseName?.also((arg) => $request['TargetDatabaseName'] = arg); - targetSchemaName?.also((arg) => $request['TargetSchemaName'] = arg); + final $request = { + 'ClusterIdentifier': clusterIdentifier, + 'NewTableName': newTableName, + 'SnapshotIdentifier': snapshotIdentifier, + 'SourceDatabaseName': sourceDatabaseName, + 'SourceTableName': sourceTableName, + if (enableCaseSensitiveIdentifier != null) + 'EnableCaseSensitiveIdentifier': + enableCaseSensitiveIdentifier.toString(), + if (sourceSchemaName != null) 'SourceSchemaName': sourceSchemaName, + if (targetDatabaseName != null) 'TargetDatabaseName': targetDatabaseName, + if (targetSchemaName != null) 'TargetSchemaName': targetSchemaName, + }; final $result = await _protocol.send( $request, action: 'RestoreTableFromClusterSnapshot', @@ -8515,8 +8812,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RestoreTableFromClusterSnapshotMessage'], - shapes: shapes, resultWrapper: 'RestoreTableFromClusterSnapshotResult', ); return RestoreTableFromClusterSnapshotResult.fromXml($result); @@ -8534,8 +8829,9 @@ class Redshift { Future resumeCluster({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'ResumeCluster', @@ -8543,8 +8839,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ResumeClusterMessage'], - shapes: shapes, resultWrapper: 'ResumeClusterResult', ); return ResumeClusterResult.fromXml($result); @@ -8593,12 +8887,14 @@ class Redshift { String? eC2SecurityGroupName, String? eC2SecurityGroupOwnerId, }) async { - final $request = {}; - $request['ClusterSecurityGroupName'] = clusterSecurityGroupName; - cidrip?.also((arg) => $request['CIDRIP'] = arg); - eC2SecurityGroupName?.also((arg) => $request['EC2SecurityGroupName'] = arg); - eC2SecurityGroupOwnerId - ?.also((arg) => $request['EC2SecurityGroupOwnerId'] = arg); + final $request = { + 'ClusterSecurityGroupName': clusterSecurityGroupName, + if (cidrip != null) 'CIDRIP': cidrip, + if (eC2SecurityGroupName != null) + 'EC2SecurityGroupName': eC2SecurityGroupName, + if (eC2SecurityGroupOwnerId != null) + 'EC2SecurityGroupOwnerId': eC2SecurityGroupOwnerId, + }; final $result = await _protocol.send( $request, action: 'RevokeClusterSecurityGroupIngress', @@ -8606,8 +8902,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeClusterSecurityGroupIngressMessage'], - shapes: shapes, resultWrapper: 'RevokeClusterSecurityGroupIngressResult', ); return RevokeClusterSecurityGroupIngressResult.fromXml($result); @@ -8643,11 +8937,17 @@ class Redshift { bool? force, List? vpcIds, }) async { - final $request = {}; - account?.also((arg) => $request['Account'] = arg); - clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg); - force?.also((arg) => $request['Force'] = arg); - vpcIds?.also((arg) => $request['VpcIds'] = arg); + final $request = { + if (account != null) 'Account': account, + if (clusterIdentifier != null) 'ClusterIdentifier': clusterIdentifier, + if (force != null) 'Force': force.toString(), + if (vpcIds != null) + if (vpcIds.isEmpty) + 'VpcIds': '' + else + for (var i1 = 0; i1 < vpcIds.length; i1++) + 'VpcIds.VpcIdentifier.${i1 + 1}': vpcIds[i1], + }; final $result = await _protocol.send( $request, action: 'RevokeEndpointAccess', @@ -8655,8 +8955,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeEndpointAccessMessage'], - shapes: shapes, resultWrapper: 'RevokeEndpointAccessResult', ); return EndpointAuthorization.fromXml($result); @@ -8698,12 +8996,13 @@ class Redshift { String? snapshotClusterIdentifier, String? snapshotIdentifier, }) async { - final $request = {}; - $request['AccountWithRestoreAccess'] = accountWithRestoreAccess; - snapshotArn?.also((arg) => $request['SnapshotArn'] = arg); - snapshotClusterIdentifier - ?.also((arg) => $request['SnapshotClusterIdentifier'] = arg); - snapshotIdentifier?.also((arg) => $request['SnapshotIdentifier'] = arg); + final $request = { + 'AccountWithRestoreAccess': accountWithRestoreAccess, + if (snapshotArn != null) 'SnapshotArn': snapshotArn, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + if (snapshotIdentifier != null) 'SnapshotIdentifier': snapshotIdentifier, + }; final $result = await _protocol.send( $request, action: 'RevokeSnapshotAccess', @@ -8711,8 +9010,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RevokeSnapshotAccessMessage'], - shapes: shapes, resultWrapper: 'RevokeSnapshotAccessResult', ); return RevokeSnapshotAccessResult.fromXml($result); @@ -8734,8 +9031,9 @@ class Redshift { Future rotateEncryptionKey({ required String clusterIdentifier, }) async { - final $request = {}; - $request['ClusterIdentifier'] = clusterIdentifier; + final $request = { + 'ClusterIdentifier': clusterIdentifier, + }; final $result = await _protocol.send( $request, action: 'RotateEncryptionKey', @@ -8743,8 +9041,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RotateEncryptionKeyMessage'], - shapes: shapes, resultWrapper: 'RotateEncryptionKeyResult', ); return RotateEncryptionKeyResult.fromXml($result); @@ -8784,13 +9080,14 @@ class Redshift { required PartnerIntegrationStatus status, String? statusMessage, }) async { - final $request = {}; - $request['AccountId'] = accountId; - $request['ClusterIdentifier'] = clusterIdentifier; - $request['DatabaseName'] = databaseName; - $request['PartnerName'] = partnerName; - $request['Status'] = status.toValue(); - statusMessage?.also((arg) => $request['StatusMessage'] = arg); + final $request = { + 'AccountId': accountId, + 'ClusterIdentifier': clusterIdentifier, + 'DatabaseName': databaseName, + 'PartnerName': partnerName, + 'Status': status.toValue(), + if (statusMessage != null) 'StatusMessage': statusMessage, + }; final $result = await _protocol.send( $request, action: 'UpdatePartnerStatus', @@ -8798,8 +9095,6 @@ class Redshift { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdatePartnerStatusInputMessage'], - shapes: shapes, resultWrapper: 'UpdatePartnerStatusResult', ); return PartnerIntegrationOutputMessage.fromXml($result); @@ -9175,6 +9470,22 @@ class AuthorizedTokenIssuer { 'TrustedTokenIssuerArn': trustedTokenIssuerArn, }; } + + Map toQueryMap() { + final authorizedAudiencesList = this.authorizedAudiencesList; + final trustedTokenIssuerArn = this.trustedTokenIssuerArn; + return { + if (authorizedAudiencesList != null) + if (authorizedAudiencesList.isEmpty) + 'AuthorizedAudiencesList': '' + else + for (var i1 = 0; i1 < authorizedAudiencesList.length; i1++) + 'AuthorizedAudiencesList.member.${i1 + 1}': + authorizedAudiencesList[i1], + if (trustedTokenIssuerArn != null) + 'TrustedTokenIssuerArn': trustedTokenIssuerArn, + }; + } } /// Describes an availability zone. @@ -11159,6 +11470,16 @@ class DeleteClusterSnapshotMessage { 'SnapshotClusterIdentifier': snapshotClusterIdentifier, }; } + + Map toQueryMap() { + final snapshotIdentifier = this.snapshotIdentifier; + final snapshotClusterIdentifier = this.snapshotClusterIdentifier; + return { + 'SnapshotIdentifier': snapshotIdentifier, + if (snapshotClusterIdentifier != null) + 'SnapshotClusterIdentifier': snapshotClusterIdentifier, + }; + } } class DeleteClusterSnapshotResult { @@ -12379,6 +12700,13 @@ class LakeFormationQuery { 'Authorization': authorization.toValue(), }; } + + Map toQueryMap() { + final authorization = this.authorization; + return { + 'Authorization': authorization.toValue(), + }; + } } /// A list of scopes set up for Lake Formation integration. @@ -12403,6 +12731,15 @@ class LakeFormationScopeUnion { if (lakeFormationQuery != null) 'LakeFormationQuery': lakeFormationQuery, }; } + + Map toQueryMap() { + final lakeFormationQuery = this.lakeFormationQuery; + return { + if (lakeFormationQuery != null) + for (var e1 in lakeFormationQuery.toQueryMap().entries) + 'LakeFormationQuery.${e1.key}': e1.value, + }; + } } class ListRecommendationsResult { @@ -12875,6 +13212,22 @@ class NodeConfigurationOptionsFilter { if (values != null) 'Value': values, }; } + + Map toQueryMap() { + final name = this.name; + final operator = this.operator; + final values = this.values; + return { + if (name != null) 'Name': name.toValue(), + if (operator != null) 'Operator': operator.toValue(), + if (values != null) + if (values.isEmpty) + 'Value': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'Value.item.${i1 + 1}': values[i1], + }; + } } enum NodeConfigurationOptionsFilterName { @@ -13153,6 +13506,30 @@ class Parameter { if (source != null) 'Source': source, }; } + + Map toQueryMap() { + final allowedValues = this.allowedValues; + final applyType = this.applyType; + final dataType = this.dataType; + final description = this.description; + final isModifiable = this.isModifiable; + final minimumEngineVersion = this.minimumEngineVersion; + final parameterName = this.parameterName; + final parameterValue = this.parameterValue; + final source = this.source; + return { + if (allowedValues != null) 'AllowedValues': allowedValues, + if (applyType != null) 'ApplyType': applyType.toValue(), + if (dataType != null) 'DataType': dataType, + if (description != null) 'Description': description, + if (isModifiable != null) 'IsModifiable': isModifiable.toString(), + if (minimumEngineVersion != null) + 'MinimumEngineVersion': minimumEngineVersion, + if (parameterName != null) 'ParameterName': parameterName, + if (parameterValue != null) 'ParameterValue': parameterValue, + if (source != null) 'Source': source, + }; + } } enum ParameterApplyType { @@ -13304,6 +13681,13 @@ class PauseClusterMessage { 'ClusterIdentifier': clusterIdentifier, }; } + + Map toQueryMap() { + final clusterIdentifier = this.clusterIdentifier; + return { + 'ClusterIdentifier': clusterIdentifier, + }; + } } class PauseClusterResult { @@ -14212,6 +14596,26 @@ class ResizeClusterMessage { 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, }; } + + Map toQueryMap() { + final clusterIdentifier = this.clusterIdentifier; + final classic = this.classic; + final clusterType = this.clusterType; + final nodeType = this.nodeType; + final numberOfNodes = this.numberOfNodes; + final reservedNodeId = this.reservedNodeId; + final targetReservedNodeOfferingId = this.targetReservedNodeOfferingId; + return { + 'ClusterIdentifier': clusterIdentifier, + if (classic != null) 'Classic': classic.toString(), + if (clusterType != null) 'ClusterType': clusterType, + if (nodeType != null) 'NodeType': nodeType, + if (numberOfNodes != null) 'NumberOfNodes': numberOfNodes.toString(), + if (reservedNodeId != null) 'ReservedNodeId': reservedNodeId, + if (targetReservedNodeOfferingId != null) + 'TargetReservedNodeOfferingId': targetReservedNodeOfferingId, + }; + } } class ResizeClusterResult { @@ -14500,6 +14904,13 @@ class ResumeClusterMessage { 'ClusterIdentifier': clusterIdentifier, }; } + + Map toQueryMap() { + final clusterIdentifier = this.clusterIdentifier; + return { + 'ClusterIdentifier': clusterIdentifier, + }; + } } class ResumeClusterResult { @@ -14725,6 +15136,19 @@ class ScheduledActionFilter { 'Values': values, }; } + + Map toQueryMap() { + final name = this.name; + final values = this.values; + return { + 'Name': name.toValue(), + if (values.isEmpty) + 'item': '' + else + for (var i1 = 0; i1 < values.length; i1++) + 'item.item.${i1 + 1}': values[i1], + }; + } } enum ScheduledActionFilterName { @@ -14824,6 +15248,23 @@ class ScheduledActionType { if (resumeCluster != null) 'ResumeCluster': resumeCluster, }; } + + Map toQueryMap() { + final pauseCluster = this.pauseCluster; + final resizeCluster = this.resizeCluster; + final resumeCluster = this.resumeCluster; + return { + if (pauseCluster != null) + for (var e1 in pauseCluster.toQueryMap().entries) + 'PauseCluster.${e1.key}': e1.value, + if (resizeCluster != null) + for (var e1 in resizeCluster.toQueryMap().entries) + 'ResizeCluster.${e1.key}': e1.value, + if (resumeCluster != null) + for (var e1 in resumeCluster.toQueryMap().entries) + 'ResumeCluster.${e1.key}': e1.value, + }; + } } enum ScheduledActionTypeValues { @@ -14962,6 +15403,19 @@ class ServiceIntegrationsUnion { if (lakeFormation != null) 'LakeFormation': lakeFormation, }; } + + Map toQueryMap() { + final lakeFormation = this.lakeFormation; + return { + if (lakeFormation != null) + if (lakeFormation.isEmpty) + 'LakeFormation': '' + else + for (var i1 = 0; i1 < lakeFormation.length; i1++) + for (var e3 in lakeFormation[i1].toQueryMap().entries) + 'LakeFormation.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Describes a snapshot. @@ -15460,6 +15914,15 @@ class SnapshotSortingEntity { if (sortOrder != null) 'SortOrder': sortOrder.toValue(), }; } + + Map toQueryMap() { + final attribute = this.attribute; + final sortOrder = this.sortOrder; + return { + 'Attribute': attribute.toValue(), + if (sortOrder != null) 'SortOrder': sortOrder.toValue(), + }; + } } enum SortByOrder { @@ -15775,6 +16238,15 @@ class Tag { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + if (key != null) 'Key': key, + if (value != null) 'Value': value, + }; + } } /// A tag and its associated resource. diff --git a/generated/aws_sdb_api/lib/sdb-2009-04-15.dart b/generated/aws_sdb_api/lib/sdb-2009-04-15.dart index bb3fb882e..3c399ae05 100644 --- a/generated/aws_sdb_api/lib/sdb-2009-04-15.dart +++ b/generated/aws_sdb_api/lib/sdb-2009-04-15.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'sdb-2009-04-15.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon SimpleDB is a web service providing the core database functions of @@ -39,7 +38,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// for more information. class SimpleDB { final _s.QueryProtocol _protocol; - final Map shapes; SimpleDB({ required String region, @@ -47,7 +45,7 @@ class SimpleDB { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'sdb', @@ -56,9 +54,7 @@ class SimpleDB { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -106,9 +102,15 @@ class SimpleDB { required String domainName, required List items, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Items'] = items; + final $request = { + 'DomainName': domainName, + if (items.isEmpty) + 'Items': '' + else + for (var i1 = 0; i1 < items.length; i1++) + for (var e2 in items[i1].toQueryMap().entries) + 'Item.${i1 + 1}.${e2.key}': e2.value, + }; await _protocol.send( $request, action: 'BatchDeleteAttributes', @@ -116,8 +118,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchDeleteAttributesRequest'], - shapes: shapes, ); } @@ -194,9 +194,15 @@ class SimpleDB { required String domainName, required List items, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['Items'] = items; + final $request = { + 'DomainName': domainName, + if (items.isEmpty) + 'Items': '' + else + for (var i1 = 0; i1 < items.length; i1++) + for (var e2 in items[i1].toQueryMap().entries) + 'Item.${i1 + 1}.${e2.key}': e2.value, + }; await _protocol.send( $request, action: 'BatchPutAttributes', @@ -204,8 +210,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['BatchPutAttributesRequest'], - shapes: shapes, ); } @@ -232,8 +236,9 @@ class SimpleDB { Future createDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; await _protocol.send( $request, action: 'CreateDomain', @@ -241,8 +246,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateDomainRequest'], - shapes: shapes, ); } @@ -288,11 +291,20 @@ class SimpleDB { List? attributes, UpdateCondition? expected, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ItemName'] = itemName; - attributes?.also((arg) => $request['Attributes'] = arg); - expected?.also((arg) => $request['Expected'] = arg); + final $request = { + 'DomainName': domainName, + 'ItemName': itemName, + if (attributes != null) + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + if (expected != null) + for (var e1 in expected.toQueryMap().entries) + 'Expected.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'DeleteAttributes', @@ -300,8 +312,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteAttributesRequest'], - shapes: shapes, ); } @@ -320,8 +330,9 @@ class SimpleDB { Future deleteDomain({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; await _protocol.send( $request, action: 'DeleteDomain', @@ -329,8 +340,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteDomainRequest'], - shapes: shapes, ); } @@ -346,8 +355,9 @@ class SimpleDB { Future domainMetadata({ required String domainName, }) async { - final $request = {}; - $request['DomainName'] = domainName; + final $request = { + 'DomainName': domainName, + }; final $result = await _protocol.send( $request, action: 'DomainMetadata', @@ -355,8 +365,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DomainMetadataRequest'], - shapes: shapes, resultWrapper: 'DomainMetadataResult', ); return DomainMetadataResult.fromXml($result); @@ -397,11 +405,17 @@ class SimpleDB { List? attributeNames, bool? consistentRead, }) async { - final $request = {}; - $request['DomainName'] = domainName; - $request['ItemName'] = itemName; - attributeNames?.also((arg) => $request['AttributeNames'] = arg); - consistentRead?.also((arg) => $request['ConsistentRead'] = arg); + final $request = { + 'DomainName': domainName, + 'ItemName': itemName, + if (attributeNames != null) + if (attributeNames.isEmpty) + 'AttributeNames': '' + else + for (var i1 = 0; i1 < attributeNames.length; i1++) + 'AttributeName.${i1 + 1}': attributeNames[i1], + if (consistentRead != null) 'ConsistentRead': consistentRead.toString(), + }; final $result = await _protocol.send( $request, action: 'GetAttributes', @@ -409,8 +423,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAttributesRequest'], - shapes: shapes, resultWrapper: 'GetAttributesResult', ); return GetAttributesResult.fromXml($result); @@ -439,9 +451,11 @@ class SimpleDB { int? maxNumberOfDomains, String? nextToken, }) async { - final $request = {}; - maxNumberOfDomains?.also((arg) => $request['MaxNumberOfDomains'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxNumberOfDomains != null) + 'MaxNumberOfDomains': maxNumberOfDomains.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListDomains', @@ -449,8 +463,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListDomainsRequest'], - shapes: shapes, resultWrapper: 'ListDomainsResult', ); return ListDomainsResult.fromXml($result); @@ -526,11 +538,19 @@ class SimpleDB { required String itemName, UpdateCondition? expected, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['DomainName'] = domainName; - $request['ItemName'] = itemName; - expected?.also((arg) => $request['Expected'] = arg); + final $request = { + if (attributes.isEmpty) + 'Attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + 'DomainName': domainName, + 'ItemName': itemName, + if (expected != null) + for (var e1 in expected.toQueryMap().entries) + 'Expected.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'PutAttributes', @@ -538,8 +558,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutAttributesRequest'], - shapes: shapes, ); } @@ -585,10 +603,11 @@ class SimpleDB { bool? consistentRead, String? nextToken, }) async { - final $request = {}; - $request['SelectExpression'] = selectExpression; - consistentRead?.also((arg) => $request['ConsistentRead'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'SelectExpression': selectExpression, + if (consistentRead != null) 'ConsistentRead': consistentRead.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'Select', @@ -596,8 +615,6 @@ class SimpleDB { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SelectRequest'], - shapes: shapes, resultWrapper: 'SelectResult', ); return SelectResult.fromXml($result); @@ -671,6 +688,15 @@ class DeletableAttribute { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + if (value != null) 'Value': value, + }; + } } class DeletableItem { @@ -690,6 +716,21 @@ class DeletableItem { if (attributes != null) 'Attributes': attributes, }; } + + Map toQueryMap() { + final name = this.name; + final attributes = this.attributes; + return { + 'ItemName': name, + if (attributes != null) + if (attributes.isEmpty) + 'Attribute': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + }; + } } class DomainMetadataResult { @@ -1024,6 +1065,17 @@ class ReplaceableAttribute { if (replace != null) 'Replace': replace, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + final replace = this.replace; + return { + 'Name': name, + 'Value': value, + if (replace != null) 'Replace': replace.toString(), + }; + } } /// @@ -1047,6 +1099,20 @@ class ReplaceableItem { 'ItemName': name, }; } + + Map toQueryMap() { + final attributes = this.attributes; + final name = this.name; + return { + if (attributes.isEmpty) + 'Attribute': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + for (var e2 in attributes[i1].toQueryMap().entries) + 'Attribute.${i1 + 1}.${e2.key}': e2.value, + 'ItemName': name, + }; + } } /// A timeout occurred when attempting to query the specified domain with @@ -1134,6 +1200,17 @@ class UpdateCondition { if (value != null) 'Value': value, }; } + + Map toQueryMap() { + final exists = this.exists; + final name = this.name; + final value = this.value; + return { + if (exists != null) 'Exists': exists.toString(), + if (name != null) 'Name': name, + if (value != null) 'Value': value, + }; + } } final _exceptionFns = { diff --git a/generated/aws_ses_api/lib/email-2010-12-01.dart b/generated/aws_ses_api/lib/email-2010-12-01.dart index b0c2f178d..02378ef97 100644 --- a/generated/aws_ses_api/lib/email-2010-12-01.dart +++ b/generated/aws_ses_api/lib/email-2010-12-01.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'email-2010-12-01.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// This document contains reference information for the shapes; SES({ required String region, @@ -44,7 +42,7 @@ class SES { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'email', @@ -54,9 +52,7 @@ class SES { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -104,9 +100,10 @@ class SES { required String originalRuleSetName, required String ruleSetName, }) async { - final $request = {}; - $request['OriginalRuleSetName'] = originalRuleSetName; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'OriginalRuleSetName': originalRuleSetName, + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'CloneReceiptRuleSet', @@ -114,8 +111,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CloneReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'CloneReceiptRuleSetResult', ); } @@ -138,8 +133,10 @@ class SES { Future createConfigurationSet({ required ConfigurationSet configurationSet, }) async { - final $request = {}; - $request['ConfigurationSet'] = configurationSet; + final $request = { + for (var e1 in configurationSet.toQueryMap().entries) + 'ConfigurationSet.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateConfigurationSet', @@ -147,8 +144,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationSetRequest'], - shapes: shapes, resultWrapper: 'CreateConfigurationSetResult', ); } @@ -185,9 +180,11 @@ class SES { required String configurationSetName, required EventDestination eventDestination, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['EventDestination'] = eventDestination; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in eventDestination.toQueryMap().entries) + 'EventDestination.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateConfigurationSetEventDestination', @@ -195,8 +192,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationSetEventDestinationRequest'], - shapes: shapes, resultWrapper: 'CreateConfigurationSetEventDestinationResult', ); } @@ -222,9 +217,11 @@ class SES { required String configurationSetName, required TrackingOptions trackingOptions, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['TrackingOptions'] = trackingOptions; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in trackingOptions.toQueryMap().entries) + 'TrackingOptions.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateConfigurationSetTrackingOptions', @@ -232,8 +229,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateConfigurationSetTrackingOptionsRequest'], - shapes: shapes, resultWrapper: 'CreateConfigurationSetTrackingOptionsResult', ); } @@ -284,13 +279,14 @@ class SES { required String templateName, required String templateSubject, }) async { - final $request = {}; - $request['FailureRedirectionURL'] = failureRedirectionURL; - $request['FromEmailAddress'] = fromEmailAddress; - $request['SuccessRedirectionURL'] = successRedirectionURL; - $request['TemplateContent'] = templateContent; - $request['TemplateName'] = templateName; - $request['TemplateSubject'] = templateSubject; + final $request = { + 'FailureRedirectionURL': failureRedirectionURL, + 'FromEmailAddress': fromEmailAddress, + 'SuccessRedirectionURL': successRedirectionURL, + 'TemplateContent': templateContent, + 'TemplateName': templateName, + 'TemplateSubject': templateSubject, + }; await _protocol.send( $request, action: 'CreateCustomVerificationEmailTemplate', @@ -298,8 +294,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateCustomVerificationEmailTemplateRequest'], - shapes: shapes, ); } @@ -321,8 +315,9 @@ class SES { Future createReceiptFilter({ required ReceiptFilter filter, }) async { - final $request = {}; - $request['Filter'] = filter; + final $request = { + for (var e1 in filter.toQueryMap().entries) 'Filter.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateReceiptFilter', @@ -330,8 +325,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReceiptFilterRequest'], - shapes: shapes, resultWrapper: 'CreateReceiptFilterResult', ); } @@ -368,10 +361,11 @@ class SES { required String ruleSetName, String? after, }) async { - final $request = {}; - $request['Rule'] = rule; - $request['RuleSetName'] = ruleSetName; - after?.also((arg) => $request['After'] = arg); + final $request = { + for (var e1 in rule.toQueryMap().entries) 'Rule.${e1.key}': e1.value, + 'RuleSetName': ruleSetName, + if (after != null) 'After': after, + }; await _protocol.send( $request, action: 'CreateReceiptRule', @@ -379,8 +373,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'CreateReceiptRuleResult', ); } @@ -415,8 +407,9 @@ class SES { Future createReceiptRuleSet({ required String ruleSetName, }) async { - final $request = {}; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'CreateReceiptRuleSet', @@ -424,8 +417,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'CreateReceiptRuleSetResult', ); } @@ -448,8 +439,10 @@ class SES { Future createTemplate({ required Template template, }) async { - final $request = {}; - $request['Template'] = template; + final $request = { + for (var e1 in template.toQueryMap().entries) + 'Template.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'CreateTemplate', @@ -457,8 +450,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTemplateRequest'], - shapes: shapes, resultWrapper: 'CreateTemplateResult', ); } @@ -478,8 +469,9 @@ class SES { Future deleteConfigurationSet({ required String configurationSetName, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; + final $request = { + 'ConfigurationSetName': configurationSetName, + }; await _protocol.send( $request, action: 'DeleteConfigurationSet', @@ -487,8 +479,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationSetRequest'], - shapes: shapes, resultWrapper: 'DeleteConfigurationSetResult', ); } @@ -515,9 +505,10 @@ class SES { required String configurationSetName, required String eventDestinationName, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['EventDestinationName'] = eventDestinationName; + final $request = { + 'ConfigurationSetName': configurationSetName, + 'EventDestinationName': eventDestinationName, + }; await _protocol.send( $request, action: 'DeleteConfigurationSetEventDestination', @@ -525,8 +516,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationSetEventDestinationRequest'], - shapes: shapes, resultWrapper: 'DeleteConfigurationSetEventDestinationResult', ); } @@ -554,8 +543,9 @@ class SES { Future deleteConfigurationSetTrackingOptions({ required String configurationSetName, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; + final $request = { + 'ConfigurationSetName': configurationSetName, + }; await _protocol.send( $request, action: 'DeleteConfigurationSetTrackingOptions', @@ -563,8 +553,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteConfigurationSetTrackingOptionsRequest'], - shapes: shapes, resultWrapper: 'DeleteConfigurationSetTrackingOptionsResult', ); } @@ -583,8 +571,9 @@ class SES { Future deleteCustomVerificationEmailTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; await _protocol.send( $request, action: 'DeleteCustomVerificationEmailTemplate', @@ -592,8 +581,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteCustomVerificationEmailTemplateRequest'], - shapes: shapes, ); } @@ -608,8 +595,9 @@ class SES { Future deleteIdentity({ required String identity, }) async { - final $request = {}; - $request['Identity'] = identity; + final $request = { + 'Identity': identity, + }; await _protocol.send( $request, action: 'DeleteIdentity', @@ -617,8 +605,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIdentityRequest'], - shapes: shapes, resultWrapper: 'DeleteIdentityResult', ); } @@ -652,9 +638,10 @@ class SES { required String identity, required String policyName, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['PolicyName'] = policyName; + final $request = { + 'Identity': identity, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'DeleteIdentityPolicy', @@ -662,8 +649,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteIdentityPolicyRequest'], - shapes: shapes, resultWrapper: 'DeleteIdentityPolicyResult', ); } @@ -681,8 +666,9 @@ class SES { Future deleteReceiptFilter({ required String filterName, }) async { - final $request = {}; - $request['FilterName'] = filterName; + final $request = { + 'FilterName': filterName, + }; await _protocol.send( $request, action: 'DeleteReceiptFilter', @@ -690,8 +676,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReceiptFilterRequest'], - shapes: shapes, resultWrapper: 'DeleteReceiptFilterResult', ); } @@ -715,9 +699,10 @@ class SES { required String ruleName, required String ruleSetName, }) async { - final $request = {}; - $request['RuleName'] = ruleName; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleName': ruleName, + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'DeleteReceiptRule', @@ -725,8 +710,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'DeleteReceiptRuleResult', ); } @@ -749,8 +732,9 @@ class SES { Future deleteReceiptRuleSet({ required String ruleSetName, }) async { - final $request = {}; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'DeleteReceiptRuleSet', @@ -758,8 +742,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'DeleteReceiptRuleSetResult', ); } @@ -773,8 +755,9 @@ class SES { Future deleteTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; await _protocol.send( $request, action: 'DeleteTemplate', @@ -782,8 +765,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTemplateRequest'], - shapes: shapes, resultWrapper: 'DeleteTemplateResult', ); } @@ -796,8 +777,9 @@ class SES { Future deleteVerifiedEmailAddress({ required String emailAddress, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; + final $request = { + 'EmailAddress': emailAddress, + }; await _protocol.send( $request, action: 'DeleteVerifiedEmailAddress', @@ -805,8 +787,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteVerifiedEmailAddressRequest'], - shapes: shapes, ); } @@ -820,7 +800,7 @@ class SES { /// You can execute this operation no more than once per second. Future describeActiveReceiptRuleSet() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'DescribeActiveReceiptRuleSet', @@ -828,8 +808,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeActiveReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'DescribeActiveReceiptRuleSetResult', ); return DescribeActiveReceiptRuleSetResponse.fromXml($result); @@ -853,11 +831,16 @@ class SES { required String configurationSetName, List? configurationSetAttributeNames, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - configurationSetAttributeNames?.also((arg) => - $request['ConfigurationSetAttributeNames'] = - arg.map((e) => e.toValue()).toList()); + final $request = { + 'ConfigurationSetName': configurationSetName, + if (configurationSetAttributeNames != null) + if (configurationSetAttributeNames.isEmpty) + 'ConfigurationSetAttributeNames': '' + else + for (var i1 = 0; i1 < configurationSetAttributeNames.length; i1++) + 'ConfigurationSetAttributeNames.member.${i1 + 1}': + configurationSetAttributeNames[i1].toValue(), + }; final $result = await _protocol.send( $request, action: 'DescribeConfigurationSet', @@ -865,8 +848,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeConfigurationSetRequest'], - shapes: shapes, resultWrapper: 'DescribeConfigurationSetResult', ); return DescribeConfigurationSetResponse.fromXml($result); @@ -892,9 +873,10 @@ class SES { required String ruleName, required String ruleSetName, }) async { - final $request = {}; - $request['RuleName'] = ruleName; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleName': ruleName, + 'RuleSetName': ruleSetName, + }; final $result = await _protocol.send( $request, action: 'DescribeReceiptRule', @@ -902,8 +884,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'DescribeReceiptRuleResult', ); return DescribeReceiptRuleResponse.fromXml($result); @@ -924,8 +904,9 @@ class SES { Future describeReceiptRuleSet({ required String ruleSetName, }) async { - final $request = {}; - $request['RuleSetName'] = ruleSetName; + final $request = { + 'RuleSetName': ruleSetName, + }; final $result = await _protocol.send( $request, action: 'DescribeReceiptRuleSet', @@ -933,8 +914,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DescribeReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'DescribeReceiptRuleSetResult', ); return DescribeReceiptRuleSetResponse.fromXml($result); @@ -945,7 +924,7 @@ class SES { /// /// You can execute this operation no more than once per second. Future getAccountSendingEnabled() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetAccountSendingEnabled', @@ -953,7 +932,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetAccountSendingEnabledResult', ); return GetAccountSendingEnabledResponse.fromXml($result); @@ -977,8 +955,9 @@ class SES { getCustomVerificationEmailTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'GetCustomVerificationEmailTemplate', @@ -986,8 +965,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetCustomVerificationEmailTemplateRequest'], - shapes: shapes, resultWrapper: 'GetCustomVerificationEmailTemplateResult', ); return GetCustomVerificationEmailTemplateResponse.fromXml($result); @@ -1029,8 +1006,13 @@ class SES { Future getIdentityDkimAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityDkimAttributes', @@ -1038,8 +1020,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityDkimAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityDkimAttributesResult', ); return GetIdentityDkimAttributesResponse.fromXml($result); @@ -1057,8 +1037,13 @@ class SES { getIdentityMailFromDomainAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityMailFromDomainAttributes', @@ -1066,8 +1051,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityMailFromDomainAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityMailFromDomainAttributesResult', ); return GetIdentityMailFromDomainAttributesResponse.fromXml($result); @@ -1092,8 +1075,13 @@ class SES { getIdentityNotificationAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityNotificationAttributes', @@ -1101,8 +1089,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityNotificationAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityNotificationAttributesResult', ); return GetIdentityNotificationAttributesResponse.fromXml($result); @@ -1141,9 +1127,14 @@ class SES { required String identity, required List policyNames, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['PolicyNames'] = policyNames; + final $request = { + 'Identity': identity, + if (policyNames.isEmpty) + 'PolicyNames': '' + else + for (var i1 = 0; i1 < policyNames.length; i1++) + 'PolicyNames.member.${i1 + 1}': policyNames[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityPolicies', @@ -1151,8 +1142,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityPoliciesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityPoliciesResult', ); return GetIdentityPoliciesResponse.fromXml($result); @@ -1187,8 +1176,13 @@ class SES { getIdentityVerificationAttributes({ required List identities, }) async { - final $request = {}; - $request['Identities'] = identities; + final $request = { + if (identities.isEmpty) + 'Identities': '' + else + for (var i1 = 0; i1 < identities.length; i1++) + 'Identities.member.${i1 + 1}': identities[i1], + }; final $result = await _protocol.send( $request, action: 'GetIdentityVerificationAttributes', @@ -1196,8 +1190,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetIdentityVerificationAttributesRequest'], - shapes: shapes, resultWrapper: 'GetIdentityVerificationAttributesResult', ); return GetIdentityVerificationAttributesResponse.fromXml($result); @@ -1207,7 +1199,7 @@ class SES { /// /// You can execute this operation no more than once per second. Future getSendQuota() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetSendQuota', @@ -1215,7 +1207,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetSendQuotaResult', ); return GetSendQuotaResponse.fromXml($result); @@ -1228,7 +1219,7 @@ class SES { /// /// You can execute this operation no more than once per second. Future getSendStatistics() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetSendStatistics', @@ -1236,7 +1227,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'GetSendStatisticsResult', ); return GetSendStatisticsResponse.fromXml($result); @@ -1254,8 +1244,9 @@ class SES { Future getTemplate({ required String templateName, }) async { - final $request = {}; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'GetTemplate', @@ -1263,8 +1254,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTemplateRequest'], - shapes: shapes, resultWrapper: 'GetTemplateResult', ); return GetTemplateResponse.fromXml($result); @@ -1296,9 +1285,10 @@ class SES { int? maxItems, String? nextToken, }) async { - final $request = {}; - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListConfigurationSets', @@ -1306,8 +1296,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListConfigurationSetsRequest'], - shapes: shapes, resultWrapper: 'ListConfigurationSetsResult', ); return ListConfigurationSetsResponse.fromXml($result); @@ -1343,9 +1331,10 @@ class SES { 1, 50, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListCustomVerificationEmailTemplates', @@ -1353,8 +1342,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListCustomVerificationEmailTemplatesRequest'], - shapes: shapes, resultWrapper: 'ListCustomVerificationEmailTemplatesResult', ); return ListCustomVerificationEmailTemplatesResponse.fromXml($result); @@ -1392,10 +1379,11 @@ class SES { int? maxItems, String? nextToken, }) async { - final $request = {}; - identityType?.also((arg) => $request['IdentityType'] = arg.toValue()); - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (identityType != null) 'IdentityType': identityType.toValue(), + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListIdentities', @@ -1403,8 +1391,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListIdentitiesRequest'], - shapes: shapes, resultWrapper: 'ListIdentitiesResult', ); return ListIdentitiesResponse.fromXml($result); @@ -1437,8 +1423,9 @@ class SES { Future listIdentityPolicies({ required String identity, }) async { - final $request = {}; - $request['Identity'] = identity; + final $request = { + 'Identity': identity, + }; final $result = await _protocol.send( $request, action: 'ListIdentityPolicies', @@ -1446,8 +1433,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListIdentityPoliciesRequest'], - shapes: shapes, resultWrapper: 'ListIdentityPoliciesResult', ); return ListIdentityPoliciesResponse.fromXml($result); @@ -1462,7 +1447,7 @@ class SES { /// /// You can execute this operation no more than once per second. Future listReceiptFilters() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListReceiptFilters', @@ -1470,8 +1455,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListReceiptFiltersRequest'], - shapes: shapes, resultWrapper: 'ListReceiptFiltersResult', ); return ListReceiptFiltersResponse.fromXml($result); @@ -1495,8 +1478,9 @@ class SES { Future listReceiptRuleSets({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListReceiptRuleSets', @@ -1504,8 +1488,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListReceiptRuleSetsRequest'], - shapes: shapes, resultWrapper: 'ListReceiptRuleSetsResult', ); return ListReceiptRuleSetsResponse.fromXml($result); @@ -1529,9 +1511,10 @@ class SES { int? maxItems, String? nextToken, }) async { - final $request = {}; - maxItems?.also((arg) => $request['MaxItems'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxItems != null) 'MaxItems': maxItems.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListTemplates', @@ -1539,8 +1522,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTemplatesRequest'], - shapes: shapes, resultWrapper: 'ListTemplatesResult', ); return ListTemplatesResponse.fromXml($result); @@ -1550,7 +1531,7 @@ class SES { /// email addresses and domains associated with your account. Future listVerifiedEmailAddresses() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'ListVerifiedEmailAddresses', @@ -1558,7 +1539,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'ListVerifiedEmailAddressesResult', ); return ListVerifiedEmailAddressesResponse.fromXml($result); @@ -1579,9 +1559,12 @@ class SES { required String configurationSetName, DeliveryOptions? deliveryOptions, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - deliveryOptions?.also((arg) => $request['DeliveryOptions'] = arg); + final $request = { + 'ConfigurationSetName': configurationSetName, + if (deliveryOptions != null) + for (var e1 in deliveryOptions.toQueryMap().entries) + 'DeliveryOptions.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'PutConfigurationSetDeliveryOptions', @@ -1589,8 +1572,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutConfigurationSetDeliveryOptionsRequest'], - shapes: shapes, resultWrapper: 'PutConfigurationSetDeliveryOptionsResult', ); } @@ -1637,10 +1618,11 @@ class SES { required String policy, required String policyName, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['Policy'] = policy; - $request['PolicyName'] = policyName; + final $request = { + 'Identity': identity, + 'Policy': policy, + 'PolicyName': policyName, + }; await _protocol.send( $request, action: 'PutIdentityPolicy', @@ -1648,8 +1630,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutIdentityPolicyRequest'], - shapes: shapes, resultWrapper: 'PutIdentityPolicyResult', ); } @@ -1678,9 +1658,14 @@ class SES { required List ruleNames, required String ruleSetName, }) async { - final $request = {}; - $request['RuleNames'] = ruleNames; - $request['RuleSetName'] = ruleSetName; + final $request = { + if (ruleNames.isEmpty) + 'RuleNames': '' + else + for (var i1 = 0; i1 < ruleNames.length; i1++) + 'RuleNames.member.${i1 + 1}': ruleNames[i1], + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'ReorderReceiptRuleSet', @@ -1688,8 +1673,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ReorderReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'ReorderReceiptRuleSetResult', ); } @@ -1746,13 +1729,21 @@ class SES { String? explanation, MessageDsn? messageDsn, }) async { - final $request = {}; - $request['BounceSender'] = bounceSender; - $request['BouncedRecipientInfoList'] = bouncedRecipientInfoList; - $request['OriginalMessageId'] = originalMessageId; - bounceSenderArn?.also((arg) => $request['BounceSenderArn'] = arg); - explanation?.also((arg) => $request['Explanation'] = arg); - messageDsn?.also((arg) => $request['MessageDsn'] = arg); + final $request = { + 'BounceSender': bounceSender, + if (bouncedRecipientInfoList.isEmpty) + 'BouncedRecipientInfoList': '' + else + for (var i1 = 0; i1 < bouncedRecipientInfoList.length; i1++) + for (var e3 in bouncedRecipientInfoList[i1].toQueryMap().entries) + 'BouncedRecipientInfoList.member.${i1 + 1}.${e3.key}': e3.value, + 'OriginalMessageId': originalMessageId, + if (bounceSenderArn != null) 'BounceSenderArn': bounceSenderArn, + if (explanation != null) 'Explanation': explanation, + if (messageDsn != null) + for (var e1 in messageDsn.toQueryMap().entries) + 'MessageDsn.${e1.key}': e1.value, + }; final $result = await _protocol.send( $request, action: 'SendBounce', @@ -1760,8 +1751,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendBounceRequest'], - shapes: shapes, resultWrapper: 'SendBounceResult', ); return SendBounceResponse.fromXml($result); @@ -1939,18 +1928,37 @@ class SES { String? sourceArn, String? templateArn, }) async { - final $request = {}; - $request['Destinations'] = destinations; - $request['Source'] = source; - $request['Template'] = template; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - defaultTags?.also((arg) => $request['DefaultTags'] = arg); - defaultTemplateData?.also((arg) => $request['DefaultTemplateData'] = arg); - replyToAddresses?.also((arg) => $request['ReplyToAddresses'] = arg); - returnPath?.also((arg) => $request['ReturnPath'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - templateArn?.also((arg) => $request['TemplateArn'] = arg); + final $request = { + if (destinations.isEmpty) + 'Destinations': '' + else + for (var i1 = 0; i1 < destinations.length; i1++) + for (var e3 in destinations[i1].toQueryMap().entries) + 'Destinations.member.${i1 + 1}.${e3.key}': e3.value, + 'Source': source, + 'Template': template, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (defaultTags != null) + if (defaultTags.isEmpty) + 'DefaultTags': '' + else + for (var i1 = 0; i1 < defaultTags.length; i1++) + for (var e3 in defaultTags[i1].toQueryMap().entries) + 'DefaultTags.member.${i1 + 1}.${e3.key}': e3.value, + if (defaultTemplateData != null) + 'DefaultTemplateData': defaultTemplateData, + if (replyToAddresses != null) + if (replyToAddresses.isEmpty) + 'ReplyToAddresses': '' + else + for (var i1 = 0; i1 < replyToAddresses.length; i1++) + 'ReplyToAddresses.member.${i1 + 1}': replyToAddresses[i1], + if (returnPath != null) 'ReturnPath': returnPath, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (sourceArn != null) 'SourceArn': sourceArn, + if (templateArn != null) 'TemplateArn': templateArn, + }; final $result = await _protocol.send( $request, action: 'SendBulkTemplatedEmail', @@ -1958,8 +1966,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendBulkTemplatedEmailRequest'], - shapes: shapes, resultWrapper: 'SendBulkTemplatedEmailResult', ); return SendBulkTemplatedEmailResponse.fromXml($result); @@ -1999,10 +2005,12 @@ class SES { required String templateName, String? configurationSetName, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; - $request['TemplateName'] = templateName; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); + final $request = { + 'EmailAddress': emailAddress, + 'TemplateName': templateName, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + }; final $result = await _protocol.send( $request, action: 'SendCustomVerificationEmail', @@ -2010,8 +2018,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendCustomVerificationEmailRequest'], - shapes: shapes, resultWrapper: 'SendCustomVerificationEmailResult', ); return SendCustomVerificationEmailResponse.fromXml($result); @@ -2173,16 +2179,31 @@ class SES { String? sourceArn, List? tags, }) async { - final $request = {}; - $request['Destination'] = destination; - $request['Message'] = message; - $request['Source'] = source; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - replyToAddresses?.also((arg) => $request['ReplyToAddresses'] = arg); - returnPath?.also((arg) => $request['ReturnPath'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + for (var e1 in destination.toQueryMap().entries) + 'Destination.${e1.key}': e1.value, + for (var e1 in message.toQueryMap().entries) + 'Message.${e1.key}': e1.value, + 'Source': source, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (replyToAddresses != null) + if (replyToAddresses.isEmpty) + 'ReplyToAddresses': '' + else + for (var i1 = 0; i1 < replyToAddresses.length; i1++) + 'ReplyToAddresses.member.${i1 + 1}': replyToAddresses[i1], + if (returnPath != null) 'ReturnPath': returnPath, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (sourceArn != null) 'SourceArn': sourceArn, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'SendEmail', @@ -2190,8 +2211,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendEmailRequest'], - shapes: shapes, resultWrapper: 'SendEmailResult', ); return SendEmailResponse.fromXml($result); @@ -2464,15 +2483,29 @@ class SES { String? sourceArn, List? tags, }) async { - final $request = {}; - $request['RawMessage'] = rawMessage; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - destinations?.also((arg) => $request['Destinations'] = arg); - fromArn?.also((arg) => $request['FromArn'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - source?.also((arg) => $request['Source'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + for (var e1 in rawMessage.toQueryMap().entries) + 'RawMessage.${e1.key}': e1.value, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (destinations != null) + if (destinations.isEmpty) + 'Destinations': '' + else + for (var i1 = 0; i1 < destinations.length; i1++) + 'Destinations.member.${i1 + 1}': destinations[i1], + if (fromArn != null) 'FromArn': fromArn, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (source != null) 'Source': source, + if (sourceArn != null) 'SourceArn': sourceArn, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'SendRawEmail', @@ -2480,8 +2513,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendRawEmailRequest'], - shapes: shapes, resultWrapper: 'SendRawEmailResult', ); return SendRawEmailResponse.fromXml($result); @@ -2665,18 +2696,32 @@ class SES { List? tags, String? templateArn, }) async { - final $request = {}; - $request['Destination'] = destination; - $request['Source'] = source; - $request['Template'] = template; - $request['TemplateData'] = templateData; - configurationSetName?.also((arg) => $request['ConfigurationSetName'] = arg); - replyToAddresses?.also((arg) => $request['ReplyToAddresses'] = arg); - returnPath?.also((arg) => $request['ReturnPath'] = arg); - returnPathArn?.also((arg) => $request['ReturnPathArn'] = arg); - sourceArn?.also((arg) => $request['SourceArn'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - templateArn?.also((arg) => $request['TemplateArn'] = arg); + final $request = { + for (var e1 in destination.toQueryMap().entries) + 'Destination.${e1.key}': e1.value, + 'Source': source, + 'Template': template, + 'TemplateData': templateData, + if (configurationSetName != null) + 'ConfigurationSetName': configurationSetName, + if (replyToAddresses != null) + if (replyToAddresses.isEmpty) + 'ReplyToAddresses': '' + else + for (var i1 = 0; i1 < replyToAddresses.length; i1++) + 'ReplyToAddresses.member.${i1 + 1}': replyToAddresses[i1], + if (returnPath != null) 'ReturnPath': returnPath, + if (returnPathArn != null) 'ReturnPathArn': returnPathArn, + if (sourceArn != null) 'SourceArn': sourceArn, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (templateArn != null) 'TemplateArn': templateArn, + }; final $result = await _protocol.send( $request, action: 'SendTemplatedEmail', @@ -2684,8 +2729,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SendTemplatedEmailRequest'], - shapes: shapes, resultWrapper: 'SendTemplatedEmailResult', ); return SendTemplatedEmailResponse.fromXml($result); @@ -2710,8 +2753,9 @@ class SES { Future setActiveReceiptRuleSet({ String? ruleSetName, }) async { - final $request = {}; - ruleSetName?.also((arg) => $request['RuleSetName'] = arg); + final $request = { + if (ruleSetName != null) 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'SetActiveReceiptRuleSet', @@ -2719,8 +2763,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetActiveReceiptRuleSetRequest'], - shapes: shapes, resultWrapper: 'SetActiveReceiptRuleSetResult', ); } @@ -2756,9 +2798,10 @@ class SES { required bool dkimEnabled, required String identity, }) async { - final $request = {}; - $request['DkimEnabled'] = dkimEnabled; - $request['Identity'] = identity; + final $request = { + 'DkimEnabled': dkimEnabled.toString(), + 'Identity': identity, + }; await _protocol.send( $request, action: 'SetIdentityDkimEnabled', @@ -2766,8 +2809,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityDkimEnabledRequest'], - shapes: shapes, resultWrapper: 'SetIdentityDkimEnabledResult', ); } @@ -2804,9 +2845,10 @@ class SES { required bool forwardingEnabled, required String identity, }) async { - final $request = {}; - $request['ForwardingEnabled'] = forwardingEnabled; - $request['Identity'] = identity; + final $request = { + 'ForwardingEnabled': forwardingEnabled.toString(), + 'Identity': identity, + }; await _protocol.send( $request, action: 'SetIdentityFeedbackForwardingEnabled', @@ -2814,8 +2856,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityFeedbackForwardingEnabledRequest'], - shapes: shapes, resultWrapper: 'SetIdentityFeedbackForwardingEnabledResult', ); } @@ -2852,10 +2892,11 @@ class SES { required String identity, required NotificationType notificationType, }) async { - final $request = {}; - $request['Enabled'] = enabled; - $request['Identity'] = identity; - $request['NotificationType'] = notificationType.toValue(); + final $request = { + 'Enabled': enabled.toString(), + 'Identity': identity, + 'NotificationType': notificationType.toValue(), + }; await _protocol.send( $request, action: 'SetIdentityHeadersInNotificationsEnabled', @@ -2863,8 +2904,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityHeadersInNotificationsEnabledRequest'], - shapes: shapes, resultWrapper: 'SetIdentityHeadersInNotificationsEnabledResult', ); } @@ -2909,11 +2948,12 @@ class SES { BehaviorOnMXFailure? behaviorOnMXFailure, String? mailFromDomain, }) async { - final $request = {}; - $request['Identity'] = identity; - behaviorOnMXFailure - ?.also((arg) => $request['BehaviorOnMXFailure'] = arg.toValue()); - mailFromDomain?.also((arg) => $request['MailFromDomain'] = arg); + final $request = { + 'Identity': identity, + if (behaviorOnMXFailure != null) + 'BehaviorOnMXFailure': behaviorOnMXFailure.toValue(), + if (mailFromDomain != null) 'MailFromDomain': mailFromDomain, + }; await _protocol.send( $request, action: 'SetIdentityMailFromDomain', @@ -2921,8 +2961,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityMailFromDomainRequest'], - shapes: shapes, resultWrapper: 'SetIdentityMailFromDomainResult', ); } @@ -2964,10 +3002,11 @@ class SES { required NotificationType notificationType, String? snsTopic, }) async { - final $request = {}; - $request['Identity'] = identity; - $request['NotificationType'] = notificationType.toValue(); - snsTopic?.also((arg) => $request['SnsTopic'] = arg); + final $request = { + 'Identity': identity, + 'NotificationType': notificationType.toValue(), + if (snsTopic != null) 'SnsTopic': snsTopic, + }; await _protocol.send( $request, action: 'SetIdentityNotificationTopic', @@ -2975,8 +3014,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetIdentityNotificationTopicRequest'], - shapes: shapes, resultWrapper: 'SetIdentityNotificationTopicResult', ); } @@ -3007,10 +3044,11 @@ class SES { required String ruleSetName, String? after, }) async { - final $request = {}; - $request['RuleName'] = ruleName; - $request['RuleSetName'] = ruleSetName; - after?.also((arg) => $request['After'] = arg); + final $request = { + 'RuleName': ruleName, + 'RuleSetName': ruleSetName, + if (after != null) 'After': after, + }; await _protocol.send( $request, action: 'SetReceiptRulePosition', @@ -3018,8 +3056,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetReceiptRulePositionRequest'], - shapes: shapes, resultWrapper: 'SetReceiptRulePositionResult', ); } @@ -3044,9 +3080,10 @@ class SES { required String templateData, required String templateName, }) async { - final $request = {}; - $request['TemplateData'] = templateData; - $request['TemplateName'] = templateName; + final $request = { + 'TemplateData': templateData, + 'TemplateName': templateName, + }; final $result = await _protocol.send( $request, action: 'TestRenderTemplate', @@ -3054,8 +3091,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TestRenderTemplateRequest'], - shapes: shapes, resultWrapper: 'TestRenderTemplateResult', ); return TestRenderTemplateResponse.fromXml($result); @@ -3076,8 +3111,9 @@ class SES { Future updateAccountSendingEnabled({ bool? enabled, }) async { - final $request = {}; - enabled?.also((arg) => $request['Enabled'] = arg); + final $request = { + if (enabled != null) 'Enabled': enabled.toString(), + }; await _protocol.send( $request, action: 'UpdateAccountSendingEnabled', @@ -3085,8 +3121,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateAccountSendingEnabledRequest'], - shapes: shapes, ); } @@ -3120,9 +3154,11 @@ class SES { required String configurationSetName, required EventDestination eventDestination, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['EventDestination'] = eventDestination; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in eventDestination.toQueryMap().entries) + 'EventDestination.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'UpdateConfigurationSetEventDestination', @@ -3130,8 +3166,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetEventDestinationRequest'], - shapes: shapes, resultWrapper: 'UpdateConfigurationSetEventDestinationResult', ); } @@ -3157,9 +3191,10 @@ class SES { required String configurationSetName, required bool enabled, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['Enabled'] = enabled; + final $request = { + 'ConfigurationSetName': configurationSetName, + 'Enabled': enabled.toString(), + }; await _protocol.send( $request, action: 'UpdateConfigurationSetReputationMetricsEnabled', @@ -3167,8 +3202,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetReputationMetricsEnabledRequest'], - shapes: shapes, ); } @@ -3193,9 +3226,10 @@ class SES { required String configurationSetName, required bool enabled, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['Enabled'] = enabled; + final $request = { + 'ConfigurationSetName': configurationSetName, + 'Enabled': enabled.toString(), + }; await _protocol.send( $request, action: 'UpdateConfigurationSetSendingEnabled', @@ -3203,8 +3237,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetSendingEnabledRequest'], - shapes: shapes, ); } @@ -3228,9 +3260,11 @@ class SES { required String configurationSetName, required TrackingOptions trackingOptions, }) async { - final $request = {}; - $request['ConfigurationSetName'] = configurationSetName; - $request['TrackingOptions'] = trackingOptions; + final $request = { + 'ConfigurationSetName': configurationSetName, + for (var e1 in trackingOptions.toQueryMap().entries) + 'TrackingOptions.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'UpdateConfigurationSetTrackingOptions', @@ -3238,8 +3272,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateConfigurationSetTrackingOptionsRequest'], - shapes: shapes, resultWrapper: 'UpdateConfigurationSetTrackingOptionsResult', ); } @@ -3289,15 +3321,16 @@ class SES { String? templateContent, String? templateSubject, }) async { - final $request = {}; - $request['TemplateName'] = templateName; - failureRedirectionURL - ?.also((arg) => $request['FailureRedirectionURL'] = arg); - fromEmailAddress?.also((arg) => $request['FromEmailAddress'] = arg); - successRedirectionURL - ?.also((arg) => $request['SuccessRedirectionURL'] = arg); - templateContent?.also((arg) => $request['TemplateContent'] = arg); - templateSubject?.also((arg) => $request['TemplateSubject'] = arg); + final $request = { + 'TemplateName': templateName, + if (failureRedirectionURL != null) + 'FailureRedirectionURL': failureRedirectionURL, + if (fromEmailAddress != null) 'FromEmailAddress': fromEmailAddress, + if (successRedirectionURL != null) + 'SuccessRedirectionURL': successRedirectionURL, + if (templateContent != null) 'TemplateContent': templateContent, + if (templateSubject != null) 'TemplateSubject': templateSubject, + }; await _protocol.send( $request, action: 'UpdateCustomVerificationEmailTemplate', @@ -3305,8 +3338,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateCustomVerificationEmailTemplateRequest'], - shapes: shapes, ); } @@ -3334,9 +3365,10 @@ class SES { required ReceiptRule rule, required String ruleSetName, }) async { - final $request = {}; - $request['Rule'] = rule; - $request['RuleSetName'] = ruleSetName; + final $request = { + for (var e1 in rule.toQueryMap().entries) 'Rule.${e1.key}': e1.value, + 'RuleSetName': ruleSetName, + }; await _protocol.send( $request, action: 'UpdateReceiptRule', @@ -3344,8 +3376,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateReceiptRuleRequest'], - shapes: shapes, resultWrapper: 'UpdateReceiptRuleResult', ); } @@ -3363,8 +3393,10 @@ class SES { Future updateTemplate({ required Template template, }) async { - final $request = {}; - $request['Template'] = template; + final $request = { + for (var e1 in template.toQueryMap().entries) + 'Template.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'UpdateTemplate', @@ -3372,8 +3404,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UpdateTemplateRequest'], - shapes: shapes, resultWrapper: 'UpdateTemplateResult', ); } @@ -3425,8 +3455,9 @@ class SES { Future verifyDomainDkim({ required String domain, }) async { - final $request = {}; - $request['Domain'] = domain; + final $request = { + 'Domain': domain, + }; final $result = await _protocol.send( $request, action: 'VerifyDomainDkim', @@ -3434,8 +3465,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyDomainDkimRequest'], - shapes: shapes, resultWrapper: 'VerifyDomainDkimResult', ); return VerifyDomainDkimResponse.fromXml($result); @@ -3454,8 +3483,9 @@ class SES { Future verifyDomainIdentity({ required String domain, }) async { - final $request = {}; - $request['Domain'] = domain; + final $request = { + 'Domain': domain, + }; final $result = await _protocol.send( $request, action: 'VerifyDomainIdentity', @@ -3463,8 +3493,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyDomainIdentityRequest'], - shapes: shapes, resultWrapper: 'VerifyDomainIdentityResult', ); return VerifyDomainIdentityResponse.fromXml($result); @@ -3478,8 +3506,9 @@ class SES { Future verifyEmailAddress({ required String emailAddress, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; + final $request = { + 'EmailAddress': emailAddress, + }; await _protocol.send( $request, action: 'VerifyEmailAddress', @@ -3487,8 +3516,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyEmailAddressRequest'], - shapes: shapes, ); } @@ -3504,8 +3531,9 @@ class SES { Future verifyEmailIdentity({ required String emailAddress, }) async { - final $request = {}; - $request['EmailAddress'] = emailAddress; + final $request = { + 'EmailAddress': emailAddress, + }; await _protocol.send( $request, action: 'VerifyEmailIdentity', @@ -3513,8 +3541,6 @@ class SES { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifyEmailIdentityRequest'], - shapes: shapes, resultWrapper: 'VerifyEmailIdentityResult', ); } @@ -3556,6 +3582,15 @@ class AddHeaderAction { 'HeaderValue': headerValue, }; } + + Map toQueryMap() { + final headerName = this.headerName; + final headerValue = this.headerValue; + return { + 'HeaderName': headerName, + 'HeaderValue': headerValue, + }; + } } enum BehaviorOnMXFailure { @@ -3612,6 +3647,17 @@ class Body { if (text != null) 'Text': text, }; } + + Map toQueryMap() { + final html = this.html; + final text = this.text; + return { + if (html != null) + for (var e1 in html.toQueryMap().entries) 'Html.${e1.key}': e1.value, + if (text != null) + for (var e1 in text.toQueryMap().entries) 'Text.${e1.key}': e1.value, + }; + } } /// When included in a receipt rule, this action rejects the received email by @@ -3679,6 +3725,21 @@ class BounceAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final message = this.message; + final sender = this.sender; + final smtpReplyCode = this.smtpReplyCode; + final statusCode = this.statusCode; + final topicArn = this.topicArn; + return { + 'Message': message, + 'Sender': sender, + 'SmtpReplyCode': smtpReplyCode, + if (statusCode != null) 'StatusCode': statusCode, + if (topicArn != null) 'TopicArn': topicArn, + }; + } } enum BounceType { @@ -3775,6 +3836,21 @@ class BouncedRecipientInfo { if (recipientDsnFields != null) 'RecipientDsnFields': recipientDsnFields, }; } + + Map toQueryMap() { + final recipient = this.recipient; + final bounceType = this.bounceType; + final recipientArn = this.recipientArn; + final recipientDsnFields = this.recipientDsnFields; + return { + 'Recipient': recipient, + if (bounceType != null) 'BounceType': bounceType.toValue(), + if (recipientArn != null) 'RecipientArn': recipientArn, + if (recipientDsnFields != null) + for (var e1 in recipientDsnFields.toQueryMap().entries) + 'RecipientDsnFields.${e1.key}': e1.value, + }; + } } /// An array that contains one or more Destinations, as well as the tags and @@ -3810,6 +3886,25 @@ class BulkEmailDestination { 'ReplacementTemplateData': replacementTemplateData, }; } + + Map toQueryMap() { + final destination = this.destination; + final replacementTags = this.replacementTags; + final replacementTemplateData = this.replacementTemplateData; + return { + for (var e1 in destination.toQueryMap().entries) + 'Destination.${e1.key}': e1.value, + if (replacementTags != null) + if (replacementTags.isEmpty) + 'ReplacementTags': '' + else + for (var i1 = 0; i1 < replacementTags.length; i1++) + for (var e3 in replacementTags[i1].toQueryMap().entries) + 'ReplacementTags.member.${i1 + 1}.${e3.key}': e3.value, + if (replacementTemplateData != null) + 'ReplacementTemplateData': replacementTemplateData, + }; + } } /// An object that contains the response from the @@ -4034,6 +4129,18 @@ class CloudWatchDestination { 'DimensionConfigurations': dimensionConfigurations, }; } + + Map toQueryMap() { + final dimensionConfigurations = this.dimensionConfigurations; + return { + if (dimensionConfigurations.isEmpty) + 'DimensionConfigurations': '' + else + for (var i1 = 0; i1 < dimensionConfigurations.length; i1++) + for (var e3 in dimensionConfigurations[i1].toQueryMap().entries) + 'DimensionConfigurations.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Contains the dimension configuration to use when you publish email sending @@ -4108,6 +4215,17 @@ class CloudWatchDimensionConfiguration { 'DimensionValueSource': dimensionValueSource.toValue(), }; } + + Map toQueryMap() { + final defaultDimensionValue = this.defaultDimensionValue; + final dimensionName = this.dimensionName; + final dimensionValueSource = this.dimensionValueSource; + return { + 'DefaultDimensionValue': defaultDimensionValue, + 'DimensionName': dimensionName, + 'DimensionValueSource': dimensionValueSource.toValue(), + }; + } } /// The name of the configuration set. @@ -4149,6 +4267,13 @@ class ConfigurationSet { 'Name': name, }; } + + Map toQueryMap() { + final name = this.name; + return { + 'Name': name, + }; + } } enum ConfigurationSetAttribute { @@ -4214,6 +4339,15 @@ class Content { if (charset != null) 'Charset': charset, }; } + + Map toQueryMap() { + final data = this.data; + final charset = this.charset; + return { + 'Data': data, + if (charset != null) 'Charset': charset, + }; + } } /// An empty element returned on a successful request. @@ -4476,6 +4610,13 @@ class DeliveryOptions { if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), }; } + + Map toQueryMap() { + final tlsPolicy = this.tlsPolicy; + return { + if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), + }; + } } /// Represents the metadata and receipt rules for the receipt rule set that is @@ -4638,6 +4779,32 @@ class Destination { if (toAddresses != null) 'ToAddresses': toAddresses, }; } + + Map toQueryMap() { + final bccAddresses = this.bccAddresses; + final ccAddresses = this.ccAddresses; + final toAddresses = this.toAddresses; + return { + if (bccAddresses != null) + if (bccAddresses.isEmpty) + 'BccAddresses': '' + else + for (var i1 = 0; i1 < bccAddresses.length; i1++) + 'BccAddresses.member.${i1 + 1}': bccAddresses[i1], + if (ccAddresses != null) + if (ccAddresses.isEmpty) + 'CcAddresses': '' + else + for (var i1 = 0; i1 < ccAddresses.length; i1++) + 'CcAddresses.member.${i1 + 1}': ccAddresses[i1], + if (toAddresses != null) + if (toAddresses.isEmpty) + 'ToAddresses': '' + else + for (var i1 = 0; i1 < toAddresses.length; i1++) + 'ToAddresses.member.${i1 + 1}': toAddresses[i1], + }; + } } enum DimensionValueSource { @@ -4844,6 +5011,34 @@ class EventDestination { if (sNSDestination != null) 'SNSDestination': sNSDestination, }; } + + Map toQueryMap() { + final matchingEventTypes = this.matchingEventTypes; + final name = this.name; + final cloudWatchDestination = this.cloudWatchDestination; + final enabled = this.enabled; + final kinesisFirehoseDestination = this.kinesisFirehoseDestination; + final sNSDestination = this.sNSDestination; + return { + if (matchingEventTypes.isEmpty) + 'MatchingEventTypes': '' + else + for (var i1 = 0; i1 < matchingEventTypes.length; i1++) + 'MatchingEventTypes.member.${i1 + 1}': + matchingEventTypes[i1].toValue(), + 'Name': name, + if (cloudWatchDestination != null) + for (var e1 in cloudWatchDestination.toQueryMap().entries) + 'CloudWatchDestination.${e1.key}': e1.value, + if (enabled != null) 'Enabled': enabled.toString(), + if (kinesisFirehoseDestination != null) + for (var e1 in kinesisFirehoseDestination.toQueryMap().entries) + 'KinesisFirehoseDestination.${e1.key}': e1.value, + if (sNSDestination != null) + for (var e1 in sNSDestination.toQueryMap().entries) + 'SNSDestination.${e1.key}': e1.value, + }; + } } enum EventType { @@ -4933,6 +5128,15 @@ class ExtensionField { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } /// Represents a request to return the email sending status for your Amazon SES @@ -5458,6 +5662,15 @@ class KinesisFirehoseDestination { 'IAMRoleARN': iAMRoleARN, }; } + + Map toQueryMap() { + final deliveryStreamARN = this.deliveryStreamARN; + final iAMRoleARN = this.iAMRoleARN; + return { + 'DeliveryStreamARN': deliveryStreamARN, + 'IAMRoleARN': iAMRoleARN, + }; + } } /// When included in a receipt rule, this action calls an Amazon Web Services @@ -5534,6 +5747,17 @@ class LambdaAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final functionArn = this.functionArn; + final invocationType = this.invocationType; + final topicArn = this.topicArn; + return { + 'FunctionArn': functionArn, + if (invocationType != null) 'InvocationType': invocationType.toValue(), + if (topicArn != null) 'TopicArn': topicArn, + }; + } } /// A list of configuration sets associated with your Amazon Web Services @@ -5747,6 +5971,16 @@ class Message { 'Subject': subject, }; } + + Map toQueryMap() { + final body = this.body; + final subject = this.subject; + return { + for (var e1 in body.toQueryMap().entries) 'Body.${e1.key}': e1.value, + for (var e1 in subject.toQueryMap().entries) + 'Subject.${e1.key}': e1.value, + }; + } } /// Message-related information to include in the Delivery Status Notification @@ -5785,6 +6019,23 @@ class MessageDsn { if (extensionFields != null) 'ExtensionFields': extensionFields, }; } + + Map toQueryMap() { + final reportingMta = this.reportingMta; + final arrivalDate = this.arrivalDate; + final extensionFields = this.extensionFields; + return { + 'ReportingMta': reportingMta, + if (arrivalDate != null) 'ArrivalDate': _s.iso8601ToJson(arrivalDate), + if (extensionFields != null) + if (extensionFields.isEmpty) + 'ExtensionFields': '' + else + for (var i1 = 0; i1 < extensionFields.length; i1++) + for (var e3 in extensionFields[i1].toQueryMap().entries) + 'ExtensionFields.member.${i1 + 1}.${e3.key}': e3.value, + }; + } } /// Contains the name and value of a tag that you can provide to @@ -5835,6 +6086,15 @@ class MessageTag { 'Value': value, }; } + + Map toQueryMap() { + final name = this.name; + final value = this.value; + return { + 'Name': name, + 'Value': value, + }; + } } enum NotificationType { @@ -5925,6 +6185,13 @@ class RawMessage { 'Data': base64Encode(data), }; } + + Map toQueryMap() { + final data = this.data; + return { + 'Data': base64Encode(data), + }; + } } /// An action that Amazon SES can take when it receives an email on behalf of @@ -6008,6 +6275,39 @@ class ReceiptAction { if (workmailAction != null) 'WorkmailAction': workmailAction, }; } + + Map toQueryMap() { + final addHeaderAction = this.addHeaderAction; + final bounceAction = this.bounceAction; + final lambdaAction = this.lambdaAction; + final s3Action = this.s3Action; + final sNSAction = this.sNSAction; + final stopAction = this.stopAction; + final workmailAction = this.workmailAction; + return { + if (addHeaderAction != null) + for (var e1 in addHeaderAction.toQueryMap().entries) + 'AddHeaderAction.${e1.key}': e1.value, + if (bounceAction != null) + for (var e1 in bounceAction.toQueryMap().entries) + 'BounceAction.${e1.key}': e1.value, + if (lambdaAction != null) + for (var e1 in lambdaAction.toQueryMap().entries) + 'LambdaAction.${e1.key}': e1.value, + if (s3Action != null) + for (var e1 in s3Action.toQueryMap().entries) + 'S3Action.${e1.key}': e1.value, + if (sNSAction != null) + for (var e1 in sNSAction.toQueryMap().entries) + 'SNSAction.${e1.key}': e1.value, + if (stopAction != null) + for (var e1 in stopAction.toQueryMap().entries) + 'StopAction.${e1.key}': e1.value, + if (workmailAction != null) + for (var e1 in workmailAction.toQueryMap().entries) + 'WorkmailAction.${e1.key}': e1.value, + }; + } } /// A receipt IP address filter enables you to specify whether to accept or @@ -6057,6 +6357,16 @@ class ReceiptFilter { 'Name': name, }; } + + Map toQueryMap() { + final ipFilter = this.ipFilter; + final name = this.name; + return { + for (var e1 in ipFilter.toQueryMap().entries) + 'IpFilter.${e1.key}': e1.value, + 'Name': name, + }; + } } enum ReceiptFilterPolicy { @@ -6124,6 +6434,15 @@ class ReceiptIpFilter { 'Policy': policy.toValue(), }; } + + Map toQueryMap() { + final cidr = this.cidr; + final policy = this.policy; + return { + 'Cidr': cidr, + 'Policy': policy.toValue(), + }; + } } /// Receipt rules enable you to specify which actions Amazon SES should take @@ -6216,6 +6535,34 @@ class ReceiptRule { if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), }; } + + Map toQueryMap() { + final name = this.name; + final actions = this.actions; + final enabled = this.enabled; + final recipients = this.recipients; + final scanEnabled = this.scanEnabled; + final tlsPolicy = this.tlsPolicy; + return { + 'Name': name, + if (actions != null) + if (actions.isEmpty) + 'Actions': '' + else + for (var i1 = 0; i1 < actions.length; i1++) + for (var e3 in actions[i1].toQueryMap().entries) + 'Actions.member.${i1 + 1}.${e3.key}': e3.value, + if (enabled != null) 'Enabled': enabled.toString(), + if (recipients != null) + if (recipients.isEmpty) + 'Recipients': '' + else + for (var i1 = 0; i1 < recipients.length; i1++) + 'Recipients.member.${i1 + 1}': recipients[i1], + if (scanEnabled != null) 'ScanEnabled': scanEnabled.toString(), + if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(), + }; + } } /// Information about a receipt rule set. @@ -6337,6 +6684,32 @@ class RecipientDsnFields { if (remoteMta != null) 'RemoteMta': remoteMta, }; } + + Map toQueryMap() { + final action = this.action; + final status = this.status; + final diagnosticCode = this.diagnosticCode; + final extensionFields = this.extensionFields; + final finalRecipient = this.finalRecipient; + final lastAttemptDate = this.lastAttemptDate; + final remoteMta = this.remoteMta; + return { + 'Action': action.toValue(), + 'Status': status, + if (diagnosticCode != null) 'DiagnosticCode': diagnosticCode, + if (extensionFields != null) + if (extensionFields.isEmpty) + 'ExtensionFields': '' + else + for (var i1 = 0; i1 < extensionFields.length; i1++) + for (var e3 in extensionFields[i1].toQueryMap().entries) + 'ExtensionFields.member.${i1 + 1}.${e3.key}': e3.value, + if (finalRecipient != null) 'FinalRecipient': finalRecipient, + if (lastAttemptDate != null) + 'LastAttemptDate': _s.iso8601ToJson(lastAttemptDate), + if (remoteMta != null) 'RemoteMta': remoteMta, + }; + } } /// An empty element returned on a successful request. @@ -6503,6 +6876,19 @@ class S3Action { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final bucketName = this.bucketName; + final kmsKeyArn = this.kmsKeyArn; + final objectKeyPrefix = this.objectKeyPrefix; + final topicArn = this.topicArn; + return { + 'BucketName': bucketName, + if (kmsKeyArn != null) 'KmsKeyArn': kmsKeyArn, + if (objectKeyPrefix != null) 'ObjectKeyPrefix': objectKeyPrefix, + if (topicArn != null) 'TopicArn': topicArn, + }; + } } /// When included in a receipt rule, this action publishes a notification to @@ -6564,6 +6950,15 @@ class SNSAction { if (encoding != null) 'Encoding': encoding.toValue(), }; } + + Map toQueryMap() { + final topicArn = this.topicArn; + final encoding = this.encoding; + return { + 'TopicArn': topicArn, + if (encoding != null) 'Encoding': encoding.toValue(), + }; + } } enum SNSActionEncoding { @@ -6628,6 +7023,13 @@ class SNSDestination { 'TopicARN': topicARN, }; } + + Map toQueryMap() { + final topicARN = this.topicARN; + return { + 'TopicARN': topicARN, + }; + } } /// Represents a unique message ID. @@ -6876,6 +7278,15 @@ class StopAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final scope = this.scope; + final topicArn = this.topicArn; + return { + 'Scope': scope.toValue(), + if (topicArn != null) 'TopicArn': topicArn, + }; + } } enum StopScope { @@ -6946,6 +7357,19 @@ class Template { if (textPart != null) 'TextPart': textPart, }; } + + Map toQueryMap() { + final templateName = this.templateName; + final htmlPart = this.htmlPart; + final subjectPart = this.subjectPart; + final textPart = this.textPart; + return { + 'TemplateName': templateName, + if (htmlPart != null) 'HtmlPart': htmlPart, + if (subjectPart != null) 'SubjectPart': subjectPart, + if (textPart != null) 'TextPart': textPart, + }; + } } /// Contains information about an email template. @@ -7041,6 +7465,14 @@ class TrackingOptions { 'CustomRedirectDomain': customRedirectDomain, }; } + + Map toQueryMap() { + final customRedirectDomain = this.customRedirectDomain; + return { + if (customRedirectDomain != null) + 'CustomRedirectDomain': customRedirectDomain, + }; + } } /// An empty element returned on a successful request. @@ -7244,6 +7676,15 @@ class WorkmailAction { if (topicArn != null) 'TopicArn': topicArn, }; } + + Map toQueryMap() { + final organizationArn = this.organizationArn; + final topicArn = this.topicArn; + return { + 'OrganizationArn': organizationArn, + if (topicArn != null) 'TopicArn': topicArn, + }; + } } class AccountSendingPausedException extends _s.GenericAwsException { diff --git a/generated/aws_sns_api/lib/sns-2010-03-31.dart b/generated/aws_sns_api/lib/sns-2010-03-31.dart index 352647ba4..2678d5986 100644 --- a/generated/aws_sns_api/lib/sns-2010-03-31.dart +++ b/generated/aws_sns_api/lib/sns-2010-03-31.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'sns-2010-03-31.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Amazon Simple Notification Service (Amazon SNS) is a web service that @@ -31,7 +30,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Guide. class SNS { final _s.QueryProtocol _protocol; - final Map shapes; SNS({ required String region, @@ -39,7 +37,7 @@ class SNS { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'sns', @@ -48,9 +46,7 @@ class SNS { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -97,11 +93,20 @@ class SNS { required String label, required String topicArn, }) async { - final $request = {}; - $request['AWSAccountId'] = awsAccountId; - $request['ActionName'] = actionName; - $request['Label'] = label; - $request['TopicArn'] = topicArn; + final $request = { + if (awsAccountId.isEmpty) + 'AWSAccountId': '' + else + for (var i1 = 0; i1 < awsAccountId.length; i1++) + 'AWSAccountId.member.${i1 + 1}': awsAccountId[i1], + if (actionName.isEmpty) + 'ActionName': '' + else + for (var i1 = 0; i1 < actionName.length; i1++) + 'ActionName.member.${i1 + 1}': actionName[i1], + 'Label': label, + 'TopicArn': topicArn, + }; await _protocol.send( $request, action: 'AddPermission', @@ -109,8 +114,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AddPermissionInput'], - shapes: shapes, ); } @@ -131,8 +134,9 @@ class SNS { Future checkIfPhoneNumberIsOptedOut({ required String phoneNumber, }) async { - final $request = {}; - $request['phoneNumber'] = phoneNumber; + final $request = { + 'phoneNumber': phoneNumber, + }; final $result = await _protocol.send( $request, action: 'CheckIfPhoneNumberIsOptedOut', @@ -140,8 +144,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CheckIfPhoneNumberIsOptedOutInput'], - shapes: shapes, resultWrapper: 'CheckIfPhoneNumberIsOptedOutResult', ); return CheckIfPhoneNumberIsOptedOutResponse.fromXml($result); @@ -179,11 +181,12 @@ class SNS { required String topicArn, String? authenticateOnUnsubscribe, }) async { - final $request = {}; - $request['Token'] = token; - $request['TopicArn'] = topicArn; - authenticateOnUnsubscribe - ?.also((arg) => $request['AuthenticateOnUnsubscribe'] = arg); + final $request = { + 'Token': token, + 'TopicArn': topicArn, + if (authenticateOnUnsubscribe != null) + 'AuthenticateOnUnsubscribe': authenticateOnUnsubscribe, + }; final $result = await _protocol.send( $request, action: 'ConfirmSubscription', @@ -191,8 +194,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ConfirmSubscriptionInput'], - shapes: shapes, resultWrapper: 'ConfirmSubscriptionResult', ); return ConfirmSubscriptionResponse.fromXml($result); @@ -279,10 +280,14 @@ class SNS { required String name, required String platform, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['Name'] = name; - $request['Platform'] = platform; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + 'Name': name, + 'Platform': platform, + }; final $result = await _protocol.send( $request, action: 'CreatePlatformApplication', @@ -290,8 +295,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePlatformApplicationInput'], - shapes: shapes, resultWrapper: 'CreatePlatformApplicationResult', ); return CreatePlatformApplicationResponse.fromXml($result); @@ -348,11 +351,16 @@ class SNS { Map? attributes, String? customUserData, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; - $request['Token'] = token; - attributes?.also((arg) => $request['Attributes'] = arg); - customUserData?.also((arg) => $request['CustomUserData'] = arg); + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + 'Token': token, + if (attributes != null) + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + if (customUserData != null) 'CustomUserData': customUserData, + }; final $result = await _protocol.send( $request, action: 'CreatePlatformEndpoint', @@ -360,8 +368,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreatePlatformEndpointInput'], - shapes: shapes, resultWrapper: 'CreatePlatformEndpointResult', ); return CreateEndpointResponse.fromXml($result); @@ -400,9 +406,10 @@ class SNS { required String phoneNumber, LanguageCodeString? languageCode, }) async { - final $request = {}; - $request['PhoneNumber'] = phoneNumber; - languageCode?.also((arg) => $request['LanguageCode'] = arg.toValue()); + final $request = { + 'PhoneNumber': phoneNumber, + if (languageCode != null) 'LanguageCode': languageCode.toValue(), + }; await _protocol.send( $request, action: 'CreateSMSSandboxPhoneNumber', @@ -410,8 +417,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateSMSSandboxPhoneNumberInput'], - shapes: shapes, resultWrapper: 'CreateSMSSandboxPhoneNumberResult', ); } @@ -559,11 +564,23 @@ class SNS { String? dataProtectionPolicy, List? tags, }) async { - final $request = {}; - $request['Name'] = name; - attributes?.also((arg) => $request['Attributes'] = arg); - dataProtectionPolicy?.also((arg) => $request['DataProtectionPolicy'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Name': name, + if (attributes != null) + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + if (dataProtectionPolicy != null) + 'DataProtectionPolicy': dataProtectionPolicy, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'CreateTopic', @@ -571,8 +588,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateTopicInput'], - shapes: shapes, resultWrapper: 'CreateTopicResult', ); return CreateTopicResponse.fromXml($result); @@ -595,8 +610,9 @@ class SNS { Future deleteEndpoint({ required String endpointArn, }) async { - final $request = {}; - $request['EndpointArn'] = endpointArn; + final $request = { + 'EndpointArn': endpointArn, + }; await _protocol.send( $request, action: 'DeleteEndpoint', @@ -604,8 +620,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteEndpointInput'], - shapes: shapes, ); } @@ -625,8 +639,9 @@ class SNS { Future deletePlatformApplication({ required String platformApplicationArn, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + }; await _protocol.send( $request, action: 'DeletePlatformApplication', @@ -634,8 +649,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeletePlatformApplicationInput'], - shapes: shapes, ); } @@ -665,8 +678,9 @@ class SNS { Future deleteSMSSandboxPhoneNumber({ required String phoneNumber, }) async { - final $request = {}; - $request['PhoneNumber'] = phoneNumber; + final $request = { + 'PhoneNumber': phoneNumber, + }; await _protocol.send( $request, action: 'DeleteSMSSandboxPhoneNumber', @@ -674,8 +688,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteSMSSandboxPhoneNumberInput'], - shapes: shapes, resultWrapper: 'DeleteSMSSandboxPhoneNumberResult', ); } @@ -699,8 +711,9 @@ class SNS { Future deleteTopic({ required String topicArn, }) async { - final $request = {}; - $request['TopicArn'] = topicArn; + final $request = { + 'TopicArn': topicArn, + }; await _protocol.send( $request, action: 'DeleteTopic', @@ -708,8 +721,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DeleteTopicInput'], - shapes: shapes, ); } @@ -732,8 +743,9 @@ class SNS { Future getDataProtectionPolicy({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'GetDataProtectionPolicy', @@ -741,8 +753,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetDataProtectionPolicyInput'], - shapes: shapes, resultWrapper: 'GetDataProtectionPolicyResult', ); return GetDataProtectionPolicyResponse.fromXml($result); @@ -764,8 +774,9 @@ class SNS { Future getEndpointAttributes({ required String endpointArn, }) async { - final $request = {}; - $request['EndpointArn'] = endpointArn; + final $request = { + 'EndpointArn': endpointArn, + }; final $result = await _protocol.send( $request, action: 'GetEndpointAttributes', @@ -773,8 +784,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetEndpointAttributesInput'], - shapes: shapes, resultWrapper: 'GetEndpointAttributesResult', ); return GetEndpointAttributesResponse.fromXml($result); @@ -798,8 +807,9 @@ class SNS { getPlatformApplicationAttributes({ required String platformApplicationArn, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + }; final $result = await _protocol.send( $request, action: 'GetPlatformApplicationAttributes', @@ -807,8 +817,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetPlatformApplicationAttributesInput'], - shapes: shapes, resultWrapper: 'GetPlatformApplicationAttributesResult', ); return GetPlatformApplicationAttributesResponse.fromXml($result); @@ -835,8 +843,14 @@ class SNS { Future getSMSAttributes({ List? attributes, }) async { - final $request = {}; - attributes?.also((arg) => $request['attributes'] = arg); + final $request = { + if (attributes != null) + if (attributes.isEmpty) + 'attributes': '' + else + for (var i1 = 0; i1 < attributes.length; i1++) + 'attributes.member.${i1 + 1}': attributes[i1], + }; final $result = await _protocol.send( $request, action: 'GetSMSAttributes', @@ -844,8 +858,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSMSAttributesInput'], - shapes: shapes, resultWrapper: 'GetSMSAttributesResult', ); return GetSMSAttributesResponse.fromXml($result); @@ -869,7 +881,7 @@ class SNS { /// May throw [InternalErrorException]. /// May throw [ThrottledException]. Future getSMSSandboxAccountStatus() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetSMSSandboxAccountStatus', @@ -877,8 +889,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSMSSandboxAccountStatusInput'], - shapes: shapes, resultWrapper: 'GetSMSSandboxAccountStatusResult', ); return GetSMSSandboxAccountStatusResult.fromXml($result); @@ -896,8 +906,9 @@ class SNS { Future getSubscriptionAttributes({ required String subscriptionArn, }) async { - final $request = {}; - $request['SubscriptionArn'] = subscriptionArn; + final $request = { + 'SubscriptionArn': subscriptionArn, + }; final $result = await _protocol.send( $request, action: 'GetSubscriptionAttributes', @@ -905,8 +916,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSubscriptionAttributesInput'], - shapes: shapes, resultWrapper: 'GetSubscriptionAttributesResult', ); return GetSubscriptionAttributesResponse.fromXml($result); @@ -926,8 +935,9 @@ class SNS { Future getTopicAttributes({ required String topicArn, }) async { - final $request = {}; - $request['TopicArn'] = topicArn; + final $request = { + 'TopicArn': topicArn, + }; final $result = await _protocol.send( $request, action: 'GetTopicAttributes', @@ -935,8 +945,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetTopicAttributesInput'], - shapes: shapes, resultWrapper: 'GetTopicAttributesResult', ); return GetTopicAttributesResponse.fromXml($result); @@ -974,9 +982,10 @@ class SNS { required String platformApplicationArn, String? nextToken, }) async { - final $request = {}; - $request['PlatformApplicationArn'] = platformApplicationArn; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'PlatformApplicationArn': platformApplicationArn, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListEndpointsByPlatformApplication', @@ -984,8 +993,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListEndpointsByPlatformApplicationInput'], - shapes: shapes, resultWrapper: 'ListEndpointsByPlatformApplicationResult', ); return ListEndpointsByPlatformApplicationResponse.fromXml($result); @@ -1019,9 +1026,10 @@ class SNS { 1, 30, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListOriginationNumbers', @@ -1029,8 +1037,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListOriginationNumbersRequest'], - shapes: shapes, resultWrapper: 'ListOriginationNumbersResult', ); return ListOriginationNumbersResult.fromXml($result); @@ -1059,8 +1065,9 @@ class SNS { Future listPhoneNumbersOptedOut({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['nextToken'] = arg); + final $request = { + if (nextToken != null) 'nextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPhoneNumbersOptedOut', @@ -1068,8 +1075,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPhoneNumbersOptedOutInput'], - shapes: shapes, resultWrapper: 'ListPhoneNumbersOptedOutResult', ); return ListPhoneNumbersOptedOutResponse.fromXml($result); @@ -1100,8 +1105,9 @@ class SNS { Future listPlatformApplications({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListPlatformApplications', @@ -1109,8 +1115,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListPlatformApplicationsInput'], - shapes: shapes, resultWrapper: 'ListPlatformApplicationsResult', ); return ListPlatformApplicationsResponse.fromXml($result); @@ -1152,9 +1156,10 @@ class SNS { 1, 100, ); - final $request = {}; - maxResults?.also((arg) => $request['MaxResults'] = arg); - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (maxResults != null) 'MaxResults': maxResults.toString(), + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListSMSSandboxPhoneNumbers', @@ -1162,8 +1167,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSMSSandboxPhoneNumbersInput'], - shapes: shapes, resultWrapper: 'ListSMSSandboxPhoneNumbersResult', ); return ListSMSSandboxPhoneNumbersResult.fromXml($result); @@ -1186,8 +1189,9 @@ class SNS { Future listSubscriptions({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListSubscriptions', @@ -1195,8 +1199,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSubscriptionsInput'], - shapes: shapes, resultWrapper: 'ListSubscriptionsResult', ); return ListSubscriptionsResponse.fromXml($result); @@ -1225,9 +1227,10 @@ class SNS { required String topicArn, String? nextToken, }) async { - final $request = {}; - $request['TopicArn'] = topicArn; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + 'TopicArn': topicArn, + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListSubscriptionsByTopic', @@ -1235,8 +1238,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListSubscriptionsByTopicInput'], - shapes: shapes, resultWrapper: 'ListSubscriptionsByTopicResult', ); return ListSubscriptionsByTopicResponse.fromXml($result); @@ -1258,8 +1259,9 @@ class SNS { Future listTagsForResource({ required String resourceArn, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; + final $request = { + 'ResourceArn': resourceArn, + }; final $result = await _protocol.send( $request, action: 'ListTagsForResource', @@ -1267,8 +1269,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTagsForResourceRequest'], - shapes: shapes, resultWrapper: 'ListTagsForResourceResult', ); return ListTagsForResourceResponse.fromXml($result); @@ -1290,8 +1290,9 @@ class SNS { Future listTopics({ String? nextToken, }) async { - final $request = {}; - nextToken?.also((arg) => $request['NextToken'] = arg); + final $request = { + if (nextToken != null) 'NextToken': nextToken, + }; final $result = await _protocol.send( $request, action: 'ListTopics', @@ -1299,8 +1300,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['ListTopicsInput'], - shapes: shapes, resultWrapper: 'ListTopicsResult', ); return ListTopicsResponse.fromXml($result); @@ -1321,8 +1320,9 @@ class SNS { Future optInPhoneNumber({ required String phoneNumber, }) async { - final $request = {}; - $request['phoneNumber'] = phoneNumber; + final $request = { + 'phoneNumber': phoneNumber, + }; await _protocol.send( $request, action: 'OptInPhoneNumber', @@ -1330,8 +1330,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['OptInPhoneNumberInput'], - shapes: shapes, resultWrapper: 'OptInPhoneNumberResult', ); } @@ -1539,17 +1537,23 @@ class SNS { String? targetArn, String? topicArn, }) async { - final $request = {}; - $request['Message'] = message; - messageAttributes?.also((arg) => $request['MessageAttributes'] = arg); - messageDeduplicationId - ?.also((arg) => $request['MessageDeduplicationId'] = arg); - messageGroupId?.also((arg) => $request['MessageGroupId'] = arg); - messageStructure?.also((arg) => $request['MessageStructure'] = arg); - phoneNumber?.also((arg) => $request['PhoneNumber'] = arg); - subject?.also((arg) => $request['Subject'] = arg); - targetArn?.also((arg) => $request['TargetArn'] = arg); - topicArn?.also((arg) => $request['TopicArn'] = arg); + final $request = { + 'Message': message, + if (messageAttributes != null) + for (var e1 in messageAttributes.entries.toList().asMap().entries) ...{ + 'MessageAttributes.entry.${e1.key + 1}.Name': e1.value.key, + for (var e4 in e1.value.value.toQueryMap().entries) + 'MessageAttributes.entry.${e1.key + 1}.Value.${e4.key}': e4.value, + }, + if (messageDeduplicationId != null) + 'MessageDeduplicationId': messageDeduplicationId, + if (messageGroupId != null) 'MessageGroupId': messageGroupId, + if (messageStructure != null) 'MessageStructure': messageStructure, + if (phoneNumber != null) 'PhoneNumber': phoneNumber, + if (subject != null) 'Subject': subject, + if (targetArn != null) 'TargetArn': targetArn, + if (topicArn != null) 'TopicArn': topicArn, + }; final $result = await _protocol.send( $request, action: 'Publish', @@ -1557,8 +1561,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PublishInput'], - shapes: shapes, resultWrapper: 'PublishResult', ); return PublishResponse.fromXml($result); @@ -1626,9 +1628,15 @@ class SNS { required List publishBatchRequestEntries, required String topicArn, }) async { - final $request = {}; - $request['PublishBatchRequestEntries'] = publishBatchRequestEntries; - $request['TopicArn'] = topicArn; + final $request = { + if (publishBatchRequestEntries.isEmpty) + 'PublishBatchRequestEntries': '' + else + for (var i1 = 0; i1 < publishBatchRequestEntries.length; i1++) + for (var e3 in publishBatchRequestEntries[i1].toQueryMap().entries) + 'PublishBatchRequestEntries.member.${i1 + 1}.${e3.key}': e3.value, + 'TopicArn': topicArn, + }; final $result = await _protocol.send( $request, action: 'PublishBatch', @@ -1636,8 +1644,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PublishBatchInput'], - shapes: shapes, resultWrapper: 'PublishBatchResult', ); return PublishBatchResponse.fromXml($result); @@ -1670,9 +1676,10 @@ class SNS { required String dataProtectionPolicy, required String resourceArn, }) async { - final $request = {}; - $request['DataProtectionPolicy'] = dataProtectionPolicy; - $request['ResourceArn'] = resourceArn; + final $request = { + 'DataProtectionPolicy': dataProtectionPolicy, + 'ResourceArn': resourceArn, + }; await _protocol.send( $request, action: 'PutDataProtectionPolicy', @@ -1680,8 +1687,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['PutDataProtectionPolicyInput'], - shapes: shapes, ); } @@ -1707,9 +1712,10 @@ class SNS { required String label, required String topicArn, }) async { - final $request = {}; - $request['Label'] = label; - $request['TopicArn'] = topicArn; + final $request = { + 'Label': label, + 'TopicArn': topicArn, + }; await _protocol.send( $request, action: 'RemovePermission', @@ -1717,8 +1723,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['RemovePermissionInput'], - shapes: shapes, ); } @@ -1763,9 +1767,13 @@ class SNS { required Map attributes, required String endpointArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['EndpointArn'] = endpointArn; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + 'EndpointArn': endpointArn, + }; await _protocol.send( $request, action: 'SetEndpointAttributes', @@ -1773,8 +1781,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetEndpointAttributesInput'], - shapes: shapes, ); } @@ -1905,9 +1911,13 @@ class SNS { required Map attributes, required String platformApplicationArn, }) async { - final $request = {}; - $request['Attributes'] = attributes; - $request['PlatformApplicationArn'] = platformApplicationArn; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + 'PlatformApplicationArn': platformApplicationArn, + }; await _protocol.send( $request, action: 'SetPlatformApplicationAttributes', @@ -1915,8 +1925,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetPlatformApplicationAttributesInput'], - shapes: shapes, ); } @@ -2037,8 +2045,12 @@ class SNS { Future setSMSAttributes({ required Map attributes, }) async { - final $request = {}; - $request['attributes'] = attributes; + final $request = { + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'attributes.entry.${e1.key + 1}.key': e1.value.key, + 'attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + }; await _protocol.send( $request, action: 'SetSMSAttributes', @@ -2046,8 +2058,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSMSAttributesInput'], - shapes: shapes, resultWrapper: 'SetSMSAttributesResult', ); } @@ -2140,10 +2150,11 @@ class SNS { required String subscriptionArn, String? attributeValue, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['SubscriptionArn'] = subscriptionArn; - attributeValue?.also((arg) => $request['AttributeValue'] = arg); + final $request = { + 'AttributeName': attributeName, + 'SubscriptionArn': subscriptionArn, + if (attributeValue != null) 'AttributeValue': attributeValue, + }; await _protocol.send( $request, action: 'SetSubscriptionAttributes', @@ -2151,8 +2162,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetSubscriptionAttributesInput'], - shapes: shapes, ); } @@ -2382,10 +2391,11 @@ class SNS { required String topicArn, String? attributeValue, }) async { - final $request = {}; - $request['AttributeName'] = attributeName; - $request['TopicArn'] = topicArn; - attributeValue?.also((arg) => $request['AttributeValue'] = arg); + final $request = { + 'AttributeName': attributeName, + 'TopicArn': topicArn, + if (attributeValue != null) 'AttributeValue': attributeValue, + }; await _protocol.send( $request, action: 'SetTopicAttributes', @@ -2393,8 +2403,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SetTopicAttributesInput'], - shapes: shapes, ); } @@ -2619,13 +2627,18 @@ class SNS { String? endpoint, bool? returnSubscriptionArn, }) async { - final $request = {}; - $request['Protocol'] = protocol; - $request['TopicArn'] = topicArn; - attributes?.also((arg) => $request['Attributes'] = arg); - endpoint?.also((arg) => $request['Endpoint'] = arg); - returnSubscriptionArn - ?.also((arg) => $request['ReturnSubscriptionArn'] = arg); + final $request = { + 'Protocol': protocol, + 'TopicArn': topicArn, + if (attributes != null) + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.entry.${e1.key + 1}.key': e1.value.key, + 'Attributes.entry.${e1.key + 1}.value': e1.value.value, + }, + if (endpoint != null) 'Endpoint': endpoint, + if (returnSubscriptionArn != null) + 'ReturnSubscriptionArn': returnSubscriptionArn.toString(), + }; final $result = await _protocol.send( $request, action: 'Subscribe', @@ -2633,8 +2646,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['SubscribeInput'], - shapes: shapes, resultWrapper: 'SubscribeResult', ); return SubscribeResponse.fromXml($result); @@ -2688,9 +2699,15 @@ class SNS { required String resourceArn, required List tags, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - $request['Tags'] = tags; + final $request = { + 'ResourceArn': resourceArn, + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; await _protocol.send( $request, action: 'TagResource', @@ -2698,8 +2715,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['TagResourceRequest'], - shapes: shapes, resultWrapper: 'TagResourceResult', ); } @@ -2730,8 +2745,9 @@ class SNS { Future unsubscribe({ required String subscriptionArn, }) async { - final $request = {}; - $request['SubscriptionArn'] = subscriptionArn; + final $request = { + 'SubscriptionArn': subscriptionArn, + }; await _protocol.send( $request, action: 'Unsubscribe', @@ -2739,8 +2755,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UnsubscribeInput'], - shapes: shapes, ); } @@ -2765,9 +2779,14 @@ class SNS { required String resourceArn, required List tagKeys, }) async { - final $request = {}; - $request['ResourceArn'] = resourceArn; - $request['TagKeys'] = tagKeys; + final $request = { + 'ResourceArn': resourceArn, + if (tagKeys.isEmpty) + 'TagKeys': '' + else + for (var i1 = 0; i1 < tagKeys.length; i1++) + 'TagKeys.member.${i1 + 1}': tagKeys[i1], + }; await _protocol.send( $request, action: 'UntagResource', @@ -2775,8 +2794,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['UntagResourceRequest'], - shapes: shapes, resultWrapper: 'UntagResourceResult', ); } @@ -2812,9 +2829,10 @@ class SNS { required String oneTimePassword, required String phoneNumber, }) async { - final $request = {}; - $request['OneTimePassword'] = oneTimePassword; - $request['PhoneNumber'] = phoneNumber; + final $request = { + 'OneTimePassword': oneTimePassword, + 'PhoneNumber': phoneNumber, + }; await _protocol.send( $request, action: 'VerifySMSSandboxPhoneNumber', @@ -2822,8 +2840,6 @@ class SNS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['VerifySMSSandboxPhoneNumberInput'], - shapes: shapes, resultWrapper: 'VerifySMSSandboxPhoneNumberResult', ); } @@ -3749,6 +3765,17 @@ class MessageAttributeValue { if (stringValue != null) 'StringValue': stringValue, }; } + + Map toQueryMap() { + final dataType = this.dataType; + final binaryValue = this.binaryValue; + final stringValue = this.stringValue; + return { + 'DataType': dataType, + if (binaryValue != null) 'BinaryValue': base64Encode(binaryValue), + if (stringValue != null) 'StringValue': stringValue, + }; + } } /// Enum listing out all supported number capabilities. @@ -4027,6 +4054,31 @@ class PublishBatchRequestEntry { if (subject != null) 'Subject': subject, }; } + + Map toQueryMap() { + final id = this.id; + final message = this.message; + final messageAttributes = this.messageAttributes; + final messageDeduplicationId = this.messageDeduplicationId; + final messageGroupId = this.messageGroupId; + final messageStructure = this.messageStructure; + final subject = this.subject; + return { + 'Id': id, + 'Message': message, + if (messageAttributes != null) + for (var e1 in messageAttributes.entries.toList().asMap().entries) ...{ + 'MessageAttributes.entry.${e1.key + 1}.Name': e1.value.key, + for (var e4 in e1.value.value.toQueryMap().entries) + 'MessageAttributes.entry.${e1.key + 1}.Value.${e4.key}': e4.value, + }, + if (messageDeduplicationId != null) + 'MessageDeduplicationId': messageDeduplicationId, + if (messageGroupId != null) 'MessageGroupId': messageGroupId, + if (messageStructure != null) 'MessageStructure': messageStructure, + if (subject != null) 'Subject': subject, + }; + } } class PublishBatchResponse { @@ -4307,6 +4359,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } class TagResourceResponse { diff --git a/generated/aws_sts_api/lib/sts-2011-06-15.dart b/generated/aws_sts_api/lib/sts-2011-06-15.dart index fd7500503..00f878259 100644 --- a/generated/aws_sts_api/lib/sts-2011-06-15.dart +++ b/generated/aws_sts_api/lib/sts-2011-06-15.dart @@ -17,7 +17,6 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'sts-2011-06-15.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Security Token Service (STS) enables you to request temporary, @@ -27,7 +26,6 @@ export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Security Credentials. class STS { final _s.QueryProtocol _protocol; - final Map shapes; STS({ String? region, @@ -35,7 +33,7 @@ class STS { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'sts', @@ -44,9 +42,7 @@ class STS { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -445,19 +441,44 @@ class STS { 900, 43200, ); - final $request = {}; - $request['RoleArn'] = roleArn; - $request['RoleSessionName'] = roleSessionName; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - externalId?.also((arg) => $request['ExternalId'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); - providedContexts?.also((arg) => $request['ProvidedContexts'] = arg); - serialNumber?.also((arg) => $request['SerialNumber'] = arg); - sourceIdentity?.also((arg) => $request['SourceIdentity'] = arg); - tags?.also((arg) => $request['Tags'] = arg); - tokenCode?.also((arg) => $request['TokenCode'] = arg); - transitiveTagKeys?.also((arg) => $request['TransitiveTagKeys'] = arg); + final $request = { + 'RoleArn': roleArn, + 'RoleSessionName': roleSessionName, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (externalId != null) 'ExternalId': externalId, + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + if (providedContexts != null) + if (providedContexts.isEmpty) + 'ProvidedContexts': '' + else + for (var i1 = 0; i1 < providedContexts.length; i1++) + for (var e3 in providedContexts[i1].toQueryMap().entries) + 'ProvidedContexts.member.${i1 + 1}.${e3.key}': e3.value, + if (serialNumber != null) 'SerialNumber': serialNumber, + if (sourceIdentity != null) 'SourceIdentity': sourceIdentity, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + if (tokenCode != null) 'TokenCode': tokenCode, + if (transitiveTagKeys != null) + if (transitiveTagKeys.isEmpty) + 'TransitiveTagKeys': '' + else + for (var i1 = 0; i1 < transitiveTagKeys.length; i1++) + 'TransitiveTagKeys.member.${i1 + 1}': transitiveTagKeys[i1], + }; final $result = await _protocol.send( $request, action: 'AssumeRole', @@ -465,8 +486,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssumeRoleRequest'], - shapes: shapes, resultWrapper: 'AssumeRoleResult', ); return AssumeRoleResponse.fromXml($result); @@ -752,13 +771,21 @@ class STS { 900, 43200, ); - final $request = {}; - $request['PrincipalArn'] = principalArn; - $request['RoleArn'] = roleArn; - $request['SAMLAssertion'] = sAMLAssertion; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); + final $request = { + 'PrincipalArn': principalArn, + 'RoleArn': roleArn, + 'SAMLAssertion': sAMLAssertion, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'AssumeRoleWithSAML', @@ -766,8 +793,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssumeRoleWithSAMLRequest'], - shapes: shapes, resultWrapper: 'AssumeRoleWithSAMLResult', ); return AssumeRoleWithSAMLResponse.fromXml($result); @@ -1091,14 +1116,22 @@ class STS { 900, 43200, ); - final $request = {}; - $request['RoleArn'] = roleArn; - $request['RoleSessionName'] = roleSessionName; - $request['WebIdentityToken'] = webIdentityToken; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); - providerId?.also((arg) => $request['ProviderId'] = arg); + final $request = { + 'RoleArn': roleArn, + 'RoleSessionName': roleSessionName, + 'WebIdentityToken': webIdentityToken, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + if (providerId != null) 'ProviderId': providerId, + }; final $result = await _protocol.send( $request, action: 'AssumeRoleWithWebIdentity', @@ -1106,8 +1139,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['AssumeRoleWithWebIdentityRequest'], - shapes: shapes, resultWrapper: 'AssumeRoleWithWebIdentityResult', ); return AssumeRoleWithWebIdentityResponse.fromXml($result); @@ -1166,8 +1197,9 @@ class STS { Future decodeAuthorizationMessage({ required String encodedMessage, }) async { - final $request = {}; - $request['EncodedMessage'] = encodedMessage; + final $request = { + 'EncodedMessage': encodedMessage, + }; final $result = await _protocol.send( $request, action: 'DecodeAuthorizationMessage', @@ -1175,8 +1207,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['DecodeAuthorizationMessageRequest'], - shapes: shapes, resultWrapper: 'DecodeAuthorizationMessageResult', ); return DecodeAuthorizationMessageResponse.fromXml($result); @@ -1219,8 +1249,9 @@ class STS { Future getAccessKeyInfo({ required String accessKeyId, }) async { - final $request = {}; - $request['AccessKeyId'] = accessKeyId; + final $request = { + 'AccessKeyId': accessKeyId, + }; final $result = await _protocol.send( $request, action: 'GetAccessKeyInfo', @@ -1228,8 +1259,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetAccessKeyInfoRequest'], - shapes: shapes, resultWrapper: 'GetAccessKeyInfoResult', ); return GetAccessKeyInfoResponse.fromXml($result); @@ -1248,7 +1277,7 @@ class STS { /// User Guide. /// Future getCallerIdentity() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'GetCallerIdentity', @@ -1256,8 +1285,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetCallerIdentityRequest'], - shapes: shapes, resultWrapper: 'GetCallerIdentityResult', ); return GetCallerIdentityResponse.fromXml($result); @@ -1538,12 +1565,26 @@ class STS { 900, 129600, ); - final $request = {}; - $request['Name'] = name; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - policy?.also((arg) => $request['Policy'] = arg); - policyArns?.also((arg) => $request['PolicyArns'] = arg); - tags?.also((arg) => $request['Tags'] = arg); + final $request = { + 'Name': name, + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (policy != null) 'Policy': policy, + if (policyArns != null) + if (policyArns.isEmpty) + 'PolicyArns': '' + else + for (var i1 = 0; i1 < policyArns.length; i1++) + for (var e3 in policyArns[i1].toQueryMap().entries) + 'PolicyArns.member.${i1 + 1}.${e3.key}': e3.value, + if (tags != null) + if (tags.isEmpty) + 'Tags': '' + else + for (var i1 = 0; i1 < tags.length; i1++) + for (var e3 in tags[i1].toQueryMap().entries) + 'Tags.member.${i1 + 1}.${e3.key}': e3.value, + }; final $result = await _protocol.send( $request, action: 'GetFederationToken', @@ -1551,8 +1592,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetFederationTokenRequest'], - shapes: shapes, resultWrapper: 'GetFederationTokenResult', ); return GetFederationTokenResponse.fromXml($result); @@ -1678,10 +1717,12 @@ class STS { 900, 129600, ); - final $request = {}; - durationSeconds?.also((arg) => $request['DurationSeconds'] = arg); - serialNumber?.also((arg) => $request['SerialNumber'] = arg); - tokenCode?.also((arg) => $request['TokenCode'] = arg); + final $request = { + if (durationSeconds != null) + 'DurationSeconds': durationSeconds.toString(), + if (serialNumber != null) 'SerialNumber': serialNumber, + if (tokenCode != null) 'TokenCode': tokenCode, + }; final $result = await _protocol.send( $request, action: 'GetSessionToken', @@ -1689,8 +1730,6 @@ class STS { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['GetSessionTokenRequest'], - shapes: shapes, resultWrapper: 'GetSessionTokenResult', ); return GetSessionTokenResponse.fromXml($result); @@ -2210,6 +2249,13 @@ class PolicyDescriptorType { if (arn != null) 'arn': arn, }; } + + Map toQueryMap() { + final arn = this.arn; + return { + if (arn != null) 'arn': arn, + }; + } } /// Contains information about the provided context. This includes the signed @@ -2238,6 +2284,15 @@ class ProvidedContext { if (providerArn != null) 'ProviderArn': providerArn, }; } + + Map toQueryMap() { + final contextAssertion = this.contextAssertion; + final providerArn = this.providerArn; + return { + if (contextAssertion != null) 'ContextAssertion': contextAssertion, + if (providerArn != null) 'ProviderArn': providerArn, + }; + } } /// You can pass custom key-value pair attributes when you assume a role or @@ -2275,6 +2330,15 @@ class Tag { 'Value': value, }; } + + Map toQueryMap() { + final key = this.key; + final value = this.value; + return { + 'Key': key, + 'Value': value, + }; + } } class ExpiredTokenException extends _s.GenericAwsException { diff --git a/generator/lib/builders/library_builder.dart b/generator/lib/builders/library_builder.dart index e32279a0c..33a0ab184 100644 --- a/generator/lib/builders/library_builder.dart +++ b/generator/lib/builders/library_builder.dart @@ -336,6 +336,26 @@ ${builder.constructor()} writeln('}'); } + if (shape.isUsedInInput && shape.api.usesQueryProtocol) { + writeln('\n\n Map toQueryMap() {'); + for (var member in shape.members) { + writeln('final ${member.fieldName} = this.${member.fieldName};'); + } + writeln('return {'); + for (var member in shape.members.where((m) => m.isBody)) { + final lastName = member.locationName ?? + member.shapeClass?.locationName ?? + member.shapeClass?.member?.locationName ?? + member.name; + for (var line in queryLines(member.fieldName, + member: member, prefixes: [lastName])) { + writeln(line); + } + } + writeln('};'); + writeln('}'); + } + if (shape.generateToXml) { writeln( '\n _s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {'); diff --git a/generator/lib/builders/protocols/query_builder.dart b/generator/lib/builders/protocols/query_builder.dart index f33acfc71..6550896b8 100644 --- a/generator/lib/builders/protocols/query_builder.dart +++ b/generator/lib/builders/protocols/query_builder.dart @@ -14,7 +14,6 @@ class QueryServiceBuilder extends ServiceBuilder { final isRegionRequired = !api.isGlobalService; return ''' final _s.QueryProtocol _protocol; - final Map shapes; ${api.metadata.className}({ ${isRegionRequired ? 'required String' : 'String?'} region, @@ -29,36 +28,28 @@ class QueryServiceBuilder extends ServiceBuilder { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson.map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); '''; } @override - String imports() => "import '${api.fileBasename}.meta.dart';"; + String imports() => ''; @override String operationContent(Operation operation) { final parameterShape = api.shapes[operation.parameterType]; final buf = StringBuffer(); - buf.writeln(' final \$request = {};'); + buf.writeln(' final \$request = {'); for (var member in parameterShape?.members ?? []) { member.shapeClass!.markUsed(true); - final idempotency = - member.idempotencyToken ? '?? _s.generateIdempotencyToken()' : ''; - - if (member.isRequired || member.idempotencyToken) { - final code = encodeQueryCode(member.shapeClass!, member.fieldName, - member: member, maybeNull: false); - buf.writeln("\$request['${member.name}'] = $code$idempotency;"); - } else { - final code = encodeQueryCode(member.shapeClass!, 'arg', - member: member, maybeNull: false); - buf.writeln( - "${member.fieldName}?.also((arg) => \$request['${member.name}'] = $code);"); + final lastName = member.name; + for (var line in queryLines(member.fieldName, + member: member, prefixes: [lastName])) { + buf.writeln(line); } } + buf.writeln('};'); final params = StringBuffer([ '\$request, ', "action: '${operation.name}',", @@ -67,9 +58,6 @@ class QueryServiceBuilder extends ServiceBuilder { 'requestUri: \'${operation.http.requestUri}\', ', 'exceptionFnMap: _exceptionFns, ', if (operation.authtype == 'none') 'signed: false, ', - if (operation.input?.shape != null) - "shape: shapes['${operation.input!.shape}'], ", - 'shapes: shapes,', ].join()); if (operation.output?.resultWrapper != null) { params.write('resultWrapper: \'${operation.output!.resultWrapper}\','); @@ -84,36 +72,99 @@ class QueryServiceBuilder extends ServiceBuilder { } } -String encodeQueryCode(Shape shape, String variable, - {Member? member, Descriptor? descriptor, bool? maybeNull}) { - maybeNull ??= true; +Iterable queryLines(String variable, + {Member? member, + Descriptor? descriptor, + required List prefixes}) sync* { + final shape = (member?.shapeClass ?? descriptor?.shapeClass)!; + + final idempotency = member?.idempotencyToken ?? false + ? '?? _s.generateIdempotencyToken()' + : ''; + + if (!(member?.isRequired ?? false) && + !(member?.idempotencyToken ?? false) && + descriptor == null) { + yield 'if ($variable != null)'; + } + + if (shape.type == 'structure') { + final loopVariable = 'e${prefixes.length}'; + yield 'for (var $loopVariable in $variable.toQueryMap().entries)'; + yield "'${prefixes.join('.')}.\${$loopVariable.key}': $loopVariable.value,"; + } else if (shape.type == 'list') { + yield 'if ($variable.isEmpty)'; + yield "'${prefixes.join('.')}': ''"; + yield 'else'; + + final name = shape.member?.locationName ?? member?.locationName; + if (shape.flattened && name != null) { + prefixes.removeLast(); + prefixes.add(name); + } + + final loopVariable = 'i${prefixes.length}'; + yield 'for (var $loopVariable = 0; $loopVariable < $variable.length; $loopVariable++)'; + yield* queryLines('$variable[$loopVariable]', + descriptor: shape.member!, + prefixes: [ + ...prefixes, + if (!shape.flattened) name ?? 'member', + '\${$loopVariable + 1}' + ]); + } else if (shape.type == 'map') { + // TODO: Once migrated to Dart 3, use .indexed + final loopVariable = 'e${prefixes.length}'; + yield 'for (var $loopVariable in $variable.entries.toList().asMap().entries) ...{'; + + final keyShape = shape.key!.shapeClass!; + final valueShape = shape.value!.shapeClass!; + + final initialPrefixes = [ + ...prefixes, + if (!shape.flattened) 'entry', + '\${$loopVariable.key + 1}', + ]; + final keyEntryKey = [ + ...initialPrefixes, + shape.key!.locationName ?? keyShape.locationName ?? 'key' + ]; + final valueEntryKey = [ + ...initialPrefixes, + shape.value!.locationName ?? valueShape.locationName ?? 'value' + ]; + + yield* queryLines('$loopVariable.value.key', + descriptor: shape.key, prefixes: keyEntryKey); + yield* queryLines('$loopVariable.value.value', + descriptor: shape.value, prefixes: valueEntryKey); + yield '},'; + } else { + final code = _encodeQueryCode(shape, variable, + member: member, descriptor: descriptor); + yield "'${prefixes.join('.')}': $code$idempotency,"; + } +} + +String _encodeQueryCode(Shape shape, String variable, + {Member? member, Descriptor? descriptor}) { if (member?.jsonvalue == true || descriptor?.jsonvalue == true) { return 'jsonEncode($variable)'; } else if (shape.enumeration != null) { shape.isTopLevelInputEnum = true; - return '$variable${maybeNull ? '?' : ''}.toValue()${maybeNull ? "??''" : ''}'; - } else if (shape.type == 'list') { - final code = encodeQueryCode(shape.member!.shapeClass!, 'e', - maybeNull: false, descriptor: shape.member!); - if (code != 'e') { - final nullAware = maybeNull ? '?' : ''; - return '$nullAware$variable$nullAware.map((e) => $code)$nullAware.toList()'; - } - } else if (shape.type == 'map') { - final keyCode = encodeQueryCode(shape.key!.shapeClass!, 'k', - maybeNull: false, descriptor: shape.key!); - final valueCode = encodeQueryCode(shape.value!.shapeClass!, 'v', - maybeNull: false, descriptor: shape.value!); - if (keyCode != 'k' || valueCode != 'v') { - final nullAware = maybeNull ? '?' : ''; - return '$variable$nullAware.map((k, v) => MapEntry($keyCode, $valueCode))'; - } + return '$variable.toValue()'; + } else if (shape.type == 'blob') { + return 'base64Encode($variable)'; } else if (shape.type == 'timestamp') { final timestampFormat = member?.timestampFormat ?? shape.timestampFormat ?? 'iso8601'; variable = '_s.${timestampFormat}ToJson($variable)${timestampFormat == 'unixTimestamp' ? '.toString()' : ''}'; + } else if (shape.type == 'string') { + return variable; + } else { + assert(shape.type != 'structure'); + return '$variable.toString()'; } - return variable; } diff --git a/generator/lib/builders/protocols/service_builder.dart b/generator/lib/builders/protocols/service_builder.dart index 6f361326d..8bb61828a 100644 --- a/generator/lib/builders/protocols/service_builder.dart +++ b/generator/lib/builders/protocols/service_builder.dart @@ -1,7 +1,7 @@ import '../../model/api.dart'; +import '../../model/descriptor.dart'; import '../../model/operation.dart'; import '../../model/shape.dart'; -import 'query_builder.dart'; abstract class ServiceBuilder { String imports(); @@ -97,13 +97,13 @@ abstract class ServiceBuilder { if (member.shapeClass?.type == 'map') { final variable = _encodeQueryParamCode( member.shapeClass!.value!.shapeClass!, 'e.value', - member: member, maybeNull: false); + member: member); out.writeln('for (var e in ${member.fieldName}.entries)'); out.writeln('e.key: $variable,'); } else { final variable = _encodeQueryParamCode( member.shapeClass!, member.fieldName, - member: member, maybeNull: false); + member: member); out.writeln("'$location': $variable,"); } } @@ -120,14 +120,8 @@ abstract class ServiceBuilder { } } -String _encodeQueryParamCode(Shape shape, String variable, - {Member? member, bool maybeNull = false}) { - if (shape.type == 'list') { - maybeNull = false; - } - - var code = - encodeQueryCode(shape, variable, member: member, maybeNull: maybeNull); +String _encodeQueryParamCode(Shape shape, String variable, {Member? member}) { + var code = _encodeQueryCode(shape, variable, member: member); if (shape.type == 'list') { return code; } else if (shape.type == 'map') { @@ -140,6 +134,29 @@ String _encodeQueryParamCode(Shape shape, String variable, } } +String _encodeQueryCode(Shape shape, String variable, + {Member? member, Descriptor? descriptor}) { + if (member?.jsonvalue == true || descriptor?.jsonvalue == true) { + return 'jsonEncode($variable)'; + } else if (shape.enumeration != null) { + shape.isTopLevelInputEnum = true; + return '$variable.toValue()'; + } else if (shape.type == 'list') { + final code = _encodeQueryCode(shape.member!.shapeClass!, 'e', + descriptor: shape.member!); + if (code != 'e') { + return '$variable.map((e) => $code).toList()'; + } + } else if (shape.type == 'timestamp') { + final timestampFormat = + member?.timestampFormat ?? shape.timestampFormat ?? 'iso8601'; + variable = + '_s.${timestampFormat}ToJson($variable)${timestampFormat == 'unixTimestamp' ? '.toString()' : ''}'; + } + + return variable; +} + String _encodePath(Shape shape, String variable) { if (shape.enumeration != null) { shape.isTopLevelInputEnum = true; diff --git a/generator/lib/generate_command.dart b/generator/lib/generate_command.dart index c23c70598..4f03b1f91 100644 --- a/generator/lib/generate_command.dart +++ b/generator/lib/generate_command.dart @@ -21,7 +21,6 @@ import 'model/api.dart'; import 'model/config.dart'; import 'model/region_config.dart'; import 'model/test_model.dart'; -import 'model_thin/api.dart' as thin; class GenerateCommand extends Command { final _formatter = DartFormatter(fixes: StyleFix.all); @@ -180,7 +179,6 @@ in the config file, from the downloaded models.'''; try { final api = Api.fromJson(defJson); - final thinApi = thin.Api.fromJson(defJson); final protocolConfig = config.protocols[api.metadata.protocol]!; if (!(api.isRecognized && @@ -211,19 +209,9 @@ in the config file, from the downloaded models.'''; serviceFile.parent.createSync(recursive: true); exampleFile.createSync(recursive: true); - var metaContents = ''' -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = ${jsonEncode(thinApi.toJson()['shapes'])};'''; - var serviceText = buildService(api); if (argResults!['format'] == true) { serviceText = _formatter.format(serviceText, uri: serviceFile.uri); - metaContents = _formatter.format(metaContents); - } - - if (api.usesQueryProtocol) { - File('$allApisDir/lib/${api.packageName}/${api.fileBasename}.meta.dart') - .writeAsStringSync(metaContents); } String pubspecYaml; @@ -386,7 +374,6 @@ const Map> shapesJson = ${jsonEncode(thinApi.toJson final apiDef = testSuite.toApiDefinition(); final api = Api.fromJson(apiDef); - final thinApi = thin.Api.fromJson(apiDef); var serviceCode = buildService(api); @@ -399,15 +386,6 @@ const Map> shapesJson = ${jsonEncode(thinApi.toJson } final baseDir = '${generatedDir.path}/$type/$protocol'; - if (api.usesQueryProtocol) { - final metaContents = ''' - // ignore_for_file: prefer_single_quotes - const Map> shapesJson = ${jsonEncode(thinApi.toJson()['shapes'])};'''; - - File('$baseDir/${api.fileBasename}.meta.dart') - ..createSync(recursive: true) - ..writeAsStringSync(formatter.format(metaContents)); - } File('$baseDir/${api.fileBasename}.dart') ..createSync(recursive: true) diff --git a/generator/lib/generate_single_package_command.dart b/generator/lib/generate_single_package_command.dart index 8b652fe0e..2c0b60d87 100644 --- a/generator/lib/generate_single_package_command.dart +++ b/generator/lib/generate_single_package_command.dart @@ -12,7 +12,6 @@ import 'builders/library_builder.dart'; import 'generate_command.dart'; import 'model/api.dart'; import 'model/region_config.dart'; -import 'model_thin/api.dart' as thin; import 'utils/fix_absolute_import.dart'; class GenerateSinglePackageCommand extends Command { @@ -73,7 +72,6 @@ class GenerateSinglePackageCommand extends Command { try { final api = Api.fromJson(defJson); - final thinApi = thin.Api.fromJson(defJson); final percentage = i * 100 ~/ services.length; @@ -92,24 +90,14 @@ class GenerateSinglePackageCommand extends Command { serviceFile.parent.createSync(recursive: true); entryFile.parent.createSync(recursive: true); - var metaContents = ''' -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = ${jsonEncode(thinApi.toJson()['shapes'])};'''; - var entryContent = ''' export '../src/generated/${api.directoryName}/${api.fileBasename}.dart'; '''; var serviceText = buildService(api, sharedLibraryPath: '../../shared'); serviceText = _formatter.format(serviceText, uri: serviceFile.uri); - metaContents = _formatter.format(metaContents); entryContent = _formatter.format(entryContent); - if (api.usesQueryProtocol) { - File('$baseDir/${api.fileBasename}.meta.dart') - .writeAsStringSync(metaContents); - } - serviceFile.writeAsStringSync(serviceText); entryFile.writeAsStringSync(entryContent); @@ -127,6 +115,10 @@ export '../src/generated/${api.directoryName}/${api.fileBasename}.dart'; File(p.join(libDir, 'dynamo_document.dart')).writeAsStringSync(''' export 'src/dynamo_document/document_client.dart'; export 'src/dynamo_document/src/translator.dart'; +'''); + + File(p.join(libDir, 'credential_providers.dart')).writeAsStringSync(''' +export 'src/credential_providers/aws_credential_providers.dart'; '''); var readmeTemplate = diff --git a/generator/lib/model/descriptor.dart b/generator/lib/model/descriptor.dart index 220d45ef0..70675ff4c 100644 --- a/generator/lib/model/descriptor.dart +++ b/generator/lib/model/descriptor.dart @@ -8,12 +8,6 @@ import 'xml_namespace.dart'; part 'descriptor.g.dart'; -abstract class MemberOrDescriptor { - Shape get shapeClass; - String get locationName; - String get timestampFormat; -} - @JsonSerializable(createToJson: false, disallowUnrecognizedKeys: true) class Descriptor { @JsonKey(includeFromJson: false, includeToJson: false) diff --git a/generator/lib/model_thin/api.dart b/generator/lib/model_thin/api.dart deleted file mode 100644 index fe67c416f..000000000 --- a/generator/lib/model_thin/api.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:json_annotation/json_annotation.dart'; - -import 'operation.dart'; -import 'shape.dart'; - -part 'api.g.dart'; - -@JsonSerializable(includeIfNull: false) -class Api { - final Map operations; - final Map shapes; - - Api( - this.operations, - this.shapes, - ); - - factory Api.fromJson(Map json) => _$ApiFromJson(json); - - Map toJson() => _$ApiToJson(this); -} diff --git a/generator/lib/model_thin/api.g.dart b/generator/lib/model_thin/api.g.dart deleted file mode 100644 index 393de43d7..000000000 --- a/generator/lib/model_thin/api.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'api.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Api _$ApiFromJson(Map json) => Api( - (json['operations'] as Map).map( - (k, e) => MapEntry(k, Operation.fromJson(e as Map)), - ), - (json['shapes'] as Map).map( - (k, e) => MapEntry(k, Shape.fromJson(e as Map)), - ), - ); - -Map _$ApiToJson(Api instance) => { - 'operations': instance.operations, - 'shapes': instance.shapes, - }; diff --git a/generator/lib/model_thin/descriptor.dart b/generator/lib/model_thin/descriptor.dart deleted file mode 100644 index e53f68374..000000000 --- a/generator/lib/model_thin/descriptor.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:json_annotation/json_annotation.dart'; - -part 'descriptor.g.dart'; - -@JsonSerializable(includeIfNull: false) -class Descriptor { - final String shape; - final String? locationName; - - Descriptor( - this.shape, - this.locationName, - ); - - factory Descriptor.fromJson(Map json) => - _$DescriptorFromJson(json); - - Map toJson() => _$DescriptorToJson(this); -} diff --git a/generator/lib/model_thin/descriptor.g.dart b/generator/lib/model_thin/descriptor.g.dart deleted file mode 100644 index a7948f9b3..000000000 --- a/generator/lib/model_thin/descriptor.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'descriptor.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Descriptor _$DescriptorFromJson(Map json) => Descriptor( - json['shape'] as String, - json['locationName'] as String?, - ); - -Map _$DescriptorToJson(Descriptor instance) { - final val = { - 'shape': instance.shape, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('locationName', instance.locationName); - return val; -} diff --git a/generator/lib/model_thin/operation.dart b/generator/lib/model_thin/operation.dart deleted file mode 100644 index 706dec37c..000000000 --- a/generator/lib/model_thin/operation.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:json_annotation/json_annotation.dart'; - -import 'descriptor.dart'; - -part 'operation.g.dart'; - -@JsonSerializable(includeIfNull: false) -class Operation { - final String name; - final Descriptor? input; - final Descriptor? output; - - Operation( - this.name, - this.input, - this.output, - ); - - factory Operation.fromJson(Map json) => - _$OperationFromJson(json); - - Map toJson() => _$OperationToJson(this); -} diff --git a/generator/lib/model_thin/operation.g.dart b/generator/lib/model_thin/operation.g.dart deleted file mode 100644 index 61bc9d658..000000000 --- a/generator/lib/model_thin/operation.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'operation.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Operation _$OperationFromJson(Map json) => Operation( - json['name'] as String, - json['input'] == null - ? null - : Descriptor.fromJson(json['input'] as Map), - json['output'] == null - ? null - : Descriptor.fromJson(json['output'] as Map), - ); - -Map _$OperationToJson(Operation instance) { - final val = { - 'name': instance.name, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('input', instance.input); - writeNotNull('output', instance.output); - return val; -} diff --git a/generator/lib/model_thin/shape.dart b/generator/lib/model_thin/shape.dart deleted file mode 100644 index 0935843c8..000000000 --- a/generator/lib/model_thin/shape.dart +++ /dev/null @@ -1,49 +0,0 @@ -import 'package:json_annotation/json_annotation.dart'; - -import 'descriptor.dart'; - -part 'shape.g.dart'; - -@JsonSerializable(includeIfNull: false) -class Shape { - final String type; - final Map? members; - final Descriptor? member; - final Descriptor? key; - final Descriptor? value; - final String? locationName; - final String? timestampFormat; - @JsonKey(defaultValue: false) - final bool flattened; - - Shape( - this.type, - this.key, - this.value, - this.member, - this.flattened, - this.members, - this.locationName, - this.timestampFormat, - ); - - factory Shape.fromJson(Map json) => _$ShapeFromJson(json); - - Map toJson() => _$ShapeToJson(this); -} - -@JsonSerializable(includeIfNull: false) -class Member { - final String shape; - @JsonKey(defaultValue: false) - final bool flattened; - - Member( - this.shape, - this.flattened, - ); - - factory Member.fromJson(Map json) => _$MemberFromJson(json); - - Map toJson() => _$MemberToJson(this); -} diff --git a/generator/lib/model_thin/shape.g.dart b/generator/lib/model_thin/shape.g.dart deleted file mode 100644 index 43347fa2e..000000000 --- a/generator/lib/model_thin/shape.g.dart +++ /dev/null @@ -1,57 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'shape.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Shape _$ShapeFromJson(Map json) => Shape( - json['type'] as String, - json['key'] == null - ? null - : Descriptor.fromJson(json['key'] as Map), - json['value'] == null - ? null - : Descriptor.fromJson(json['value'] as Map), - json['member'] == null - ? null - : Descriptor.fromJson(json['member'] as Map), - json['flattened'] as bool? ?? false, - (json['members'] as Map?)?.map( - (k, e) => MapEntry(k, Member.fromJson(e as Map)), - ), - json['locationName'] as String?, - json['timestampFormat'] as String?, - ); - -Map _$ShapeToJson(Shape instance) { - final val = { - 'type': instance.type, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('members', instance.members); - writeNotNull('member', instance.member); - writeNotNull('key', instance.key); - writeNotNull('value', instance.value); - writeNotNull('locationName', instance.locationName); - writeNotNull('timestampFormat', instance.timestampFormat); - val['flattened'] = instance.flattened; - return val; -} - -Member _$MemberFromJson(Map json) => Member( - json['shape'] as String, - json['flattened'] as bool? ?? false, - ); - -Map _$MemberToJson(Member instance) => { - 'shape': instance.shape, - 'flattened': instance.flattened, - }; diff --git a/shared_aws_api/lib/src/protocol/query.dart b/shared_aws_api/lib/src/protocol/query.dart index 5c531704d..0697ffb87 100644 --- a/shared_aws_api/lib/src/protocol/query.dart +++ b/shared_aws_api/lib/src/protocol/query.dart @@ -61,27 +61,34 @@ class QueryProtocol { } Future send( - Map data, { + Map data, { required String method, required String requestUri, required Map exceptionFnMap, bool signed = true, - Shape? shape, - required Map shapes, required String version, required String action, String? resultWrapper, }) async { - final rq = await _buildRequest( - data, - method, - requestUri, - signed, - shape, - shapes, - version, - action, - ); + final rq = Request(method, Uri.parse('${_endpoint.url}$requestUri')); + rq.body = canonicalQueryParameters( + {'Action': action, 'Version': version, ...data}); + rq.headers['Content-Type'] = 'application/x-www-form-urlencoded'; + + if (signed) { + final credentials = await _credentialsProvider?.call(client: _client); + + if (credentials == null) { + throw Exception('credentials for signing request is null'); + } + + _requestSigner( + rq: rq, + service: _endpoint.service, + region: _endpoint.signingRegion, + credentials: credentials, + ); + } final rs = await _client.send(rq); final body = await rs.stream.bytesToString(); @@ -107,38 +114,6 @@ class QueryProtocol { return elem; } - Future _buildRequest( - Map data, - String method, - String requestUri, - bool signed, - Shape? shape, - Map shapes, - String version, - String action, - ) async { - final rq = Request(method, Uri.parse('${_endpoint.url}$requestUri')); - rq.body = canonicalQueryParameters( - flatQueryParams(data, shape, shapes, version, action)); - rq.headers['Content-Type'] = 'application/x-www-form-urlencoded'; - - if (signed) { - final credentials = await _credentialsProvider?.call(client: _client); - - if (credentials == null) { - throw Exception('credentials for signing request is null'); - } - - _requestSigner( - rq: rq, - service: _endpoint.service, - region: _endpoint.signingRegion, - credentials: credentials, - ); - } - return rq; - } - void close() { if (_closed) { return; diff --git a/shared_aws_api/lib/src/scoping_extensions.dart b/shared_aws_api/lib/src/scoping_extensions.dart index 9933c1ad9..d9cc32bb3 100644 --- a/shared_aws_api/lib/src/scoping_extensions.dart +++ b/shared_aws_api/lib/src/scoping_extensions.dart @@ -2,11 +2,4 @@ extension ScopingFunctions on T { /// Calls the specified function [block] with `this` value /// as its argument and returns its result. R let(R Function(T e) block) => block(this); - - /// Calls the specified function [block] with `this` value - /// as its argument and returns `this` value. - T also(void Function(T e) block) { - block(this); - return this; - } } diff --git a/shared_aws_api/test/generated/input/query/base64_encoded_blobs.dart b/shared_aws_api/test/generated/input/query/base64_encoded_blobs.dart index fb77c4b33..22e3104c4 100644 --- a/shared_aws_api/test/generated/input/query/base64_encoded_blobs.dart +++ b/shared_aws_api/test/generated/input/query/base64_encoded_blobs.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'base64_encoded_blobs.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Base64 encoded Blobs class Base64EncodedBlobs { final _s.QueryProtocol _protocol; - final Map shapes; Base64EncodedBlobs({ required String region, @@ -31,7 +29,7 @@ class Base64EncodedBlobs { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'Base64EncodedBlobs', @@ -40,9 +38,7 @@ class Base64EncodedBlobs { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,9 @@ class Base64EncodedBlobs { Future operationName0({ Uint8List? blobArg, }) async { - final $request = {}; - blobArg?.also((arg) => $request['BlobArg'] = arg); + final $request = { + if (blobArg != null) 'BlobArg': base64Encode(blobArg), + }; await _protocol.send( $request, action: 'OperationName', @@ -65,8 +62,6 @@ class Base64EncodedBlobs { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/base64_encoded_blobs.meta.dart b/shared_aws_api/test/generated/input/query/base64_encoded_blobs.meta.dart deleted file mode 100644 index af6d2806a..000000000 --- a/shared_aws_api/test/generated/input/query/base64_encoded_blobs.meta.dart +++ /dev/null @@ -1,11 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "BlobArg": {"shape": "BlobType", "flattened": false} - }, - "flattened": false - }, - "BlobType": {"type": "blob", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/base64_encoded_blobs_nested.dart b/shared_aws_api/test/generated/input/query/base64_encoded_blobs_nested.dart index 44d89a14c..01fbe1671 100644 --- a/shared_aws_api/test/generated/input/query/base64_encoded_blobs_nested.dart +++ b/shared_aws_api/test/generated/input/query/base64_encoded_blobs_nested.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'base64_encoded_blobs_nested.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Base64 encoded Blobs nested class Base64EncodedBlobsNested { final _s.QueryProtocol _protocol; - final Map shapes; Base64EncodedBlobsNested({ required String region, @@ -31,7 +29,7 @@ class Base64EncodedBlobsNested { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'Base64EncodedBlobsNested', @@ -40,9 +38,7 @@ class Base64EncodedBlobsNested { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,14 @@ class Base64EncodedBlobsNested { Future operationName0({ List? blobArgs, }) async { - final $request = {}; - blobArgs?.also((arg) => $request['BlobArgs'] = arg); + final $request = { + if (blobArgs != null) + if (blobArgs.isEmpty) + 'BlobArgs': '' + else + for (var i1 = 0; i1 < blobArgs.length; i1++) + 'BlobArgs.${i1 + 1}': base64Encode(blobArgs[i1]), + }; await _protocol.send( $request, action: 'OperationName', @@ -65,8 +67,6 @@ class Base64EncodedBlobsNested { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/base64_encoded_blobs_nested.meta.dart b/shared_aws_api/test/generated/input/query/base64_encoded_blobs_nested.meta.dart deleted file mode 100644 index b46f3c49e..000000000 --- a/shared_aws_api/test/generated/input/query/base64_encoded_blobs_nested.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "BlobArgs": {"shape": "BlobsType", "flattened": false} - }, - "flattened": false - }, - "BlobsType": { - "type": "list", - "member": {"shape": "BlobType"}, - "flattened": true - }, - "BlobType": {"type": "blob", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/endpoint_host_trait.dart b/shared_aws_api/test/generated/input/query/endpoint_host_trait.dart index 6fee8a5e8..6aab121b2 100644 --- a/shared_aws_api/test/generated/input/query/endpoint_host_trait.dart +++ b/shared_aws_api/test/generated/input/query/endpoint_host_trait.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'endpoint_host_trait.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Endpoint host trait class EndpointHostTrait { final _s.QueryProtocol _protocol; - final Map shapes; EndpointHostTrait({ required String region, @@ -31,7 +29,7 @@ class EndpointHostTrait { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'EndpointHostTrait', @@ -40,9 +38,7 @@ class EndpointHostTrait { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,9 @@ class EndpointHostTrait { Future staticOp0({ String? name, }) async { - final $request = {}; - name?.also((arg) => $request['Name'] = arg); + final $request = { + if (name != null) 'Name': name, + }; await _protocol.send( $request, action: 'StaticOp', @@ -65,16 +62,15 @@ class EndpointHostTrait { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['StaticInputShape'], - shapes: shapes, ); } Future memberRefOp1({ String? name, }) async { - final $request = {}; - name?.also((arg) => $request['Name'] = arg); + final $request = { + if (name != null) 'Name': name, + }; await _protocol.send( $request, action: 'MemberRefOp', @@ -82,8 +78,6 @@ class EndpointHostTrait { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['MemberRefInputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/endpoint_host_trait.meta.dart b/shared_aws_api/test/generated/input/query/endpoint_host_trait.meta.dart deleted file mode 100644 index fdb2c2c0c..000000000 --- a/shared_aws_api/test/generated/input/query/endpoint_host_trait.meta.dart +++ /dev/null @@ -1,18 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "StaticInputShape": { - "type": "structure", - "members": { - "Name": {"shape": "StringType", "flattened": false} - }, - "flattened": false - }, - "MemberRefInputShape": { - "type": "structure", - "members": { - "Name": {"shape": "StringType", "flattened": false} - }, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/enum.dart b/shared_aws_api/test/generated/input/query/enum.dart index 2d98ab515..d04e14c55 100644 --- a/shared_aws_api/test/generated/input/query/enum.dart +++ b/shared_aws_api/test/generated/input/query/enum.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'enum.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Enum class Enum { final _s.QueryProtocol _protocol; - final Map shapes; Enum({ required String region, @@ -31,7 +29,7 @@ class Enum { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'Enum', @@ -40,9 +38,7 @@ class Enum { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -57,10 +53,15 @@ class Enum { EnumType? fooEnum, List? listEnums, }) async { - final $request = {}; - fooEnum?.also((arg) => $request['FooEnum'] = arg.toValue()); - listEnums?.also( - (arg) => $request['ListEnums'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (fooEnum != null) 'FooEnum': fooEnum.toValue(), + if (listEnums != null) + if (listEnums.isEmpty) + 'ListEnums': '' + else + for (var i1 = 0; i1 < listEnums.length; i1++) + 'ListEnums.member.${i1 + 1}': listEnums[i1].toValue(), + }; await _protocol.send( $request, action: 'OperationName', @@ -68,8 +69,6 @@ class Enum { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } @@ -77,10 +76,15 @@ class Enum { EnumType? fooEnum, List? listEnums, }) async { - final $request = {}; - fooEnum?.also((arg) => $request['FooEnum'] = arg.toValue()); - listEnums?.also( - (arg) => $request['ListEnums'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (fooEnum != null) 'FooEnum': fooEnum.toValue(), + if (listEnums != null) + if (listEnums.isEmpty) + 'ListEnums': '' + else + for (var i1 = 0; i1 < listEnums.length; i1++) + 'ListEnums.member.${i1 + 1}': listEnums[i1].toValue(), + }; await _protocol.send( $request, action: 'OperationName', @@ -88,8 +92,6 @@ class Enum { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } @@ -97,10 +99,15 @@ class Enum { EnumType? fooEnum, List? listEnums, }) async { - final $request = {}; - fooEnum?.also((arg) => $request['FooEnum'] = arg.toValue()); - listEnums?.also( - (arg) => $request['ListEnums'] = arg.map((e) => e.toValue()).toList()); + final $request = { + if (fooEnum != null) 'FooEnum': fooEnum.toValue(), + if (listEnums != null) + if (listEnums.isEmpty) + 'ListEnums': '' + else + for (var i1 = 0; i1 < listEnums.length; i1++) + 'ListEnums.member.${i1 + 1}': listEnums[i1].toValue(), + }; await _protocol.send( $request, action: 'OperationName', @@ -108,8 +115,6 @@ class Enum { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/enum.meta.dart b/shared_aws_api/test/generated/input/query/enum.meta.dart deleted file mode 100644 index 4898b9ad0..000000000 --- a/shared_aws_api/test/generated/input/query/enum.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "FooEnum": {"shape": "EnumType", "flattened": false}, - "ListEnums": {"shape": "EnumList", "flattened": false} - }, - "flattened": false - }, - "EnumType": {"type": "string", "flattened": false}, - "EnumList": { - "type": "list", - "member": {"shape": "EnumType"}, - "flattened": false - } -}; diff --git a/shared_aws_api/test/generated/input/query/flattened_list.dart b/shared_aws_api/test/generated/input/query/flattened_list.dart index a7bf7f32c..9701461ee 100644 --- a/shared_aws_api/test/generated/input/query/flattened_list.dart +++ b/shared_aws_api/test/generated/input/query/flattened_list.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_list.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened list class FlattenedList { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedList({ required String region, @@ -31,7 +29,7 @@ class FlattenedList { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedList', @@ -40,9 +38,7 @@ class FlattenedList { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -58,10 +54,21 @@ class FlattenedList { List? namedListArg, String? scalarArg, }) async { - final $request = {}; - listArg?.also((arg) => $request['ListArg'] = arg); - namedListArg?.also((arg) => $request['NamedListArg'] = arg); - scalarArg?.also((arg) => $request['ScalarArg'] = arg); + final $request = { + if (listArg != null) + if (listArg.isEmpty) + 'ListArg': '' + else + for (var i1 = 0; i1 < listArg.length; i1++) + 'ListArg.${i1 + 1}': listArg[i1], + if (namedListArg != null) + if (namedListArg.isEmpty) + 'NamedListArg': '' + else + for (var i1 = 0; i1 < namedListArg.length; i1++) + 'Foo.${i1 + 1}': namedListArg[i1], + if (scalarArg != null) 'ScalarArg': scalarArg, + }; await _protocol.send( $request, action: 'OperationName', @@ -69,8 +76,6 @@ class FlattenedList { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } @@ -79,10 +84,21 @@ class FlattenedList { List? namedListArg, String? scalarArg, }) async { - final $request = {}; - listArg?.also((arg) => $request['ListArg'] = arg); - namedListArg?.also((arg) => $request['NamedListArg'] = arg); - scalarArg?.also((arg) => $request['ScalarArg'] = arg); + final $request = { + if (listArg != null) + if (listArg.isEmpty) + 'ListArg': '' + else + for (var i1 = 0; i1 < listArg.length; i1++) + 'ListArg.${i1 + 1}': listArg[i1], + if (namedListArg != null) + if (namedListArg.isEmpty) + 'NamedListArg': '' + else + for (var i1 = 0; i1 < namedListArg.length; i1++) + 'Foo.${i1 + 1}': namedListArg[i1], + if (scalarArg != null) 'ScalarArg': scalarArg, + }; await _protocol.send( $request, action: 'OperationName', @@ -90,8 +106,6 @@ class FlattenedList { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/flattened_list.meta.dart b/shared_aws_api/test/generated/input/query/flattened_list.meta.dart deleted file mode 100644 index b6ba9b0ce..000000000 --- a/shared_aws_api/test/generated/input/query/flattened_list.meta.dart +++ /dev/null @@ -1,23 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "ScalarArg": {"shape": "StringType", "flattened": false}, - "ListArg": {"shape": "ListType", "flattened": false}, - "NamedListArg": {"shape": "NamedListType", "flattened": false} - }, - "flattened": false - }, - "ListType": { - "type": "list", - "member": {"shape": "StringType"}, - "flattened": true - }, - "NamedListType": { - "type": "list", - "member": {"shape": "StringType", "locationName": "Foo"}, - "flattened": true - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/flattened_list_with_locationname.dart b/shared_aws_api/test/generated/input/query/flattened_list_with_locationname.dart index 6e87794f2..c62bc0f6f 100644 --- a/shared_aws_api/test/generated/input/query/flattened_list_with_locationname.dart +++ b/shared_aws_api/test/generated/input/query/flattened_list_with_locationname.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_list_with_locationname.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened list with LocationName class FlattenedListWithLocationName { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedListWithLocationName({ required String region, @@ -31,7 +29,7 @@ class FlattenedListWithLocationName { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedListWithLocationName', @@ -40,9 +38,7 @@ class FlattenedListWithLocationName { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -57,9 +53,15 @@ class FlattenedListWithLocationName { List? listArg, String? scalarArg, }) async { - final $request = {}; - listArg?.also((arg) => $request['ListArg'] = arg); - scalarArg?.also((arg) => $request['ScalarArg'] = arg); + final $request = { + if (listArg != null) + if (listArg.isEmpty) + 'ListArg': '' + else + for (var i1 = 0; i1 < listArg.length; i1++) + 'ListArgLocation.${i1 + 1}': listArg[i1], + if (scalarArg != null) 'ScalarArg': scalarArg, + }; await _protocol.send( $request, action: 'OperationName', @@ -67,8 +69,6 @@ class FlattenedListWithLocationName { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/flattened_list_with_locationname.meta.dart b/shared_aws_api/test/generated/input/query/flattened_list_with_locationname.meta.dart deleted file mode 100644 index eebc2cb2f..000000000 --- a/shared_aws_api/test/generated/input/query/flattened_list_with_locationname.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "ScalarArg": {"shape": "StringType", "flattened": false}, - "ListArg": {"shape": "ListType", "flattened": false} - }, - "flattened": false - }, - "ListType": { - "type": "list", - "member": {"shape": "StringType", "locationName": "ListArgLocation"}, - "flattened": true - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/idempotency_token_auto_fill.dart b/shared_aws_api/test/generated/input/query/idempotency_token_auto_fill.dart index c150a47cf..21053b3eb 100644 --- a/shared_aws_api/test/generated/input/query/idempotency_token_auto_fill.dart +++ b/shared_aws_api/test/generated/input/query/idempotency_token_auto_fill.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'idempotency_token_auto_fill.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Idempotency token auto fill class IdempotencyTokenAutoFill { final _s.QueryProtocol _protocol; - final Map shapes; IdempotencyTokenAutoFill({ required String region, @@ -31,7 +29,7 @@ class IdempotencyTokenAutoFill { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'IdempotencyTokenAutoFill', @@ -40,9 +38,7 @@ class IdempotencyTokenAutoFill { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,9 @@ class IdempotencyTokenAutoFill { Future operationName0({ String? token, }) async { - final $request = {}; - $request['Token'] = token ?? _s.generateIdempotencyToken(); + final $request = { + 'Token': token ?? _s.generateIdempotencyToken(), + }; await _protocol.send( $request, action: 'OperationName', @@ -65,16 +62,15 @@ class IdempotencyTokenAutoFill { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } Future operationName1({ String? token, }) async { - final $request = {}; - $request['Token'] = token ?? _s.generateIdempotencyToken(); + final $request = { + 'Token': token ?? _s.generateIdempotencyToken(), + }; await _protocol.send( $request, action: 'OperationName', @@ -82,8 +78,6 @@ class IdempotencyTokenAutoFill { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/idempotency_token_auto_fill.meta.dart b/shared_aws_api/test/generated/input/query/idempotency_token_auto_fill.meta.dart deleted file mode 100644 index 82ed5c9ec..000000000 --- a/shared_aws_api/test/generated/input/query/idempotency_token_auto_fill.meta.dart +++ /dev/null @@ -1,11 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "Token": {"shape": "StringType", "flattened": false} - }, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/list_types.dart b/shared_aws_api/test/generated/input/query/list_types.dart index 63a0cd015..b240e8069 100644 --- a/shared_aws_api/test/generated/input/query/list_types.dart +++ b/shared_aws_api/test/generated/input/query/list_types.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'list_types.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// List types class ListTypes { final _s.QueryProtocol _protocol; - final Map shapes; ListTypes({ required String region, @@ -31,7 +29,7 @@ class ListTypes { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'ListTypes', @@ -40,9 +38,7 @@ class ListTypes { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,14 @@ class ListTypes { Future operationName0({ List? listArg, }) async { - final $request = {}; - listArg?.also((arg) => $request['ListArg'] = arg); + final $request = { + if (listArg != null) + if (listArg.isEmpty) + 'ListArg': '' + else + for (var i1 = 0; i1 < listArg.length; i1++) + 'ListArg.member.${i1 + 1}': listArg[i1], + }; await _protocol.send( $request, action: 'OperationName', @@ -65,16 +67,20 @@ class ListTypes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } Future operationName1({ List? listArg, }) async { - final $request = {}; - listArg?.also((arg) => $request['ListArg'] = arg); + final $request = { + if (listArg != null) + if (listArg.isEmpty) + 'ListArg': '' + else + for (var i1 = 0; i1 < listArg.length; i1++) + 'ListArg.member.${i1 + 1}': listArg[i1], + }; await _protocol.send( $request, action: 'OperationName', @@ -82,8 +88,6 @@ class ListTypes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/list_types.meta.dart b/shared_aws_api/test/generated/input/query/list_types.meta.dart deleted file mode 100644 index 1c8036871..000000000 --- a/shared_aws_api/test/generated/input/query/list_types.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "ListArg": {"shape": "ListType", "flattened": false} - }, - "flattened": false - }, - "ListType": { - "type": "list", - "member": {"shape": "Strings"}, - "flattened": false - }, - "Strings": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/map_with_enum_key.dart b/shared_aws_api/test/generated/input/query/map_with_enum_key.dart index f1a997596..ac3ff4cb1 100644 --- a/shared_aws_api/test/generated/input/query/map_with_enum_key.dart +++ b/shared_aws_api/test/generated/input/query/map_with_enum_key.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'map_with_enum_key.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Map with enum key class MapWithEnumKey { final _s.QueryProtocol _protocol; - final Map shapes; MapWithEnumKey({ required String region, @@ -31,7 +29,7 @@ class MapWithEnumKey { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'MapWithEnumKey', @@ -40,9 +38,7 @@ class MapWithEnumKey { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -57,10 +53,14 @@ class MapWithEnumKey { required String queueName, Map? attributes, }) async { - final $request = {}; - $request['QueueName'] = queueName; - attributes?.also((arg) => - $request['Attributes'] = arg.map((k, v) => MapEntry(k.toValue(), v))); + final $request = { + 'QueueName': queueName, + if (attributes != null) + for (var e1 in attributes.entries.toList().asMap().entries) ...{ + 'Attributes.${e1.key + 1}.Name': e1.value.key.toValue(), + 'Attributes.${e1.key + 1}.Value': e1.value.value, + }, + }; await _protocol.send( $request, action: 'CreateQueue', @@ -68,8 +68,6 @@ class MapWithEnumKey { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['CreateQueueRequest'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/map_with_enum_key.meta.dart b/shared_aws_api/test/generated/input/query/map_with_enum_key.meta.dart deleted file mode 100644 index 4061ad39f..000000000 --- a/shared_aws_api/test/generated/input/query/map_with_enum_key.meta.dart +++ /dev/null @@ -1,20 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "CreateQueueRequest": { - "type": "structure", - "members": { - "QueueName": {"shape": "String", "flattened": false}, - "Attributes": {"shape": "QueueAttributeMap", "flattened": false} - }, - "flattened": false - }, - "QueueAttributeMap": { - "type": "map", - "key": {"shape": "QueueAttributeName", "locationName": "Name"}, - "value": {"shape": "String", "locationName": "Value"}, - "locationName": "Attribute", - "flattened": true - }, - "QueueAttributeName": {"type": "string", "flattened": false}, - "String": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/nested_structure_members.dart b/shared_aws_api/test/generated/input/query/nested_structure_members.dart index b9291a124..12a50e45e 100644 --- a/shared_aws_api/test/generated/input/query/nested_structure_members.dart +++ b/shared_aws_api/test/generated/input/query/nested_structure_members.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'nested_structure_members.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Nested structure members class NestedStructureMembers { final _s.QueryProtocol _protocol; - final Map shapes; NestedStructureMembers({ required String region, @@ -31,7 +29,7 @@ class NestedStructureMembers { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'NestedStructureMembers', @@ -40,9 +38,7 @@ class NestedStructureMembers { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,11 @@ class NestedStructureMembers { Future operationName0({ StructType? structArg, }) async { - final $request = {}; - structArg?.also((arg) => $request['StructArg'] = arg); + final $request = { + if (structArg != null) + for (var e1 in structArg.toQueryMap().entries) + 'StructArg.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'OperationName', @@ -65,8 +64,6 @@ class NestedStructureMembers { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } @@ -84,6 +81,13 @@ class StructType { if (scalarArg != null) 'ScalarArg': scalarArg, }; } + + Map toQueryMap() { + final scalarArg = this.scalarArg; + return { + if (scalarArg != null) 'ScalarArg': scalarArg, + }; + } } final _exceptionFns = {}; diff --git a/shared_aws_api/test/generated/input/query/nested_structure_members.meta.dart b/shared_aws_api/test/generated/input/query/nested_structure_members.meta.dart deleted file mode 100644 index 5d1cb62df..000000000 --- a/shared_aws_api/test/generated/input/query/nested_structure_members.meta.dart +++ /dev/null @@ -1,18 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "StructArg": {"shape": "StructType", "flattened": false} - }, - "flattened": false - }, - "StructType": { - "type": "structure", - "members": { - "ScalarArg": {"shape": "StringType", "flattened": false} - }, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/non_flattened_list_with_locationname.dart b/shared_aws_api/test/generated/input/query/non_flattened_list_with_locationname.dart index fe413db20..529093ebc 100644 --- a/shared_aws_api/test/generated/input/query/non_flattened_list_with_locationname.dart +++ b/shared_aws_api/test/generated/input/query/non_flattened_list_with_locationname.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'non_flattened_list_with_locationname.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Non flattened list with LocationName class NonFlattenedListWithLocationName { final _s.QueryProtocol _protocol; - final Map shapes; NonFlattenedListWithLocationName({ required String region, @@ -31,7 +29,7 @@ class NonFlattenedListWithLocationName { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'NonFlattenedListWithLocationName', @@ -40,9 +38,7 @@ class NonFlattenedListWithLocationName { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,14 @@ class NonFlattenedListWithLocationName { Future operationName0({ List? listArg, }) async { - final $request = {}; - listArg?.also((arg) => $request['ListArg'] = arg); + final $request = { + if (listArg != null) + if (listArg.isEmpty) + 'ListArg': '' + else + for (var i1 = 0; i1 < listArg.length; i1++) + 'ListArg.item.${i1 + 1}': listArg[i1], + }; await _protocol.send( $request, action: 'OperationName', @@ -65,8 +67,6 @@ class NonFlattenedListWithLocationName { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/non_flattened_list_with_locationname.meta.dart b/shared_aws_api/test/generated/input/query/non_flattened_list_with_locationname.meta.dart deleted file mode 100644 index e4196995d..000000000 --- a/shared_aws_api/test/generated/input/query/non_flattened_list_with_locationname.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "ListArg": {"shape": "ListType", "flattened": false} - }, - "flattened": false - }, - "ListType": { - "type": "list", - "member": {"shape": "StringType", "locationName": "item"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/recursive_shapes.dart b/shared_aws_api/test/generated/input/query/recursive_shapes.dart index 2b2697d76..3768edb27 100644 --- a/shared_aws_api/test/generated/input/query/recursive_shapes.dart +++ b/shared_aws_api/test/generated/input/query/recursive_shapes.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'recursive_shapes.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Recursive shapes class RecursiveShapes { final _s.QueryProtocol _protocol; - final Map shapes; RecursiveShapes({ required String region, @@ -31,7 +29,7 @@ class RecursiveShapes { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'RecursiveShapes', @@ -40,9 +38,7 @@ class RecursiveShapes { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,11 @@ class RecursiveShapes { Future operationName0({ RecursiveStructType? recursiveStruct, }) async { - final $request = {}; - recursiveStruct?.also((arg) => $request['RecursiveStruct'] = arg); + final $request = { + if (recursiveStruct != null) + for (var e1 in recursiveStruct.toQueryMap().entries) + 'RecursiveStruct.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'OperationName', @@ -65,16 +64,17 @@ class RecursiveShapes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } Future operationName1({ RecursiveStructType? recursiveStruct, }) async { - final $request = {}; - recursiveStruct?.also((arg) => $request['RecursiveStruct'] = arg); + final $request = { + if (recursiveStruct != null) + for (var e1 in recursiveStruct.toQueryMap().entries) + 'RecursiveStruct.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'OperationName', @@ -82,16 +82,17 @@ class RecursiveShapes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } Future operationName2({ RecursiveStructType? recursiveStruct, }) async { - final $request = {}; - recursiveStruct?.also((arg) => $request['RecursiveStruct'] = arg); + final $request = { + if (recursiveStruct != null) + for (var e1 in recursiveStruct.toQueryMap().entries) + 'RecursiveStruct.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'OperationName', @@ -99,16 +100,17 @@ class RecursiveShapes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } Future operationName3({ RecursiveStructType? recursiveStruct, }) async { - final $request = {}; - recursiveStruct?.also((arg) => $request['RecursiveStruct'] = arg); + final $request = { + if (recursiveStruct != null) + for (var e1 in recursiveStruct.toQueryMap().entries) + 'RecursiveStruct.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'OperationName', @@ -116,16 +118,17 @@ class RecursiveShapes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } Future operationName4({ RecursiveStructType? recursiveStruct, }) async { - final $request = {}; - recursiveStruct?.also((arg) => $request['RecursiveStruct'] = arg); + final $request = { + if (recursiveStruct != null) + for (var e1 in recursiveStruct.toQueryMap().entries) + 'RecursiveStruct.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'OperationName', @@ -133,16 +136,17 @@ class RecursiveShapes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } Future operationName5({ RecursiveStructType? recursiveStruct, }) async { - final $request = {}; - recursiveStruct?.also((arg) => $request['RecursiveStruct'] = arg); + final $request = { + if (recursiveStruct != null) + for (var e1 in recursiveStruct.toQueryMap().entries) + 'RecursiveStruct.${e1.key}': e1.value, + }; await _protocol.send( $request, action: 'OperationName', @@ -150,8 +154,6 @@ class RecursiveShapes { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } @@ -181,6 +183,32 @@ class RecursiveStructType { if (recursiveStruct != null) 'RecursiveStruct': recursiveStruct, }; } + + Map toQueryMap() { + final noRecurse = this.noRecurse; + final recursiveList = this.recursiveList; + final recursiveMap = this.recursiveMap; + final recursiveStruct = this.recursiveStruct; + return { + if (noRecurse != null) 'NoRecurse': noRecurse, + if (recursiveList != null) + if (recursiveList.isEmpty) + 'RecursiveList': '' + else + for (var i1 = 0; i1 < recursiveList.length; i1++) + for (var e3 in recursiveList[i1].toQueryMap().entries) + 'RecursiveList.member.${i1 + 1}.${e3.key}': e3.value, + if (recursiveMap != null) + for (var e1 in recursiveMap.entries.toList().asMap().entries) ...{ + 'RecursiveMap.entry.${e1.key + 1}.key': e1.value.key, + for (var e4 in e1.value.value.toQueryMap().entries) + 'RecursiveMap.entry.${e1.key + 1}.value.${e4.key}': e4.value, + }, + if (recursiveStruct != null) + for (var e1 in recursiveStruct.toQueryMap().entries) + 'RecursiveStruct.${e1.key}': e1.value, + }; + } } final _exceptionFns = {}; diff --git a/shared_aws_api/test/generated/input/query/recursive_shapes.meta.dart b/shared_aws_api/test/generated/input/query/recursive_shapes.meta.dart deleted file mode 100644 index c1b402b2e..000000000 --- a/shared_aws_api/test/generated/input/query/recursive_shapes.meta.dart +++ /dev/null @@ -1,32 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "RecursiveStruct": {"shape": "RecursiveStructType", "flattened": false} - }, - "flattened": false - }, - "RecursiveStructType": { - "type": "structure", - "members": { - "NoRecurse": {"shape": "StringType", "flattened": false}, - "RecursiveStruct": {"shape": "RecursiveStructType", "flattened": false}, - "RecursiveList": {"shape": "RecursiveListType", "flattened": false}, - "RecursiveMap": {"shape": "RecursiveMapType", "flattened": false} - }, - "flattened": false - }, - "RecursiveListType": { - "type": "list", - "member": {"shape": "RecursiveStructType"}, - "flattened": false - }, - "RecursiveMapType": { - "type": "map", - "key": {"shape": "StringType"}, - "value": {"shape": "RecursiveStructType"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/scalar_members.dart b/shared_aws_api/test/generated/input/query/scalar_members.dart index c5297ea4c..90d6f0d88 100644 --- a/shared_aws_api/test/generated/input/query/scalar_members.dart +++ b/shared_aws_api/test/generated/input/query/scalar_members.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'scalar_members.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Scalar members class ScalarMembers { final _s.QueryProtocol _protocol; - final Map shapes; ScalarMembers({ required String region, @@ -31,7 +29,7 @@ class ScalarMembers { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'ScalarMembers', @@ -40,9 +38,7 @@ class ScalarMembers { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -58,10 +54,11 @@ class ScalarMembers { bool? baz, String? foo, }) async { - final $request = {}; - bar?.also((arg) => $request['Bar'] = arg); - baz?.also((arg) => $request['Baz'] = arg); - foo?.also((arg) => $request['Foo'] = arg); + final $request = { + if (bar != null) 'Bar': bar, + if (baz != null) 'Baz': baz.toString(), + if (foo != null) 'Foo': foo, + }; await _protocol.send( $request, action: 'OperationName', @@ -69,8 +66,6 @@ class ScalarMembers { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } @@ -79,10 +74,11 @@ class ScalarMembers { bool? baz, String? foo, }) async { - final $request = {}; - bar?.also((arg) => $request['Bar'] = arg); - baz?.also((arg) => $request['Baz'] = arg); - foo?.also((arg) => $request['Foo'] = arg); + final $request = { + if (bar != null) 'Bar': bar, + if (baz != null) 'Baz': baz.toString(), + if (foo != null) 'Foo': foo, + }; await _protocol.send( $request, action: 'OperationName', @@ -90,8 +86,6 @@ class ScalarMembers { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } @@ -100,10 +94,11 @@ class ScalarMembers { bool? baz, String? foo, }) async { - final $request = {}; - bar?.also((arg) => $request['Bar'] = arg); - baz?.also((arg) => $request['Baz'] = arg); - foo?.also((arg) => $request['Foo'] = arg); + final $request = { + if (bar != null) 'Bar': bar, + if (baz != null) 'Baz': baz.toString(), + if (foo != null) 'Foo': foo, + }; await _protocol.send( $request, action: 'OperationName', @@ -111,8 +106,6 @@ class ScalarMembers { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/scalar_members.meta.dart b/shared_aws_api/test/generated/input/query/scalar_members.meta.dart deleted file mode 100644 index f719fa7dd..000000000 --- a/shared_aws_api/test/generated/input/query/scalar_members.meta.dart +++ /dev/null @@ -1,14 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "Foo": {"shape": "StringType", "flattened": false}, - "Bar": {"shape": "StringType", "flattened": false}, - "Baz": {"shape": "BooleanType", "flattened": false} - }, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false}, - "BooleanType": {"type": "boolean", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/serialize_flattened_map_type.dart b/shared_aws_api/test/generated/input/query/serialize_flattened_map_type.dart index f4c1e69a7..9018312ff 100644 --- a/shared_aws_api/test/generated/input/query/serialize_flattened_map_type.dart +++ b/shared_aws_api/test/generated/input/query/serialize_flattened_map_type.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'serialize_flattened_map_type.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Serialize flattened map type class SerializeFlattenedMapType { final _s.QueryProtocol _protocol; - final Map shapes; SerializeFlattenedMapType({ required String region, @@ -31,7 +29,7 @@ class SerializeFlattenedMapType { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'SerializeFlattenedMapType', @@ -40,9 +38,7 @@ class SerializeFlattenedMapType { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,13 @@ class SerializeFlattenedMapType { Future operationName0({ Map? mapArg, }) async { - final $request = {}; - mapArg?.also((arg) => $request['MapArg'] = arg); + final $request = { + if (mapArg != null) + for (var e1 in mapArg.entries.toList().asMap().entries) ...{ + 'MapArg.${e1.key + 1}.key': e1.value.key, + 'MapArg.${e1.key + 1}.value': e1.value.value, + }, + }; await _protocol.send( $request, action: 'OperationName', @@ -65,8 +66,6 @@ class SerializeFlattenedMapType { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/serialize_flattened_map_type.meta.dart b/shared_aws_api/test/generated/input/query/serialize_flattened_map_type.meta.dart deleted file mode 100644 index 48111d88b..000000000 --- a/shared_aws_api/test/generated/input/query/serialize_flattened_map_type.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "MapArg": {"shape": "StringMap", "flattened": false} - }, - "flattened": false - }, - "StringMap": { - "type": "map", - "key": {"shape": "StringType"}, - "value": {"shape": "StringType"}, - "flattened": true - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/serialize_map_type.dart b/shared_aws_api/test/generated/input/query/serialize_map_type.dart index 70796c1a5..fdcb07be9 100644 --- a/shared_aws_api/test/generated/input/query/serialize_map_type.dart +++ b/shared_aws_api/test/generated/input/query/serialize_map_type.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'serialize_map_type.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Serialize map type class SerializeMapType { final _s.QueryProtocol _protocol; - final Map shapes; SerializeMapType({ required String region, @@ -31,7 +29,7 @@ class SerializeMapType { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'SerializeMapType', @@ -40,9 +38,7 @@ class SerializeMapType { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,13 @@ class SerializeMapType { Future operationName0({ Map? mapArg, }) async { - final $request = {}; - mapArg?.also((arg) => $request['MapArg'] = arg); + final $request = { + if (mapArg != null) + for (var e1 in mapArg.entries.toList().asMap().entries) ...{ + 'MapArg.entry.${e1.key + 1}.key': e1.value.key, + 'MapArg.entry.${e1.key + 1}.value': e1.value.value, + }, + }; await _protocol.send( $request, action: 'OperationName', @@ -65,8 +66,6 @@ class SerializeMapType { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/serialize_map_type.meta.dart b/shared_aws_api/test/generated/input/query/serialize_map_type.meta.dart deleted file mode 100644 index 5250fb415..000000000 --- a/shared_aws_api/test/generated/input/query/serialize_map_type.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "MapArg": {"shape": "StringMap", "flattened": false} - }, - "flattened": false - }, - "StringMap": { - "type": "map", - "key": {"shape": "StringType"}, - "value": {"shape": "StringType"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/serialize_map_type_with_locationname.dart b/shared_aws_api/test/generated/input/query/serialize_map_type_with_locationname.dart index fa28cab4c..4076d0ff5 100644 --- a/shared_aws_api/test/generated/input/query/serialize_map_type_with_locationname.dart +++ b/shared_aws_api/test/generated/input/query/serialize_map_type_with_locationname.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'serialize_map_type_with_locationname.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Serialize map type with locationName class SerializeMapTypeWithLocationName { final _s.QueryProtocol _protocol; - final Map shapes; SerializeMapTypeWithLocationName({ required String region, @@ -31,7 +29,7 @@ class SerializeMapTypeWithLocationName { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'SerializeMapTypeWithLocationName', @@ -40,9 +38,7 @@ class SerializeMapTypeWithLocationName { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -56,8 +52,13 @@ class SerializeMapTypeWithLocationName { Future operationName0({ Map? mapArg, }) async { - final $request = {}; - mapArg?.also((arg) => $request['MapArg'] = arg); + final $request = { + if (mapArg != null) + for (var e1 in mapArg.entries.toList().asMap().entries) ...{ + 'MapArg.entry.${e1.key + 1}.TheKey': e1.value.key, + 'MapArg.entry.${e1.key + 1}.TheValue': e1.value.value, + }, + }; await _protocol.send( $request, action: 'OperationName', @@ -65,8 +66,6 @@ class SerializeMapTypeWithLocationName { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/serialize_map_type_with_locationname.meta.dart b/shared_aws_api/test/generated/input/query/serialize_map_type_with_locationname.meta.dart deleted file mode 100644 index 53e7e936a..000000000 --- a/shared_aws_api/test/generated/input/query/serialize_map_type_with_locationname.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "MapArg": {"shape": "StringMap", "flattened": false} - }, - "flattened": false - }, - "StringMap": { - "type": "map", - "key": {"shape": "StringType", "locationName": "TheKey"}, - "value": {"shape": "StringType", "locationName": "TheValue"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/input/query/timestamp_values.dart b/shared_aws_api/test/generated/input/query/timestamp_values.dart index 3ca1e3e2a..589584088 100644 --- a/shared_aws_api/test/generated/input/query/timestamp_values.dart +++ b/shared_aws_api/test/generated/input/query/timestamp_values.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'timestamp_values.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Timestamp values class TimestampValues { final _s.QueryProtocol _protocol; - final Map shapes; TimestampValues({ required String region, @@ -31,7 +29,7 @@ class TimestampValues { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'TimestampValues', @@ -40,9 +38,7 @@ class TimestampValues { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -58,12 +54,13 @@ class TimestampValues { DateTime? timeCustom, DateTime? timeFormat, }) async { - final $request = {}; - timeArg?.also((arg) => $request['TimeArg'] = _s.iso8601ToJson(arg)); - timeCustom?.also((arg) => - $request['TimeCustom'] = _s.unixTimestampToJson(arg).toString()); - timeFormat?.also((arg) => - $request['TimeFormat'] = _s.unixTimestampToJson(arg).toString()); + final $request = { + if (timeArg != null) 'TimeArg': _s.iso8601ToJson(timeArg), + if (timeCustom != null) + 'TimeCustom': _s.unixTimestampToJson(timeCustom).toString(), + if (timeFormat != null) + 'TimeFormat': _s.unixTimestampToJson(timeFormat).toString(), + }; await _protocol.send( $request, action: 'OperationName', @@ -71,8 +68,6 @@ class TimestampValues { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shape: shapes['InputShape'], - shapes: shapes, ); } } diff --git a/shared_aws_api/test/generated/input/query/timestamp_values.meta.dart b/shared_aws_api/test/generated/input/query/timestamp_values.meta.dart deleted file mode 100644 index 2c9560e80..000000000 --- a/shared_aws_api/test/generated/input/query/timestamp_values.meta.dart +++ /dev/null @@ -1,18 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "InputShape": { - "type": "structure", - "members": { - "TimeArg": {"shape": "TimestampType", "flattened": false}, - "TimeCustom": {"shape": "TimestampType", "flattened": false}, - "TimeFormat": {"shape": "TimestampFormatType", "flattened": false} - }, - "flattened": false - }, - "TimestampFormatType": { - "type": "timestamp", - "timestampFormat": "unixTimestamp", - "flattened": false - }, - "TimestampType": {"type": "timestamp", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/blob.dart b/shared_aws_api/test/generated/output/query/blob.dart index 22bfe1563..6008f8646 100644 --- a/shared_aws_api/test/generated/output/query/blob.dart +++ b/shared_aws_api/test/generated/output/query/blob.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'blob.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Blob class Blob { final _s.QueryProtocol _protocol; - final Map shapes; Blob({ required String region, @@ -31,7 +29,7 @@ class Blob { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'Blob', @@ -40,9 +38,7 @@ class Blob { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class Blob { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class Blob { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/blob.meta.dart b/shared_aws_api/test/generated/output/query/blob.meta.dart deleted file mode 100644 index e7148c8d2..000000000 --- a/shared_aws_api/test/generated/output/query/blob.meta.dart +++ /dev/null @@ -1,11 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Blob": {"shape": "BlobType", "flattened": false} - }, - "flattened": false - }, - "BlobType": {"type": "blob", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/empty_string.dart b/shared_aws_api/test/generated/output/query/empty_string.dart index b99d48157..c5f67db25 100644 --- a/shared_aws_api/test/generated/output/query/empty_string.dart +++ b/shared_aws_api/test/generated/output/query/empty_string.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'empty_string.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Empty string class EmptyString { final _s.QueryProtocol _protocol; - final Map shapes; EmptyString({ required String region, @@ -31,7 +29,7 @@ class EmptyString { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'EmptyString', @@ -40,9 +38,7 @@ class EmptyString { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class EmptyString { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class EmptyString { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/empty_string.meta.dart b/shared_aws_api/test/generated/output/query/empty_string.meta.dart deleted file mode 100644 index 0f8fa001f..000000000 --- a/shared_aws_api/test/generated/output/query/empty_string.meta.dart +++ /dev/null @@ -1,11 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Foo": {"shape": "StringType", "flattened": false} - }, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/enum_output.dart b/shared_aws_api/test/generated/output/query/enum_output.dart index b2bc26c63..9309e129b 100644 --- a/shared_aws_api/test/generated/output/query/enum_output.dart +++ b/shared_aws_api/test/generated/output/query/enum_output.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'enum_output.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Enum output class EnumOutput { final _s.QueryProtocol _protocol; - final Map shapes; EnumOutput({ required String region, @@ -31,7 +29,7 @@ class EnumOutput { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'EnumOutput', @@ -40,9 +38,7 @@ class EnumOutput { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class EnumOutput { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class EnumOutput { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, ); return OutputShape.fromXml($result); } diff --git a/shared_aws_api/test/generated/output/query/enum_output.meta.dart b/shared_aws_api/test/generated/output/query/enum_output.meta.dart deleted file mode 100644 index f59078e5c..000000000 --- a/shared_aws_api/test/generated/output/query/enum_output.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "FooEnum": {"shape": "EC2EnumType", "flattened": false}, - "ListEnums": {"shape": "EC2EnumList", "flattened": false} - }, - "flattened": false - }, - "EC2EnumType": {"type": "string", "flattened": false}, - "EC2EnumList": { - "type": "list", - "member": {"shape": "EC2EnumType"}, - "flattened": false - } -}; diff --git a/shared_aws_api/test/generated/output/query/flattened_list.dart b/shared_aws_api/test/generated/output/query/flattened_list.dart index e6952f0b6..6b7864716 100644 --- a/shared_aws_api/test/generated/output/query/flattened_list.dart +++ b/shared_aws_api/test/generated/output/query/flattened_list.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_list.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened List class FlattenedList { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedList({ required String region, @@ -31,7 +29,7 @@ class FlattenedList { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedList', @@ -40,9 +38,7 @@ class FlattenedList { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class FlattenedList { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class FlattenedList { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/flattened_list.meta.dart b/shared_aws_api/test/generated/output/query/flattened_list.meta.dart deleted file mode 100644 index 8fa4a2052..000000000 --- a/shared_aws_api/test/generated/output/query/flattened_list.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "ListMember": {"shape": "ListType", "flattened": false} - }, - "flattened": false - }, - "ListType": { - "type": "list", - "member": {"shape": "StringType"}, - "flattened": true - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/flattened_list_of_structures.dart b/shared_aws_api/test/generated/output/query/flattened_list_of_structures.dart index 01c9aca83..43fd618a5 100644 --- a/shared_aws_api/test/generated/output/query/flattened_list_of_structures.dart +++ b/shared_aws_api/test/generated/output/query/flattened_list_of_structures.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_list_of_structures.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened list of structures class FlattenedListOfStructures { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedListOfStructures({ required String region, @@ -31,7 +29,7 @@ class FlattenedListOfStructures { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedListOfStructures', @@ -40,9 +38,7 @@ class FlattenedListOfStructures { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class FlattenedListOfStructures { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class FlattenedListOfStructures { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/flattened_list_of_structures.meta.dart b/shared_aws_api/test/generated/output/query/flattened_list_of_structures.meta.dart deleted file mode 100644 index 920954367..000000000 --- a/shared_aws_api/test/generated/output/query/flattened_list_of_structures.meta.dart +++ /dev/null @@ -1,25 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "List": {"shape": "ListOfStructs", "flattened": false} - }, - "flattened": false - }, - "ListOfStructs": { - "type": "list", - "member": {"shape": "StructureShape"}, - "flattened": true - }, - "StructureShape": { - "type": "structure", - "members": { - "Foo": {"shape": "StringShape", "flattened": false}, - "Bar": {"shape": "StringShape", "flattened": false}, - "Baz": {"shape": "StringShape", "flattened": false} - }, - "flattened": false - }, - "StringShape": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/flattened_list_with_location_name.dart b/shared_aws_api/test/generated/output/query/flattened_list_with_location_name.dart index e7b51ac3c..f90bb3069 100644 --- a/shared_aws_api/test/generated/output/query/flattened_list_with_location_name.dart +++ b/shared_aws_api/test/generated/output/query/flattened_list_with_location_name.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_list_with_location_name.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened list with location name class FlattenedListWithLocationName { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedListWithLocationName({ required String region, @@ -31,7 +29,7 @@ class FlattenedListWithLocationName { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedListWithLocationName', @@ -40,9 +38,7 @@ class FlattenedListWithLocationName { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class FlattenedListWithLocationName { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class FlattenedListWithLocationName { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/flattened_list_with_location_name.meta.dart b/shared_aws_api/test/generated/output/query/flattened_list_with_location_name.meta.dart deleted file mode 100644 index 5eb887ea9..000000000 --- a/shared_aws_api/test/generated/output/query/flattened_list_with_location_name.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "List": {"shape": "ListType", "flattened": false} - }, - "flattened": false - }, - "ListType": { - "type": "list", - "member": {"shape": "StringShape", "locationName": "NamedList"}, - "flattened": true - }, - "StringShape": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/flattened_map.dart b/shared_aws_api/test/generated/output/query/flattened_map.dart index 54a52edfe..7e86f57e7 100644 --- a/shared_aws_api/test/generated/output/query/flattened_map.dart +++ b/shared_aws_api/test/generated/output/query/flattened_map.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_map.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened map class FlattenedMap { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedMap({ required String region, @@ -31,7 +29,7 @@ class FlattenedMap { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedMap', @@ -40,9 +38,7 @@ class FlattenedMap { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class FlattenedMap { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class FlattenedMap { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/flattened_map.meta.dart b/shared_aws_api/test/generated/output/query/flattened_map.meta.dart deleted file mode 100644 index 9b22f7d58..000000000 --- a/shared_aws_api/test/generated/output/query/flattened_map.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Map": {"shape": "StringMap", "flattened": true} - }, - "flattened": false - }, - "StringMap": { - "type": "map", - "key": {"shape": "StringType"}, - "value": {"shape": "StringType"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/flattened_map_in_shape_definition.dart b/shared_aws_api/test/generated/output/query/flattened_map_in_shape_definition.dart index e9b54f882..6c7fc4549 100644 --- a/shared_aws_api/test/generated/output/query/flattened_map_in_shape_definition.dart +++ b/shared_aws_api/test/generated/output/query/flattened_map_in_shape_definition.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_map_in_shape_definition.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened map in shape definition class FlattenedMapInShapeDefinition { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedMapInShapeDefinition({ required String region, @@ -31,7 +29,7 @@ class FlattenedMapInShapeDefinition { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedMapInShapeDefinition', @@ -40,9 +38,7 @@ class FlattenedMapInShapeDefinition { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class FlattenedMapInShapeDefinition { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class FlattenedMapInShapeDefinition { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/flattened_map_in_shape_definition.meta.dart b/shared_aws_api/test/generated/output/query/flattened_map_in_shape_definition.meta.dart deleted file mode 100644 index 62b4dd9de..000000000 --- a/shared_aws_api/test/generated/output/query/flattened_map_in_shape_definition.meta.dart +++ /dev/null @@ -1,18 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Map": {"shape": "StringMap", "flattened": false} - }, - "flattened": false - }, - "StringMap": { - "type": "map", - "key": {"shape": "StringType", "locationName": "Name"}, - "value": {"shape": "StringType", "locationName": "Value"}, - "locationName": "Attribute", - "flattened": true - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/flattened_single_element_list.dart b/shared_aws_api/test/generated/output/query/flattened_single_element_list.dart index 91c58f7f3..e3390d77c 100644 --- a/shared_aws_api/test/generated/output/query/flattened_single_element_list.dart +++ b/shared_aws_api/test/generated/output/query/flattened_single_element_list.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'flattened_single_element_list.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Flattened single element list class FlattenedSingleElementList { final _s.QueryProtocol _protocol; - final Map shapes; FlattenedSingleElementList({ required String region, @@ -31,7 +29,7 @@ class FlattenedSingleElementList { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'FlattenedSingleElementList', @@ -40,9 +38,7 @@ class FlattenedSingleElementList { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class FlattenedSingleElementList { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class FlattenedSingleElementList { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/flattened_single_element_list.meta.dart b/shared_aws_api/test/generated/output/query/flattened_single_element_list.meta.dart deleted file mode 100644 index 8fa4a2052..000000000 --- a/shared_aws_api/test/generated/output/query/flattened_single_element_list.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "ListMember": {"shape": "ListType", "flattened": false} - }, - "flattened": false - }, - "ListType": { - "type": "list", - "member": {"shape": "StringType"}, - "flattened": true - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/list_of_structures.dart b/shared_aws_api/test/generated/output/query/list_of_structures.dart index a14a0e7a3..c5ecfb177 100644 --- a/shared_aws_api/test/generated/output/query/list_of_structures.dart +++ b/shared_aws_api/test/generated/output/query/list_of_structures.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'list_of_structures.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// List of structures class ListOfStructures { final _s.QueryProtocol _protocol; - final Map shapes; ListOfStructures({ required String region, @@ -31,7 +29,7 @@ class ListOfStructures { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'ListOfStructures', @@ -40,9 +38,7 @@ class ListOfStructures { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class ListOfStructures { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class ListOfStructures { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/list_of_structures.meta.dart b/shared_aws_api/test/generated/output/query/list_of_structures.meta.dart deleted file mode 100644 index 673abee48..000000000 --- a/shared_aws_api/test/generated/output/query/list_of_structures.meta.dart +++ /dev/null @@ -1,25 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "List": {"shape": "ListOfStructs", "flattened": false} - }, - "flattened": false - }, - "ListOfStructs": { - "type": "list", - "member": {"shape": "StructureShape"}, - "flattened": false - }, - "StructureShape": { - "type": "structure", - "members": { - "Foo": {"shape": "StringShape", "flattened": false}, - "Bar": {"shape": "StringShape", "flattened": false}, - "Baz": {"shape": "StringShape", "flattened": false} - }, - "flattened": false - }, - "StringShape": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/list_with_custom_member_name.dart b/shared_aws_api/test/generated/output/query/list_with_custom_member_name.dart index 3467c3294..b40215296 100644 --- a/shared_aws_api/test/generated/output/query/list_with_custom_member_name.dart +++ b/shared_aws_api/test/generated/output/query/list_with_custom_member_name.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'list_with_custom_member_name.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// List with custom member name class ListWithCustomMemberName { final _s.QueryProtocol _protocol; - final Map shapes; ListWithCustomMemberName({ required String region, @@ -31,7 +29,7 @@ class ListWithCustomMemberName { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'ListWithCustomMemberName', @@ -40,9 +38,7 @@ class ListWithCustomMemberName { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class ListWithCustomMemberName { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class ListWithCustomMemberName { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/list_with_custom_member_name.meta.dart b/shared_aws_api/test/generated/output/query/list_with_custom_member_name.meta.dart deleted file mode 100644 index efb1d5ee2..000000000 --- a/shared_aws_api/test/generated/output/query/list_with_custom_member_name.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "ListMember": {"shape": "ListShape", "flattened": false} - }, - "flattened": false - }, - "ListShape": { - "type": "list", - "member": {"shape": "StringType", "locationName": "item"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/lists.dart b/shared_aws_api/test/generated/output/query/lists.dart index a425de9f8..f2f84505f 100644 --- a/shared_aws_api/test/generated/output/query/lists.dart +++ b/shared_aws_api/test/generated/output/query/lists.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'lists.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Lists class Lists { final _s.QueryProtocol _protocol; - final Map shapes; Lists({ required String region, @@ -31,7 +29,7 @@ class Lists { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'Lists', @@ -40,9 +38,7 @@ class Lists { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class Lists { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class Lists { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/lists.meta.dart b/shared_aws_api/test/generated/output/query/lists.meta.dart deleted file mode 100644 index a94d640d4..000000000 --- a/shared_aws_api/test/generated/output/query/lists.meta.dart +++ /dev/null @@ -1,16 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "ListMember": {"shape": "ListShape", "flattened": false} - }, - "flattened": false - }, - "ListShape": { - "type": "list", - "member": {"shape": "StringType"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/named_map.dart b/shared_aws_api/test/generated/output/query/named_map.dart index 73c9da42b..125d8196c 100644 --- a/shared_aws_api/test/generated/output/query/named_map.dart +++ b/shared_aws_api/test/generated/output/query/named_map.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'named_map.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Named map class NamedMap { final _s.QueryProtocol _protocol; - final Map shapes; NamedMap({ required String region, @@ -31,7 +29,7 @@ class NamedMap { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'NamedMap', @@ -40,9 +38,7 @@ class NamedMap { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class NamedMap { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class NamedMap { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/named_map.meta.dart b/shared_aws_api/test/generated/output/query/named_map.meta.dart deleted file mode 100644 index f7af5f7d3..000000000 --- a/shared_aws_api/test/generated/output/query/named_map.meta.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Map": {"shape": "MapType", "flattened": false} - }, - "flattened": false - }, - "MapType": { - "type": "map", - "key": {"shape": "StringType", "locationName": "foo"}, - "value": {"shape": "StringType", "locationName": "bar"}, - "flattened": true - }, - "StringType": {"type": "string", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/normal_map.dart b/shared_aws_api/test/generated/output/query/normal_map.dart index 999562942..99fff235f 100644 --- a/shared_aws_api/test/generated/output/query/normal_map.dart +++ b/shared_aws_api/test/generated/output/query/normal_map.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'normal_map.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Normal map class NormalMap { final _s.QueryProtocol _protocol; - final Map shapes; NormalMap({ required String region, @@ -31,7 +29,7 @@ class NormalMap { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'NormalMap', @@ -40,9 +38,7 @@ class NormalMap { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class NormalMap { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class NormalMap { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/normal_map.meta.dart b/shared_aws_api/test/generated/output/query/normal_map.meta.dart deleted file mode 100644 index b4f17ce6e..000000000 --- a/shared_aws_api/test/generated/output/query/normal_map.meta.dart +++ /dev/null @@ -1,24 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Map": {"shape": "StringMap", "flattened": false} - }, - "flattened": false - }, - "StringMap": { - "type": "map", - "key": {"shape": "StringType"}, - "value": {"shape": "StructType"}, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false}, - "StructType": { - "type": "structure", - "members": { - "foo": {"shape": "StringType", "flattened": false} - }, - "flattened": false - } -}; diff --git a/shared_aws_api/test/generated/output/query/not_all_members_in_response.dart b/shared_aws_api/test/generated/output/query/not_all_members_in_response.dart index 86b557c86..2ab7cb3f6 100644 --- a/shared_aws_api/test/generated/output/query/not_all_members_in_response.dart +++ b/shared_aws_api/test/generated/output/query/not_all_members_in_response.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'not_all_members_in_response.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Not all members in response class NotAllMembersInResponse { final _s.QueryProtocol _protocol; - final Map shapes; NotAllMembersInResponse({ required String region, @@ -31,7 +29,7 @@ class NotAllMembersInResponse { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'NotAllMembersInResponse', @@ -40,9 +38,7 @@ class NotAllMembersInResponse { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class NotAllMembersInResponse { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class NotAllMembersInResponse { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/not_all_members_in_response.meta.dart b/shared_aws_api/test/generated/output/query/not_all_members_in_response.meta.dart deleted file mode 100644 index bb0be02a9..000000000 --- a/shared_aws_api/test/generated/output/query/not_all_members_in_response.meta.dart +++ /dev/null @@ -1,13 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Str": {"shape": "StringType", "flattened": false}, - "Num": {"shape": "IntegerType", "flattened": false} - }, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false}, - "IntegerType": {"type": "integer", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/scalar_members.dart b/shared_aws_api/test/generated/output/query/scalar_members.dart index cf7f24257..73adcc5a9 100644 --- a/shared_aws_api/test/generated/output/query/scalar_members.dart +++ b/shared_aws_api/test/generated/output/query/scalar_members.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'scalar_members.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Scalar members class ScalarMembers { final _s.QueryProtocol _protocol; - final Map shapes; ScalarMembers({ required String region, @@ -31,7 +29,7 @@ class ScalarMembers { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'ScalarMembers', @@ -40,9 +38,7 @@ class ScalarMembers { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class ScalarMembers { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class ScalarMembers { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, resultWrapper: 'OperationNameResult', ); return OutputShape.fromXml($result); diff --git a/shared_aws_api/test/generated/output/query/scalar_members.meta.dart b/shared_aws_api/test/generated/output/query/scalar_members.meta.dart deleted file mode 100644 index f80d4823b..000000000 --- a/shared_aws_api/test/generated/output/query/scalar_members.meta.dart +++ /dev/null @@ -1,26 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "Str": {"shape": "StringType", "flattened": false}, - "Num": {"shape": "IntegerType", "flattened": false}, - "FalseBool": {"shape": "BooleanType", "flattened": false}, - "TrueBool": {"shape": "BooleanType", "flattened": false}, - "Float": {"shape": "FloatType", "flattened": false}, - "Double": {"shape": "DoubleType", "flattened": false}, - "Long": {"shape": "LongType", "flattened": false}, - "Char": {"shape": "CharType", "flattened": false}, - "Timestamp": {"shape": "TimestampType", "flattened": false} - }, - "flattened": false - }, - "StringType": {"type": "string", "flattened": false}, - "IntegerType": {"type": "integer", "flattened": false}, - "BooleanType": {"type": "boolean", "flattened": false}, - "FloatType": {"type": "float", "flattened": false}, - "DoubleType": {"type": "double", "flattened": false}, - "LongType": {"type": "long", "flattened": false}, - "CharType": {"type": "character", "flattened": false}, - "TimestampType": {"type": "timestamp", "flattened": false} -}; diff --git a/shared_aws_api/test/generated/output/query/timestamp_members.dart b/shared_aws_api/test/generated/output/query/timestamp_members.dart index 4084945aa..261183f67 100644 --- a/shared_aws_api/test/generated/output/query/timestamp_members.dart +++ b/shared_aws_api/test/generated/output/query/timestamp_members.dart @@ -17,13 +17,11 @@ import 'package:shared_aws_api/shared.dart' nonNullableTimeStampFromJson, timeStampFromJson; -import 'timestamp_members.meta.dart'; export 'package:shared_aws_api/shared.dart' show AwsClientCredentials; /// Timestamp members class TimestampMembers { final _s.QueryProtocol _protocol; - final Map shapes; TimestampMembers({ required String region, @@ -31,7 +29,7 @@ class TimestampMembers { _s.AwsClientCredentialsProvider? credentialsProvider, _s.Client? client, String? endpointUrl, - }) : _protocol = _s.QueryProtocol( + }) : _protocol = _s.QueryProtocol( client: client, service: _s.ServiceMetadata( endpointPrefix: 'TimestampMembers', @@ -40,9 +38,7 @@ class TimestampMembers { credentials: credentials, credentialsProvider: credentialsProvider, endpointUrl: endpointUrl, - ), - shapes = shapesJson - .map((key, value) => MapEntry(key, _s.Shape.fromJson(value))); + ); /// Closes the internal HTTP client if none was provided at creation. /// If a client was passed as a constructor argument, this becomes a noop. @@ -54,7 +50,7 @@ class TimestampMembers { } Future operationName0() async { - final $request = {}; + final $request = {}; final $result = await _protocol.send( $request, action: 'OperationName', @@ -62,7 +58,6 @@ class TimestampMembers { method: 'POST', requestUri: '/', exceptionFnMap: _exceptionFns, - shapes: shapes, ); return OutputShape.fromXml($result); } diff --git a/shared_aws_api/test/generated/output/query/timestamp_members.meta.dart b/shared_aws_api/test/generated/output/query/timestamp_members.meta.dart deleted file mode 100644 index 334838920..000000000 --- a/shared_aws_api/test/generated/output/query/timestamp_members.meta.dart +++ /dev/null @@ -1,27 +0,0 @@ -// ignore_for_file: prefer_single_quotes -const Map> shapesJson = { - "OutputShape": { - "type": "structure", - "members": { - "TimeArg": {"shape": "TimestampType", "flattened": false}, - "TimeCustom": {"shape": "TimestampType", "flattened": false}, - "TimeFormat": {"shape": "TimestampFormatType", "flattened": false}, - "StructMember": {"shape": "TimeContainer", "flattened": false} - }, - "flattened": false - }, - "TimeContainer": { - "type": "structure", - "members": { - "foo": {"shape": "TimestampType", "flattened": false}, - "bar": {"shape": "TimestampFormatType", "flattened": false} - }, - "flattened": false - }, - "TimestampFormatType": { - "type": "timestamp", - "timestampFormat": "unixTimestamp", - "flattened": false - }, - "TimestampType": {"type": "timestamp", "flattened": false} -}; diff --git a/shared_aws_api/test/protocol/query_test.dart b/shared_aws_api/test/protocol/query_test.dart index aa9f60b31..5717ed13c 100644 --- a/shared_aws_api/test/protocol/query_test.dart +++ b/shared_aws_api/test/protocol/query_test.dart @@ -25,7 +25,6 @@ void main() { await protocol.send({}, action: 'action', version: 'version', - shapes: {}, method: 'POST', requestUri: 'requestUri', exceptionFnMap: {});