UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

130 lines (129 loc) 5.29 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Enable origination settings to control inbound calling to your SIP infrastructure. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const _default = new aws.chime.VoiceConnector("default", { * name: "test", * requireEncryption: true, * }); * const defaultVoiceConnectorOrigination = new aws.chime.VoiceConnectorOrigination("default", { * disabled: false, * voiceConnectorId: _default.id, * routes: [ * { * host: "127.0.0.1", * port: 8081, * protocol: "TCP", * priority: 1, * weight: 1, * }, * { * host: "127.0.0.2", * port: 8082, * protocol: "TCP", * priority: 2, * weight: 10, * }, * ], * }); * ``` * * ## Import * * Using `pulumi import`, import Chime Voice Connector Origination using the `voice_connector_id`. For example: * * ```sh * $ pulumi import aws:chime/voiceConnectorOrigination:VoiceConnectorOrigination default abcdef1ghij2klmno3pqr4 * ``` */ export declare class VoiceConnectorOrigination extends pulumi.CustomResource { /** * Get an existing VoiceConnectorOrigination 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<pulumi.ID>, state?: VoiceConnectorOriginationState, opts?: pulumi.CustomResourceOptions): VoiceConnectorOrigination; /** * Returns true if the given object is an instance of VoiceConnectorOrigination. 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 VoiceConnectorOrigination; /** * When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. */ readonly disabled: pulumi.Output<boolean | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output<string>; /** * Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. */ readonly routes: pulumi.Output<outputs.chime.VoiceConnectorOriginationRoute[]>; /** * The Amazon Chime Voice Connector ID. */ readonly voiceConnectorId: pulumi.Output<string>; /** * Create a VoiceConnectorOrigination 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: VoiceConnectorOriginationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VoiceConnectorOrigination resources. */ export interface VoiceConnectorOriginationState { /** * When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. */ disabled?: pulumi.Input<boolean>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. */ routes?: pulumi.Input<pulumi.Input<inputs.chime.VoiceConnectorOriginationRoute>[]>; /** * The Amazon Chime Voice Connector ID. */ voiceConnectorId?: pulumi.Input<string>; } /** * The set of arguments for constructing a VoiceConnectorOrigination resource. */ export interface VoiceConnectorOriginationArgs { /** * When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. */ disabled?: pulumi.Input<boolean>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. */ routes: pulumi.Input<pulumi.Input<inputs.chime.VoiceConnectorOriginationRoute>[]>; /** * The Amazon Chime Voice Connector ID. */ voiceConnectorId: pulumi.Input<string>; }