ServiceEndpointArgs

data class ServiceEndpointArgs(val accountName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<ServiceEndpointResourcePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceEndpointName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceEndpointArgs>

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

Example Usage

Create or update ServiceEndpoint resource

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

$ pulumi import azure-native:recommendationsservice:ServiceEndpoint s1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}/serviceEndpoints/{serviceEndpointName}

Constructors

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

Properties

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

The name of the RecommendationsService Account resource.

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

The geo-location where the resource lives

Link copied to clipboard

ServiceEndpoint resource properties.

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 serviceEndpointName: Output<String>? = null

The name of the ServiceEndpoint resource.

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

Resource tags.

Functions

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