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:
- Account
Name string - The name of Cognitive Services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Commitment
Plan 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.
- Account
Name string - The name of Cognitive Services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Commitment
Plan stringName - The name of the commitmentPlan associated with the Cognitive Services Account
- Properties
Commitment
Plan Properties Args - Properties of Cognitive Services account commitment plan.
- account
Name String - The name of Cognitive Services account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- commitment
Plan StringName - The name of the commitmentPlan associated with the Cognitive Services Account
- properties
Commitment
Plan Properties - Properties of Cognitive Services account commitment plan.
- account
Name string - The name of Cognitive Services account.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- commitment
Plan stringName - The name of the commitmentPlan associated with the Cognitive Services Account
- properties
Commitment
Plan 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
Commitment
Plan Properties Args - Properties of Cognitive Services account commitment plan.
- account
Name String - The name of Cognitive Services account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- commitment
Plan 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
- System
Data 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
- System
Data 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
- system
Data 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
- system
Data 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
- system
Data 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
Commitment
Quota 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
- Auto
Renew bool - AutoRenew commitment plan.
- Current
Pulumi.
Azure Native. Cognitive Services. Inputs. Commitment Period - Cognitive Services account commitment period.
- Hosting
Model 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.
- Plan
Type string - Commitment plan type.
- Auto
Renew bool - AutoRenew commitment plan.
- Current
Commitment
Period - Cognitive Services account commitment period.
- Hosting
Model string | HostingModel - Account hosting model.
- Next
Commitment
Period - Cognitive Services account commitment period.
- Plan
Type string - Commitment plan type.
- auto
Renew Boolean - AutoRenew commitment plan.
- current
Commitment
Period - Cognitive Services account commitment period.
- hosting
Model String | HostingModel - Account hosting model.
- next
Commitment
Period - Cognitive Services account commitment period.
- plan
Type String - Commitment plan type.
- auto
Renew boolean - AutoRenew commitment plan.
- current
Commitment
Period - Cognitive Services account commitment period.
- hosting
Model string | HostingModel - Account hosting model.
- next
Commitment
Period - Cognitive Services account commitment period.
- plan
Type string - Commitment plan type.
- auto_
renew bool - AutoRenew commitment plan.
- current
Commitment
Period - Cognitive Services account commitment period.
- hosting_
model str | HostingModel - Account hosting model.
- next
Commitment
Period - Cognitive Services account commitment period.
- plan_
type str - Commitment plan type.
- auto
Renew Boolean - AutoRenew commitment plan.
- current Property Map
- Cognitive Services account commitment period.
- hosting
Model String | "Web" | "ConnectedContainer" | "Disconnected Container" - Account hosting model.
- next Property Map
- Cognitive Services account commitment period.
- plan
Type String - Commitment plan type.
CommitmentPlanPropertiesResponse, CommitmentPlanPropertiesResponseArgs
- Last
Pulumi.
Azure Native. Cognitive Services. Inputs. Commitment Period Response - Cognitive Services account commitment period.
- Auto
Renew bool - AutoRenew commitment plan.
- Current
Pulumi.
Azure Native. Cognitive Services. Inputs. Commitment Period Response - Cognitive Services account commitment period.
- Hosting
Model string - Account hosting model.
- Next
Pulumi.
Azure Native. Cognitive Services. Inputs. Commitment Period Response - Cognitive Services account commitment period.
- Plan
Type string - Commitment plan type.
- Last
Commitment
Period Response - Cognitive Services account commitment period.
- Auto
Renew bool - AutoRenew commitment plan.
- Current
Commitment
Period Response - Cognitive Services account commitment period.
- Hosting
Model string - Account hosting model.
- Next
Commitment
Period Response - Cognitive Services account commitment period.
- Plan
Type string - Commitment plan type.
- last
Commitment
Period Response - Cognitive Services account commitment period.
- auto
Renew Boolean - AutoRenew commitment plan.
- current
Commitment
Period Response - Cognitive Services account commitment period.
- hosting
Model String - Account hosting model.
- next
Commitment
Period Response - Cognitive Services account commitment period.
- plan
Type String - Commitment plan type.
- last
Commitment
Period Response - Cognitive Services account commitment period.
- auto
Renew boolean - AutoRenew commitment plan.
- current
Commitment
Period Response - Cognitive Services account commitment period.
- hosting
Model string - Account hosting model.
- next
Commitment
Period Response - Cognitive Services account commitment period.
- plan
Type string - Commitment plan type.
- last
Commitment
Period Response - Cognitive Services account commitment period.
- auto_
renew bool - AutoRenew commitment plan.
- current
Commitment
Period Response - Cognitive Services account commitment period.
- hosting_
model str - Account hosting model.
- next
Commitment
Period Response - Cognitive Services account commitment period.
- plan_
type str - Commitment plan type.
- last Property Map
- Cognitive Services account commitment period.
- auto
Renew Boolean - AutoRenew commitment plan.
- current Property Map
- Cognitive Services account commitment period.
- hosting
Model String - Account hosting model.
- next Property Map
- Cognitive Services account commitment period.
- plan
Type String - Commitment plan type.
CommitmentQuotaResponse, CommitmentQuotaResponseArgs
HostingModel, HostingModelArgs
- Web
- Web
- Connected
Container - ConnectedContainer
- Disconnected
Container - DisconnectedContainer
- Hosting
Model Web - Web
- Hosting
Model Connected Container - ConnectedContainer
- Hosting
Model Disconnected Container - DisconnectedContainer
- Web
- Web
- Connected
Container - ConnectedContainer
- Disconnected
Container - DisconnectedContainer
- Web
- Web
- Connected
Container - ConnectedContainer
- Disconnected
Container - DisconnectedContainer
- WEB
- Web
- CONNECTED_CONTAINER
- ConnectedContainer
- DISCONNECTED_CONTAINER
- DisconnectedContainer
- "Web"
- Web
- "Connected
Container" - ConnectedContainer
- "Disconnected
Container" - DisconnectedContainer
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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