azure-native-v2.costmanagement.Setting
Explore with Pulumi AI
State of the myscope setting. Azure REST API version: 2019-11-01. Prior API version in Azure Native 1.x: 2019-11-01.
Create Setting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Setting(name: string, args: SettingArgs, opts?: CustomResourceOptions);
@overload
def Setting(resource_name: str,
args: SettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Setting(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope: Optional[str] = None,
cache: Optional[Sequence[SettingsPropertiesCacheArgs]] = None,
setting_name: Optional[str] = None,
start_on: Optional[str] = None)
func NewSetting(ctx *Context, name string, args SettingArgs, opts ...ResourceOption) (*Setting, error)
public Setting(string name, SettingArgs args, CustomResourceOptions? opts = null)
public Setting(String name, SettingArgs args)
public Setting(String name, SettingArgs args, CustomResourceOptions options)
type: azure-native:costmanagement:Setting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SettingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. SettingArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SettingArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SettingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. SettingArgs - 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 settingResource = new AzureNative.Costmanagement.Setting("settingResource", new()
{
Scope = "string",
Cache = new[]
{
{
{ "channel", "string" },
{ "id", "string" },
{ "name", "string" },
{ "subchannel", "string" },
{ "parent", "string" },
{ "status", "string" },
},
},
SettingName = "string",
StartOn = "string",
});
example, err := costmanagement.NewSetting(ctx, "settingResource", &costmanagement.SettingArgs{
Scope: "string",
Cache: []map[string]interface{}{
map[string]interface{}{
"channel": "string",
"id": "string",
"name": "string",
"subchannel": "string",
"parent": "string",
"status": "string",
},
},
SettingName: "string",
StartOn: "string",
})
var settingResource = new Setting("settingResource", SettingArgs.builder()
.scope("string")
.cache(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.settingName("string")
.startOn("string")
.build());
setting_resource = azure_native.costmanagement.Setting("settingResource",
scope=string,
cache=[{
channel: string,
id: string,
name: string,
subchannel: string,
parent: string,
status: string,
}],
setting_name=string,
start_on=string)
const settingResource = new azure_native.costmanagement.Setting("settingResource", {
scope: "string",
cache: [{
channel: "string",
id: "string",
name: "string",
subchannel: "string",
parent: "string",
status: "string",
}],
settingName: "string",
startOn: "string",
});
type: azure-native:costmanagement:Setting
properties:
cache:
- channel: string
id: string
name: string
parent: string
status: string
subchannel: string
scope: string
settingName: string
startOn: string
Setting 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 Setting resource accepts the following input properties:
- Scope
This property is required. string - Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
- Cache
List<Pulumi.
Azure Native. Cost Management. Inputs. Settings Properties Cache> - Array of scopes with additional details used by Cost Management in the Azure portal.
- Setting
Name Changes to this property will trigger replacement.
- Name of the setting. Allowed values: myscope
- Start
On string - Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
- Scope
This property is required. string - Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
- Cache
[]Settings
Properties Cache Args - Array of scopes with additional details used by Cost Management in the Azure portal.
- Setting
Name Changes to this property will trigger replacement.
- Name of the setting. Allowed values: myscope
- Start
On string - Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
- scope
This property is required. String - Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
- cache
List<Settings
Properties Cache> - Array of scopes with additional details used by Cost Management in the Azure portal.
- setting
Name Changes to this property will trigger replacement.
- Name of the setting. Allowed values: myscope
- start
On String - Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
- scope
This property is required. string - Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
- cache
Settings
Properties Cache[] - Array of scopes with additional details used by Cost Management in the Azure portal.
- setting
Name Changes to this property will trigger replacement.
- Name of the setting. Allowed values: myscope
- start
On string - Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
- scope
This property is required. str - Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
- cache
Sequence[Settings
Properties Cache Args] - Array of scopes with additional details used by Cost Management in the Azure portal.
- setting_
name Changes to this property will trigger replacement.
- Name of the setting. Allowed values: myscope
- start_
on str - Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
- scope
This property is required. String - Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
- cache List<Property Map>
- Array of scopes with additional details used by Cost Management in the Azure portal.
- setting
Name Changes to this property will trigger replacement.
- Name of the setting. Allowed values: myscope
- start
On String - Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
Outputs
All input properties are implicitly available as output properties. Additionally, the Setting resource produces the following output properties:
Supporting Types
SettingsPropertiesCache, SettingsPropertiesCacheArgs
- Channel
This property is required. string - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- Id
This property is required. string - Resource ID used by Resource Manager to uniquely identify the scope.
- Name
This property is required. string - Display name for the scope.
- Subchannel
This property is required. string - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- Parent string
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- Status string
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- Channel
This property is required. string - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- Id
This property is required. string - Resource ID used by Resource Manager to uniquely identify the scope.
- Name
This property is required. string - Display name for the scope.
- Subchannel
This property is required. string - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- Parent string
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- Status string
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. String - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. String - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. String - Display name for the scope.
- subchannel
This property is required. String - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent String
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status String
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. string - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. string - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. string - Display name for the scope.
- subchannel
This property is required. string - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent string
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status string
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. str - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. str - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. str - Display name for the scope.
- subchannel
This property is required. str - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent str
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status str
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. String - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. String - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. String - Display name for the scope.
- subchannel
This property is required. String - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent String
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status String
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
SettingsPropertiesResponseCache, SettingsPropertiesResponseCacheArgs
- Channel
This property is required. string - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- Id
This property is required. string - Resource ID used by Resource Manager to uniquely identify the scope.
- Name
This property is required. string - Display name for the scope.
- Subchannel
This property is required. string - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- Parent string
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- Status string
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- Channel
This property is required. string - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- Id
This property is required. string - Resource ID used by Resource Manager to uniquely identify the scope.
- Name
This property is required. string - Display name for the scope.
- Subchannel
This property is required. string - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- Parent string
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- Status string
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. String - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. String - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. String - Display name for the scope.
- subchannel
This property is required. String - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent String
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status String
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. string - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. string - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. string - Display name for the scope.
- subchannel
This property is required. string - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent string
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status string
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. str - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. str - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. str - Display name for the scope.
- subchannel
This property is required. str - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent str
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status str
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
- channel
This property is required. String - Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.
- id
This property is required. String - Resource ID used by Resource Manager to uniquely identify the scope.
- name
This property is required. String - Display name for the scope.
- subchannel
This property is required. String - Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable
- parent String
- Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.
- status String
- Indicates the status of the scope. Status only applies to subscriptions and billing accounts.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:Setting myscope /providers/Microsoft.CostManagement/settings/{settingName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0