UNPKG

@pulumi/aws

Version:

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

119 lines (118 loc) 4.97 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Adds termination SIP credentials for the specified Amazon Chime Voice Connector. * * > **Note:** Voice Connector Termination Credentials requires a Voice Connector Termination to be present. Use of `dependsOn` (as shown below) is recommended to avoid race conditions. * * ## 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 defaultVoiceConnectorTermination = new aws.chime.VoiceConnectorTermination("default", { * disabled: true, * cpsLimit: 1, * cidrAllowLists: ["50.35.78.96/31"], * callingRegions: [ * "US", * "CA", * ], * voiceConnectorId: _default.id, * }); * const defaultVoiceConnectorTerminationCredentials = new aws.chime.VoiceConnectorTerminationCredentials("default", { * voiceConnectorId: _default.id, * credentials: [{ * username: "test", * password: "test!", * }], * }, { * dependsOn: [defaultVoiceConnectorTermination], * }); * ``` * * ## Import * * Using `pulumi import`, import Chime Voice Connector Termination Credentials using the `voice_connector_id`. For example: * * ```sh * $ pulumi import aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials default abcdef1ghij2klmno3pqr4 * ``` */ export declare class VoiceConnectorTerminationCredentials extends pulumi.CustomResource { /** * Get an existing VoiceConnectorTerminationCredentials 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?: VoiceConnectorTerminationCredentialsState, opts?: pulumi.CustomResourceOptions): VoiceConnectorTerminationCredentials; /** * Returns true if the given object is an instance of VoiceConnectorTerminationCredentials. 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 VoiceConnectorTerminationCredentials; /** * List of termination SIP credentials. */ readonly credentials: pulumi.Output<outputs.chime.VoiceConnectorTerminationCredentialsCredential[]>; /** * 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>; /** * Amazon Chime Voice Connector ID. */ readonly voiceConnectorId: pulumi.Output<string>; /** * Create a VoiceConnectorTerminationCredentials 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: VoiceConnectorTerminationCredentialsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VoiceConnectorTerminationCredentials resources. */ export interface VoiceConnectorTerminationCredentialsState { /** * List of termination SIP credentials. */ credentials?: pulumi.Input<pulumi.Input<inputs.chime.VoiceConnectorTerminationCredentialsCredential>[]>; /** * 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>; /** * Amazon Chime Voice Connector ID. */ voiceConnectorId?: pulumi.Input<string>; } /** * The set of arguments for constructing a VoiceConnectorTerminationCredentials resource. */ export interface VoiceConnectorTerminationCredentialsArgs { /** * List of termination SIP credentials. */ credentials: pulumi.Input<pulumi.Input<inputs.chime.VoiceConnectorTerminationCredentialsCredential>[]>; /** * 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>; /** * Amazon Chime Voice Connector ID. */ voiceConnectorId: pulumi.Input<string>; }