Commitment Plan Args
Cognitive Services account commitment plan. Uses Azure REST API version 2024-10-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01. Other available API versions: 2023-05-01, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cognitiveservices [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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 = AzureNative.CognitiveServices.HostingModel.Web,
PlanType = "Speech2Text",
},
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v2"
"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.CommitmentPlanPropertiesArgs{
AutoRenew: pulumi.Bool(true),
Current: &cognitiveservices.CommitmentPeriodArgs{
Tier: pulumi.String("T1"),
},
HostingModel: pulumi.String(cognitiveservices.HostingModelWeb),
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 com.pulumi.azurenative.cognitiveservices.inputs.CommitmentPlanPropertiesArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.CommitmentPeriodArgs;
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(CommitmentPlanPropertiesArgs.builder()
.autoRenew(true)
.current(CommitmentPeriodArgs.builder()
.tier("T1")
.build())
.hostingModel("Web")
.planType("Speech2Text")
.build())
.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}
Constructors
Properties
The name of Cognitive Services account.
The name of the commitmentPlan associated with the Cognitive Services Account
Properties of Cognitive Services account commitment plan.
The name of the resource group. The name is case insensitive.