export function toJson_CfnExistingVpcModulePropsParameters()

in packages/@cdk-cloudformation/jfrog-artifactory-existingvpc-module/src/index.ts [397:453]


export function toJson_CfnExistingVpcModulePropsParameters(obj: CfnExistingVpcModulePropsParameters | undefined): Record<string, any> | undefined {
  if (obj === undefined) { return undefined; }
  const result = {
    'LogicalId': toJson_CfnExistingVpcModulePropsParametersLogicalId(obj.logicalId),
    'AvailabilityZone1': toJson_CfnExistingVpcModulePropsParametersAvailabilityZone1(obj.availabilityZone1),
    'AvailabilityZone2': toJson_CfnExistingVpcModulePropsParametersAvailabilityZone2(obj.availabilityZone2),
    'KeyPairName': toJson_CfnExistingVpcModulePropsParametersKeyPairName(obj.keyPairName),
    'VpcId': toJson_CfnExistingVpcModulePropsParametersVpcId(obj.vpcId),
    'VpcCidr': toJson_CfnExistingVpcModulePropsParametersVpcCidr(obj.vpcCidr),
    'PrivateSubnet2Id': toJson_CfnExistingVpcModulePropsParametersPrivateSubnet2Id(obj.privateSubnet2Id),
    'PrivateSubnet1Id': toJson_CfnExistingVpcModulePropsParametersPrivateSubnet1Id(obj.privateSubnet1Id),
    'PublicSubnet1Id': toJson_CfnExistingVpcModulePropsParametersPublicSubnet1Id(obj.publicSubnet1Id),
    'PublicSubnet2Id': toJson_CfnExistingVpcModulePropsParametersPublicSubnet2Id(obj.publicSubnet2Id),
    'PrivateSubnet1Cidr': toJson_CfnExistingVpcModulePropsParametersPrivateSubnet1Cidr(obj.privateSubnet1Cidr),
    'PrivateSubnet2Cidr': toJson_CfnExistingVpcModulePropsParametersPrivateSubnet2Cidr(obj.privateSubnet2Cidr),
    'AccessCidr': toJson_CfnExistingVpcModulePropsParametersAccessCidr(obj.accessCidr),
    'RemoteAccessCidr': toJson_CfnExistingVpcModulePropsParametersRemoteAccessCidr(obj.remoteAccessCidr),
    'ELBScheme': toJson_CfnExistingVpcModulePropsParametersElbScheme(obj.elbScheme),
    'EnableBastion': toJson_CfnExistingVpcModulePropsParametersEnableBastion(obj.enableBastion),
    'BastionInstanceType': toJson_CfnExistingVpcModulePropsParametersBastionInstanceType(obj.bastionInstanceType),
    'BastionRootVolumeSize': toJson_CfnExistingVpcModulePropsParametersBastionRootVolumeSize(obj.bastionRootVolumeSize),
    'BastionEnableTcpForwarding': toJson_CfnExistingVpcModulePropsParametersBastionEnableTcpForwarding(obj.bastionEnableTcpForwarding),
    'BastionEnableX11Forwarding': toJson_CfnExistingVpcModulePropsParametersBastionEnableX11Forwarding(obj.bastionEnableX11Forwarding),
    'BastionOs': toJson_CfnExistingVpcModulePropsParametersBastionOs(obj.bastionOs),
    'NumBastionHosts': toJson_CfnExistingVpcModulePropsParametersNumBastionHosts(obj.numBastionHosts),
    'VolumeSize': toJson_CfnExistingVpcModulePropsParametersVolumeSize(obj.volumeSize),
    'InstanceType': toJson_CfnExistingVpcModulePropsParametersInstanceType(obj.instanceType),
    'NumberOfSecondary': toJson_CfnExistingVpcModulePropsParametersNumberOfSecondary(obj.numberOfSecondary),
    'ArtifactoryProduct': toJson_CfnExistingVpcModulePropsParametersArtifactoryProduct(obj.artifactoryProduct),
    'ArtifactoryVersion': toJson_CfnExistingVpcModulePropsParametersArtifactoryVersion(obj.artifactoryVersion),
    'SmLicenseName': toJson_CfnExistingVpcModulePropsParametersSmLicenseName(obj.smLicenseName),
    'SmCertName': toJson_CfnExistingVpcModulePropsParametersSmCertName(obj.smCertName),
    'ArtifactoryServerName': toJson_CfnExistingVpcModulePropsParametersArtifactoryServerName(obj.artifactoryServerName),
    'MasterKey': toJson_CfnExistingVpcModulePropsParametersMasterKey(obj.masterKey),
    'ExtraJavaOptions': toJson_CfnExistingVpcModulePropsParametersExtraJavaOptions(obj.extraJavaOptions),
    'DefaultJavaMemSettings': toJson_CfnExistingVpcModulePropsParametersDefaultJavaMemSettings(obj.defaultJavaMemSettings),
    'DatabaseName': toJson_CfnExistingVpcModulePropsParametersDatabaseName(obj.databaseName),
    'DatabaseEngine': toJson_CfnExistingVpcModulePropsParametersDatabaseEngine(obj.databaseEngine),
    'DatabaseUser': toJson_CfnExistingVpcModulePropsParametersDatabaseUser(obj.databaseUser),
    'DatabasePassword': toJson_CfnExistingVpcModulePropsParametersDatabasePassword(obj.databasePassword),
    'DatabaseInstance': toJson_CfnExistingVpcModulePropsParametersDatabaseInstance(obj.databaseInstance),
    'DatabaseAllocatedStorage': toJson_CfnExistingVpcModulePropsParametersDatabaseAllocatedStorage(obj.databaseAllocatedStorage),
    'DatabasePreferredAz': toJson_CfnExistingVpcModulePropsParametersDatabasePreferredAz(obj.databasePreferredAz),
    'MultiAzDatabase': toJson_CfnExistingVpcModulePropsParametersMultiAzDatabase(obj.multiAzDatabase),
    'QsS3BucketName': toJson_CfnExistingVpcModulePropsParametersQsS3BucketName(obj.qsS3BucketName),
    'QsS3KeyPrefix': toJson_CfnExistingVpcModulePropsParametersQsS3KeyPrefix(obj.qsS3KeyPrefix),
    'QsS3BucketRegion': toJson_CfnExistingVpcModulePropsParametersQsS3BucketRegion(obj.qsS3BucketRegion),
    'InstallXray': toJson_CfnExistingVpcModulePropsParametersInstallXray(obj.installXray),
    'XrayVersion': toJson_CfnExistingVpcModulePropsParametersXrayVersion(obj.xrayVersion),
    'XrayNumberOfInstances': toJson_CfnExistingVpcModulePropsParametersXrayNumberOfInstances(obj.xrayNumberOfInstances),
    'XrayInstanceType': toJson_CfnExistingVpcModulePropsParametersXrayInstanceType(obj.xrayInstanceType),
    'XrayDatabaseUser': toJson_CfnExistingVpcModulePropsParametersXrayDatabaseUser(obj.xrayDatabaseUser),
    'XrayDatabasePassword': toJson_CfnExistingVpcModulePropsParametersXrayDatabasePassword(obj.xrayDatabasePassword),
  };
  // filter undefined values
  return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
}