"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Connection = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Connection resource in Oracle Cloud Infrastructure Golden Gate service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/goldengate/latest/Connection
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/goldengate
 *
 * Creates a new Connection.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testConnection = new oci.goldengate.Connection("test_connection", {
 *     compartmentId: compartmentId,
 *     connectionType: connectionConnectionType,
 *     displayName: connectionDisplayName,
 *     technologyType: connectionTechnologyType,
 *     accessKeyId: testKey.id,
 *     accountKey: connectionAccountKey,
 *     accountKeySecretId: testSecret.id,
 *     accountName: connectionAccountName,
 *     additionalAttributes: [{
 *         name: connectionAdditionalAttributesName,
 *         value: connectionAdditionalAttributesValue,
 *     }],
 *     authenticationMode: connectionAuthenticationMode,
 *     authenticationType: connectionAuthenticationType,
 *     azureAuthorityHost: connectionAzureAuthorityHost,
 *     azureTenantId: testAzureTenant.id,
 *     bootstrapServers: [{
 *         host: connectionBootstrapServersHost,
 *         port: Number(connectionBootstrapServersPort),
 *     }],
 *     catalog: {
 *         catalogType: connectionCatalogCatalogType,
 *         branch: connectionCatalogBranch,
 *         clientId: testClient.id,
 *         clientSecret: connectionCatalogClientSecret,
 *         clientSecretSecretId: testSecret.id,
 *         glueId: testGlue.id,
 *         name: connectionCatalogName,
 *         principalRole: connectionCatalogPrincipalRole,
 *         properties: connectionCatalogProperties,
 *         propertiesSecretId: testSecret.id,
 *         uri: connectionCatalogUri,
 *     },
 *     clientId: testClient.id,
 *     clientSecret: connectionClientSecret,
 *     clientSecretSecretId: testSecret.id,
 *     clusterId: testCluster.id,
 *     clusterPlacementGroupId: testClusterPlacementGroup.id,
 *     connectionFactory: connectionConnectionFactory,
 *     connectionString: connectionConnectionString,
 *     connectionUrl: connectionConnectionUrl,
 *     consumerProperties: connectionConsumerProperties,
 *     coreSiteXml: connectionCoreSiteXml,
 *     databaseId: testDatabase.id,
 *     databaseName: testDatabase.name,
 *     dbSystemId: testDbSystem.id,
 *     definedTags: {
 *         "foo-namespace.bar-key": "value",
 *     },
 *     deploymentId: testDeployment.id,
 *     description: connectionDescription,
 *     doesUseSecretIds: connectionDoesUseSecretIds === "true",
 *     endpoint: connectionEndpoint,
 *     fingerprint: connectionFingerprint,
 *     freeformTags: {
 *         "bar-key": "value",
 *     },
 *     host: connectionHost,
 *     jndiConnectionFactory: connectionJndiConnectionFactory,
 *     jndiInitialContextFactory: connectionJndiInitialContextFactory,
 *     jndiProviderUrl: connectionJndiProviderUrl,
 *     jndiSecurityCredentials: connectionJndiSecurityCredentials,
 *     jndiSecurityCredentialsSecretId: testSecret.id,
 *     jndiSecurityPrincipal: connectionJndiSecurityPrincipal,
 *     keyId: testKey.id,
 *     keyStore: connectionKeyStore,
 *     keyStorePassword: connectionKeyStorePassword,
 *     keyStorePasswordSecretId: testSecret.id,
 *     keyStoreSecretId: testSecret.id,
 *     locks: [{
 *         type: connectionLocksType,
 *         message: connectionLocksMessage,
 *     }],
 *     nsgIds: connectionNsgIds,
 *     password: connectionPassword,
 *     passwordSecretId: testSecret.id,
 *     port: Number(connectionPort),
 *     privateKeyFile: connectionPrivateKeyFile,
 *     privateKeyFileSecretId: testSecret.id,
 *     privateKeyPassphrase: connectionPrivateKeyPassphrase,
 *     privateKeyPassphraseSecretId: testSecret.id,
 *     producerProperties: connectionProducerProperties,
 *     publicKeyFingerprint: connectionPublicKeyFingerprint,
 *     redisClusterId: testRedisCluster.id,
 *     region: connectionRegion,
 *     routingMethod: connectionRoutingMethod,
 *     sasToken: connectionSasToken,
 *     sasTokenSecretId: testSecret.id,
 *     secretAccessKey: connectionSecretAccessKey,
 *     secretAccessKeySecretId: testSecret.id,
 *     securityAttributes: connectionSecurityAttributes,
 *     securityProtocol: connectionSecurityProtocol,
 *     servers: connectionServers,
 *     serviceAccountKeyFile: connectionServiceAccountKeyFile,
 *     serviceAccountKeyFileSecretId: testSecret.id,
 *     sessionMode: connectionSessionMode,
 *     shouldUseJndi: connectionShouldUseJndi === "true",
 *     shouldUseResourcePrincipal: connectionShouldUseResourcePrincipal === "true",
 *     shouldValidateServerCertificate: connectionShouldValidateServerCertificate === "true",
 *     sslCa: connectionSslCa,
 *     sslCert: connectionSslCert,
 *     sslClientKeystash: connectionSslClientKeystash,
 *     sslClientKeystashSecretId: testSecret.id,
 *     sslClientKeystoredb: connectionSslClientKeystoredb,
 *     sslClientKeystoredbSecretId: testSecret.id,
 *     sslCrl: connectionSslCrl,
 *     sslKey: connectionSslKey,
 *     sslKeyPassword: connectionSslKeyPassword,
 *     sslKeyPasswordSecretId: testSecret.id,
 *     sslKeySecretId: testSecret.id,
 *     sslMode: connectionSslMode,
 *     sslServerCertificate: connectionSslServerCertificate,
 *     storage: {
 *         storageType: connectionStorageStorageType,
 *         accessKeyId: testKey.id,
 *         accountKey: connectionStorageAccountKey,
 *         accountKeySecretId: testSecret.id,
 *         accountName: connectionStorageAccountName,
 *         bucket: connectionStorageBucket,
 *         container: connectionStorageContainer,
 *         endpoint: connectionStorageEndpoint,
 *         projectId: testProject.id,
 *         region: connectionStorageRegion,
 *         schemeType: connectionStorageSchemeType,
 *         secretAccessKey: connectionStorageSecretAccessKey,
 *         secretAccessKeySecretId: testSecret.id,
 *         serviceAccountKeyFile: connectionStorageServiceAccountKeyFile,
 *         serviceAccountKeyFileSecretId: testSecret.id,
 *     },
 *     storageCredentialName: connectionStorageCredentialName,
 *     streamPoolId: testStreamPool.id,
 *     subnetId: testSubnet.id,
 *     subscriptionId: testSubscription.id,
 *     tenancyId: testTenancy.id,
 *     tenantId: testTenant.id,
 *     tlsCaFile: connectionTlsCaFile,
 *     tlsCertificateKeyFile: connectionTlsCertificateKeyFile,
 *     tlsCertificateKeyFilePassword: connectionTlsCertificateKeyFilePassword,
 *     tlsCertificateKeyFilePasswordSecretId: testSecret.id,
 *     tlsCertificateKeyFileSecretId: testSecret.id,
 *     trustStore: connectionTrustStore,
 *     trustStorePassword: connectionTrustStorePassword,
 *     trustStorePasswordSecretId: testSecret.id,
 *     trustStoreSecretId: testSecret.id,
 *     url: connectionUrl,
 *     userId: testUser.id,
 *     username: connectionUsername,
 *     vaultId: testVault.id,
 *     wallet: connectionWallet,
 *     walletSecretId: testSecret.id,
 * });
 * ```
 *
 * ## Import
 *
 * Connections can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:GoldenGate/connection:Connection test_connection "id"
 * ```
 */
