CommitmentPlan

class CommitmentPlan : KotlinCustomResource

Cognitive Services account commitment plan. API Version: 2021-10-01.

Example Usage

PutCommitmentPlan

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var commitmentPlan = new AzureNative.CognitiveServices.CommitmentPlan("commitmentPlan", new()
{
AccountName = "accountName",
CommitmentPlanName = "commitmentPlanName",
Properties = new AzureNative.CognitiveServices.Inputs.CommitmentPlanPropertiesArgs
{
AutoRenew = true,
Current = new AzureNative.CognitiveServices.Inputs.CommitmentPeriodArgs
{
Tier = "T1",
},
HostingModel = "Web",
PlanType = "Speech2Text",
},
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cognitiveservices.NewCommitmentPlan(ctx, "commitmentPlan", &cognitiveservices.CommitmentPlanArgs{
AccountName: pulumi.String("accountName"),
CommitmentPlanName: pulumi.String("commitmentPlanName"),
Properties: cognitiveservices.CommitmentPlanPropertiesResponse{
AutoRenew: pulumi.Bool(true),
Current: &cognitiveservices.CommitmentPeriodArgs{
Tier: pulumi.String("T1"),
},
HostingModel: pulumi.String("Web"),
PlanType: pulumi.String("Speech2Text"),
},
ResourceGroupName: pulumi.String("resourceGroupName"),
})
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.cognitiveservices.CommitmentPlan;
import com.pulumi.azurenative.cognitiveservices.CommitmentPlanArgs;
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 commitmentPlan = new CommitmentPlan("commitmentPlan", CommitmentPlanArgs.builder()
.accountName("accountName")
.commitmentPlanName("commitmentPlanName")
.properties(Map.ofEntries(
Map.entry("autoRenew", true),
Map.entry("current", Map.of("tier", "T1")),
Map.entry("hostingModel", "Web"),
Map.entry("planType", "Speech2Text")
))
.resourceGroupName("resourceGroupName")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:cognitiveservices:CommitmentPlan commitmentPlanName /subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/commitmentPlans/commitmentPlanName

Properties

Link copied to clipboard
val etag: Output<String>

Resource Etag.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Properties of Cognitive Services account commitment plan.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>