![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.voiceservices.kotlin.ContactArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.voiceservices.kotlin
import com.pulumi.azurenative.voiceservices.ContactArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A Contact resource
* Azure REST API version: 2022-12-01-preview. Prior API version in Azure Native 1.x: 2022-12-01-preview.
* ## Example Usage
* ### CreateContactResource
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var contact = new AzureNative.VoiceServices.Contact("contact", new()
* {
* CommunicationsGatewayName = "myname",
* ContactName = "John Smith",
* Email = "[email protected]",
* Location = "useast",
* PhoneNumber = "+1-555-1234",
* ResourceGroupName = "testrg",
* Role = "Network Manager",
* });
* });
* ```
* ```go
* package main
* import (
* voiceservices "github.com/pulumi/pulumi-azure-native-sdk/voiceservices/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := voiceservices.NewContact(ctx, "contact", &voiceservices.ContactArgs{
* CommunicationsGatewayName: pulumi.String("myname"),
* ContactName: pulumi.String("John Smith"),
* Email: pulumi.String("[email protected]"),
* Location: pulumi.String("useast"),
* PhoneNumber: pulumi.String("+1-555-1234"),
* ResourceGroupName: pulumi.String("testrg"),
* Role: pulumi.String("Network Manager"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.voiceservices.Contact;
* import com.pulumi.azurenative.voiceservices.ContactArgs;
* 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 contact = new Contact("contact", ContactArgs.builder()
* .communicationsGatewayName("myname")
* .contactName("John Smith")
* .email("[email protected]")
* .location("useast")
* .phoneNumber("+1-555-1234")
* .resourceGroupName("testrg")
* .role("Network Manager")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:voiceservices:Contact name2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}
* ```
* @property communicationsGatewayName Unique identifier for this deployment
* @property contactName Full name of contact
* @property email Email address of contact
* @property location The geo-location where the resource lives
* @property phoneNumber Telephone number of contact
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property role Job title of contact
* @property tags Resource tags.
*/
public data class ContactArgs(
public val communicationsGatewayName: Output? = null,
public val contactName: Output? = null,
public val email: Output? = null,
public val location: Output? = null,
public val phoneNumber: Output? = null,
public val resourceGroupName: Output? = null,
public val role: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy