export function toJson_CfnQuickStartModulePropsParameters()

in packages/@cdk-cloudformation/splunk-enterprise-quickstart-module/src/index.ts [167:197]


export function toJson_CfnQuickStartModulePropsParameters(obj: CfnQuickStartModulePropsParameters | undefined): Record<string, any> | undefined {
  if (obj === undefined) { return undefined; }
  const result = {
    'AvailabilityZones': toJson_CfnQuickStartModulePropsParametersAvailabilityZones(obj.availabilityZones),
    'NumberOfAZs': toJson_CfnQuickStartModulePropsParametersNumberOfAZs(obj.numberOfAZs),
    'WebClientLocation': toJson_CfnQuickStartModulePropsParametersWebClientLocation(obj.webClientLocation),
    'HECClientLocation': toJson_CfnQuickStartModulePropsParametersHecClientLocation(obj.hecClientLocation),
    'IndexerInstanceType': toJson_CfnQuickStartModulePropsParametersIndexerInstanceType(obj.indexerInstanceType),
    'SearchHeadInstanceType': toJson_CfnQuickStartModulePropsParametersSearchHeadInstanceType(obj.searchHeadInstanceType),
    'KeyName': toJson_CfnQuickStartModulePropsParametersKeyName(obj.keyName),
    'PublicSubnet1CIDR': toJson_CfnQuickStartModulePropsParametersPublicSubnet1Cidr(obj.publicSubnet1Cidr),
    'PublicSubnet2CIDR': toJson_CfnQuickStartModulePropsParametersPublicSubnet2Cidr(obj.publicSubnet2Cidr),
    'PublicSubnet3CIDR': toJson_CfnQuickStartModulePropsParametersPublicSubnet3Cidr(obj.publicSubnet3Cidr),
    'SHCEnabled': toJson_CfnQuickStartModulePropsParametersShcEnabled(obj.shcEnabled),
    'SSHClientLocation': toJson_CfnQuickStartModulePropsParametersSshClientLocation(obj.sshClientLocation),
    'SplunkAdminPassword': toJson_CfnQuickStartModulePropsParametersSplunkAdminPassword(obj.splunkAdminPassword),
    'SplunkIndexerCount': toJson_CfnQuickStartModulePropsParametersSplunkIndexerCount(obj.splunkIndexerCount),
    'SplunkIndexerDiskSize': toJson_CfnQuickStartModulePropsParametersSplunkIndexerDiskSize(obj.splunkIndexerDiskSize),
    'SplunkSearchHeadDiskSize': toJson_CfnQuickStartModulePropsParametersSplunkSearchHeadDiskSize(obj.splunkSearchHeadDiskSize),
    'SplunkLicenseBucket': toJson_CfnQuickStartModulePropsParametersSplunkLicenseBucket(obj.splunkLicenseBucket),
    'SplunkLicensePath': toJson_CfnQuickStartModulePropsParametersSplunkLicensePath(obj.splunkLicensePath),
    'SplunkReplicationFactor': toJson_CfnQuickStartModulePropsParametersSplunkReplicationFactor(obj.splunkReplicationFactor),
    'SplunkSearchFactor': toJson_CfnQuickStartModulePropsParametersSplunkSearchFactor(obj.splunkSearchFactor),
    'SplunkClusterSecret': toJson_CfnQuickStartModulePropsParametersSplunkClusterSecret(obj.splunkClusterSecret),
    'SplunkIndexerDiscoverySecret': toJson_CfnQuickStartModulePropsParametersSplunkIndexerDiscoverySecret(obj.splunkIndexerDiscoverySecret),
    'VPCCIDR': toJson_CfnQuickStartModulePropsParametersVpccidr(obj.vpccidr),
    'SmartStoreBucketName': toJson_CfnQuickStartModulePropsParametersSmartStoreBucketName(obj.smartStoreBucketName),
  };
  // filter undefined values
  return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
}