All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.voiceservices.CommunicationsGateway Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.voiceservices;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.voiceservices.CommunicationsGatewayArgs;
import com.pulumi.azurenative.voiceservices.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.voiceservices.outputs.ServiceRegionPropertiesResponse;
import com.pulumi.azurenative.voiceservices.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * A CommunicationsGateway resource
 * Azure REST API version: 2023-04-03. Prior API version in Azure Native 1.x: 2022-12-01-preview.
 * 
 * Other available API versions: 2023-09-01.
 * 
 * ## Example Usage
 * ### CreateCommunicationsGatewayResource
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.voiceservices.CommunicationsGateway;
 * import com.pulumi.azurenative.voiceservices.CommunicationsGatewayArgs;
 * import com.pulumi.azurenative.voiceservices.inputs.ServiceRegionPropertiesArgs;
 * import com.pulumi.azurenative.voiceservices.inputs.PrimaryRegionPropertiesArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var communicationsGateway = new CommunicationsGateway("communicationsGateway", CommunicationsGatewayArgs.builder()
 *             .autoGeneratedDomainNameLabelScope("NoReuse")
 *             .codecs("PCMA")
 *             .communicationsGatewayName("myname")
 *             .connectivity("PublicAddress")
 *             .e911Type("Standard")
 *             .location("useast")
 *             .platforms("OperatorConnect")
 *             .resourceGroupName("testrg")
 *             .serviceLocations(            
 *                 ServiceRegionPropertiesArgs.builder()
 *                     .name("useast")
 *                     .primaryRegionProperties(PrimaryRegionPropertiesArgs.builder()
 *                         .allowedMediaSourceAddressPrefixes("10.1.2.0/24")
 *                         .allowedSignalingSourceAddressPrefixes("10.1.1.0/24")
 *                         .operatorAddresses("198.51.100.1")
 *                         .build())
 *                     .build(),
 *                 ServiceRegionPropertiesArgs.builder()
 *                     .name("useast2")
 *                     .primaryRegionProperties(PrimaryRegionPropertiesArgs.builder()
 *                         .allowedMediaSourceAddressPrefixes("10.2.2.0/24")
 *                         .allowedSignalingSourceAddressPrefixes("10.2.1.0/24")
 *                         .operatorAddresses("198.51.100.2")
 *                         .build())
 *                     .build())
 *             .teamsVoicemailPilotNumber("1234567890")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:voiceservices:CommunicationsGateway myname /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName} * ``` * */ @ResourceType(type="azure-native:voiceservices:CommunicationsGateway") public class CommunicationsGateway extends com.pulumi.resources.CustomResource { /** * Details of API bridge functionality, if required * */ @Export(name="apiBridge", refs={Object.class}, tree="[0]") private Output apiBridge; /** * @return Details of API bridge functionality, if required * */ public Output> apiBridge() { return Codegen.optional(this.apiBridge); } /** * The autogenerated label used as part of the FQDNs for accessing the Communications Gateway * */ @Export(name="autoGeneratedDomainNameLabel", refs={String.class}, tree="[0]") private Output autoGeneratedDomainNameLabel; /** * @return The autogenerated label used as part of the FQDNs for accessing the Communications Gateway * */ public Output autoGeneratedDomainNameLabel() { return this.autoGeneratedDomainNameLabel; } /** * The scope at which the auto-generated domain name can be re-used * */ @Export(name="autoGeneratedDomainNameLabelScope", refs={String.class}, tree="[0]") private Output autoGeneratedDomainNameLabelScope; /** * @return The scope at which the auto-generated domain name can be re-used * */ public Output> autoGeneratedDomainNameLabelScope() { return Codegen.optional(this.autoGeneratedDomainNameLabelScope); } /** * Voice codecs to support * */ @Export(name="codecs", refs={List.class,String.class}, tree="[0,1]") private Output> codecs; /** * @return Voice codecs to support * */ public Output> codecs() { return this.codecs; } /** * How to connect back to the operator network, e.g. MAPS * */ @Export(name="connectivity", refs={String.class}, tree="[0]") private Output connectivity; /** * @return How to connect back to the operator network, e.g. MAPS * */ public Output connectivity() { return this.connectivity; } /** * How to handle 911 calls * */ @Export(name="e911Type", refs={String.class}, tree="[0]") private Output e911Type; /** * @return How to handle 911 calls * */ public Output e911Type() { return this.e911Type; } /** * A list of dial strings used for emergency calling. * */ @Export(name="emergencyDialStrings", refs={List.class,String.class}, tree="[0,1]") private Output> emergencyDialStrings; /** * @return A list of dial strings used for emergency calling. * */ public Output>> emergencyDialStrings() { return Codegen.optional(this.emergencyDialStrings); } /** * The managed service identities assigned to this resource. * */ @Export(name="identity", refs={ManagedServiceIdentityResponse.class}, tree="[0]") private Output identity; /** * @return The managed service identities assigned to this resource. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * Whether an integrated Mobile Control Point is in use. * */ @Export(name="integratedMcpEnabled", refs={Boolean.class}, tree="[0]") private Output integratedMcpEnabled; /** * @return Whether an integrated Mobile Control Point is in use. * */ public Output> integratedMcpEnabled() { return Codegen.optional(this.integratedMcpEnabled); } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Whether an on-premises Mobile Control Point is in use. * */ @Export(name="onPremMcpEnabled", refs={Boolean.class}, tree="[0]") private Output onPremMcpEnabled; /** * @return Whether an on-premises Mobile Control Point is in use. * */ public Output> onPremMcpEnabled() { return Codegen.optional(this.onPremMcpEnabled); } /** * What platforms to support * */ @Export(name="platforms", refs={List.class,String.class}, tree="[0,1]") private Output> platforms; /** * @return What platforms to support * */ public Output> platforms() { return this.platforms; } /** * Resource provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Resource provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * The regions in which to deploy the resources needed for Teams Calling * */ @Export(name="serviceLocations", refs={List.class,ServiceRegionPropertiesResponse.class}, tree="[0,1]") private Output> serviceLocations; /** * @return The regions in which to deploy the resources needed for Teams Calling * */ public Output> serviceLocations() { return this.serviceLocations; } /** * The current status of the deployment. * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return The current status of the deployment. * */ public Output status() { return this.status; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. * */ @Export(name="teamsVoicemailPilotNumber", refs={String.class}, tree="[0]") private Output teamsVoicemailPilotNumber; /** * @return This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. * */ public Output> teamsVoicemailPilotNumber() { return Codegen.optional(this.teamsVoicemailPilotNumber); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public CommunicationsGateway(java.lang.String name) { this(name, CommunicationsGatewayArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public CommunicationsGateway(java.lang.String name, CommunicationsGatewayArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public CommunicationsGateway(java.lang.String name, CommunicationsGatewayArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:voiceservices:CommunicationsGateway", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private CommunicationsGateway(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:voiceservices:CommunicationsGateway", name, null, makeResourceOptions(options, id), false); } private static CommunicationsGatewayArgs makeArgs(CommunicationsGatewayArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? CommunicationsGatewayArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:voiceservices/v20221201preview:CommunicationsGateway").build()), Output.of(Alias.builder().type("azure-native:voiceservices/v20230131:CommunicationsGateway").build()), Output.of(Alias.builder().type("azure-native:voiceservices/v20230403:CommunicationsGateway").build()), Output.of(Alias.builder().type("azure-native:voiceservices/v20230901:CommunicationsGateway").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 options Optional settings to control the behavior of the CustomResource. */ public static CommunicationsGateway get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CommunicationsGateway(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy