@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
90 lines • 3.55 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.EdgeServicesHeadStage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Sets the Scaleway Edge Services head stage of your pipeline.
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.EdgeServicesPipeline("main", {
* name: "my-edge_services-pipeline",
* description: "pipeline description",
* });
* const mainEdgeServicesDnsStage = new scaleway.EdgeServicesDnsStage("main", {
* pipelineId: main.id,
* tlsStageId: mainScalewayEdgeServicesTlsStage.id,
* fqdns: ["subdomain.example.com"],
* });
* const mainEdgeServicesHeadStage = new scaleway.EdgeServicesHeadStage("main", {
* pipelineId: main.id,
* headStageId: mainEdgeServicesDnsStage.id,
* });
* ```
*
* ## Import
*
* Head stages can be imported using the `{id}`, e.g.
*
* bash
*
* ```sh
* $ pulumi import scaleway:index/edgeServicesHeadStage:EdgeServicesHeadStage main 11111111-1111-1111-1111-111111111111
* ```
*/
class EdgeServicesHeadStage extends pulumi.CustomResource {
/**
* Get an existing EdgeServicesHeadStage 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 EdgeServicesHeadStage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of EdgeServicesHeadStage. 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'] === EdgeServicesHeadStage.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["headStageId"] = state ? state.headStageId : undefined;
resourceInputs["pipelineId"] = state ? state.pipelineId : undefined;
}
else {
const args = argsOrState;
if ((!args || args.pipelineId === undefined) && !opts.urn) {
throw new Error("Missing required property 'pipelineId'");
}
resourceInputs["headStageId"] = args ? args.headStageId : undefined;
resourceInputs["pipelineId"] = args ? args.pipelineId : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(EdgeServicesHeadStage.__pulumiType, name, resourceInputs, opts);
}
}
exports.EdgeServicesHeadStage = EdgeServicesHeadStage;
/** @internal */
EdgeServicesHeadStage.__pulumiType = 'scaleway:index/edgeServicesHeadStage:EdgeServicesHeadStage';
//# sourceMappingURL=edgeServicesHeadStage.js.map