![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.recommendationsservice.kotlin.ServiceEndpointArgs.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.recommendationsservice.kotlin
import com.pulumi.azurenative.recommendationsservice.ServiceEndpointArgs.builder
import com.pulumi.azurenative.recommendationsservice.kotlin.inputs.ServiceEndpointResourcePropertiesArgs
import com.pulumi.azurenative.recommendationsservice.kotlin.inputs.ServiceEndpointResourcePropertiesArgsBuilder
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
/**
* ServiceEndpoint resource details.
* Azure REST API version: 2022-02-01. Prior API version in Azure Native 1.x: 2022-02-01.
* Other available API versions: 2022-03-01-preview.
* ## Example Usage
* ### Create or update ServiceEndpoint resource
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var serviceEndpoint = new AzureNative.RecommendationsService.ServiceEndpoint("serviceEndpoint", new()
* {
* AccountName = "sampleAccount",
* Location = "West US",
* Properties = new AzureNative.RecommendationsService.Inputs.ServiceEndpointResourcePropertiesArgs
* {
* PreAllocatedCapacity = 100,
* },
* ResourceGroupName = "rg",
* ServiceEndpointName = "s1",
* Tags =
* {
* { "Environment", "Prod" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* recommendationsservice "github.com/pulumi/pulumi-azure-native-sdk/recommendationsservice/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := recommendationsservice.NewServiceEndpoint(ctx, "serviceEndpoint", &recommendationsservice.ServiceEndpointArgs{
* AccountName: pulumi.String("sampleAccount"),
* Location: pulumi.String("West US"),
* Properties: &recommendationsservice.ServiceEndpointResourcePropertiesArgs{
* PreAllocatedCapacity: pulumi.Int(100),
* },
* ResourceGroupName: pulumi.String("rg"),
* ServiceEndpointName: pulumi.String("s1"),
* Tags: pulumi.StringMap{
* "Environment": pulumi.String("Prod"),
* },
* })
* 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.recommendationsservice.ServiceEndpoint;
* import com.pulumi.azurenative.recommendationsservice.ServiceEndpointArgs;
* import com.pulumi.azurenative.recommendationsservice.inputs.ServiceEndpointResourcePropertiesArgs;
* 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 serviceEndpoint = new ServiceEndpoint("serviceEndpoint", ServiceEndpointArgs.builder()
* .accountName("sampleAccount")
* .location("West US")
* .properties(ServiceEndpointResourcePropertiesArgs.builder()
* .preAllocatedCapacity(100)
* .build())
* .resourceGroupName("rg")
* .serviceEndpointName("s1")
* .tags(Map.of("Environment", "Prod"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:recommendationsservice:ServiceEndpoint s1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}/serviceEndpoints/{serviceEndpointName}
* ```
* @property accountName The name of the RecommendationsService Account resource.
* @property location The geo-location where the resource lives
* @property properties ServiceEndpoint resource properties.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property serviceEndpointName The name of the ServiceEndpoint resource.
* @property tags Resource tags.
*/
public data class ServiceEndpointArgs(
public val accountName: Output? = null,
public val location: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceEndpointName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy