UNPKG

@pulumiverse/cpln

Version:

A Pulumi package for creating and managing Control Plane (cpln) resources.

182 lines 8.45 kB
"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! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getGvcOutput = exports.getGvc = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about an existing [Global Virtual Cloud (GVC)](https://docs.controlplane.com/reference/gvc) within Control Plane. * * ## Required * * - **name** (String) Name of the GVC. * * ## Outputs * * The following attributes are exported: * * - **cpln_id** (String) The ID, in GUID format, of the GVC. * - **name** (String) Name of the GVC. * - **alias** (String) The alias name of the GVC. * - **description** (String) Description of the GVC. * - **tags** (Map of String) Key-value map of resource tags. * - **self_link** (String) Full link to this resource. Can be referenced by other resources. * - **domain** (String) Custom domain name used by associated workloads. * - **locations** (List of String) A list of [locations](https://docs.controlplane.com/reference/location#current) making up the Global Virtual Cloud. * - **pull_secrets** (List of String) A list of [pull secret](https://docs.controlplane.com/reference/gvc#pull-secrets) names used to authenticate to any private image repository referenced by Workloads within the GVC. * - **lightstep_tracing** (Block List, Max: 1) (see below). * - **otel_tracing** (Block List, Max: 1) (see below). * - **controlplane_tracing** (Block List, Max: 1) (see below). * - **load_balancer** (Block List, Max: 1) (see below). * * <a id="nestedblock--lightstep_tracing"></a> * * ### `lightstepTracing` * * - **sampling** (Int) Sampling percentage. * - **endpoint** (String) Tracing Endpoint Workload. Either the canonical endpoint or the internal endpoint. * - **credentials** (String) Full link to referenced Opaque Secret. * * <a id="nestedblock--otel_tracing"></a> * * ### `otelTracing` * * - **sampling** (Int) Determines what percentage of requests should be traced. * - **endpoint** (String) Tracing Endpoint Workload. Either the canonical endpoint or internal endpoint. * - **custom_tags** (Map of String) Key-value map of custom tags. * * <a id="nestedblock--controlplane_tracing"></a> * * ### `controlplaneTracing` * * - **sampling** (Int) Determines what percentage of requests should be traced. * - **custom_tags** (Map of String) Key-value map of custom tags. * * <a id="nestedblock--load_balancer"></a> * * ### `loadBalancer` * * - **dedicated** (Boolean) Creates a dedicated load balancer in each location and enables additional Domain features: custom ports, protocols and wildcard hostnames. Charges apply for each location. * * - **trusted_proxies** (Int) Controls the address used for request logging and for setting the X-Envoy-External-Address header. If set to 1, then the last address in an existing X-Forwarded-For header will be used in place of the source client IP address. If set to 2, then the second to last address in an existing X-Forwarded-For header will be used in place of the source client IP address. If the XFF header does not have at least two addresses or does not exist then the source client IP address will be used instead. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cpln from "@pulumiverse/cpln"; * * const gvc = cpln.getGvc({ * name: "gvc-example", * }); * export const gvcId = gvc.then(gvc => gvc.id); * export const gvcLocations = gvc.then(gvc => gvc.locations); * ``` */ function getGvc(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("cpln:index/getGvc:getGvc", { "controlplaneTracing": args.controlplaneTracing, "domain": args.domain, "endpointNamingFormat": args.endpointNamingFormat, "env": args.env, "lightstepTracing": args.lightstepTracing, "loadBalancer": args.loadBalancer, "locations": args.locations, "name": args.name, "otelTracing": args.otelTracing, "pullSecrets": args.pullSecrets, "sidecar": args.sidecar, "tags": args.tags, }, opts); } exports.getGvc = getGvc; /** * Use this data source to access information about an existing [Global Virtual Cloud (GVC)](https://docs.controlplane.com/reference/gvc) within Control Plane. * * ## Required * * - **name** (String) Name of the GVC. * * ## Outputs * * The following attributes are exported: * * - **cpln_id** (String) The ID, in GUID format, of the GVC. * - **name** (String) Name of the GVC. * - **alias** (String) The alias name of the GVC. * - **description** (String) Description of the GVC. * - **tags** (Map of String) Key-value map of resource tags. * - **self_link** (String) Full link to this resource. Can be referenced by other resources. * - **domain** (String) Custom domain name used by associated workloads. * - **locations** (List of String) A list of [locations](https://docs.controlplane.com/reference/location#current) making up the Global Virtual Cloud. * - **pull_secrets** (List of String) A list of [pull secret](https://docs.controlplane.com/reference/gvc#pull-secrets) names used to authenticate to any private image repository referenced by Workloads within the GVC. * - **lightstep_tracing** (Block List, Max: 1) (see below). * - **otel_tracing** (Block List, Max: 1) (see below). * - **controlplane_tracing** (Block List, Max: 1) (see below). * - **load_balancer** (Block List, Max: 1) (see below). * * <a id="nestedblock--lightstep_tracing"></a> * * ### `lightstepTracing` * * - **sampling** (Int) Sampling percentage. * - **endpoint** (String) Tracing Endpoint Workload. Either the canonical endpoint or the internal endpoint. * - **credentials** (String) Full link to referenced Opaque Secret. * * <a id="nestedblock--otel_tracing"></a> * * ### `otelTracing` * * - **sampling** (Int) Determines what percentage of requests should be traced. * - **endpoint** (String) Tracing Endpoint Workload. Either the canonical endpoint or internal endpoint. * - **custom_tags** (Map of String) Key-value map of custom tags. * * <a id="nestedblock--controlplane_tracing"></a> * * ### `controlplaneTracing` * * - **sampling** (Int) Determines what percentage of requests should be traced. * - **custom_tags** (Map of String) Key-value map of custom tags. * * <a id="nestedblock--load_balancer"></a> * * ### `loadBalancer` * * - **dedicated** (Boolean) Creates a dedicated load balancer in each location and enables additional Domain features: custom ports, protocols and wildcard hostnames. Charges apply for each location. * * - **trusted_proxies** (Int) Controls the address used for request logging and for setting the X-Envoy-External-Address header. If set to 1, then the last address in an existing X-Forwarded-For header will be used in place of the source client IP address. If set to 2, then the second to last address in an existing X-Forwarded-For header will be used in place of the source client IP address. If the XFF header does not have at least two addresses or does not exist then the source client IP address will be used instead. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cpln from "@pulumiverse/cpln"; * * const gvc = cpln.getGvc({ * name: "gvc-example", * }); * export const gvcId = gvc.then(gvc => gvc.id); * export const gvcLocations = gvc.then(gvc => gvc.locations); * ``` */ function getGvcOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("cpln:index/getGvc:getGvc", { "controlplaneTracing": args.controlplaneTracing, "domain": args.domain, "endpointNamingFormat": args.endpointNamingFormat, "env": args.env, "lightstepTracing": args.lightstepTracing, "loadBalancer": args.loadBalancer, "locations": args.locations, "name": args.name, "otelTracing": args.otelTracing, "pullSecrets": args.pullSecrets, "sidecar": args.sidecar, "tags": args.tags, }, opts); } exports.getGvcOutput = getGvcOutput; //# sourceMappingURL=getGvc.js.map