Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.1 published on Wednesday, May 18, 2022 by Pulumi

CommitmentPlan

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

Example Usage

PutCommitmentPlan

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var commitmentPlan = new AzureNative.CognitiveServices.CommitmentPlan("commitmentPlan", new AzureNative.CognitiveServices.CommitmentPlanArgs
        {
            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/go/azure/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.CommitmentPlanPropertiesArgs{
				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 java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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 pulumi
import pulumi_azure_native as azure_native

commitment_plan = azure_native.cognitiveservices.CommitmentPlan("commitmentPlan",
    account_name="accountName",
    commitment_plan_name="commitmentPlanName",
    properties=azure_native.cognitiveservices.CommitmentPlanPropertiesArgs(
        auto_renew=True,
        current=azure_native.cognitiveservices.CommitmentPeriodArgs(
            tier="T1",
        ),
        hosting_model="Web",
        plan_type="Speech2Text",
    ),
    resource_group_name="resourceGroupName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const commitmentPlan = new azure_native.cognitiveservices.CommitmentPlan("commitmentPlan", {
    accountName: "accountName",
    commitmentPlanName: "commitmentPlanName",
    properties: {
        autoRenew: true,
        current: {
            tier: "T1",
        },
        hostingModel: "Web",
        planType: "Speech2Text",
    },
    resourceGroupName: "resourceGroupName",
});
resources:
  commitmentPlan:
    type: azure-native:cognitiveservices:CommitmentPlan
    properties:
      accountName: accountName
      commitmentPlanName: commitmentPlanName
      properties:
        autoRenew: true
        current:
          tier: T1
        hostingModel: Web
        planType: Speech2Text
      resourceGroupName: resourceGroupName

Create a CommitmentPlan Resource

new CommitmentPlan(name: string, args: CommitmentPlanArgs, opts?: CustomResourceOptions);
@overload
def CommitmentPlan(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   account_name: Optional[str] = None,
                   commitment_plan_name: Optional[str] = None,
                   properties: Optional[CommitmentPlanPropertiesArgs] = None,
                   resource_group_name: Optional[str] = None)
@overload
def CommitmentPlan(resource_name: str,
                   args: CommitmentPlanArgs,
                   opts: Optional[ResourceOptions] = None)
func NewCommitmentPlan(ctx *Context, name string, args CommitmentPlanArgs, opts ...ResourceOption) (*CommitmentPlan, error)
public CommitmentPlan(string name, CommitmentPlanArgs args, CustomResourceOptions? opts = null)
public CommitmentPlan(String name, CommitmentPlanArgs args)
public CommitmentPlan(String name, CommitmentPlanArgs args, CustomResourceOptions options)
type: azure-native:cognitiveservices:CommitmentPlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CommitmentPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CommitmentPlanArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CommitmentPlanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CommitmentPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CommitmentPlanArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CommitmentPlan Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CommitmentPlan resource accepts the following input properties:

AccountName string

The name of Cognitive Services account.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

CommitmentPlanName string

The name of the commitmentPlan associated with the Cognitive Services Account

Properties Pulumi.AzureNative.CognitiveServices.Inputs.CommitmentPlanPropertiesArgs

Properties of Cognitive Services account commitment plan.

AccountName string

The name of Cognitive Services account.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

CommitmentPlanName string

The name of the commitmentPlan associated with the Cognitive Services Account

Properties CommitmentPlanPropertiesArgs

Properties of Cognitive Services account commitment plan.

accountName String

The name of Cognitive Services account.

resourceGroupName String

The name of the resource group. The name is case insensitive.

commitmentPlanName String

The name of the commitmentPlan associated with the Cognitive Services Account

properties CommitmentPlanPropertiesArgs

Properties of Cognitive Services account commitment plan.

accountName string

The name of Cognitive Services account.

resourceGroupName string

The name of the resource group. The name is case insensitive.

commitmentPlanName string

The name of the commitmentPlan associated with the Cognitive Services Account

properties CommitmentPlanPropertiesArgs

Properties of Cognitive Services account commitment plan.

account_name str

The name of Cognitive Services account.

resource_group_name str

The name of the resource group. The name is case insensitive.

commitment_plan_name str

The name of the commitmentPlan associated with the Cognitive Services Account

properties CommitmentPlanPropertiesArgs

Properties of Cognitive Services account commitment plan.

accountName String

The name of Cognitive Services account.

resourceGroupName String

The name of the resource group. The name is case insensitive.

commitmentPlanName String

The name of the commitmentPlan associated with the Cognitive Services Account

properties Property Map

Properties of Cognitive Services account commitment plan.

Outputs

All input properties are implicitly available as output properties. Additionally, the CommitmentPlan resource produces the following output properties:

Etag string

Resource Etag.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

SystemData Pulumi.AzureNative.CognitiveServices.Outputs.SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

Type string

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

Etag string

Resource Etag.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

SystemData SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

Type string

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

etag String

Resource Etag.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

systemData SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

type String

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

etag string

Resource Etag.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

systemData SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

type string

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

etag str

Resource Etag.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

system_data SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

type str

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

etag String

Resource Etag.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

systemData Property Map

Metadata pertaining to creation and last modification of the resource.

type String

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

Supporting Types

CommitmentPeriod

Count int

Commitment period commitment count.

Tier string

Commitment period commitment tier.

Count int

Commitment period commitment count.

Tier string

Commitment period commitment tier.

count Integer

Commitment period commitment count.

tier String

Commitment period commitment tier.

count number

Commitment period commitment count.

tier string

Commitment period commitment tier.

count int

Commitment period commitment count.

tier str

Commitment period commitment tier.

count Number

Commitment period commitment count.

tier String

Commitment period commitment tier.

CommitmentPeriodResponse

EndDate string

Commitment period end date.

Quota Pulumi.AzureNative.CognitiveServices.Inputs.CommitmentQuotaResponse

Cognitive Services account commitment quota.

StartDate string

Commitment period start date.

Count int

Commitment period commitment count.

Tier string

Commitment period commitment tier.

EndDate string

Commitment period end date.

Quota CommitmentQuotaResponse

Cognitive Services account commitment quota.

StartDate string

Commitment period start date.

Count int

Commitment period commitment count.

Tier string

Commitment period commitment tier.

endDate String

Commitment period end date.

quota CommitmentQuotaResponse

Cognitive Services account commitment quota.

startDate String

Commitment period start date.

count Integer

Commitment period commitment count.

tier String

Commitment period commitment tier.

endDate string

Commitment period end date.

quota CommitmentQuotaResponse

Cognitive Services account commitment quota.

startDate string

Commitment period start date.

count number

Commitment period commitment count.

tier string

Commitment period commitment tier.

end_date str

Commitment period end date.

quota CommitmentQuotaResponse

Cognitive Services account commitment quota.

start_date str

Commitment period start date.

count int

Commitment period commitment count.

tier str

Commitment period commitment tier.

endDate String

Commitment period end date.

quota Property Map

Cognitive Services account commitment quota.

startDate String

Commitment period start date.

count Number

Commitment period commitment count.

tier String

Commitment period commitment tier.

CommitmentPlanProperties

AutoRenew bool

AutoRenew commitment plan.

Current Pulumi.AzureNative.CognitiveServices.Inputs.CommitmentPeriod

Cognitive Services account commitment period.

HostingModel string | Pulumi.AzureNative.CognitiveServices.HostingModel

Account hosting model.

Next Pulumi.AzureNative.CognitiveServices.Inputs.CommitmentPeriod

Cognitive Services account commitment period.

PlanType string

Commitment plan type.

AutoRenew bool

AutoRenew commitment plan.

Current CommitmentPeriod

Cognitive Services account commitment period.

HostingModel string | HostingModel

Account hosting model.

Next CommitmentPeriod

Cognitive Services account commitment period.

PlanType string

Commitment plan type.

autoRenew Boolean

AutoRenew commitment plan.

current CommitmentPeriod

Cognitive Services account commitment period.

hostingModel String | HostingModel

Account hosting model.

next CommitmentPeriod

Cognitive Services account commitment period.

planType String

Commitment plan type.

autoRenew boolean

AutoRenew commitment plan.

current CommitmentPeriod

Cognitive Services account commitment period.

hostingModel string | HostingModel

Account hosting model.

next CommitmentPeriod

Cognitive Services account commitment period.

planType string

Commitment plan type.

auto_renew bool

AutoRenew commitment plan.

current CommitmentPeriod

Cognitive Services account commitment period.

hosting_model str | HostingModel

Account hosting model.

next CommitmentPeriod

Cognitive Services account commitment period.

plan_type str

Commitment plan type.

autoRenew Boolean

AutoRenew commitment plan.

current Property Map

Cognitive Services account commitment period.

hostingModel String | "Web" | "ConnectedContainer" | "DisconnectedContainer"

Account hosting model.

next Property Map

Cognitive Services account commitment period.

planType String

Commitment plan type.

CommitmentPlanPropertiesResponse

Last Pulumi.AzureNative.CognitiveServices.Inputs.CommitmentPeriodResponse

Cognitive Services account commitment period.

AutoRenew bool

AutoRenew commitment plan.

Current Pulumi.AzureNative.CognitiveServices.Inputs.CommitmentPeriodResponse

Cognitive Services account commitment period.

HostingModel string

Account hosting model.

Next Pulumi.AzureNative.CognitiveServices.Inputs.CommitmentPeriodResponse

Cognitive Services account commitment period.

PlanType string

Commitment plan type.

Last CommitmentPeriodResponse

Cognitive Services account commitment period.

AutoRenew bool

AutoRenew commitment plan.

Current CommitmentPeriodResponse

Cognitive Services account commitment period.

HostingModel string

Account hosting model.

Next CommitmentPeriodResponse

Cognitive Services account commitment period.

PlanType string

Commitment plan type.

last CommitmentPeriodResponse

Cognitive Services account commitment period.

autoRenew Boolean

AutoRenew commitment plan.

current CommitmentPeriodResponse

Cognitive Services account commitment period.

hostingModel String

Account hosting model.

next CommitmentPeriodResponse

Cognitive Services account commitment period.

planType String

Commitment plan type.

last CommitmentPeriodResponse

Cognitive Services account commitment period.

autoRenew boolean

AutoRenew commitment plan.

current CommitmentPeriodResponse

Cognitive Services account commitment period.

hostingModel string

Account hosting model.

next CommitmentPeriodResponse

Cognitive Services account commitment period.

planType string

Commitment plan type.

last CommitmentPeriodResponse

Cognitive Services account commitment period.

auto_renew bool

AutoRenew commitment plan.

current CommitmentPeriodResponse

Cognitive Services account commitment period.

hosting_model str

Account hosting model.

next CommitmentPeriodResponse

Cognitive Services account commitment period.

plan_type str

Commitment plan type.

last Property Map

Cognitive Services account commitment period.

autoRenew Boolean

AutoRenew commitment plan.

current Property Map

Cognitive Services account commitment period.

hostingModel String

Account hosting model.

next Property Map

Cognitive Services account commitment period.

planType String

Commitment plan type.

CommitmentQuotaResponse

Quantity double

Commitment quota quantity.

Unit string

Commitment quota unit.

Quantity float64

Commitment quota quantity.

Unit string

Commitment quota unit.

quantity Double

Commitment quota quantity.

unit String

Commitment quota unit.

quantity number

Commitment quota quantity.

unit string

Commitment quota unit.

quantity float

Commitment quota quantity.

unit str

Commitment quota unit.

quantity Number

Commitment quota quantity.

unit String

Commitment quota unit.

HostingModel

Web
Web
ConnectedContainer
ConnectedContainer
DisconnectedContainer
DisconnectedContainer
HostingModelWeb
Web
HostingModelConnectedContainer
ConnectedContainer
HostingModelDisconnectedContainer
DisconnectedContainer
Web
Web
ConnectedContainer
ConnectedContainer
DisconnectedContainer
DisconnectedContainer
Web
Web
ConnectedContainer
ConnectedContainer
DisconnectedContainer
DisconnectedContainer
WEB
Web
CONNECTED_CONTAINER
ConnectedContainer
DISCONNECTED_CONTAINER
DisconnectedContainer
"Web"
Web
"ConnectedContainer"
ConnectedContainer
"DisconnectedContainer"
DisconnectedContainer

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0