![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.contoso.kotlin.EmployeeArgs.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.contoso.kotlin
import com.pulumi.azurenative.contoso.EmployeeArgs.builder
import com.pulumi.azurenative.contoso.kotlin.inputs.EmployeePropertiesArgs
import com.pulumi.azurenative.contoso.kotlin.inputs.EmployeePropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Employee resource
* Azure REST API version: 2021-10-01-preview.
* ## Example Usage
* ### Employees_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var employee = new AzureNative.Contoso.Employee("employee", new()
* {
* EmployeeName = "9KF-f-8b",
* Location = "itajgxyqozseoygnl",
* Properties = new AzureNative.Contoso.Inputs.EmployeePropertiesArgs
* {
* Age = 30,
* City = "gydhnntudughbmxlkyzrskcdkotrxn",
* Profile = "ms",
* },
* ResourceGroupName = "rgopenapi",
* Tags =
* {
* { "key2913", "urperxmkkhhkp" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* contoso "github.com/pulumi/pulumi-azure-native-sdk/contoso/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := contoso.NewEmployee(ctx, "employee", &contoso.EmployeeArgs{
* EmployeeName: pulumi.String("9KF-f-8b"),
* Location: pulumi.String("itajgxyqozseoygnl"),
* Properties: &contoso.EmployeePropertiesArgs{
* Age: pulumi.Int(30),
* City: pulumi.String("gydhnntudughbmxlkyzrskcdkotrxn"),
* Profile: pulumi.String("ms"),
* },
* ResourceGroupName: pulumi.String("rgopenapi"),
* Tags: pulumi.StringMap{
* "key2913": pulumi.String("urperxmkkhhkp"),
* },
* })
* 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.contoso.Employee;
* import com.pulumi.azurenative.contoso.EmployeeArgs;
* import com.pulumi.azurenative.contoso.inputs.EmployeePropertiesArgs;
* 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 employee = new Employee("employee", EmployeeArgs.builder()
* .employeeName("9KF-f-8b")
* .location("itajgxyqozseoygnl")
* .properties(EmployeePropertiesArgs.builder()
* .age(30)
* .city("gydhnntudughbmxlkyzrskcdkotrxn")
* .profile("ms")
* .build())
* .resourceGroupName("rgopenapi")
* .tags(Map.of("key2913", "urperxmkkhhkp"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:contoso:Employee xepyxhpb /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Contoso/employees/{employeeName}
* ```
* @property employeeName The name of the Employee
* @property location The geo-location where the resource lives
* @property properties The resource-specific properties for this resource.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class EmployeeArgs(
public val employeeName: Output? = null,
public val location: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy