azure-native.cognitiveservices.CommitmentPlan
Explore with Pulumi AI
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 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.CommitmentPlanPropertiesResponseArgs(
        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 CommitmentPlan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CommitmentPlan(name: string, args: CommitmentPlanArgs, opts?: CustomResourceOptions);@overload
def CommitmentPlan(resource_name: str,
                   args: CommitmentPlanArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def CommitmentPlan(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   account_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   commitment_plan_name: Optional[str] = None,
                   properties: Optional[CommitmentPlanPropertiesArgs] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var commitmentPlanResource = new AzureNative.Cognitiveservices.CommitmentPlan("commitmentPlanResource", new()
{
    AccountName = "string",
    ResourceGroupName = "string",
    CommitmentPlanName = "string",
    Properties = 
    {
        { "autoRenew", false },
        { "current", 
        {
            { "count", 0 },
            { "tier", "string" },
        } },
        { "hostingModel", "string" },
        { "next", 
        {
            { "count", 0 },
            { "tier", "string" },
        } },
        { "planType", "string" },
    },
});
example, err := cognitiveservices.NewCommitmentPlan(ctx, "commitmentPlanResource", &cognitiveservices.CommitmentPlanArgs{
	AccountName:        "string",
	ResourceGroupName:  "string",
	CommitmentPlanName: "string",
	Properties: map[string]interface{}{
		"autoRenew": false,
		"current": map[string]interface{}{
			"count": 0,
			"tier":  "string",
		},
		"hostingModel": "string",
		"next": map[string]interface{}{
			"count": 0,
			"tier":  "string",
		},
		"planType": "string",
	},
})
var commitmentPlanResource = new CommitmentPlan("commitmentPlanResource", CommitmentPlanArgs.builder()
    .accountName("string")
    .resourceGroupName("string")
    .commitmentPlanName("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
commitment_plan_resource = azure_native.cognitiveservices.CommitmentPlan("commitmentPlanResource",
    account_name=string,
    resource_group_name=string,
    commitment_plan_name=string,
    properties={
        autoRenew: False,
        current: {
            count: 0,
            tier: string,
        },
        hostingModel: string,
        next: {
            count: 0,
            tier: string,
        },
        planType: string,
    })
const commitmentPlanResource = new azure_native.cognitiveservices.CommitmentPlan("commitmentPlanResource", {
    accountName: "string",
    resourceGroupName: "string",
    commitmentPlanName: "string",
    properties: {
        autoRenew: false,
        current: {
            count: 0,
            tier: "string",
        },
        hostingModel: "string",
        next: {
            count: 0,
            tier: "string",
        },
        planType: "string",
    },
});
type: azure-native:cognitiveservices:CommitmentPlan
properties:
    accountName: string
    commitmentPlanName: string
    properties:
        autoRenew: false
        current:
            count: 0
            tier: string
        hostingModel: string
        next:
            count: 0
            tier: string
        planType: string
    resourceGroupName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CommitmentPlan resource accepts the following input properties:
- AccountName string
- The name of Cognitive Services account.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- CommitmentPlan stringName 
- The name of the commitmentPlan associated with the Cognitive Services Account
- Properties
Pulumi.Azure Native. Cognitive Services. Inputs. Commitment Plan Properties 
- Properties of Cognitive Services account commitment plan.
- AccountName string
- The name of Cognitive Services account.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- CommitmentPlan stringName 
- The name of the commitmentPlan associated with the Cognitive Services Account
- Properties
CommitmentPlan Properties Args 
- Properties of Cognitive Services account commitment plan.
- accountName String
- The name of Cognitive Services account.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- commitmentPlan StringName 
- The name of the commitmentPlan associated with the Cognitive Services Account
- properties
CommitmentPlan Properties 
- Properties of Cognitive Services account commitment plan.
- accountName string
- The name of Cognitive Services account.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- commitmentPlan stringName 
- The name of the commitmentPlan associated with the Cognitive Services Account
- properties
CommitmentPlan Properties 
- Properties of Cognitive Services account commitment plan.
- account_name str
- The name of Cognitive Services account.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- commitment_plan_ strname 
- The name of the commitmentPlan associated with the Cognitive Services Account
- properties
CommitmentPlan Properties Args 
- Properties of Cognitive Services account commitment plan.
- accountName String
- The name of Cognitive Services account.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- commitmentPlan StringName 
- 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.Azure Native. Cognitive Services. Outputs. System Data Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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, CommitmentPeriodArgs    
CommitmentPeriodResponse, CommitmentPeriodResponseArgs      
- end_date str
- Commitment period end date.
- quota
CommitmentQuota Response 
- Cognitive Services account commitment quota.
- start_date str
- Commitment period start date.
- count int
- Commitment period commitment count.
- tier str
- Commitment period commitment tier.
CommitmentPlanProperties, CommitmentPlanPropertiesArgs      
- AutoRenew bool
- AutoRenew commitment plan.
- Current
Pulumi.Azure Native. Cognitive Services. Inputs. Commitment Period 
- Cognitive Services account commitment period.
- HostingModel string | Pulumi.Azure Native. Cognitive Services. Hosting Model 
- Account hosting model.
- Next
Pulumi.Azure Native. Cognitive Services. Inputs. Commitment Period 
- 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" | "Disconnected Container" 
- Account hosting model.
- next Property Map
- Cognitive Services account commitment period.
- planType String
- Commitment plan type.
CommitmentPlanPropertiesResponse, CommitmentPlanPropertiesResponseArgs        
- Last
Pulumi.Azure Native. Cognitive Services. Inputs. Commitment Period Response 
- Cognitive Services account commitment period.
- AutoRenew bool
- AutoRenew commitment plan.
- Current
Pulumi.Azure Native. Cognitive Services. Inputs. Commitment Period Response 
- Cognitive Services account commitment period.
- HostingModel string
- Account hosting model.
- Next
Pulumi.Azure Native. Cognitive Services. Inputs. Commitment Period Response 
- Cognitive Services account commitment period.
- PlanType string
- Commitment plan type.
- Last
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- AutoRenew bool
- AutoRenew commitment plan.
- Current
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- HostingModel string
- Account hosting model.
- Next
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- PlanType string
- Commitment plan type.
- last
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- autoRenew Boolean
- AutoRenew commitment plan.
- current
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- hostingModel String
- Account hosting model.
- next
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- planType String
- Commitment plan type.
- last
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- autoRenew boolean
- AutoRenew commitment plan.
- current
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- hostingModel string
- Account hosting model.
- next
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- planType string
- Commitment plan type.
- last
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- auto_renew bool
- AutoRenew commitment plan.
- current
CommitmentPeriod Response 
- Cognitive Services account commitment period.
- hosting_model str
- Account hosting model.
- next
CommitmentPeriod Response 
- 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, CommitmentQuotaResponseArgs      
HostingModel, HostingModelArgs    
- Web
- Web
- ConnectedContainer 
- ConnectedContainer
- DisconnectedContainer 
- DisconnectedContainer
- HostingModel Web 
- Web
- HostingModel Connected Container 
- ConnectedContainer
- HostingModel Disconnected Container 
- 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, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0