@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
97 lines • 3.71 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.VoiceConnectorGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Creates an Amazon Chime Voice Connector group under the administrator's AWS account. You can associate Amazon Chime Voice Connectors with the Amazon Chime Voice Connector group by including VoiceConnectorItems in the request.
*
* You can include Amazon Chime Voice Connectors from different AWS Regions in your group. This creates a fault tolerant mechanism for fallback in case of availability events.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const vc1 = new aws.chime.VoiceConnector("vc1", {
* name: "connector-test-1",
* requireEncryption: true,
* awsRegion: "us-east-1",
* });
* const vc2 = new aws.chime.VoiceConnector("vc2", {
* name: "connector-test-2",
* requireEncryption: true,
* awsRegion: "us-west-2",
* });
* const group = new aws.chime.VoiceConnectorGroup("group", {
* name: "test-group",
* connectors: [
* {
* voiceConnectorId: vc1.id,
* priority: 1,
* },
* {
* voiceConnectorId: vc2.id,
* priority: 3,
* },
* ],
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import Configuration Recorder using the name. For example:
*
* ```sh
* $ pulumi import aws:chime/voiceConnectorGroup:VoiceConnectorGroup default example
* ```
*/
class VoiceConnectorGroup extends pulumi.CustomResource {
/**
* Get an existing VoiceConnectorGroup 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 VoiceConnectorGroup(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of VoiceConnectorGroup. 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'] === VoiceConnectorGroup.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["connectors"] = state?.connectors;
resourceInputs["name"] = state?.name;
resourceInputs["region"] = state?.region;
}
else {
const args = argsOrState;
resourceInputs["connectors"] = args?.connectors;
resourceInputs["name"] = args?.name;
resourceInputs["region"] = args?.region;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(VoiceConnectorGroup.__pulumiType, name, resourceInputs, opts);
}
}
exports.VoiceConnectorGroup = VoiceConnectorGroup;
/** @internal */
VoiceConnectorGroup.__pulumiType = 'aws:chime/voiceConnectorGroup:VoiceConnectorGroup';
//# sourceMappingURL=voiceConnectorGroup.js.map