class Connection extends pulumi.CustomResource {
    /**
     * Get an existing Connection resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new Connection(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:GoldenGate/connection:Connection';
    /**
     * Returns true if the given object is an instance of Connection.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === Connection.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["accessKeyId"] = state?.accessKeyId;
            resourceInputs["accountKey"] = state?.accountKey;
            resourceInputs["accountKeySecretId"] = state?.accountKeySecretId;
            resourceInputs["accountName"] = state?.accountName;
            resourceInputs["additionalAttributes"] = state?.additionalAttributes;
            resourceInputs["authenticationMode"] = state?.authenticationMode;
            resourceInputs["authenticationType"] = state?.authenticationType;
            resourceInputs["azureAuthorityHost"] = state?.azureAuthorityHost;
            resourceInputs["azureTenantId"] = state?.azureTenantId;
            resourceInputs["bootstrapServers"] = state?.bootstrapServers;
            resourceInputs["catalog"] = state?.catalog;
            resourceInputs["clientId"] = state?.clientId;
            resourceInputs["clientSecret"] = state?.clientSecret;
            resourceInputs["clientSecretSecretId"] = state?.clientSecretSecretId;
            resourceInputs["clusterId"] = state?.clusterId;
            resourceInputs["clusterPlacementGroupId"] = state?.clusterPlacementGroupId;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["connectionFactory"] = state?.connectionFactory;
            resourceInputs["connectionString"] = state?.connectionString;
            resourceInputs["connectionType"] = state?.connectionType;
            resourceInputs["connectionUrl"] = state?.connectionUrl;
            resourceInputs["consumerProperties"] = state?.consumerProperties;
            resourceInputs["coreSiteXml"] = state?.coreSiteXml;
            resourceInputs["databaseId"] = state?.databaseId;
            resourceInputs["databaseName"] = state?.databaseName;
            resourceInputs["dbSystemId"] = state?.dbSystemId;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["deploymentId"] = state?.deploymentId;
            resourceInputs["description"] = state?.description;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["doesUseSecretIds"] = state?.doesUseSecretIds;
            resourceInputs["endpoint"] = state?.endpoint;
            resourceInputs["fingerprint"] = state?.fingerprint;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["host"] = state?.host;
            resourceInputs["ingressIps"] = state?.ingressIps;
            resourceInputs["isLockOverride"] = state?.isLockOverride;
            resourceInputs["jndiConnectionFactory"] = state?.jndiConnectionFactory;
            resourceInputs["jndiInitialContextFactory"] = state?.jndiInitialContextFactory;
            resourceInputs["jndiProviderUrl"] = state?.jndiProviderUrl;
            resourceInputs["jndiSecurityCredentials"] = state?.jndiSecurityCredentials;
            resourceInputs["jndiSecurityCredentialsSecretId"] = state?.jndiSecurityCredentialsSecretId;
            resourceInputs["jndiSecurityPrincipal"] = state?.jndiSecurityPrincipal;
            resourceInputs["keyId"] = state?.keyId;
            resourceInputs["keyStore"] = state?.keyStore;
            resourceInputs["keyStorePassword"] = state?.keyStorePassword;
            resourceInputs["keyStorePasswordSecretId"] = state?.keyStorePasswordSecretId;
            resourceInputs["keyStoreSecretId"] = state?.keyStoreSecretId;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["locks"] = state?.locks;
            resourceInputs["nsgIds"] = state?.nsgIds;
            resourceInputs["password"] = state?.password;
            resourceInputs["passwordSecretId"] = state?.passwordSecretId;
            resourceInputs["port"] = state?.port;
            resourceInputs["privateIp"] = state?.privateIp;
            resourceInputs["privateKeyFile"] = state?.privateKeyFile;
            resourceInputs["privateKeyFileSecretId"] = state?.privateKeyFileSecretId;
            resourceInputs["privateKeyPassphrase"] = state?.privateKeyPassphrase;
            resourceInputs["privateKeyPassphraseSecretId"] = state?.privateKeyPassphraseSecretId;
            resourceInputs["producerProperties"] = state?.producerProperties;
            resourceInputs["publicKeyFingerprint"] = state?.publicKeyFingerprint;
            resourceInputs["redisClusterId"] = state?.redisClusterId;
            resourceInputs["region"] = state?.region;
            resourceInputs["routingMethod"] = state?.routingMethod;
            resourceInputs["sasToken"] = state?.sasToken;
            resourceInputs["sasTokenSecretId"] = state?.sasTokenSecretId;
            resourceInputs["secretAccessKey"] = state?.secretAccessKey;
            resourceInputs["secretAccessKeySecretId"] = state?.secretAccessKeySecretId;
            resourceInputs["securityAttributes"] = state?.securityAttributes;
            resourceInputs["securityProtocol"] = state?.securityProtocol;
            resourceInputs["servers"] = state?.servers;
            resourceInputs["serviceAccountKeyFile"] = state?.serviceAccountKeyFile;
            resourceInputs["serviceAccountKeyFileSecretId"] = state?.serviceAccountKeyFileSecretId;
            resourceInputs["sessionMode"] = state?.sessionMode;
            resourceInputs["shouldUseJndi"] = state?.shouldUseJndi;
            resourceInputs["shouldUseResourcePrincipal"] = state?.shouldUseResourcePrincipal;
            resourceInputs["shouldValidateServerCertificate"] = state?.shouldValidateServerCertificate;
            resourceInputs["sslCa"] = state?.sslCa;
            resourceInputs["sslCert"] = state?.sslCert;
            resourceInputs["sslClientKeystash"] = state?.sslClientKeystash;
            resourceInputs["sslClientKeystashSecretId"] = state?.sslClientKeystashSecretId;
            resourceInputs["sslClientKeystoredb"] = state?.sslClientKeystoredb;
            resourceInputs["sslClientKeystoredbSecretId"] = state?.sslClientKeystoredbSecretId;
            resourceInputs["sslCrl"] = state?.sslCrl;
            resourceInputs["sslKey"] = state?.sslKey;
            resourceInputs["sslKeyPassword"] = state?.sslKeyPassword;
            resourceInputs["sslKeyPasswordSecretId"] = state?.sslKeyPasswordSecretId;
            resourceInputs["sslKeySecretId"] = state?.sslKeySecretId;
            resourceInputs["sslMode"] = state?.sslMode;
            resourceInputs["sslServerCertificate"] = state?.sslServerCertificate;
            resourceInputs["state"] = state?.state;
            resourceInputs["storage"] = state?.storage;
            resourceInputs["storageCredentialName"] = state?.storageCredentialName;
            resourceInputs["streamPoolId"] = state?.streamPoolId;
            resourceInputs["subnetId"] = state?.subnetId;
            resourceInputs["subscriptionId"] = state?.subscriptionId;
            resourceInputs["systemTags"] = state?.systemTags;
            resourceInputs["technologyType"] = state?.technologyType;
            resourceInputs["tenancyId"] = state?.tenancyId;
            resourceInputs["tenantId"] = state?.tenantId;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["timeUpdated"] = state?.timeUpdated;
            resourceInputs["tlsCaFile"] = state?.tlsCaFile;
            resourceInputs["tlsCertificateKeyFile"] = state?.tlsCertificateKeyFile;
            resourceInputs["tlsCertificateKeyFilePassword"] = state?.tlsCertificateKeyFilePassword;
            resourceInputs["tlsCertificateKeyFilePasswordSecretId"] = state?.tlsCertificateKeyFilePasswordSecretId;
            resourceInputs["tlsCertificateKeyFileSecretId"] = state?.tlsCertificateKeyFileSecretId;
            resourceInputs["triggerRefresh"] = state?.triggerRefresh;
            resourceInputs["trustStore"] = state?.trustStore;
            resourceInputs["trustStorePassword"] = state?.trustStorePassword;
            resourceInputs["trustStorePasswordSecretId"] = state?.trustStorePasswordSecretId;
            resourceInputs["trustStoreSecretId"] = state?.trustStoreSecretId;
            resourceInputs["url"] = state?.url;
            resourceInputs["userId"] = state?.userId;
            resourceInputs["username"] = state?.username;
            resourceInputs["vaultId"] = state?.vaultId;
            resourceInputs["wallet"] = state?.wallet;
            resourceInputs["walletSecretId"] = state?.walletSecretId;
        }
        else {
            const args = argsOrState;
            if (args?.compartmentId === undefined && !opts.urn) {
                throw new Error("Missing required property 'compartmentId'");
            }
            if (args?.connectionType === undefined && !opts.urn) {
                throw new Error("Missing required property 'connectionType'");
            }
            if (args?.displayName === undefined && !opts.urn) {
                throw new Error("Missing required property 'displayName'");
            }
            if (args?.technologyType === undefined && !opts.urn) {
                throw new Error("Missing required property 'technologyType'");
            }
            resourceInputs["accessKeyId"] = args?.accessKeyId;
            resourceInputs["accountKey"] = args?.accountKey ? pulumi.secret(args.accountKey) : undefined;
            resourceInputs["accountKeySecretId"] = args?.accountKeySecretId;
            resourceInputs["accountName"] = args?.accountName;
            resourceInputs["additionalAttributes"] = args?.additionalAttributes;
            resourceInputs["authenticationMode"] = args?.authenticationMode;
            resourceInputs["authenticationType"] = args?.authenticationType;
            resourceInputs["azureAuthorityHost"] = args?.azureAuthorityHost;
            resourceInputs["azureTenantId"] = args?.azureTenantId;
            resourceInputs["bootstrapServers"] = args?.bootstrapServers;
            resourceInputs["catalog"] = args?.catalog;
            resourceInputs["clientId"] = args?.clientId;
            resourceInputs["clientSecret"] = args?.clientSecret ? pulumi.secret(args.clientSecret) : undefined;
            resourceInputs["clientSecretSecretId"] = args?.clientSecretSecretId;
            resourceInputs["clusterId"] = args?.clusterId;
            resourceInputs["clusterPlacementGroupId"] = args?.clusterPlacementGroupId;
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["connectionFactory"] = args?.connectionFactory;
            resourceInputs["connectionString"] = args?.connectionString;
            resourceInputs["connectionType"] = args?.connectionType;
            resourceInputs["connectionUrl"] = args?.connectionUrl;
            resourceInputs["consumerProperties"] = args?.consumerProperties;
            resourceInputs["coreSiteXml"] = args?.coreSiteXml;
            resourceInputs["databaseId"] = args?.databaseId;
            resourceInputs["databaseName"] = args?.databaseName;
            resourceInputs["dbSystemId"] = args?.dbSystemId;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["deploymentId"] = args?.deploymentId;
            resourceInputs["description"] = args?.description;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["doesUseSecretIds"] = args?.doesUseSecretIds;
            resourceInputs["endpoint"] = args?.endpoint;
            resourceInputs["fingerprint"] = args?.fingerprint;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["host"] = args?.host;
            resourceInputs["isLockOverride"] = args?.isLockOverride;
            resourceInputs["jndiConnectionFactory"] = args?.jndiConnectionFactory;
            resourceInputs["jndiInitialContextFactory"] = args?.jndiInitialContextFactory;
            resourceInputs["jndiProviderUrl"] = args?.jndiProviderUrl;
            resourceInputs["jndiSecurityCredentials"] = args?.jndiSecurityCredentials ? pulumi.secret(args.jndiSecurityCredentials) : undefined;
            resourceInputs["jndiSecurityCredentialsSecretId"] = args?.jndiSecurityCredentialsSecretId;
            resourceInputs["jndiSecurityPrincipal"] = args?.jndiSecurityPrincipal;
            resourceInputs["keyId"] = args?.keyId;
            resourceInputs["keyStore"] = args?.keyStore ? pulumi.secret(args.keyStore) : undefined;
            resourceInputs["keyStorePassword"] = args?.keyStorePassword ? pulumi.secret(args.keyStorePassword) : undefined;
            resourceInputs["keyStorePasswordSecretId"] = args?.keyStorePasswordSecretId;
            resourceInputs["keyStoreSecretId"] = args?.keyStoreSecretId;
            resourceInputs["locks"] = args?.locks;
            resourceInputs["nsgIds"] = args?.nsgIds;
            resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined;
            resourceInputs["passwordSecretId"] = args?.passwordSecretId;
            resourceInputs["port"] = args?.port;
            resourceInputs["privateKeyFile"] = args?.privateKeyFile ? pulumi.secret(args.privateKeyFile) : undefined;
            resourceInputs["privateKeyFileSecretId"] = args?.privateKeyFileSecretId;
            resourceInputs["privateKeyPassphrase"] = args?.privateKeyPassphrase ? pulumi.secret(args.privateKeyPassphrase) : undefined;
            resourceInputs["privateKeyPassphraseSecretId"] = args?.privateKeyPassphraseSecretId;
            resourceInputs["producerProperties"] = args?.producerProperties;
            resourceInputs["publicKeyFingerprint"] = args?.publicKeyFingerprint;
            resourceInputs["redisClusterId"] = args?.redisClusterId;
            resourceInputs["region"] = args?.region;
            resourceInputs["routingMethod"] = args?.routingMethod;
            resourceInputs["sasToken"] = args?.sasToken ? pulumi.secret(args.sasToken) : undefined;
            resourceInputs["sasTokenSecretId"] = args?.sasTokenSecretId;
            resourceInputs["secretAccessKey"] = args?.secretAccessKey ? pulumi.secret(args.secretAccessKey) : undefined;
            resourceInputs["secretAccessKeySecretId"] = args?.secretAccessKeySecretId;
            resourceInputs["securityAttributes"] = args?.securityAttributes;
            resourceInputs["securityProtocol"] = args?.securityProtocol;
            resourceInputs["servers"] = args?.servers;
            resourceInputs["serviceAccountKeyFile"] = args?.serviceAccountKeyFile ? pulumi.secret(args.serviceAccountKeyFile) : undefined;
            resourceInputs["serviceAccountKeyFileSecretId"] = args?.serviceAccountKeyFileSecretId;
            resourceInputs["sessionMode"] = args?.sessionMode;
            resourceInputs["shouldUseJndi"] = args?.shouldUseJndi;
            resourceInputs["shouldUseResourcePrincipal"] = args?.shouldUseResourcePrincipal;
            resourceInputs["shouldValidateServerCertificate"] = args?.shouldValidateServerCertificate;
            resourceInputs["sslCa"] = args?.sslCa;
            resourceInputs["sslCert"] = args?.sslCert;
            resourceInputs["sslClientKeystash"] = args?.sslClientKeystash ? pulumi.secret(args.sslClientKeystash) : undefined;
            resourceInputs["sslClientKeystashSecretId"] = args?.sslClientKeystashSecretId;
            resourceInputs["sslClientKeystoredb"] = args?.sslClientKeystoredb ? pulumi.secret(args.sslClientKeystoredb) : undefined;
            resourceInputs["sslClientKeystoredbSecretId"] = args?.sslClientKeystoredbSecretId;
            resourceInputs["sslCrl"] = args?.sslCrl;
            resourceInputs["sslKey"] = args?.sslKey ? pulumi.secret(args.sslKey) : undefined;
            resourceInputs["sslKeyPassword"] = args?.sslKeyPassword ? pulumi.secret(args.sslKeyPassword) : undefined;
            resourceInputs["sslKeyPasswordSecretId"] = args?.sslKeyPasswordSecretId;
            resourceInputs["sslKeySecretId"] = args?.sslKeySecretId;
            resourceInputs["sslMode"] = args?.sslMode;
            resourceInputs["sslServerCertificate"] = args?.sslServerCertificate;
            resourceInputs["storage"] = args?.storage;
            resourceInputs["storageCredentialName"] = args?.storageCredentialName;
            resourceInputs["streamPoolId"] = args?.streamPoolId;
            resourceInputs["subnetId"] = args?.subnetId;
            resourceInputs["subscriptionId"] = args?.subscriptionId;
            resourceInputs["technologyType"] = args?.technologyType;
            resourceInputs["tenancyId"] = args?.tenancyId;
            resourceInputs["tenantId"] = args?.tenantId;
            resourceInputs["tlsCaFile"] = args?.tlsCaFile;
            resourceInputs["tlsCertificateKeyFile"] = args?.tlsCertificateKeyFile;
            resourceInputs["tlsCertificateKeyFilePassword"] = args?.tlsCertificateKeyFilePassword ? pulumi.secret(args.tlsCertificateKeyFilePassword) : undefined;
            resourceInputs["tlsCertificateKeyFilePasswordSecretId"] = args?.tlsCertificateKeyFilePasswordSecretId ? pulumi.secret(args.tlsCertificateKeyFilePasswordSecretId) : undefined;
            resourceInputs["tlsCertificateKeyFileSecretId"] = args?.tlsCertificateKeyFileSecretId;
            resourceInputs["triggerRefresh"] = args?.triggerRefresh;
            resourceInputs["trustStore"] = args?.trustStore ? pulumi.secret(args.trustStore) : undefined;
            resourceInputs["trustStorePassword"] = args?.trustStorePassword ? pulumi.secret(args.trustStorePassword) : undefined;
            resourceInputs["trustStorePasswordSecretId"] = args?.trustStorePasswordSecretId;
            resourceInputs["trustStoreSecretId"] = args?.trustStoreSecretId;
            resourceInputs["url"] = args?.url;
            resourceInputs["userId"] = args?.userId;
            resourceInputs["username"] = args?.username;
            resourceInputs["vaultId"] = args?.vaultId;
            resourceInputs["wallet"] = args?.wallet ? pulumi.secret(args.wallet) : undefined;
            resourceInputs["walletSecretId"] = args?.walletSecretId;
            resourceInputs["ingressIps"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["privateIp"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["systemTags"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["timeUpdated"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const secretOpts = { additionalSecretOutputs: ["accountKey", "clientSecret", "jndiSecurityCredentials", "keyStore", "keyStorePassword", "password", "privateKeyFile", "privateKeyPassphrase", "sasToken", "secretAccessKey", "serviceAccountKeyFile", "sslClientKeystash", "sslClientKeystoredb", "sslKey", "sslKeyPassword", "tlsCertificateKeyFilePassword", "tlsCertificateKeyFilePasswordSecretId", "trustStore", "trustStorePassword", "wallet"] };
        opts = pulumi.mergeOptions(opts, secretOpts);
        super(Connection.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Connection = Connection;
//# sourceMappingURL=connection.js.map