EmployeeArgs

data class EmployeeArgs(val employeeName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<EmployeePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EmployeeArgs>

Employee resource Uses Azure REST API version 2021-11-01. In version 2.x of the Azure Native provider, it used API version 2021-10-01-preview. Other available API versions: 2021-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native contoso [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Employees_CreateOrUpdate

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" },
},
});
});
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
})
}
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.

$ pulumi import azure-native:contoso:Employee xepyxhpb /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Contoso/employees/{employeeName}

Constructors

Link copied to clipboard
constructor(employeeName: Output<String>? = null, location: Output<String>? = null, properties: Output<EmployeePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val employeeName: Output<String>? = null

The name of the Employee

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val properties: Output<EmployeePropertiesArgs>? = null

The resource-specific properties for this resource.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): EmployeeArgs