@aws-sdk/client-securityhub 3.43.0 → 3.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +228 -227
- package/dist-cjs/models/models_1.js +244 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1225 -74
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +148 -149
- package/dist-es/models/models_1.js +162 -0
- package/dist-es/protocols/Aws_restJson1.js +1020 -17
- package/dist-types/SecurityHub.d.ts +13 -3
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +13 -2
- package/dist-types/commands/CreateMembersCommand.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +1021 -1773
- package/dist-types/models/models_1.d.ts +1681 -5
- package/dist-types/ts3.4/models/models_0.d.ts +546 -827
- package/dist-types/ts3.4/models/models_1.d.ts +783 -1
- package/package.json +5 -5
|
@@ -6123,8 +6123,27 @@ const serializeAws_restJson1AwsApiGatewayV2StageDetails = (input, context) => {
|
|
|
6123
6123
|
}),
|
|
6124
6124
|
};
|
|
6125
6125
|
};
|
|
6126
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesList = (input, context) => {
|
|
6127
|
+
return input
|
|
6128
|
+
.filter((e) => e != null)
|
|
6129
|
+
.map((entry) => {
|
|
6130
|
+
if (entry === null) {
|
|
6131
|
+
return null;
|
|
6132
|
+
}
|
|
6133
|
+
return serializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails(entry, context);
|
|
6134
|
+
});
|
|
6135
|
+
};
|
|
6136
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails = (input, context) => {
|
|
6137
|
+
return {
|
|
6138
|
+
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
6139
|
+
};
|
|
6140
|
+
};
|
|
6126
6141
|
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupDetails = (input, context) => {
|
|
6127
6142
|
return {
|
|
6143
|
+
...(input.AvailabilityZones !== undefined &&
|
|
6144
|
+
input.AvailabilityZones !== null && {
|
|
6145
|
+
AvailabilityZones: serializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesList(input.AvailabilityZones, context),
|
|
6146
|
+
}),
|
|
6128
6147
|
...(input.CreatedTime !== undefined && input.CreatedTime !== null && { CreatedTime: input.CreatedTime }),
|
|
6129
6148
|
...(input.HealthCheckGracePeriod !== undefined &&
|
|
6130
6149
|
input.HealthCheckGracePeriod !== null && { HealthCheckGracePeriod: input.HealthCheckGracePeriod }),
|
|
@@ -6136,6 +6155,77 @@ const serializeAws_restJson1AwsAutoScalingAutoScalingGroupDetails = (input, cont
|
|
|
6136
6155
|
input.LoadBalancerNames !== null && {
|
|
6137
6156
|
LoadBalancerNames: serializeAws_restJson1StringList(input.LoadBalancerNames, context),
|
|
6138
6157
|
}),
|
|
6158
|
+
...(input.MixedInstancesPolicy !== undefined &&
|
|
6159
|
+
input.MixedInstancesPolicy !== null && {
|
|
6160
|
+
MixedInstancesPolicy: serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails(input.MixedInstancesPolicy, context),
|
|
6161
|
+
}),
|
|
6162
|
+
};
|
|
6163
|
+
};
|
|
6164
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails = (input, context) => {
|
|
6165
|
+
return {
|
|
6166
|
+
...(input.InstancesDistribution !== undefined &&
|
|
6167
|
+
input.InstancesDistribution !== null && {
|
|
6168
|
+
InstancesDistribution: serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails(input.InstancesDistribution, context),
|
|
6169
|
+
}),
|
|
6170
|
+
...(input.LaunchTemplate !== undefined &&
|
|
6171
|
+
input.LaunchTemplate !== null && {
|
|
6172
|
+
LaunchTemplate: serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails(input.LaunchTemplate, context),
|
|
6173
|
+
}),
|
|
6174
|
+
};
|
|
6175
|
+
};
|
|
6176
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails = (input, context) => {
|
|
6177
|
+
return {
|
|
6178
|
+
...(input.OnDemandAllocationStrategy !== undefined &&
|
|
6179
|
+
input.OnDemandAllocationStrategy !== null && { OnDemandAllocationStrategy: input.OnDemandAllocationStrategy }),
|
|
6180
|
+
...(input.OnDemandBaseCapacity !== undefined &&
|
|
6181
|
+
input.OnDemandBaseCapacity !== null && { OnDemandBaseCapacity: input.OnDemandBaseCapacity }),
|
|
6182
|
+
...(input.OnDemandPercentageAboveBaseCapacity !== undefined &&
|
|
6183
|
+
input.OnDemandPercentageAboveBaseCapacity !== null && {
|
|
6184
|
+
OnDemandPercentageAboveBaseCapacity: input.OnDemandPercentageAboveBaseCapacity,
|
|
6185
|
+
}),
|
|
6186
|
+
...(input.SpotAllocationStrategy !== undefined &&
|
|
6187
|
+
input.SpotAllocationStrategy !== null && { SpotAllocationStrategy: input.SpotAllocationStrategy }),
|
|
6188
|
+
...(input.SpotInstancePools !== undefined &&
|
|
6189
|
+
input.SpotInstancePools !== null && { SpotInstancePools: input.SpotInstancePools }),
|
|
6190
|
+
...(input.SpotMaxPrice !== undefined && input.SpotMaxPrice !== null && { SpotMaxPrice: input.SpotMaxPrice }),
|
|
6191
|
+
};
|
|
6192
|
+
};
|
|
6193
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails = (input, context) => {
|
|
6194
|
+
return {
|
|
6195
|
+
...(input.LaunchTemplateSpecification !== undefined &&
|
|
6196
|
+
input.LaunchTemplateSpecification !== null && {
|
|
6197
|
+
LaunchTemplateSpecification: serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification(input.LaunchTemplateSpecification, context),
|
|
6198
|
+
}),
|
|
6199
|
+
...(input.Overrides !== undefined &&
|
|
6200
|
+
input.Overrides !== null && {
|
|
6201
|
+
Overrides: serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesList(input.Overrides, context),
|
|
6202
|
+
}),
|
|
6203
|
+
};
|
|
6204
|
+
};
|
|
6205
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification = (input, context) => {
|
|
6206
|
+
return {
|
|
6207
|
+
...(input.LaunchTemplateId !== undefined &&
|
|
6208
|
+
input.LaunchTemplateId !== null && { LaunchTemplateId: input.LaunchTemplateId }),
|
|
6209
|
+
...(input.LaunchTemplateName !== undefined &&
|
|
6210
|
+
input.LaunchTemplateName !== null && { LaunchTemplateName: input.LaunchTemplateName }),
|
|
6211
|
+
...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
|
|
6212
|
+
};
|
|
6213
|
+
};
|
|
6214
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesList = (input, context) => {
|
|
6215
|
+
return input
|
|
6216
|
+
.filter((e) => e != null)
|
|
6217
|
+
.map((entry) => {
|
|
6218
|
+
if (entry === null) {
|
|
6219
|
+
return null;
|
|
6220
|
+
}
|
|
6221
|
+
return serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails(entry, context);
|
|
6222
|
+
});
|
|
6223
|
+
};
|
|
6224
|
+
const serializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails = (input, context) => {
|
|
6225
|
+
return {
|
|
6226
|
+
...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
|
|
6227
|
+
...(input.WeightedCapacity !== undefined &&
|
|
6228
|
+
input.WeightedCapacity !== null && { WeightedCapacity: input.WeightedCapacity }),
|
|
6139
6229
|
};
|
|
6140
6230
|
};
|
|
6141
6231
|
const serializeAws_restJson1AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails = (input, context) => {
|
|
@@ -6198,6 +6288,10 @@ const serializeAws_restJson1AwsAutoScalingLaunchConfigurationDetails = (input, c
|
|
|
6198
6288
|
...(input.KeyName !== undefined && input.KeyName !== null && { KeyName: input.KeyName }),
|
|
6199
6289
|
...(input.LaunchConfigurationName !== undefined &&
|
|
6200
6290
|
input.LaunchConfigurationName !== null && { LaunchConfigurationName: input.LaunchConfigurationName }),
|
|
6291
|
+
...(input.MetadataOptions !== undefined &&
|
|
6292
|
+
input.MetadataOptions !== null && {
|
|
6293
|
+
MetadataOptions: serializeAws_restJson1AwsAutoScalingLaunchConfigurationMetadataOptions(input.MetadataOptions, context),
|
|
6294
|
+
}),
|
|
6201
6295
|
...(input.PlacementTenancy !== undefined &&
|
|
6202
6296
|
input.PlacementTenancy !== null && { PlacementTenancy: input.PlacementTenancy }),
|
|
6203
6297
|
...(input.RamdiskId !== undefined && input.RamdiskId !== null && { RamdiskId: input.RamdiskId }),
|
|
@@ -6214,6 +6308,14 @@ const serializeAws_restJson1AwsAutoScalingLaunchConfigurationInstanceMonitoringD
|
|
|
6214
6308
|
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
6215
6309
|
};
|
|
6216
6310
|
};
|
|
6311
|
+
const serializeAws_restJson1AwsAutoScalingLaunchConfigurationMetadataOptions = (input, context) => {
|
|
6312
|
+
return {
|
|
6313
|
+
...(input.HttpEndpoint !== undefined && input.HttpEndpoint !== null && { HttpEndpoint: input.HttpEndpoint }),
|
|
6314
|
+
...(input.HttpPutResponseHopLimit !== undefined &&
|
|
6315
|
+
input.HttpPutResponseHopLimit !== null && { HttpPutResponseHopLimit: input.HttpPutResponseHopLimit }),
|
|
6316
|
+
...(input.HttpTokens !== undefined && input.HttpTokens !== null && { HttpTokens: input.HttpTokens }),
|
|
6317
|
+
};
|
|
6318
|
+
};
|
|
6217
6319
|
const serializeAws_restJson1AwsCertificateManagerCertificateDetails = (input, context) => {
|
|
6218
6320
|
return {
|
|
6219
6321
|
...(input.CertificateAuthorityArn !== undefined &&
|
|
@@ -9366,6 +9468,71 @@ const serializeAws_restJson1AwsLambdaLayerVersionDetails = (input, context) => {
|
|
|
9366
9468
|
...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
|
|
9367
9469
|
};
|
|
9368
9470
|
};
|
|
9471
|
+
const serializeAws_restJson1AwsNetworkFirewallFirewallDetails = (input, context) => {
|
|
9472
|
+
return {
|
|
9473
|
+
...(input.DeleteProtection !== undefined &&
|
|
9474
|
+
input.DeleteProtection !== null && { DeleteProtection: input.DeleteProtection }),
|
|
9475
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
9476
|
+
...(input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn }),
|
|
9477
|
+
...(input.FirewallId !== undefined && input.FirewallId !== null && { FirewallId: input.FirewallId }),
|
|
9478
|
+
...(input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName }),
|
|
9479
|
+
...(input.FirewallPolicyArn !== undefined &&
|
|
9480
|
+
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
9481
|
+
...(input.FirewallPolicyChangeProtection !== undefined &&
|
|
9482
|
+
input.FirewallPolicyChangeProtection !== null && {
|
|
9483
|
+
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
9484
|
+
}),
|
|
9485
|
+
...(input.SubnetChangeProtection !== undefined &&
|
|
9486
|
+
input.SubnetChangeProtection !== null && { SubnetChangeProtection: input.SubnetChangeProtection }),
|
|
9487
|
+
...(input.SubnetMappings !== undefined &&
|
|
9488
|
+
input.SubnetMappings !== null && {
|
|
9489
|
+
SubnetMappings: serializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsList(input.SubnetMappings, context),
|
|
9490
|
+
}),
|
|
9491
|
+
...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
|
|
9492
|
+
};
|
|
9493
|
+
};
|
|
9494
|
+
const serializeAws_restJson1AwsNetworkFirewallFirewallPolicyDetails = (input, context) => {
|
|
9495
|
+
return {
|
|
9496
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
9497
|
+
...(input.FirewallPolicy !== undefined &&
|
|
9498
|
+
input.FirewallPolicy !== null && {
|
|
9499
|
+
FirewallPolicy: serializeAws_restJson1FirewallPolicyDetails(input.FirewallPolicy, context),
|
|
9500
|
+
}),
|
|
9501
|
+
...(input.FirewallPolicyArn !== undefined &&
|
|
9502
|
+
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
9503
|
+
...(input.FirewallPolicyId !== undefined &&
|
|
9504
|
+
input.FirewallPolicyId !== null && { FirewallPolicyId: input.FirewallPolicyId }),
|
|
9505
|
+
...(input.FirewallPolicyName !== undefined &&
|
|
9506
|
+
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
9507
|
+
};
|
|
9508
|
+
};
|
|
9509
|
+
const serializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsDetails = (input, context) => {
|
|
9510
|
+
return {
|
|
9511
|
+
...(input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId }),
|
|
9512
|
+
};
|
|
9513
|
+
};
|
|
9514
|
+
const serializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsList = (input, context) => {
|
|
9515
|
+
return input
|
|
9516
|
+
.filter((e) => e != null)
|
|
9517
|
+
.map((entry) => {
|
|
9518
|
+
if (entry === null) {
|
|
9519
|
+
return null;
|
|
9520
|
+
}
|
|
9521
|
+
return serializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsDetails(entry, context);
|
|
9522
|
+
});
|
|
9523
|
+
};
|
|
9524
|
+
const serializeAws_restJson1AwsNetworkFirewallRuleGroupDetails = (input, context) => {
|
|
9525
|
+
return {
|
|
9526
|
+
...(input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity }),
|
|
9527
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
9528
|
+
...(input.RuleGroup !== undefined &&
|
|
9529
|
+
input.RuleGroup !== null && { RuleGroup: serializeAws_restJson1RuleGroupDetails(input.RuleGroup, context) }),
|
|
9530
|
+
...(input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn }),
|
|
9531
|
+
...(input.RuleGroupId !== undefined && input.RuleGroupId !== null && { RuleGroupId: input.RuleGroupId }),
|
|
9532
|
+
...(input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName }),
|
|
9533
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
9534
|
+
};
|
|
9535
|
+
};
|
|
9369
9536
|
const serializeAws_restJson1AwsOpenSearchServiceDomainClusterConfigDetails = (input, context) => {
|
|
9370
9537
|
return {
|
|
9371
9538
|
...(input.DedicatedMasterCount !== undefined &&
|
|
@@ -10617,6 +10784,13 @@ const serializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransiti
|
|
|
10617
10784
|
return serializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails(entry, context);
|
|
10618
10785
|
});
|
|
10619
10786
|
};
|
|
10787
|
+
const serializeAws_restJson1AwsS3BucketBucketVersioningConfiguration = (input, context) => {
|
|
10788
|
+
return {
|
|
10789
|
+
...(input.IsMfaDeleteEnabled !== undefined &&
|
|
10790
|
+
input.IsMfaDeleteEnabled !== null && { IsMfaDeleteEnabled: input.IsMfaDeleteEnabled }),
|
|
10791
|
+
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
10792
|
+
};
|
|
10793
|
+
};
|
|
10620
10794
|
const serializeAws_restJson1AwsS3BucketDetails = (input, context) => {
|
|
10621
10795
|
return {
|
|
10622
10796
|
...(input.AccessControlList !== undefined &&
|
|
@@ -10633,6 +10807,10 @@ const serializeAws_restJson1AwsS3BucketDetails = (input, context) => {
|
|
|
10633
10807
|
input.BucketNotificationConfiguration !== null && {
|
|
10634
10808
|
BucketNotificationConfiguration: serializeAws_restJson1AwsS3BucketNotificationConfiguration(input.BucketNotificationConfiguration, context),
|
|
10635
10809
|
}),
|
|
10810
|
+
...(input.BucketVersioningConfiguration !== undefined &&
|
|
10811
|
+
input.BucketVersioningConfiguration !== null && {
|
|
10812
|
+
BucketVersioningConfiguration: serializeAws_restJson1AwsS3BucketBucketVersioningConfiguration(input.BucketVersioningConfiguration, context),
|
|
10813
|
+
}),
|
|
10636
10814
|
...(input.BucketWebsiteConfiguration !== undefined &&
|
|
10637
10815
|
input.BucketWebsiteConfiguration !== null && {
|
|
10638
10816
|
BucketWebsiteConfiguration: serializeAws_restJson1AwsS3BucketWebsiteConfiguration(input.BucketWebsiteConfiguration, context),
|
|
@@ -11730,6 +11908,80 @@ const serializeAws_restJson1FindingProviderSeverity = (input, context) => {
|
|
|
11730
11908
|
...(input.Original !== undefined && input.Original !== null && { Original: input.Original }),
|
|
11731
11909
|
};
|
|
11732
11910
|
};
|
|
11911
|
+
const serializeAws_restJson1FirewallPolicyDetails = (input, context) => {
|
|
11912
|
+
return {
|
|
11913
|
+
...(input.StatefulRuleGroupReferences !== undefined &&
|
|
11914
|
+
input.StatefulRuleGroupReferences !== null && {
|
|
11915
|
+
StatefulRuleGroupReferences: serializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesList(input.StatefulRuleGroupReferences, context),
|
|
11916
|
+
}),
|
|
11917
|
+
...(input.StatelessCustomActions !== undefined &&
|
|
11918
|
+
input.StatelessCustomActions !== null && {
|
|
11919
|
+
StatelessCustomActions: serializeAws_restJson1FirewallPolicyStatelessCustomActionsList(input.StatelessCustomActions, context),
|
|
11920
|
+
}),
|
|
11921
|
+
...(input.StatelessDefaultActions !== undefined &&
|
|
11922
|
+
input.StatelessDefaultActions !== null && {
|
|
11923
|
+
StatelessDefaultActions: serializeAws_restJson1NonEmptyStringList(input.StatelessDefaultActions, context),
|
|
11924
|
+
}),
|
|
11925
|
+
...(input.StatelessFragmentDefaultActions !== undefined &&
|
|
11926
|
+
input.StatelessFragmentDefaultActions !== null && {
|
|
11927
|
+
StatelessFragmentDefaultActions: serializeAws_restJson1NonEmptyStringList(input.StatelessFragmentDefaultActions, context),
|
|
11928
|
+
}),
|
|
11929
|
+
...(input.StatelessRuleGroupReferences !== undefined &&
|
|
11930
|
+
input.StatelessRuleGroupReferences !== null && {
|
|
11931
|
+
StatelessRuleGroupReferences: serializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesList(input.StatelessRuleGroupReferences, context),
|
|
11932
|
+
}),
|
|
11933
|
+
};
|
|
11934
|
+
};
|
|
11935
|
+
const serializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesDetails = (input, context) => {
|
|
11936
|
+
return {
|
|
11937
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
11938
|
+
};
|
|
11939
|
+
};
|
|
11940
|
+
const serializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesList = (input, context) => {
|
|
11941
|
+
return input
|
|
11942
|
+
.filter((e) => e != null)
|
|
11943
|
+
.map((entry) => {
|
|
11944
|
+
if (entry === null) {
|
|
11945
|
+
return null;
|
|
11946
|
+
}
|
|
11947
|
+
return serializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesDetails(entry, context);
|
|
11948
|
+
});
|
|
11949
|
+
};
|
|
11950
|
+
const serializeAws_restJson1FirewallPolicyStatelessCustomActionsDetails = (input, context) => {
|
|
11951
|
+
return {
|
|
11952
|
+
...(input.ActionDefinition !== undefined &&
|
|
11953
|
+
input.ActionDefinition !== null && {
|
|
11954
|
+
ActionDefinition: serializeAws_restJson1StatelessCustomActionDefinition(input.ActionDefinition, context),
|
|
11955
|
+
}),
|
|
11956
|
+
...(input.ActionName !== undefined && input.ActionName !== null && { ActionName: input.ActionName }),
|
|
11957
|
+
};
|
|
11958
|
+
};
|
|
11959
|
+
const serializeAws_restJson1FirewallPolicyStatelessCustomActionsList = (input, context) => {
|
|
11960
|
+
return input
|
|
11961
|
+
.filter((e) => e != null)
|
|
11962
|
+
.map((entry) => {
|
|
11963
|
+
if (entry === null) {
|
|
11964
|
+
return null;
|
|
11965
|
+
}
|
|
11966
|
+
return serializeAws_restJson1FirewallPolicyStatelessCustomActionsDetails(entry, context);
|
|
11967
|
+
});
|
|
11968
|
+
};
|
|
11969
|
+
const serializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesDetails = (input, context) => {
|
|
11970
|
+
return {
|
|
11971
|
+
...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
|
|
11972
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
11973
|
+
};
|
|
11974
|
+
};
|
|
11975
|
+
const serializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesList = (input, context) => {
|
|
11976
|
+
return input
|
|
11977
|
+
.filter((e) => e != null)
|
|
11978
|
+
.map((entry) => {
|
|
11979
|
+
if (entry === null) {
|
|
11980
|
+
return null;
|
|
11981
|
+
}
|
|
11982
|
+
return serializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesDetails(entry, context);
|
|
11983
|
+
});
|
|
11984
|
+
};
|
|
11733
11985
|
const serializeAws_restJson1GeoLocation = (input, context) => {
|
|
11734
11986
|
return {
|
|
11735
11987
|
...(input.Lat !== undefined && input.Lat !== null && { Lat: smithy_client_1.serializeFloat(input.Lat) }),
|
|
@@ -12328,6 +12580,18 @@ const serializeAws_restJson1ResourceDetails = (input, context) => {
|
|
|
12328
12580
|
input.AwsLambdaLayerVersion !== null && {
|
|
12329
12581
|
AwsLambdaLayerVersion: serializeAws_restJson1AwsLambdaLayerVersionDetails(input.AwsLambdaLayerVersion, context),
|
|
12330
12582
|
}),
|
|
12583
|
+
...(input.AwsNetworkFirewallFirewall !== undefined &&
|
|
12584
|
+
input.AwsNetworkFirewallFirewall !== null && {
|
|
12585
|
+
AwsNetworkFirewallFirewall: serializeAws_restJson1AwsNetworkFirewallFirewallDetails(input.AwsNetworkFirewallFirewall, context),
|
|
12586
|
+
}),
|
|
12587
|
+
...(input.AwsNetworkFirewallFirewallPolicy !== undefined &&
|
|
12588
|
+
input.AwsNetworkFirewallFirewallPolicy !== null && {
|
|
12589
|
+
AwsNetworkFirewallFirewallPolicy: serializeAws_restJson1AwsNetworkFirewallFirewallPolicyDetails(input.AwsNetworkFirewallFirewallPolicy, context),
|
|
12590
|
+
}),
|
|
12591
|
+
...(input.AwsNetworkFirewallRuleGroup !== undefined &&
|
|
12592
|
+
input.AwsNetworkFirewallRuleGroup !== null && {
|
|
12593
|
+
AwsNetworkFirewallRuleGroup: serializeAws_restJson1AwsNetworkFirewallRuleGroupDetails(input.AwsNetworkFirewallRuleGroup, context),
|
|
12594
|
+
}),
|
|
12331
12595
|
...(input.AwsOpenSearchServiceDomain !== undefined &&
|
|
12332
12596
|
input.AwsOpenSearchServiceDomain !== null && {
|
|
12333
12597
|
AwsOpenSearchServiceDomain: serializeAws_restJson1AwsOpenSearchServiceDomainDetails(input.AwsOpenSearchServiceDomain, context),
|
|
@@ -12416,119 +12680,198 @@ const serializeAws_restJson1ResourceList = (input, context) => {
|
|
|
12416
12680
|
return serializeAws_restJson1Resource(entry, context);
|
|
12417
12681
|
});
|
|
12418
12682
|
};
|
|
12419
|
-
const
|
|
12683
|
+
const serializeAws_restJson1RuleGroupDetails = (input, context) => {
|
|
12684
|
+
return {
|
|
12685
|
+
...(input.RuleVariables !== undefined &&
|
|
12686
|
+
input.RuleVariables !== null && {
|
|
12687
|
+
RuleVariables: serializeAws_restJson1RuleGroupVariables(input.RuleVariables, context),
|
|
12688
|
+
}),
|
|
12689
|
+
...(input.RulesSource !== undefined &&
|
|
12690
|
+
input.RulesSource !== null && { RulesSource: serializeAws_restJson1RuleGroupSource(input.RulesSource, context) }),
|
|
12691
|
+
};
|
|
12692
|
+
};
|
|
12693
|
+
const serializeAws_restJson1RuleGroupSource = (input, context) => {
|
|
12694
|
+
return {
|
|
12695
|
+
...(input.RulesSourceList !== undefined &&
|
|
12696
|
+
input.RulesSourceList !== null && {
|
|
12697
|
+
RulesSourceList: serializeAws_restJson1RuleGroupSourceListDetails(input.RulesSourceList, context),
|
|
12698
|
+
}),
|
|
12699
|
+
...(input.RulesString !== undefined && input.RulesString !== null && { RulesString: input.RulesString }),
|
|
12700
|
+
...(input.StatefulRules !== undefined &&
|
|
12701
|
+
input.StatefulRules !== null && {
|
|
12702
|
+
StatefulRules: serializeAws_restJson1RuleGroupSourceStatefulRulesList(input.StatefulRules, context),
|
|
12703
|
+
}),
|
|
12704
|
+
...(input.StatelessRulesAndCustomActions !== undefined &&
|
|
12705
|
+
input.StatelessRulesAndCustomActions !== null && {
|
|
12706
|
+
StatelessRulesAndCustomActions: serializeAws_restJson1RuleGroupSourceStatelessRulesAndCustomActionsDetails(input.StatelessRulesAndCustomActions, context),
|
|
12707
|
+
}),
|
|
12708
|
+
};
|
|
12709
|
+
};
|
|
12710
|
+
const serializeAws_restJson1RuleGroupSourceCustomActionsDetails = (input, context) => {
|
|
12711
|
+
return {
|
|
12712
|
+
...(input.ActionDefinition !== undefined &&
|
|
12713
|
+
input.ActionDefinition !== null && {
|
|
12714
|
+
ActionDefinition: serializeAws_restJson1StatelessCustomActionDefinition(input.ActionDefinition, context),
|
|
12715
|
+
}),
|
|
12716
|
+
...(input.ActionName !== undefined && input.ActionName !== null && { ActionName: input.ActionName }),
|
|
12717
|
+
};
|
|
12718
|
+
};
|
|
12719
|
+
const serializeAws_restJson1RuleGroupSourceCustomActionsList = (input, context) => {
|
|
12420
12720
|
return input
|
|
12421
12721
|
.filter((e) => e != null)
|
|
12422
12722
|
.map((entry) => {
|
|
12423
12723
|
if (entry === null) {
|
|
12424
12724
|
return null;
|
|
12425
12725
|
}
|
|
12426
|
-
return entry;
|
|
12726
|
+
return serializeAws_restJson1RuleGroupSourceCustomActionsDetails(entry, context);
|
|
12427
12727
|
});
|
|
12428
12728
|
};
|
|
12429
|
-
const
|
|
12729
|
+
const serializeAws_restJson1RuleGroupSourceListDetails = (input, context) => {
|
|
12430
12730
|
return {
|
|
12431
|
-
...(input.
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12731
|
+
...(input.GeneratedRulesType !== undefined &&
|
|
12732
|
+
input.GeneratedRulesType !== null && { GeneratedRulesType: input.GeneratedRulesType }),
|
|
12733
|
+
...(input.TargetTypes !== undefined &&
|
|
12734
|
+
input.TargetTypes !== null && {
|
|
12735
|
+
TargetTypes: serializeAws_restJson1NonEmptyStringList(input.TargetTypes, context),
|
|
12736
|
+
}),
|
|
12737
|
+
...(input.Targets !== undefined &&
|
|
12738
|
+
input.Targets !== null && { Targets: serializeAws_restJson1NonEmptyStringList(input.Targets, context) }),
|
|
12435
12739
|
};
|
|
12436
12740
|
};
|
|
12437
|
-
const
|
|
12741
|
+
const serializeAws_restJson1RuleGroupSourceStatefulRulesDetails = (input, context) => {
|
|
12742
|
+
return {
|
|
12743
|
+
...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
|
|
12744
|
+
...(input.Header !== undefined &&
|
|
12745
|
+
input.Header !== null && {
|
|
12746
|
+
Header: serializeAws_restJson1RuleGroupSourceStatefulRulesHeaderDetails(input.Header, context),
|
|
12747
|
+
}),
|
|
12748
|
+
...(input.RuleOptions !== undefined &&
|
|
12749
|
+
input.RuleOptions !== null && {
|
|
12750
|
+
RuleOptions: serializeAws_restJson1RuleGroupSourceStatefulRulesOptionsList(input.RuleOptions, context),
|
|
12751
|
+
}),
|
|
12752
|
+
};
|
|
12753
|
+
};
|
|
12754
|
+
const serializeAws_restJson1RuleGroupSourceStatefulRulesHeaderDetails = (input, context) => {
|
|
12755
|
+
return {
|
|
12756
|
+
...(input.Destination !== undefined && input.Destination !== null && { Destination: input.Destination }),
|
|
12757
|
+
...(input.DestinationPort !== undefined &&
|
|
12758
|
+
input.DestinationPort !== null && { DestinationPort: input.DestinationPort }),
|
|
12759
|
+
...(input.Direction !== undefined && input.Direction !== null && { Direction: input.Direction }),
|
|
12760
|
+
...(input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }),
|
|
12761
|
+
...(input.Source !== undefined && input.Source !== null && { Source: input.Source }),
|
|
12762
|
+
...(input.SourcePort !== undefined && input.SourcePort !== null && { SourcePort: input.SourcePort }),
|
|
12763
|
+
};
|
|
12764
|
+
};
|
|
12765
|
+
const serializeAws_restJson1RuleGroupSourceStatefulRulesList = (input, context) => {
|
|
12438
12766
|
return input
|
|
12439
12767
|
.filter((e) => e != null)
|
|
12440
12768
|
.map((entry) => {
|
|
12441
12769
|
if (entry === null) {
|
|
12442
12770
|
return null;
|
|
12443
12771
|
}
|
|
12444
|
-
return
|
|
12772
|
+
return serializeAws_restJson1RuleGroupSourceStatefulRulesDetails(entry, context);
|
|
12445
12773
|
});
|
|
12446
12774
|
};
|
|
12447
|
-
const
|
|
12775
|
+
const serializeAws_restJson1RuleGroupSourceStatefulRulesOptionsDetails = (input, context) => {
|
|
12448
12776
|
return {
|
|
12449
|
-
...(input.
|
|
12450
|
-
...(input.
|
|
12451
|
-
input.
|
|
12452
|
-
|
|
12777
|
+
...(input.Keyword !== undefined && input.Keyword !== null && { Keyword: input.Keyword }),
|
|
12778
|
+
...(input.Settings !== undefined &&
|
|
12779
|
+
input.Settings !== null && {
|
|
12780
|
+
Settings: serializeAws_restJson1RuleGroupSourceStatefulRulesRuleOptionsSettingsList(input.Settings, context),
|
|
12453
12781
|
}),
|
|
12454
|
-
...(input.TotalCount !== undefined && input.TotalCount !== null && { TotalCount: input.TotalCount }),
|
|
12455
12782
|
};
|
|
12456
12783
|
};
|
|
12457
|
-
const
|
|
12784
|
+
const serializeAws_restJson1RuleGroupSourceStatefulRulesOptionsList = (input, context) => {
|
|
12458
12785
|
return input
|
|
12459
12786
|
.filter((e) => e != null)
|
|
12460
12787
|
.map((entry) => {
|
|
12461
12788
|
if (entry === null) {
|
|
12462
12789
|
return null;
|
|
12463
12790
|
}
|
|
12464
|
-
return
|
|
12791
|
+
return serializeAws_restJson1RuleGroupSourceStatefulRulesOptionsDetails(entry, context);
|
|
12465
12792
|
});
|
|
12466
12793
|
};
|
|
12467
|
-
const
|
|
12794
|
+
const serializeAws_restJson1RuleGroupSourceStatefulRulesRuleOptionsSettingsList = (input, context) => {
|
|
12795
|
+
return input
|
|
12796
|
+
.filter((e) => e != null)
|
|
12797
|
+
.map((entry) => {
|
|
12798
|
+
if (entry === null) {
|
|
12799
|
+
return null;
|
|
12800
|
+
}
|
|
12801
|
+
return entry;
|
|
12802
|
+
});
|
|
12803
|
+
};
|
|
12804
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleDefinition = (input, context) => {
|
|
12468
12805
|
return {
|
|
12469
|
-
...(input.
|
|
12470
|
-
|
|
12471
|
-
...(input.
|
|
12472
|
-
|
|
12806
|
+
...(input.Actions !== undefined &&
|
|
12807
|
+
input.Actions !== null && { Actions: serializeAws_restJson1NonEmptyStringList(input.Actions, context) }),
|
|
12808
|
+
...(input.MatchAttributes !== undefined &&
|
|
12809
|
+
input.MatchAttributes !== null && {
|
|
12810
|
+
MatchAttributes: serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributes(input.MatchAttributes, context),
|
|
12811
|
+
}),
|
|
12473
12812
|
};
|
|
12474
12813
|
};
|
|
12475
|
-
const
|
|
12814
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributes = (input, context) => {
|
|
12476
12815
|
return {
|
|
12477
|
-
...(input.
|
|
12478
|
-
|
|
12479
|
-
|
|
12816
|
+
...(input.DestinationPorts !== undefined &&
|
|
12817
|
+
input.DestinationPorts !== null && {
|
|
12818
|
+
DestinationPorts: serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPortsList(input.DestinationPorts, context),
|
|
12819
|
+
}),
|
|
12820
|
+
...(input.Destinations !== undefined &&
|
|
12821
|
+
input.Destinations !== null && {
|
|
12822
|
+
Destinations: serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationsList(input.Destinations, context),
|
|
12823
|
+
}),
|
|
12824
|
+
...(input.Protocols !== undefined &&
|
|
12825
|
+
input.Protocols !== null && {
|
|
12826
|
+
Protocols: serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesProtocolsList(input.Protocols, context),
|
|
12827
|
+
}),
|
|
12828
|
+
...(input.SourcePorts !== undefined &&
|
|
12829
|
+
input.SourcePorts !== null && {
|
|
12830
|
+
SourcePorts: serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePortsList(input.SourcePorts, context),
|
|
12831
|
+
}),
|
|
12832
|
+
...(input.Sources !== undefined &&
|
|
12833
|
+
input.Sources !== null && {
|
|
12834
|
+
Sources: serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcesList(input.Sources, context),
|
|
12835
|
+
}),
|
|
12836
|
+
...(input.TcpFlags !== undefined &&
|
|
12837
|
+
input.TcpFlags !== null && {
|
|
12838
|
+
TcpFlags: serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlagsList(input.TcpFlags, context),
|
|
12839
|
+
}),
|
|
12480
12840
|
};
|
|
12481
12841
|
};
|
|
12482
|
-
const
|
|
12842
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts = (input, context) => {
|
|
12483
12843
|
return {
|
|
12484
|
-
...(input.
|
|
12485
|
-
...(input.
|
|
12486
|
-
...(input.FilePath !== undefined && input.FilePath !== null && { FilePath: input.FilePath }),
|
|
12487
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
12488
|
-
...(input.PackageManager !== undefined &&
|
|
12489
|
-
input.PackageManager !== null && { PackageManager: input.PackageManager }),
|
|
12490
|
-
...(input.Release !== undefined && input.Release !== null && { Release: input.Release }),
|
|
12491
|
-
...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
|
|
12844
|
+
...(input.FromPort !== undefined && input.FromPort !== null && { FromPort: input.FromPort }),
|
|
12845
|
+
...(input.ToPort !== undefined && input.ToPort !== null && { ToPort: input.ToPort }),
|
|
12492
12846
|
};
|
|
12493
12847
|
};
|
|
12494
|
-
const
|
|
12848
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPortsList = (input, context) => {
|
|
12495
12849
|
return input
|
|
12496
12850
|
.filter((e) => e != null)
|
|
12497
12851
|
.map((entry) => {
|
|
12498
12852
|
if (entry === null) {
|
|
12499
12853
|
return null;
|
|
12500
12854
|
}
|
|
12501
|
-
return
|
|
12855
|
+
return serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts(entry, context);
|
|
12502
12856
|
});
|
|
12503
12857
|
};
|
|
12504
|
-
const
|
|
12858
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinations = (input, context) => {
|
|
12859
|
+
return {
|
|
12860
|
+
...(input.AddressDefinition !== undefined &&
|
|
12861
|
+
input.AddressDefinition !== null && { AddressDefinition: input.AddressDefinition }),
|
|
12862
|
+
};
|
|
12863
|
+
};
|
|
12864
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationsList = (input, context) => {
|
|
12505
12865
|
return input
|
|
12506
12866
|
.filter((e) => e != null)
|
|
12507
12867
|
.map((entry) => {
|
|
12508
12868
|
if (entry === null) {
|
|
12509
12869
|
return null;
|
|
12510
12870
|
}
|
|
12511
|
-
return
|
|
12871
|
+
return serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinations(entry, context);
|
|
12512
12872
|
});
|
|
12513
12873
|
};
|
|
12514
|
-
const
|
|
12515
|
-
return {
|
|
12516
|
-
...(input.Field !== undefined && input.Field !== null && { Field: input.Field }),
|
|
12517
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
12518
|
-
};
|
|
12519
|
-
};
|
|
12520
|
-
const serializeAws_restJson1StandardsInputParameterMap = (input, context) => {
|
|
12521
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
12522
|
-
if (value === null) {
|
|
12523
|
-
return acc;
|
|
12524
|
-
}
|
|
12525
|
-
return {
|
|
12526
|
-
...acc,
|
|
12527
|
-
[key]: value,
|
|
12528
|
-
};
|
|
12529
|
-
}, {});
|
|
12530
|
-
};
|
|
12531
|
-
const serializeAws_restJson1StandardsSubscriptionArns = (input, context) => {
|
|
12874
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesProtocolsList = (input, context) => {
|
|
12532
12875
|
return input
|
|
12533
12876
|
.filter((e) => e != null)
|
|
12534
12877
|
.map((entry) => {
|
|
@@ -12538,48 +12881,306 @@ const serializeAws_restJson1StandardsSubscriptionArns = (input, context) => {
|
|
|
12538
12881
|
return entry;
|
|
12539
12882
|
});
|
|
12540
12883
|
};
|
|
12541
|
-
const
|
|
12884
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePorts = (input, context) => {
|
|
12542
12885
|
return {
|
|
12543
|
-
...(input.
|
|
12544
|
-
...(input.
|
|
12545
|
-
input.StandardsInput !== null && {
|
|
12546
|
-
StandardsInput: serializeAws_restJson1StandardsInputParameterMap(input.StandardsInput, context),
|
|
12547
|
-
}),
|
|
12886
|
+
...(input.FromPort !== undefined && input.FromPort !== null && { FromPort: input.FromPort }),
|
|
12887
|
+
...(input.ToPort !== undefined && input.ToPort !== null && { ToPort: input.ToPort }),
|
|
12548
12888
|
};
|
|
12549
12889
|
};
|
|
12550
|
-
const
|
|
12890
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePortsList = (input, context) => {
|
|
12551
12891
|
return input
|
|
12552
12892
|
.filter((e) => e != null)
|
|
12553
12893
|
.map((entry) => {
|
|
12554
12894
|
if (entry === null) {
|
|
12555
12895
|
return null;
|
|
12556
12896
|
}
|
|
12557
|
-
return
|
|
12897
|
+
return serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePorts(entry, context);
|
|
12558
12898
|
});
|
|
12559
12899
|
};
|
|
12560
|
-
const
|
|
12900
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources = (input, context) => {
|
|
12561
12901
|
return {
|
|
12562
|
-
...(input.
|
|
12563
|
-
|
|
12902
|
+
...(input.AddressDefinition !== undefined &&
|
|
12903
|
+
input.AddressDefinition !== null && { AddressDefinition: input.AddressDefinition }),
|
|
12564
12904
|
};
|
|
12565
12905
|
};
|
|
12566
|
-
const
|
|
12906
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcesList = (input, context) => {
|
|
12567
12907
|
return input
|
|
12568
12908
|
.filter((e) => e != null)
|
|
12569
12909
|
.map((entry) => {
|
|
12570
12910
|
if (entry === null) {
|
|
12571
12911
|
return null;
|
|
12572
12912
|
}
|
|
12573
|
-
return
|
|
12913
|
+
return serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources(entry, context);
|
|
12574
12914
|
});
|
|
12575
12915
|
};
|
|
12576
|
-
const
|
|
12916
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlags = (input, context) => {
|
|
12577
12917
|
return {
|
|
12578
|
-
...(input.
|
|
12579
|
-
|
|
12918
|
+
...(input.Flags !== undefined &&
|
|
12919
|
+
input.Flags !== null && { Flags: serializeAws_restJson1NonEmptyStringList(input.Flags, context) }),
|
|
12920
|
+
...(input.Masks !== undefined &&
|
|
12921
|
+
input.Masks !== null && { Masks: serializeAws_restJson1NonEmptyStringList(input.Masks, context) }),
|
|
12580
12922
|
};
|
|
12581
12923
|
};
|
|
12582
|
-
const
|
|
12924
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlagsList = (input, context) => {
|
|
12925
|
+
return input
|
|
12926
|
+
.filter((e) => e != null)
|
|
12927
|
+
.map((entry) => {
|
|
12928
|
+
if (entry === null) {
|
|
12929
|
+
return null;
|
|
12930
|
+
}
|
|
12931
|
+
return serializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlags(entry, context);
|
|
12932
|
+
});
|
|
12933
|
+
};
|
|
12934
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRulesAndCustomActionsDetails = (input, context) => {
|
|
12935
|
+
return {
|
|
12936
|
+
...(input.CustomActions !== undefined &&
|
|
12937
|
+
input.CustomActions !== null && {
|
|
12938
|
+
CustomActions: serializeAws_restJson1RuleGroupSourceCustomActionsList(input.CustomActions, context),
|
|
12939
|
+
}),
|
|
12940
|
+
...(input.StatelessRules !== undefined &&
|
|
12941
|
+
input.StatelessRules !== null && {
|
|
12942
|
+
StatelessRules: serializeAws_restJson1RuleGroupSourceStatelessRulesList(input.StatelessRules, context),
|
|
12943
|
+
}),
|
|
12944
|
+
};
|
|
12945
|
+
};
|
|
12946
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRulesDetails = (input, context) => {
|
|
12947
|
+
return {
|
|
12948
|
+
...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
|
|
12949
|
+
...(input.RuleDefinition !== undefined &&
|
|
12950
|
+
input.RuleDefinition !== null && {
|
|
12951
|
+
RuleDefinition: serializeAws_restJson1RuleGroupSourceStatelessRuleDefinition(input.RuleDefinition, context),
|
|
12952
|
+
}),
|
|
12953
|
+
};
|
|
12954
|
+
};
|
|
12955
|
+
const serializeAws_restJson1RuleGroupSourceStatelessRulesList = (input, context) => {
|
|
12956
|
+
return input
|
|
12957
|
+
.filter((e) => e != null)
|
|
12958
|
+
.map((entry) => {
|
|
12959
|
+
if (entry === null) {
|
|
12960
|
+
return null;
|
|
12961
|
+
}
|
|
12962
|
+
return serializeAws_restJson1RuleGroupSourceStatelessRulesDetails(entry, context);
|
|
12963
|
+
});
|
|
12964
|
+
};
|
|
12965
|
+
const serializeAws_restJson1RuleGroupVariables = (input, context) => {
|
|
12966
|
+
return {
|
|
12967
|
+
...(input.IpSets !== undefined &&
|
|
12968
|
+
input.IpSets !== null && {
|
|
12969
|
+
IpSets: serializeAws_restJson1RuleGroupVariablesIpSetsDetails(input.IpSets, context),
|
|
12970
|
+
}),
|
|
12971
|
+
...(input.PortSets !== undefined &&
|
|
12972
|
+
input.PortSets !== null && {
|
|
12973
|
+
PortSets: serializeAws_restJson1RuleGroupVariablesPortSetsDetails(input.PortSets, context),
|
|
12974
|
+
}),
|
|
12975
|
+
};
|
|
12976
|
+
};
|
|
12977
|
+
const serializeAws_restJson1RuleGroupVariablesIpSetsDetails = (input, context) => {
|
|
12978
|
+
return {
|
|
12979
|
+
...(input.Definition !== undefined &&
|
|
12980
|
+
input.Definition !== null && { Definition: serializeAws_restJson1NonEmptyStringList(input.Definition, context) }),
|
|
12981
|
+
};
|
|
12982
|
+
};
|
|
12983
|
+
const serializeAws_restJson1RuleGroupVariablesPortSetsDetails = (input, context) => {
|
|
12984
|
+
return {
|
|
12985
|
+
...(input.Definition !== undefined &&
|
|
12986
|
+
input.Definition !== null && { Definition: serializeAws_restJson1NonEmptyStringList(input.Definition, context) }),
|
|
12987
|
+
};
|
|
12988
|
+
};
|
|
12989
|
+
const serializeAws_restJson1SecurityGroups = (input, context) => {
|
|
12990
|
+
return input
|
|
12991
|
+
.filter((e) => e != null)
|
|
12992
|
+
.map((entry) => {
|
|
12993
|
+
if (entry === null) {
|
|
12994
|
+
return null;
|
|
12995
|
+
}
|
|
12996
|
+
return entry;
|
|
12997
|
+
});
|
|
12998
|
+
};
|
|
12999
|
+
const serializeAws_restJson1SensitiveDataDetections = (input, context) => {
|
|
13000
|
+
return {
|
|
13001
|
+
...(input.Count !== undefined && input.Count !== null && { Count: input.Count }),
|
|
13002
|
+
...(input.Occurrences !== undefined &&
|
|
13003
|
+
input.Occurrences !== null && { Occurrences: serializeAws_restJson1Occurrences(input.Occurrences, context) }),
|
|
13004
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
13005
|
+
};
|
|
13006
|
+
};
|
|
13007
|
+
const serializeAws_restJson1SensitiveDataDetectionsList = (input, context) => {
|
|
13008
|
+
return input
|
|
13009
|
+
.filter((e) => e != null)
|
|
13010
|
+
.map((entry) => {
|
|
13011
|
+
if (entry === null) {
|
|
13012
|
+
return null;
|
|
13013
|
+
}
|
|
13014
|
+
return serializeAws_restJson1SensitiveDataDetections(entry, context);
|
|
13015
|
+
});
|
|
13016
|
+
};
|
|
13017
|
+
const serializeAws_restJson1SensitiveDataResult = (input, context) => {
|
|
13018
|
+
return {
|
|
13019
|
+
...(input.Category !== undefined && input.Category !== null && { Category: input.Category }),
|
|
13020
|
+
...(input.Detections !== undefined &&
|
|
13021
|
+
input.Detections !== null && {
|
|
13022
|
+
Detections: serializeAws_restJson1SensitiveDataDetectionsList(input.Detections, context),
|
|
13023
|
+
}),
|
|
13024
|
+
...(input.TotalCount !== undefined && input.TotalCount !== null && { TotalCount: input.TotalCount }),
|
|
13025
|
+
};
|
|
13026
|
+
};
|
|
13027
|
+
const serializeAws_restJson1SensitiveDataResultList = (input, context) => {
|
|
13028
|
+
return input
|
|
13029
|
+
.filter((e) => e != null)
|
|
13030
|
+
.map((entry) => {
|
|
13031
|
+
if (entry === null) {
|
|
13032
|
+
return null;
|
|
13033
|
+
}
|
|
13034
|
+
return serializeAws_restJson1SensitiveDataResult(entry, context);
|
|
13035
|
+
});
|
|
13036
|
+
};
|
|
13037
|
+
const serializeAws_restJson1Severity = (input, context) => {
|
|
13038
|
+
return {
|
|
13039
|
+
...(input.Label !== undefined && input.Label !== null && { Label: input.Label }),
|
|
13040
|
+
...(input.Normalized !== undefined && input.Normalized !== null && { Normalized: input.Normalized }),
|
|
13041
|
+
...(input.Original !== undefined && input.Original !== null && { Original: input.Original }),
|
|
13042
|
+
...(input.Product !== undefined && input.Product !== null && { Product: smithy_client_1.serializeFloat(input.Product) }),
|
|
13043
|
+
};
|
|
13044
|
+
};
|
|
13045
|
+
const serializeAws_restJson1SeverityUpdate = (input, context) => {
|
|
13046
|
+
return {
|
|
13047
|
+
...(input.Label !== undefined && input.Label !== null && { Label: input.Label }),
|
|
13048
|
+
...(input.Normalized !== undefined && input.Normalized !== null && { Normalized: input.Normalized }),
|
|
13049
|
+
...(input.Product !== undefined && input.Product !== null && { Product: smithy_client_1.serializeFloat(input.Product) }),
|
|
13050
|
+
};
|
|
13051
|
+
};
|
|
13052
|
+
const serializeAws_restJson1SoftwarePackage = (input, context) => {
|
|
13053
|
+
return {
|
|
13054
|
+
...(input.Architecture !== undefined && input.Architecture !== null && { Architecture: input.Architecture }),
|
|
13055
|
+
...(input.Epoch !== undefined && input.Epoch !== null && { Epoch: input.Epoch }),
|
|
13056
|
+
...(input.FilePath !== undefined && input.FilePath !== null && { FilePath: input.FilePath }),
|
|
13057
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
13058
|
+
...(input.PackageManager !== undefined &&
|
|
13059
|
+
input.PackageManager !== null && { PackageManager: input.PackageManager }),
|
|
13060
|
+
...(input.Release !== undefined && input.Release !== null && { Release: input.Release }),
|
|
13061
|
+
...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
|
|
13062
|
+
};
|
|
13063
|
+
};
|
|
13064
|
+
const serializeAws_restJson1SoftwarePackageList = (input, context) => {
|
|
13065
|
+
return input
|
|
13066
|
+
.filter((e) => e != null)
|
|
13067
|
+
.map((entry) => {
|
|
13068
|
+
if (entry === null) {
|
|
13069
|
+
return null;
|
|
13070
|
+
}
|
|
13071
|
+
return serializeAws_restJson1SoftwarePackage(entry, context);
|
|
13072
|
+
});
|
|
13073
|
+
};
|
|
13074
|
+
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
13075
|
+
return input
|
|
13076
|
+
.filter((e) => e != null)
|
|
13077
|
+
.map((entry) => {
|
|
13078
|
+
if (entry === null) {
|
|
13079
|
+
return null;
|
|
13080
|
+
}
|
|
13081
|
+
return serializeAws_restJson1SortCriterion(entry, context);
|
|
13082
|
+
});
|
|
13083
|
+
};
|
|
13084
|
+
const serializeAws_restJson1SortCriterion = (input, context) => {
|
|
13085
|
+
return {
|
|
13086
|
+
...(input.Field !== undefined && input.Field !== null && { Field: input.Field }),
|
|
13087
|
+
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
13088
|
+
};
|
|
13089
|
+
};
|
|
13090
|
+
const serializeAws_restJson1StandardsInputParameterMap = (input, context) => {
|
|
13091
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
13092
|
+
if (value === null) {
|
|
13093
|
+
return acc;
|
|
13094
|
+
}
|
|
13095
|
+
return {
|
|
13096
|
+
...acc,
|
|
13097
|
+
[key]: value,
|
|
13098
|
+
};
|
|
13099
|
+
}, {});
|
|
13100
|
+
};
|
|
13101
|
+
const serializeAws_restJson1StandardsSubscriptionArns = (input, context) => {
|
|
13102
|
+
return input
|
|
13103
|
+
.filter((e) => e != null)
|
|
13104
|
+
.map((entry) => {
|
|
13105
|
+
if (entry === null) {
|
|
13106
|
+
return null;
|
|
13107
|
+
}
|
|
13108
|
+
return entry;
|
|
13109
|
+
});
|
|
13110
|
+
};
|
|
13111
|
+
const serializeAws_restJson1StandardsSubscriptionRequest = (input, context) => {
|
|
13112
|
+
return {
|
|
13113
|
+
...(input.StandardsArn !== undefined && input.StandardsArn !== null && { StandardsArn: input.StandardsArn }),
|
|
13114
|
+
...(input.StandardsInput !== undefined &&
|
|
13115
|
+
input.StandardsInput !== null && {
|
|
13116
|
+
StandardsInput: serializeAws_restJson1StandardsInputParameterMap(input.StandardsInput, context),
|
|
13117
|
+
}),
|
|
13118
|
+
};
|
|
13119
|
+
};
|
|
13120
|
+
const serializeAws_restJson1StandardsSubscriptionRequests = (input, context) => {
|
|
13121
|
+
return input
|
|
13122
|
+
.filter((e) => e != null)
|
|
13123
|
+
.map((entry) => {
|
|
13124
|
+
if (entry === null) {
|
|
13125
|
+
return null;
|
|
13126
|
+
}
|
|
13127
|
+
return serializeAws_restJson1StandardsSubscriptionRequest(entry, context);
|
|
13128
|
+
});
|
|
13129
|
+
};
|
|
13130
|
+
const serializeAws_restJson1StatelessCustomActionDefinition = (input, context) => {
|
|
13131
|
+
return {
|
|
13132
|
+
...(input.PublishMetricAction !== undefined &&
|
|
13133
|
+
input.PublishMetricAction !== null && {
|
|
13134
|
+
PublishMetricAction: serializeAws_restJson1StatelessCustomPublishMetricAction(input.PublishMetricAction, context),
|
|
13135
|
+
}),
|
|
13136
|
+
};
|
|
13137
|
+
};
|
|
13138
|
+
const serializeAws_restJson1StatelessCustomPublishMetricAction = (input, context) => {
|
|
13139
|
+
return {
|
|
13140
|
+
...(input.Dimensions !== undefined &&
|
|
13141
|
+
input.Dimensions !== null && {
|
|
13142
|
+
Dimensions: serializeAws_restJson1StatelessCustomPublishMetricActionDimensionsList(input.Dimensions, context),
|
|
13143
|
+
}),
|
|
13144
|
+
};
|
|
13145
|
+
};
|
|
13146
|
+
const serializeAws_restJson1StatelessCustomPublishMetricActionDimension = (input, context) => {
|
|
13147
|
+
return {
|
|
13148
|
+
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
13149
|
+
};
|
|
13150
|
+
};
|
|
13151
|
+
const serializeAws_restJson1StatelessCustomPublishMetricActionDimensionsList = (input, context) => {
|
|
13152
|
+
return input
|
|
13153
|
+
.filter((e) => e != null)
|
|
13154
|
+
.map((entry) => {
|
|
13155
|
+
if (entry === null) {
|
|
13156
|
+
return null;
|
|
13157
|
+
}
|
|
13158
|
+
return serializeAws_restJson1StatelessCustomPublishMetricActionDimension(entry, context);
|
|
13159
|
+
});
|
|
13160
|
+
};
|
|
13161
|
+
const serializeAws_restJson1StatusReason = (input, context) => {
|
|
13162
|
+
return {
|
|
13163
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
13164
|
+
...(input.ReasonCode !== undefined && input.ReasonCode !== null && { ReasonCode: input.ReasonCode }),
|
|
13165
|
+
};
|
|
13166
|
+
};
|
|
13167
|
+
const serializeAws_restJson1StatusReasonsList = (input, context) => {
|
|
13168
|
+
return input
|
|
13169
|
+
.filter((e) => e != null)
|
|
13170
|
+
.map((entry) => {
|
|
13171
|
+
if (entry === null) {
|
|
13172
|
+
return null;
|
|
13173
|
+
}
|
|
13174
|
+
return serializeAws_restJson1StatusReason(entry, context);
|
|
13175
|
+
});
|
|
13176
|
+
};
|
|
13177
|
+
const serializeAws_restJson1StringFilter = (input, context) => {
|
|
13178
|
+
return {
|
|
13179
|
+
...(input.Comparison !== undefined && input.Comparison !== null && { Comparison: input.Comparison }),
|
|
13180
|
+
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
13181
|
+
};
|
|
13182
|
+
};
|
|
13183
|
+
const serializeAws_restJson1StringFilterList = (input, context) => {
|
|
12583
13184
|
return input
|
|
12584
13185
|
.filter((e) => e != null)
|
|
12585
13186
|
.map((entry) => {
|
|
@@ -13002,8 +13603,26 @@ const deserializeAws_restJson1AwsApiGatewayV2StageDetails = (output, context) =>
|
|
|
13002
13603
|
: undefined,
|
|
13003
13604
|
};
|
|
13004
13605
|
};
|
|
13606
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesList = (output, context) => {
|
|
13607
|
+
return (output || [])
|
|
13608
|
+
.filter((e) => e != null)
|
|
13609
|
+
.map((entry) => {
|
|
13610
|
+
if (entry === null) {
|
|
13611
|
+
return null;
|
|
13612
|
+
}
|
|
13613
|
+
return deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails(entry, context);
|
|
13614
|
+
});
|
|
13615
|
+
};
|
|
13616
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails = (output, context) => {
|
|
13617
|
+
return {
|
|
13618
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
13619
|
+
};
|
|
13620
|
+
};
|
|
13005
13621
|
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupDetails = (output, context) => {
|
|
13006
13622
|
return {
|
|
13623
|
+
AvailabilityZones: output.AvailabilityZones !== undefined && output.AvailabilityZones !== null
|
|
13624
|
+
? deserializeAws_restJson1AwsAutoScalingAutoScalingGroupAvailabilityZonesList(output.AvailabilityZones, context)
|
|
13625
|
+
: undefined,
|
|
13007
13626
|
CreatedTime: smithy_client_1.expectString(output.CreatedTime),
|
|
13008
13627
|
HealthCheckGracePeriod: smithy_client_1.expectInt32(output.HealthCheckGracePeriod),
|
|
13009
13628
|
HealthCheckType: smithy_client_1.expectString(output.HealthCheckType),
|
|
@@ -13011,6 +13630,62 @@ const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupDetails = (output, c
|
|
|
13011
13630
|
LoadBalancerNames: output.LoadBalancerNames !== undefined && output.LoadBalancerNames !== null
|
|
13012
13631
|
? deserializeAws_restJson1StringList(output.LoadBalancerNames, context)
|
|
13013
13632
|
: undefined,
|
|
13633
|
+
MixedInstancesPolicy: output.MixedInstancesPolicy !== undefined && output.MixedInstancesPolicy !== null
|
|
13634
|
+
? deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails(output.MixedInstancesPolicy, context)
|
|
13635
|
+
: undefined,
|
|
13636
|
+
};
|
|
13637
|
+
};
|
|
13638
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails = (output, context) => {
|
|
13639
|
+
return {
|
|
13640
|
+
InstancesDistribution: output.InstancesDistribution !== undefined && output.InstancesDistribution !== null
|
|
13641
|
+
? deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails(output.InstancesDistribution, context)
|
|
13642
|
+
: undefined,
|
|
13643
|
+
LaunchTemplate: output.LaunchTemplate !== undefined && output.LaunchTemplate !== null
|
|
13644
|
+
? deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails(output.LaunchTemplate, context)
|
|
13645
|
+
: undefined,
|
|
13646
|
+
};
|
|
13647
|
+
};
|
|
13648
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails = (output, context) => {
|
|
13649
|
+
return {
|
|
13650
|
+
OnDemandAllocationStrategy: smithy_client_1.expectString(output.OnDemandAllocationStrategy),
|
|
13651
|
+
OnDemandBaseCapacity: smithy_client_1.expectInt32(output.OnDemandBaseCapacity),
|
|
13652
|
+
OnDemandPercentageAboveBaseCapacity: smithy_client_1.expectInt32(output.OnDemandPercentageAboveBaseCapacity),
|
|
13653
|
+
SpotAllocationStrategy: smithy_client_1.expectString(output.SpotAllocationStrategy),
|
|
13654
|
+
SpotInstancePools: smithy_client_1.expectInt32(output.SpotInstancePools),
|
|
13655
|
+
SpotMaxPrice: smithy_client_1.expectString(output.SpotMaxPrice),
|
|
13656
|
+
};
|
|
13657
|
+
};
|
|
13658
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails = (output, context) => {
|
|
13659
|
+
return {
|
|
13660
|
+
LaunchTemplateSpecification: output.LaunchTemplateSpecification !== undefined && output.LaunchTemplateSpecification !== null
|
|
13661
|
+
? deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification(output.LaunchTemplateSpecification, context)
|
|
13662
|
+
: undefined,
|
|
13663
|
+
Overrides: output.Overrides !== undefined && output.Overrides !== null
|
|
13664
|
+
? deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesList(output.Overrides, context)
|
|
13665
|
+
: undefined,
|
|
13666
|
+
};
|
|
13667
|
+
};
|
|
13668
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification = (output, context) => {
|
|
13669
|
+
return {
|
|
13670
|
+
LaunchTemplateId: smithy_client_1.expectString(output.LaunchTemplateId),
|
|
13671
|
+
LaunchTemplateName: smithy_client_1.expectString(output.LaunchTemplateName),
|
|
13672
|
+
Version: smithy_client_1.expectString(output.Version),
|
|
13673
|
+
};
|
|
13674
|
+
};
|
|
13675
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesList = (output, context) => {
|
|
13676
|
+
return (output || [])
|
|
13677
|
+
.filter((e) => e != null)
|
|
13678
|
+
.map((entry) => {
|
|
13679
|
+
if (entry === null) {
|
|
13680
|
+
return null;
|
|
13681
|
+
}
|
|
13682
|
+
return deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails(entry, context);
|
|
13683
|
+
});
|
|
13684
|
+
};
|
|
13685
|
+
const deserializeAws_restJson1AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails = (output, context) => {
|
|
13686
|
+
return {
|
|
13687
|
+
InstanceType: smithy_client_1.expectString(output.InstanceType),
|
|
13688
|
+
WeightedCapacity: smithy_client_1.expectString(output.WeightedCapacity),
|
|
13014
13689
|
};
|
|
13015
13690
|
};
|
|
13016
13691
|
const deserializeAws_restJson1AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails = (output, context) => {
|
|
@@ -13064,6 +13739,9 @@ const deserializeAws_restJson1AwsAutoScalingLaunchConfigurationDetails = (output
|
|
|
13064
13739
|
KernelId: smithy_client_1.expectString(output.KernelId),
|
|
13065
13740
|
KeyName: smithy_client_1.expectString(output.KeyName),
|
|
13066
13741
|
LaunchConfigurationName: smithy_client_1.expectString(output.LaunchConfigurationName),
|
|
13742
|
+
MetadataOptions: output.MetadataOptions !== undefined && output.MetadataOptions !== null
|
|
13743
|
+
? deserializeAws_restJson1AwsAutoScalingLaunchConfigurationMetadataOptions(output.MetadataOptions, context)
|
|
13744
|
+
: undefined,
|
|
13067
13745
|
PlacementTenancy: smithy_client_1.expectString(output.PlacementTenancy),
|
|
13068
13746
|
RamdiskId: smithy_client_1.expectString(output.RamdiskId),
|
|
13069
13747
|
SecurityGroups: output.SecurityGroups !== undefined && output.SecurityGroups !== null
|
|
@@ -13078,6 +13756,13 @@ const deserializeAws_restJson1AwsAutoScalingLaunchConfigurationInstanceMonitorin
|
|
|
13078
13756
|
Enabled: smithy_client_1.expectBoolean(output.Enabled),
|
|
13079
13757
|
};
|
|
13080
13758
|
};
|
|
13759
|
+
const deserializeAws_restJson1AwsAutoScalingLaunchConfigurationMetadataOptions = (output, context) => {
|
|
13760
|
+
return {
|
|
13761
|
+
HttpEndpoint: smithy_client_1.expectString(output.HttpEndpoint),
|
|
13762
|
+
HttpPutResponseHopLimit: smithy_client_1.expectInt32(output.HttpPutResponseHopLimit),
|
|
13763
|
+
HttpTokens: smithy_client_1.expectString(output.HttpTokens),
|
|
13764
|
+
};
|
|
13765
|
+
};
|
|
13081
13766
|
const deserializeAws_restJson1AwsCertificateManagerCertificateDetails = (output, context) => {
|
|
13082
13767
|
return {
|
|
13083
13768
|
CertificateAuthorityArn: smithy_client_1.expectString(output.CertificateAuthorityArn),
|
|
@@ -15878,6 +16563,61 @@ const deserializeAws_restJson1AwsLambdaLayerVersionDetails = (output, context) =
|
|
|
15878
16563
|
Version: smithy_client_1.expectLong(output.Version),
|
|
15879
16564
|
};
|
|
15880
16565
|
};
|
|
16566
|
+
const deserializeAws_restJson1AwsNetworkFirewallFirewallDetails = (output, context) => {
|
|
16567
|
+
return {
|
|
16568
|
+
DeleteProtection: smithy_client_1.expectBoolean(output.DeleteProtection),
|
|
16569
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
16570
|
+
FirewallArn: smithy_client_1.expectString(output.FirewallArn),
|
|
16571
|
+
FirewallId: smithy_client_1.expectString(output.FirewallId),
|
|
16572
|
+
FirewallName: smithy_client_1.expectString(output.FirewallName),
|
|
16573
|
+
FirewallPolicyArn: smithy_client_1.expectString(output.FirewallPolicyArn),
|
|
16574
|
+
FirewallPolicyChangeProtection: smithy_client_1.expectBoolean(output.FirewallPolicyChangeProtection),
|
|
16575
|
+
SubnetChangeProtection: smithy_client_1.expectBoolean(output.SubnetChangeProtection),
|
|
16576
|
+
SubnetMappings: output.SubnetMappings !== undefined && output.SubnetMappings !== null
|
|
16577
|
+
? deserializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsList(output.SubnetMappings, context)
|
|
16578
|
+
: undefined,
|
|
16579
|
+
VpcId: smithy_client_1.expectString(output.VpcId),
|
|
16580
|
+
};
|
|
16581
|
+
};
|
|
16582
|
+
const deserializeAws_restJson1AwsNetworkFirewallFirewallPolicyDetails = (output, context) => {
|
|
16583
|
+
return {
|
|
16584
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
16585
|
+
FirewallPolicy: output.FirewallPolicy !== undefined && output.FirewallPolicy !== null
|
|
16586
|
+
? deserializeAws_restJson1FirewallPolicyDetails(output.FirewallPolicy, context)
|
|
16587
|
+
: undefined,
|
|
16588
|
+
FirewallPolicyArn: smithy_client_1.expectString(output.FirewallPolicyArn),
|
|
16589
|
+
FirewallPolicyId: smithy_client_1.expectString(output.FirewallPolicyId),
|
|
16590
|
+
FirewallPolicyName: smithy_client_1.expectString(output.FirewallPolicyName),
|
|
16591
|
+
};
|
|
16592
|
+
};
|
|
16593
|
+
const deserializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsDetails = (output, context) => {
|
|
16594
|
+
return {
|
|
16595
|
+
SubnetId: smithy_client_1.expectString(output.SubnetId),
|
|
16596
|
+
};
|
|
16597
|
+
};
|
|
16598
|
+
const deserializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsList = (output, context) => {
|
|
16599
|
+
return (output || [])
|
|
16600
|
+
.filter((e) => e != null)
|
|
16601
|
+
.map((entry) => {
|
|
16602
|
+
if (entry === null) {
|
|
16603
|
+
return null;
|
|
16604
|
+
}
|
|
16605
|
+
return deserializeAws_restJson1AwsNetworkFirewallFirewallSubnetMappingsDetails(entry, context);
|
|
16606
|
+
});
|
|
16607
|
+
};
|
|
16608
|
+
const deserializeAws_restJson1AwsNetworkFirewallRuleGroupDetails = (output, context) => {
|
|
16609
|
+
return {
|
|
16610
|
+
Capacity: smithy_client_1.expectInt32(output.Capacity),
|
|
16611
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
16612
|
+
RuleGroup: output.RuleGroup !== undefined && output.RuleGroup !== null
|
|
16613
|
+
? deserializeAws_restJson1RuleGroupDetails(output.RuleGroup, context)
|
|
16614
|
+
: undefined,
|
|
16615
|
+
RuleGroupArn: smithy_client_1.expectString(output.RuleGroupArn),
|
|
16616
|
+
RuleGroupId: smithy_client_1.expectString(output.RuleGroupId),
|
|
16617
|
+
RuleGroupName: smithy_client_1.expectString(output.RuleGroupName),
|
|
16618
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
16619
|
+
};
|
|
16620
|
+
};
|
|
15881
16621
|
const deserializeAws_restJson1AwsOpenSearchServiceDomainClusterConfigDetails = (output, context) => {
|
|
15882
16622
|
return {
|
|
15883
16623
|
DedicatedMasterCount: smithy_client_1.expectInt32(output.DedicatedMasterCount),
|
|
@@ -16849,6 +17589,12 @@ const deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransi
|
|
|
16849
17589
|
return deserializeAws_restJson1AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails(entry, context);
|
|
16850
17590
|
});
|
|
16851
17591
|
};
|
|
17592
|
+
const deserializeAws_restJson1AwsS3BucketBucketVersioningConfiguration = (output, context) => {
|
|
17593
|
+
return {
|
|
17594
|
+
IsMfaDeleteEnabled: smithy_client_1.expectBoolean(output.IsMfaDeleteEnabled),
|
|
17595
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
17596
|
+
};
|
|
17597
|
+
};
|
|
16852
17598
|
const deserializeAws_restJson1AwsS3BucketDetails = (output, context) => {
|
|
16853
17599
|
return {
|
|
16854
17600
|
AccessControlList: smithy_client_1.expectString(output.AccessControlList),
|
|
@@ -16861,6 +17607,9 @@ const deserializeAws_restJson1AwsS3BucketDetails = (output, context) => {
|
|
|
16861
17607
|
BucketNotificationConfiguration: output.BucketNotificationConfiguration !== undefined && output.BucketNotificationConfiguration !== null
|
|
16862
17608
|
? deserializeAws_restJson1AwsS3BucketNotificationConfiguration(output.BucketNotificationConfiguration, context)
|
|
16863
17609
|
: undefined,
|
|
17610
|
+
BucketVersioningConfiguration: output.BucketVersioningConfiguration !== undefined && output.BucketVersioningConfiguration !== null
|
|
17611
|
+
? deserializeAws_restJson1AwsS3BucketBucketVersioningConfiguration(output.BucketVersioningConfiguration, context)
|
|
17612
|
+
: undefined,
|
|
16864
17613
|
BucketWebsiteConfiguration: output.BucketWebsiteConfiguration !== undefined && output.BucketWebsiteConfiguration !== null
|
|
16865
17614
|
? deserializeAws_restJson1AwsS3BucketWebsiteConfiguration(output.BucketWebsiteConfiguration, context)
|
|
16866
17615
|
: undefined,
|
|
@@ -17883,6 +18632,74 @@ const deserializeAws_restJson1FindingProviderSeverity = (output, context) => {
|
|
|
17883
18632
|
Original: smithy_client_1.expectString(output.Original),
|
|
17884
18633
|
};
|
|
17885
18634
|
};
|
|
18635
|
+
const deserializeAws_restJson1FirewallPolicyDetails = (output, context) => {
|
|
18636
|
+
return {
|
|
18637
|
+
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences !== undefined && output.StatefulRuleGroupReferences !== null
|
|
18638
|
+
? deserializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesList(output.StatefulRuleGroupReferences, context)
|
|
18639
|
+
: undefined,
|
|
18640
|
+
StatelessCustomActions: output.StatelessCustomActions !== undefined && output.StatelessCustomActions !== null
|
|
18641
|
+
? deserializeAws_restJson1FirewallPolicyStatelessCustomActionsList(output.StatelessCustomActions, context)
|
|
18642
|
+
: undefined,
|
|
18643
|
+
StatelessDefaultActions: output.StatelessDefaultActions !== undefined && output.StatelessDefaultActions !== null
|
|
18644
|
+
? deserializeAws_restJson1NonEmptyStringList(output.StatelessDefaultActions, context)
|
|
18645
|
+
: undefined,
|
|
18646
|
+
StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions !== undefined && output.StatelessFragmentDefaultActions !== null
|
|
18647
|
+
? deserializeAws_restJson1NonEmptyStringList(output.StatelessFragmentDefaultActions, context)
|
|
18648
|
+
: undefined,
|
|
18649
|
+
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences !== undefined && output.StatelessRuleGroupReferences !== null
|
|
18650
|
+
? deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesList(output.StatelessRuleGroupReferences, context)
|
|
18651
|
+
: undefined,
|
|
18652
|
+
};
|
|
18653
|
+
};
|
|
18654
|
+
const deserializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesDetails = (output, context) => {
|
|
18655
|
+
return {
|
|
18656
|
+
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
18657
|
+
};
|
|
18658
|
+
};
|
|
18659
|
+
const deserializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesList = (output, context) => {
|
|
18660
|
+
return (output || [])
|
|
18661
|
+
.filter((e) => e != null)
|
|
18662
|
+
.map((entry) => {
|
|
18663
|
+
if (entry === null) {
|
|
18664
|
+
return null;
|
|
18665
|
+
}
|
|
18666
|
+
return deserializeAws_restJson1FirewallPolicyStatefulRuleGroupReferencesDetails(entry, context);
|
|
18667
|
+
});
|
|
18668
|
+
};
|
|
18669
|
+
const deserializeAws_restJson1FirewallPolicyStatelessCustomActionsDetails = (output, context) => {
|
|
18670
|
+
return {
|
|
18671
|
+
ActionDefinition: output.ActionDefinition !== undefined && output.ActionDefinition !== null
|
|
18672
|
+
? deserializeAws_restJson1StatelessCustomActionDefinition(output.ActionDefinition, context)
|
|
18673
|
+
: undefined,
|
|
18674
|
+
ActionName: smithy_client_1.expectString(output.ActionName),
|
|
18675
|
+
};
|
|
18676
|
+
};
|
|
18677
|
+
const deserializeAws_restJson1FirewallPolicyStatelessCustomActionsList = (output, context) => {
|
|
18678
|
+
return (output || [])
|
|
18679
|
+
.filter((e) => e != null)
|
|
18680
|
+
.map((entry) => {
|
|
18681
|
+
if (entry === null) {
|
|
18682
|
+
return null;
|
|
18683
|
+
}
|
|
18684
|
+
return deserializeAws_restJson1FirewallPolicyStatelessCustomActionsDetails(entry, context);
|
|
18685
|
+
});
|
|
18686
|
+
};
|
|
18687
|
+
const deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesDetails = (output, context) => {
|
|
18688
|
+
return {
|
|
18689
|
+
Priority: smithy_client_1.expectInt32(output.Priority),
|
|
18690
|
+
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
18691
|
+
};
|
|
18692
|
+
};
|
|
18693
|
+
const deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesList = (output, context) => {
|
|
18694
|
+
return (output || [])
|
|
18695
|
+
.filter((e) => e != null)
|
|
18696
|
+
.map((entry) => {
|
|
18697
|
+
if (entry === null) {
|
|
18698
|
+
return null;
|
|
18699
|
+
}
|
|
18700
|
+
return deserializeAws_restJson1FirewallPolicyStatelessRuleGroupReferencesDetails(entry, context);
|
|
18701
|
+
});
|
|
18702
|
+
};
|
|
17886
18703
|
const deserializeAws_restJson1GeoLocation = (output, context) => {
|
|
17887
18704
|
return {
|
|
17888
18705
|
Lat: smithy_client_1.limitedParseDouble(output.Lat),
|
|
@@ -18593,6 +19410,15 @@ const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
|
18593
19410
|
AwsLambdaLayerVersion: output.AwsLambdaLayerVersion !== undefined && output.AwsLambdaLayerVersion !== null
|
|
18594
19411
|
? deserializeAws_restJson1AwsLambdaLayerVersionDetails(output.AwsLambdaLayerVersion, context)
|
|
18595
19412
|
: undefined,
|
|
19413
|
+
AwsNetworkFirewallFirewall: output.AwsNetworkFirewallFirewall !== undefined && output.AwsNetworkFirewallFirewall !== null
|
|
19414
|
+
? deserializeAws_restJson1AwsNetworkFirewallFirewallDetails(output.AwsNetworkFirewallFirewall, context)
|
|
19415
|
+
: undefined,
|
|
19416
|
+
AwsNetworkFirewallFirewallPolicy: output.AwsNetworkFirewallFirewallPolicy !== undefined && output.AwsNetworkFirewallFirewallPolicy !== null
|
|
19417
|
+
? deserializeAws_restJson1AwsNetworkFirewallFirewallPolicyDetails(output.AwsNetworkFirewallFirewallPolicy, context)
|
|
19418
|
+
: undefined,
|
|
19419
|
+
AwsNetworkFirewallRuleGroup: output.AwsNetworkFirewallRuleGroup !== undefined && output.AwsNetworkFirewallRuleGroup !== null
|
|
19420
|
+
? deserializeAws_restJson1AwsNetworkFirewallRuleGroupDetails(output.AwsNetworkFirewallRuleGroup, context)
|
|
19421
|
+
: undefined,
|
|
18596
19422
|
AwsOpenSearchServiceDomain: output.AwsOpenSearchServiceDomain !== undefined && output.AwsOpenSearchServiceDomain !== null
|
|
18597
19423
|
? deserializeAws_restJson1AwsOpenSearchServiceDomainDetails(output.AwsOpenSearchServiceDomain, context)
|
|
18598
19424
|
: undefined,
|
|
@@ -18681,6 +19507,294 @@ const deserializeAws_restJson1ResultList = (output, context) => {
|
|
|
18681
19507
|
return deserializeAws_restJson1Result(entry, context);
|
|
18682
19508
|
});
|
|
18683
19509
|
};
|
|
19510
|
+
const deserializeAws_restJson1RuleGroupDetails = (output, context) => {
|
|
19511
|
+
return {
|
|
19512
|
+
RuleVariables: output.RuleVariables !== undefined && output.RuleVariables !== null
|
|
19513
|
+
? deserializeAws_restJson1RuleGroupVariables(output.RuleVariables, context)
|
|
19514
|
+
: undefined,
|
|
19515
|
+
RulesSource: output.RulesSource !== undefined && output.RulesSource !== null
|
|
19516
|
+
? deserializeAws_restJson1RuleGroupSource(output.RulesSource, context)
|
|
19517
|
+
: undefined,
|
|
19518
|
+
};
|
|
19519
|
+
};
|
|
19520
|
+
const deserializeAws_restJson1RuleGroupSource = (output, context) => {
|
|
19521
|
+
return {
|
|
19522
|
+
RulesSourceList: output.RulesSourceList !== undefined && output.RulesSourceList !== null
|
|
19523
|
+
? deserializeAws_restJson1RuleGroupSourceListDetails(output.RulesSourceList, context)
|
|
19524
|
+
: undefined,
|
|
19525
|
+
RulesString: smithy_client_1.expectString(output.RulesString),
|
|
19526
|
+
StatefulRules: output.StatefulRules !== undefined && output.StatefulRules !== null
|
|
19527
|
+
? deserializeAws_restJson1RuleGroupSourceStatefulRulesList(output.StatefulRules, context)
|
|
19528
|
+
: undefined,
|
|
19529
|
+
StatelessRulesAndCustomActions: output.StatelessRulesAndCustomActions !== undefined && output.StatelessRulesAndCustomActions !== null
|
|
19530
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRulesAndCustomActionsDetails(output.StatelessRulesAndCustomActions, context)
|
|
19531
|
+
: undefined,
|
|
19532
|
+
};
|
|
19533
|
+
};
|
|
19534
|
+
const deserializeAws_restJson1RuleGroupSourceCustomActionsDetails = (output, context) => {
|
|
19535
|
+
return {
|
|
19536
|
+
ActionDefinition: output.ActionDefinition !== undefined && output.ActionDefinition !== null
|
|
19537
|
+
? deserializeAws_restJson1StatelessCustomActionDefinition(output.ActionDefinition, context)
|
|
19538
|
+
: undefined,
|
|
19539
|
+
ActionName: smithy_client_1.expectString(output.ActionName),
|
|
19540
|
+
};
|
|
19541
|
+
};
|
|
19542
|
+
const deserializeAws_restJson1RuleGroupSourceCustomActionsList = (output, context) => {
|
|
19543
|
+
return (output || [])
|
|
19544
|
+
.filter((e) => e != null)
|
|
19545
|
+
.map((entry) => {
|
|
19546
|
+
if (entry === null) {
|
|
19547
|
+
return null;
|
|
19548
|
+
}
|
|
19549
|
+
return deserializeAws_restJson1RuleGroupSourceCustomActionsDetails(entry, context);
|
|
19550
|
+
});
|
|
19551
|
+
};
|
|
19552
|
+
const deserializeAws_restJson1RuleGroupSourceListDetails = (output, context) => {
|
|
19553
|
+
return {
|
|
19554
|
+
GeneratedRulesType: smithy_client_1.expectString(output.GeneratedRulesType),
|
|
19555
|
+
TargetTypes: output.TargetTypes !== undefined && output.TargetTypes !== null
|
|
19556
|
+
? deserializeAws_restJson1NonEmptyStringList(output.TargetTypes, context)
|
|
19557
|
+
: undefined,
|
|
19558
|
+
Targets: output.Targets !== undefined && output.Targets !== null
|
|
19559
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Targets, context)
|
|
19560
|
+
: undefined,
|
|
19561
|
+
};
|
|
19562
|
+
};
|
|
19563
|
+
const deserializeAws_restJson1RuleGroupSourceStatefulRulesDetails = (output, context) => {
|
|
19564
|
+
return {
|
|
19565
|
+
Action: smithy_client_1.expectString(output.Action),
|
|
19566
|
+
Header: output.Header !== undefined && output.Header !== null
|
|
19567
|
+
? deserializeAws_restJson1RuleGroupSourceStatefulRulesHeaderDetails(output.Header, context)
|
|
19568
|
+
: undefined,
|
|
19569
|
+
RuleOptions: output.RuleOptions !== undefined && output.RuleOptions !== null
|
|
19570
|
+
? deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsList(output.RuleOptions, context)
|
|
19571
|
+
: undefined,
|
|
19572
|
+
};
|
|
19573
|
+
};
|
|
19574
|
+
const deserializeAws_restJson1RuleGroupSourceStatefulRulesHeaderDetails = (output, context) => {
|
|
19575
|
+
return {
|
|
19576
|
+
Destination: smithy_client_1.expectString(output.Destination),
|
|
19577
|
+
DestinationPort: smithy_client_1.expectString(output.DestinationPort),
|
|
19578
|
+
Direction: smithy_client_1.expectString(output.Direction),
|
|
19579
|
+
Protocol: smithy_client_1.expectString(output.Protocol),
|
|
19580
|
+
Source: smithy_client_1.expectString(output.Source),
|
|
19581
|
+
SourcePort: smithy_client_1.expectString(output.SourcePort),
|
|
19582
|
+
};
|
|
19583
|
+
};
|
|
19584
|
+
const deserializeAws_restJson1RuleGroupSourceStatefulRulesList = (output, context) => {
|
|
19585
|
+
return (output || [])
|
|
19586
|
+
.filter((e) => e != null)
|
|
19587
|
+
.map((entry) => {
|
|
19588
|
+
if (entry === null) {
|
|
19589
|
+
return null;
|
|
19590
|
+
}
|
|
19591
|
+
return deserializeAws_restJson1RuleGroupSourceStatefulRulesDetails(entry, context);
|
|
19592
|
+
});
|
|
19593
|
+
};
|
|
19594
|
+
const deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsDetails = (output, context) => {
|
|
19595
|
+
return {
|
|
19596
|
+
Keyword: smithy_client_1.expectString(output.Keyword),
|
|
19597
|
+
Settings: output.Settings !== undefined && output.Settings !== null
|
|
19598
|
+
? deserializeAws_restJson1RuleGroupSourceStatefulRulesRuleOptionsSettingsList(output.Settings, context)
|
|
19599
|
+
: undefined,
|
|
19600
|
+
};
|
|
19601
|
+
};
|
|
19602
|
+
const deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsList = (output, context) => {
|
|
19603
|
+
return (output || [])
|
|
19604
|
+
.filter((e) => e != null)
|
|
19605
|
+
.map((entry) => {
|
|
19606
|
+
if (entry === null) {
|
|
19607
|
+
return null;
|
|
19608
|
+
}
|
|
19609
|
+
return deserializeAws_restJson1RuleGroupSourceStatefulRulesOptionsDetails(entry, context);
|
|
19610
|
+
});
|
|
19611
|
+
};
|
|
19612
|
+
const deserializeAws_restJson1RuleGroupSourceStatefulRulesRuleOptionsSettingsList = (output, context) => {
|
|
19613
|
+
return (output || [])
|
|
19614
|
+
.filter((e) => e != null)
|
|
19615
|
+
.map((entry) => {
|
|
19616
|
+
if (entry === null) {
|
|
19617
|
+
return null;
|
|
19618
|
+
}
|
|
19619
|
+
return smithy_client_1.expectString(entry);
|
|
19620
|
+
});
|
|
19621
|
+
};
|
|
19622
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleDefinition = (output, context) => {
|
|
19623
|
+
return {
|
|
19624
|
+
Actions: output.Actions !== undefined && output.Actions !== null
|
|
19625
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Actions, context)
|
|
19626
|
+
: undefined,
|
|
19627
|
+
MatchAttributes: output.MatchAttributes !== undefined && output.MatchAttributes !== null
|
|
19628
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributes(output.MatchAttributes, context)
|
|
19629
|
+
: undefined,
|
|
19630
|
+
};
|
|
19631
|
+
};
|
|
19632
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributes = (output, context) => {
|
|
19633
|
+
return {
|
|
19634
|
+
DestinationPorts: output.DestinationPorts !== undefined && output.DestinationPorts !== null
|
|
19635
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPortsList(output.DestinationPorts, context)
|
|
19636
|
+
: undefined,
|
|
19637
|
+
Destinations: output.Destinations !== undefined && output.Destinations !== null
|
|
19638
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationsList(output.Destinations, context)
|
|
19639
|
+
: undefined,
|
|
19640
|
+
Protocols: output.Protocols !== undefined && output.Protocols !== null
|
|
19641
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesProtocolsList(output.Protocols, context)
|
|
19642
|
+
: undefined,
|
|
19643
|
+
SourcePorts: output.SourcePorts !== undefined && output.SourcePorts !== null
|
|
19644
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePortsList(output.SourcePorts, context)
|
|
19645
|
+
: undefined,
|
|
19646
|
+
Sources: output.Sources !== undefined && output.Sources !== null
|
|
19647
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcesList(output.Sources, context)
|
|
19648
|
+
: undefined,
|
|
19649
|
+
TcpFlags: output.TcpFlags !== undefined && output.TcpFlags !== null
|
|
19650
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlagsList(output.TcpFlags, context)
|
|
19651
|
+
: undefined,
|
|
19652
|
+
};
|
|
19653
|
+
};
|
|
19654
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts = (output, context) => {
|
|
19655
|
+
return {
|
|
19656
|
+
FromPort: smithy_client_1.expectInt32(output.FromPort),
|
|
19657
|
+
ToPort: smithy_client_1.expectInt32(output.ToPort),
|
|
19658
|
+
};
|
|
19659
|
+
};
|
|
19660
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPortsList = (output, context) => {
|
|
19661
|
+
return (output || [])
|
|
19662
|
+
.filter((e) => e != null)
|
|
19663
|
+
.map((entry) => {
|
|
19664
|
+
if (entry === null) {
|
|
19665
|
+
return null;
|
|
19666
|
+
}
|
|
19667
|
+
return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts(entry, context);
|
|
19668
|
+
});
|
|
19669
|
+
};
|
|
19670
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinations = (output, context) => {
|
|
19671
|
+
return {
|
|
19672
|
+
AddressDefinition: smithy_client_1.expectString(output.AddressDefinition),
|
|
19673
|
+
};
|
|
19674
|
+
};
|
|
19675
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinationsList = (output, context) => {
|
|
19676
|
+
return (output || [])
|
|
19677
|
+
.filter((e) => e != null)
|
|
19678
|
+
.map((entry) => {
|
|
19679
|
+
if (entry === null) {
|
|
19680
|
+
return null;
|
|
19681
|
+
}
|
|
19682
|
+
return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesDestinations(entry, context);
|
|
19683
|
+
});
|
|
19684
|
+
};
|
|
19685
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesProtocolsList = (output, context) => {
|
|
19686
|
+
return (output || [])
|
|
19687
|
+
.filter((e) => e != null)
|
|
19688
|
+
.map((entry) => {
|
|
19689
|
+
if (entry === null) {
|
|
19690
|
+
return null;
|
|
19691
|
+
}
|
|
19692
|
+
return smithy_client_1.expectInt32(entry);
|
|
19693
|
+
});
|
|
19694
|
+
};
|
|
19695
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePorts = (output, context) => {
|
|
19696
|
+
return {
|
|
19697
|
+
FromPort: smithy_client_1.expectInt32(output.FromPort),
|
|
19698
|
+
ToPort: smithy_client_1.expectInt32(output.ToPort),
|
|
19699
|
+
};
|
|
19700
|
+
};
|
|
19701
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePortsList = (output, context) => {
|
|
19702
|
+
return (output || [])
|
|
19703
|
+
.filter((e) => e != null)
|
|
19704
|
+
.map((entry) => {
|
|
19705
|
+
if (entry === null) {
|
|
19706
|
+
return null;
|
|
19707
|
+
}
|
|
19708
|
+
return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcePorts(entry, context);
|
|
19709
|
+
});
|
|
19710
|
+
};
|
|
19711
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources = (output, context) => {
|
|
19712
|
+
return {
|
|
19713
|
+
AddressDefinition: smithy_client_1.expectString(output.AddressDefinition),
|
|
19714
|
+
};
|
|
19715
|
+
};
|
|
19716
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSourcesList = (output, context) => {
|
|
19717
|
+
return (output || [])
|
|
19718
|
+
.filter((e) => e != null)
|
|
19719
|
+
.map((entry) => {
|
|
19720
|
+
if (entry === null) {
|
|
19721
|
+
return null;
|
|
19722
|
+
}
|
|
19723
|
+
return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesSources(entry, context);
|
|
19724
|
+
});
|
|
19725
|
+
};
|
|
19726
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlags = (output, context) => {
|
|
19727
|
+
return {
|
|
19728
|
+
Flags: output.Flags !== undefined && output.Flags !== null
|
|
19729
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Flags, context)
|
|
19730
|
+
: undefined,
|
|
19731
|
+
Masks: output.Masks !== undefined && output.Masks !== null
|
|
19732
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Masks, context)
|
|
19733
|
+
: undefined,
|
|
19734
|
+
};
|
|
19735
|
+
};
|
|
19736
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlagsList = (output, context) => {
|
|
19737
|
+
return (output || [])
|
|
19738
|
+
.filter((e) => e != null)
|
|
19739
|
+
.map((entry) => {
|
|
19740
|
+
if (entry === null) {
|
|
19741
|
+
return null;
|
|
19742
|
+
}
|
|
19743
|
+
return deserializeAws_restJson1RuleGroupSourceStatelessRuleMatchAttributesTcpFlags(entry, context);
|
|
19744
|
+
});
|
|
19745
|
+
};
|
|
19746
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRulesAndCustomActionsDetails = (output, context) => {
|
|
19747
|
+
return {
|
|
19748
|
+
CustomActions: output.CustomActions !== undefined && output.CustomActions !== null
|
|
19749
|
+
? deserializeAws_restJson1RuleGroupSourceCustomActionsList(output.CustomActions, context)
|
|
19750
|
+
: undefined,
|
|
19751
|
+
StatelessRules: output.StatelessRules !== undefined && output.StatelessRules !== null
|
|
19752
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRulesList(output.StatelessRules, context)
|
|
19753
|
+
: undefined,
|
|
19754
|
+
};
|
|
19755
|
+
};
|
|
19756
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRulesDetails = (output, context) => {
|
|
19757
|
+
return {
|
|
19758
|
+
Priority: smithy_client_1.expectInt32(output.Priority),
|
|
19759
|
+
RuleDefinition: output.RuleDefinition !== undefined && output.RuleDefinition !== null
|
|
19760
|
+
? deserializeAws_restJson1RuleGroupSourceStatelessRuleDefinition(output.RuleDefinition, context)
|
|
19761
|
+
: undefined,
|
|
19762
|
+
};
|
|
19763
|
+
};
|
|
19764
|
+
const deserializeAws_restJson1RuleGroupSourceStatelessRulesList = (output, context) => {
|
|
19765
|
+
return (output || [])
|
|
19766
|
+
.filter((e) => e != null)
|
|
19767
|
+
.map((entry) => {
|
|
19768
|
+
if (entry === null) {
|
|
19769
|
+
return null;
|
|
19770
|
+
}
|
|
19771
|
+
return deserializeAws_restJson1RuleGroupSourceStatelessRulesDetails(entry, context);
|
|
19772
|
+
});
|
|
19773
|
+
};
|
|
19774
|
+
const deserializeAws_restJson1RuleGroupVariables = (output, context) => {
|
|
19775
|
+
return {
|
|
19776
|
+
IpSets: output.IpSets !== undefined && output.IpSets !== null
|
|
19777
|
+
? deserializeAws_restJson1RuleGroupVariablesIpSetsDetails(output.IpSets, context)
|
|
19778
|
+
: undefined,
|
|
19779
|
+
PortSets: output.PortSets !== undefined && output.PortSets !== null
|
|
19780
|
+
? deserializeAws_restJson1RuleGroupVariablesPortSetsDetails(output.PortSets, context)
|
|
19781
|
+
: undefined,
|
|
19782
|
+
};
|
|
19783
|
+
};
|
|
19784
|
+
const deserializeAws_restJson1RuleGroupVariablesIpSetsDetails = (output, context) => {
|
|
19785
|
+
return {
|
|
19786
|
+
Definition: output.Definition !== undefined && output.Definition !== null
|
|
19787
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Definition, context)
|
|
19788
|
+
: undefined,
|
|
19789
|
+
};
|
|
19790
|
+
};
|
|
19791
|
+
const deserializeAws_restJson1RuleGroupVariablesPortSetsDetails = (output, context) => {
|
|
19792
|
+
return {
|
|
19793
|
+
Definition: output.Definition !== undefined && output.Definition !== null
|
|
19794
|
+
? deserializeAws_restJson1NonEmptyStringList(output.Definition, context)
|
|
19795
|
+
: undefined,
|
|
19796
|
+
};
|
|
19797
|
+
};
|
|
18684
19798
|
const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
18685
19799
|
return (output || [])
|
|
18686
19800
|
.filter((e) => e != null)
|
|
@@ -18815,6 +19929,11 @@ const deserializeAws_restJson1StandardsInputParameterMap = (output, context) =>
|
|
|
18815
19929
|
};
|
|
18816
19930
|
}, {});
|
|
18817
19931
|
};
|
|
19932
|
+
const deserializeAws_restJson1StandardsStatusReason = (output, context) => {
|
|
19933
|
+
return {
|
|
19934
|
+
StatusReasonCode: smithy_client_1.expectString(output.StatusReasonCode),
|
|
19935
|
+
};
|
|
19936
|
+
};
|
|
18818
19937
|
const deserializeAws_restJson1StandardsSubscription = (output, context) => {
|
|
18819
19938
|
return {
|
|
18820
19939
|
StandardsArn: smithy_client_1.expectString(output.StandardsArn),
|
|
@@ -18822,6 +19941,9 @@ const deserializeAws_restJson1StandardsSubscription = (output, context) => {
|
|
|
18822
19941
|
? deserializeAws_restJson1StandardsInputParameterMap(output.StandardsInput, context)
|
|
18823
19942
|
: undefined,
|
|
18824
19943
|
StandardsStatus: smithy_client_1.expectString(output.StandardsStatus),
|
|
19944
|
+
StandardsStatusReason: output.StandardsStatusReason !== undefined && output.StandardsStatusReason !== null
|
|
19945
|
+
? deserializeAws_restJson1StandardsStatusReason(output.StandardsStatusReason, context)
|
|
19946
|
+
: undefined,
|
|
18825
19947
|
StandardsSubscriptionArn: smithy_client_1.expectString(output.StandardsSubscriptionArn),
|
|
18826
19948
|
};
|
|
18827
19949
|
};
|
|
@@ -18835,6 +19957,35 @@ const deserializeAws_restJson1StandardsSubscriptions = (output, context) => {
|
|
|
18835
19957
|
return deserializeAws_restJson1StandardsSubscription(entry, context);
|
|
18836
19958
|
});
|
|
18837
19959
|
};
|
|
19960
|
+
const deserializeAws_restJson1StatelessCustomActionDefinition = (output, context) => {
|
|
19961
|
+
return {
|
|
19962
|
+
PublishMetricAction: output.PublishMetricAction !== undefined && output.PublishMetricAction !== null
|
|
19963
|
+
? deserializeAws_restJson1StatelessCustomPublishMetricAction(output.PublishMetricAction, context)
|
|
19964
|
+
: undefined,
|
|
19965
|
+
};
|
|
19966
|
+
};
|
|
19967
|
+
const deserializeAws_restJson1StatelessCustomPublishMetricAction = (output, context) => {
|
|
19968
|
+
return {
|
|
19969
|
+
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
19970
|
+
? deserializeAws_restJson1StatelessCustomPublishMetricActionDimensionsList(output.Dimensions, context)
|
|
19971
|
+
: undefined,
|
|
19972
|
+
};
|
|
19973
|
+
};
|
|
19974
|
+
const deserializeAws_restJson1StatelessCustomPublishMetricActionDimension = (output, context) => {
|
|
19975
|
+
return {
|
|
19976
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
19977
|
+
};
|
|
19978
|
+
};
|
|
19979
|
+
const deserializeAws_restJson1StatelessCustomPublishMetricActionDimensionsList = (output, context) => {
|
|
19980
|
+
return (output || [])
|
|
19981
|
+
.filter((e) => e != null)
|
|
19982
|
+
.map((entry) => {
|
|
19983
|
+
if (entry === null) {
|
|
19984
|
+
return null;
|
|
19985
|
+
}
|
|
19986
|
+
return deserializeAws_restJson1StatelessCustomPublishMetricActionDimension(entry, context);
|
|
19987
|
+
});
|
|
19988
|
+
};
|
|
18838
19989
|
const deserializeAws_restJson1StatusReason = (output, context) => {
|
|
18839
19990
|
return {
|
|
18840
19991
|
Description: smithy_client_1.expectString(output.Description),
|