![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.hybridnetwork.kotlin.SiteArgs.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.hybridnetwork.kotlin
import com.pulumi.azurenative.hybridnetwork.SiteArgs.builder
import com.pulumi.azurenative.hybridnetwork.kotlin.inputs.SitePropertiesFormatArgs
import com.pulumi.azurenative.hybridnetwork.kotlin.inputs.SitePropertiesFormatArgsBuilder
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
/**
* Site resource.
* Azure REST API version: 2023-09-01.
* ## Example Usage
* ### Create network site
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var site = new AzureNative.HybridNetwork.Site("site", new()
* {
* Location = "westUs2",
* Properties = new AzureNative.HybridNetwork.Inputs.SitePropertiesFormatArgs
* {
* Nfvis =
* {
* new AzureNative.HybridNetwork.Inputs.AzureCoreNFVIDetailsArgs
* {
* Location = "westUs2",
* Name = "nfvi1",
* NfviType = "AzureCore",
* },
* new AzureNative.HybridNetwork.Inputs.AzureArcK8sClusterNFVIDetailsArgs
* {
* CustomLocationReference = new AzureNative.HybridNetwork.Inputs.ReferencedResourceArgs
* {
* Id = "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1",
* },
* Name = "nfvi2",
* NfviType = "AzureArcKubernetes",
* },
* new AzureNative.HybridNetwork.Inputs.AzureOperatorNexusClusterNFVIDetailsArgs
* {
* CustomLocationReference = new AzureNative.HybridNetwork.Inputs.ReferencedResourceArgs
* {
* Id = "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2",
* },
* Name = "nfvi3",
* NfviType = "AzureOperatorNexus",
* },
* },
* },
* ResourceGroupName = "rg1",
* SiteName = "testSite",
* });
* });
* ```
* ```go
* package main
* import (
* hybridnetwork "github.com/pulumi/pulumi-azure-native-sdk/hybridnetwork/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := hybridnetwork.NewSite(ctx, "site", &hybridnetwork.SiteArgs{
* Location: pulumi.String("westUs2"),
* Properties: &hybridnetwork.SitePropertiesFormatArgs{
* Nfvis: pulumi.Array{
* hybridnetwork.AzureCoreNFVIDetails{
* Location: "westUs2",
* Name: "nfvi1",
* NfviType: "AzureCore",
* },
* hybridnetwork.AzureArcK8sClusterNFVIDetails{
* CustomLocationReference: hybridnetwork.ReferencedResource{
* Id: "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1",
* },
* Name: "nfvi2",
* NfviType: "AzureArcKubernetes",
* },
* hybridnetwork.AzureOperatorNexusClusterNFVIDetails{
* CustomLocationReference: hybridnetwork.ReferencedResource{
* Id: "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2",
* },
* Name: "nfvi3",
* NfviType: "AzureOperatorNexus",
* },
* },
* },
* ResourceGroupName: pulumi.String("rg1"),
* SiteName: pulumi.String("testSite"),
* })
* 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.hybridnetwork.Site;
* import com.pulumi.azurenative.hybridnetwork.SiteArgs;
* import com.pulumi.azurenative.hybridnetwork.inputs.SitePropertiesFormatArgs;
* 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 site = new Site("site", SiteArgs.builder()
* .location("westUs2")
* .properties(SitePropertiesFormatArgs.builder()
* .nfvis(
* AzureCoreNFVIDetailsArgs.builder()
* .location("westUs2")
* .name("nfvi1")
* .nfviType("AzureCore")
* .build(),
* AzureArcK8sClusterNFVIDetailsArgs.builder()
* .customLocationReference(ReferencedResourceArgs.builder()
* .id("/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1")
* .build())
* .name("nfvi2")
* .nfviType("AzureArcKubernetes")
* .build(),
* AzureOperatorNexusClusterNFVIDetailsArgs.builder()
* .customLocationReference(ReferencedResourceArgs.builder()
* .id("/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2")
* .build())
* .name("nfvi3")
* .nfviType("AzureOperatorNexus")
* .build())
* .build())
* .resourceGroupName("rg1")
* .siteName("testSite")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:hybridnetwork:Site testSite /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/sites/{siteName}
* ```
* @property location The geo-location where the resource lives
* @property properties Site properties.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property siteName The name of the network service site.
* @property tags Resource tags.
*/
public data class SiteArgs(
public val location: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val siteName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy