@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
94 lines • 3.95 kB
JavaScript
;
// *** 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.RoutingControl = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides an AWS Route 53 Recovery Control Config Routing Control.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.route53recoverycontrol.RoutingControl("example", {
* name: "tinlicker",
* clusterArn: "arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.route53recoverycontrol.RoutingControl("example", {
* name: "thomasoliver",
* clusterArn: "arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
* controlPanelArn: "arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8",
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import Route53 Recovery Control Config Routing Control using the routing control arn. For example:
*
* ```sh
* $ pulumi import aws:route53recoverycontrol/routingControl:RoutingControl mycontrol arn:aws:route53-recovery-control::313517334327:controlpanel/abd5fbfc052d4844a082dbf400f61da8/routingcontrol/d5d90e587870494b
* ```
*/
class RoutingControl extends pulumi.CustomResource {
/**
* Get an existing RoutingControl 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 RoutingControl(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of RoutingControl. 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'] === RoutingControl.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arn"] = state?.arn;
resourceInputs["clusterArn"] = state?.clusterArn;
resourceInputs["controlPanelArn"] = state?.controlPanelArn;
resourceInputs["name"] = state?.name;
resourceInputs["status"] = state?.status;
}
else {
const args = argsOrState;
if (args?.clusterArn === undefined && !opts.urn) {
throw new Error("Missing required property 'clusterArn'");
}
resourceInputs["clusterArn"] = args?.clusterArn;
resourceInputs["controlPanelArn"] = args?.controlPanelArn;
resourceInputs["name"] = args?.name;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(RoutingControl.__pulumiType, name, resourceInputs, opts);
}
}
exports.RoutingControl = RoutingControl;
/** @internal */
RoutingControl.__pulumiType = 'aws:route53recoverycontrol/routingControl:RoutingControl';
//# sourceMappingURL=routingControl.js.map