import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ServiceConnection resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * const config = new pulumi.Config(); * // The folder scope for the SCM resource (e.g., 'Shared', 'Predefined', or a specific folder name). * const folderScope = config.get("folderScope") || "Service Connections"; * //# 1. Define the IKE Crypto Profile (IKE Phase 1) * // Note: The resource name is plural: "scm_ike_crypto_profile" * const example = new scm.IkeCryptoProfile("example", { * name: "example-sc-ike-crypto", * folder: folderScope, * hashes: ["sha256"], * dhGroups: ["group14"], * encryptions: ["aes-256-cbc"], * }); * //# 2. Define the IPsec Crypto Profile (IKE Phase 2) * // Note: The resource name is plural and nested blocks now use an equals sign (=). * const exampleIpsecCryptoProfile = new scm.IpsecCryptoProfile("example", { * name: "panw-sc-Crypto", * folder: folderScope, * esp: { * encryptions: ["aes-256-gcm"], * authentications: ["sha256"], * }, * dhGroup: "group14", * lifetime: { * hours: 8, * }, * }); * //# 3. Define the IKE Gateway * // Note: The resource name is plural and nested blocks now use an equals sign (=). * const exampleIkeGateway = new scm.IkeGateway("example", { * name: "example-sc-gateway", * folder: folderScope, * peerAddress: { * ip: "1.1.1.1", * }, * authentication: { * preSharedKey: { * key: "secret", * }, * }, * protocol: { * ikev1: { * ikeCryptoProfile: example.name, * }, * }, * }); * //# 4. Define the IPsec Tunnel * // Note: Nested 'auto_key' block uses an equals sign (=). * const exampleIpsecTunnel = new scm.IpsecTunnel("example", { * name: "example-sc-tunnel", * folder: folderScope, * tunnelInterface: "tunnel", * antiReplay: true, * copyTos: false, * enableGreEncapsulation: false, * autoKey: { * ikeGateways: [{ * name: exampleIkeGateway.name, * }], * ipsecCryptoProfile: exampleIpsecCryptoProfile.name, * }, * }, { * dependsOn: [exampleIkeGateway], * }); * const siteAVpnSc = new scm.ServiceConnection("site_a_vpn_sc", { * name: "creating_a_service_connection", * region: "us-west-1", * ipsecTunnel: exampleIpsecTunnel.name, * subnets: [ * "10.1.0.0/16", * "172.16.0.0/24", * ], * sourceNat: true, * }); * ``` * * ## Import * * The following command can be used to import a resource not managed by Terraform: * * ```sh * $ pulumi import scm:index/serviceConnection:ServiceConnection example folder:::id * ``` * * or * * ```sh * $ pulumi import scm:index/serviceConnection:ServiceConnection example :snippet::id * ``` * * or * * ```sh * $ pulumi import scm:index/serviceConnection:ServiceConnection example ::device:id * ``` * * **Note:** Please provide just one of folder, snippet, or device for the import command. */ export declare class ServiceConnection extends pulumi.CustomResource { /** * Get an existing ServiceConnection 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: string, id: pulumi.Input, state?: ServiceConnectionState, opts?: pulumi.CustomResourceOptions): ServiceConnection; /** * Returns true if the given object is an instance of ServiceConnection. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ServiceConnection; /** * Backup s c */ readonly backupSc: pulumi.Output; /** * Bgp peer */ readonly bgpPeer: pulumi.Output; /** * Map of sensitive values returned from the API. */ readonly encryptedValues: pulumi.Output<{ [key: string]: string; }>; /** * The folder in which the resource is defined */ readonly folder: pulumi.Output; /** * Ipsec tunnel */ readonly ipsecTunnel: pulumi.Output; /** * The name of the service connection */ readonly name: pulumi.Output; /** * Nat pool */ readonly natPool: pulumi.Output; /** * No export community */ readonly noExportCommunity: pulumi.Output; /** * Onboarding type */ readonly onboardingType: pulumi.Output; /** * Protocol */ readonly protocol: pulumi.Output; /** * Qos */ readonly qos: pulumi.Output; /** * Region */ readonly region: pulumi.Output; /** * Region tag */ readonly regionTag: pulumi.Output; /** * Secondary ipsec tunnel */ readonly secondaryIpsecTunnel: pulumi.Output; /** * Source nat */ readonly sourceNat: pulumi.Output; /** * Subnets */ readonly subnets: pulumi.Output; /** * The Terraform ID. */ readonly tfid: pulumi.Output; /** * Create a ServiceConnection resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ServiceConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceConnection resources. */ export interface ServiceConnectionState { /** * Backup s c */ backupSc?: pulumi.Input; /** * Bgp peer */ bgpPeer?: pulumi.Input; /** * Map of sensitive values returned from the API. */ encryptedValues?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The folder in which the resource is defined */ folder?: pulumi.Input; /** * Ipsec tunnel */ ipsecTunnel?: pulumi.Input; /** * The name of the service connection */ name?: pulumi.Input; /** * Nat pool */ natPool?: pulumi.Input; /** * No export community */ noExportCommunity?: pulumi.Input; /** * Onboarding type */ onboardingType?: pulumi.Input; /** * Protocol */ protocol?: pulumi.Input; /** * Qos */ qos?: pulumi.Input; /** * Region */ region?: pulumi.Input; /** * Region tag */ regionTag?: pulumi.Input; /** * Secondary ipsec tunnel */ secondaryIpsecTunnel?: pulumi.Input; /** * Source nat */ sourceNat?: pulumi.Input; /** * Subnets */ subnets?: pulumi.Input[] | undefined>; /** * The Terraform ID. */ tfid?: pulumi.Input; } /** * The set of arguments for constructing a ServiceConnection resource. */ export interface ServiceConnectionArgs { /** * Backup s c */ backupSc?: pulumi.Input; /** * Bgp peer */ bgpPeer?: pulumi.Input; /** * Ipsec tunnel */ ipsecTunnel: pulumi.Input; /** * The name of the service connection */ name?: pulumi.Input; /** * Nat pool */ natPool?: pulumi.Input; /** * No export community */ noExportCommunity?: pulumi.Input; /** * Onboarding type */ onboardingType?: pulumi.Input; /** * Protocol */ protocol?: pulumi.Input; /** * Qos */ qos?: pulumi.Input; /** * Region */ region: pulumi.Input; /** * Region tag */ regionTag?: pulumi.Input; /** * Secondary ipsec tunnel */ secondaryIpsecTunnel?: pulumi.Input; /** * Source nat */ sourceNat?: pulumi.Input; /** * Subnets */ subnets?: pulumi.Input[] | undefined>; } //# sourceMappingURL=serviceConnection.d.ts.map