azure-native.insights.ComponentCurrentBillingFeature
Explore with Pulumi AI
An Application Insights component billing features API Version: 2015-05-01.
Example Usage
ComponentCurrentBillingFeaturesUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var componentCurrentBillingFeature = new AzureNative.Insights.ComponentCurrentBillingFeature("componentCurrentBillingFeature", new()
{
CurrentBillingFeatures = new[]
{
"Basic",
"Application Insights Enterprise",
},
DataVolumeCap = new AzureNative.Insights.Inputs.ApplicationInsightsComponentDataVolumeCapArgs
{
Cap = 100,
StopSendNotificationWhenHitCap = true,
},
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewComponentCurrentBillingFeature(ctx, "componentCurrentBillingFeature", &insights.ComponentCurrentBillingFeatureArgs{
CurrentBillingFeatures: pulumi.StringArray{
pulumi.String("Basic"),
pulumi.String("Application Insights Enterprise"),
},
DataVolumeCap: &insights.ApplicationInsightsComponentDataVolumeCapArgs{
Cap: pulumi.Float64(100),
StopSendNotificationWhenHitCap: pulumi.Bool(true),
},
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
})
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.insights.ComponentCurrentBillingFeature;
import com.pulumi.azurenative.insights.ComponentCurrentBillingFeatureArgs;
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 componentCurrentBillingFeature = new ComponentCurrentBillingFeature("componentCurrentBillingFeature", ComponentCurrentBillingFeatureArgs.builder()
.currentBillingFeatures(
"Basic",
"Application Insights Enterprise")
.dataVolumeCap(Map.ofEntries(
Map.entry("cap", 100),
Map.entry("stopSendNotificationWhenHitCap", true)
))
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
component_current_billing_feature = azure_native.insights.ComponentCurrentBillingFeature("componentCurrentBillingFeature",
current_billing_features=[
"Basic",
"Application Insights Enterprise",
],
data_volume_cap=azure_native.insights.ApplicationInsightsComponentDataVolumeCapArgs(
cap=100,
stop_send_notification_when_hit_cap=True,
),
resource_group_name="my-resource-group",
resource_name_="my-component")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const componentCurrentBillingFeature = new azure_native.insights.ComponentCurrentBillingFeature("componentCurrentBillingFeature", {
currentBillingFeatures: [
"Basic",
"Application Insights Enterprise",
],
dataVolumeCap: {
cap: 100,
stopSendNotificationWhenHitCap: true,
},
resourceGroupName: "my-resource-group",
resourceName: "my-component",
});
resources:
componentCurrentBillingFeature:
type: azure-native:insights:ComponentCurrentBillingFeature
properties:
currentBillingFeatures:
- Basic
- Application Insights Enterprise
dataVolumeCap:
cap: 100
stopSendNotificationWhenHitCap: true
resourceGroupName: my-resource-group
resourceName: my-component
Create ComponentCurrentBillingFeature Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComponentCurrentBillingFeature(name: string, args: ComponentCurrentBillingFeatureArgs, opts?: CustomResourceOptions);
@overload
def ComponentCurrentBillingFeature(resource_name: str,
args: ComponentCurrentBillingFeatureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComponentCurrentBillingFeature(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
current_billing_features: Optional[Sequence[str]] = None,
data_volume_cap: Optional[ApplicationInsightsComponentDataVolumeCapArgs] = None)
func NewComponentCurrentBillingFeature(ctx *Context, name string, args ComponentCurrentBillingFeatureArgs, opts ...ResourceOption) (*ComponentCurrentBillingFeature, error)
public ComponentCurrentBillingFeature(string name, ComponentCurrentBillingFeatureArgs args, CustomResourceOptions? opts = null)
public ComponentCurrentBillingFeature(String name, ComponentCurrentBillingFeatureArgs args)
public ComponentCurrentBillingFeature(String name, ComponentCurrentBillingFeatureArgs args, CustomResourceOptions options)
type: azure-native:insights:ComponentCurrentBillingFeature
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 ComponentCurrentBillingFeatureArgs
- 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 ComponentCurrentBillingFeatureArgs
- 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 ComponentCurrentBillingFeatureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComponentCurrentBillingFeatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComponentCurrentBillingFeatureArgs
- 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 componentCurrentBillingFeatureResource = new AzureNative.Insights.ComponentCurrentBillingFeature("componentCurrentBillingFeatureResource", new()
{
ResourceGroupName = "string",
ResourceName = "string",
CurrentBillingFeatures = new[]
{
"string",
},
DataVolumeCap =
{
{ "cap", 0 },
{ "stopSendNotificationWhenHitCap", false },
{ "stopSendNotificationWhenHitThreshold", false },
{ "warningThreshold", 0 },
},
});
example, err := insights.NewComponentCurrentBillingFeature(ctx, "componentCurrentBillingFeatureResource", &insights.ComponentCurrentBillingFeatureArgs{
ResourceGroupName: "string",
ResourceName: "string",
CurrentBillingFeatures: []string{
"string",
},
DataVolumeCap: map[string]interface{}{
"cap": 0,
"stopSendNotificationWhenHitCap": false,
"stopSendNotificationWhenHitThreshold": false,
"warningThreshold": 0,
},
})
var componentCurrentBillingFeatureResource = new ComponentCurrentBillingFeature("componentCurrentBillingFeatureResource", ComponentCurrentBillingFeatureArgs.builder()
.resourceGroupName("string")
.resourceName("string")
.currentBillingFeatures("string")
.dataVolumeCap(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
component_current_billing_feature_resource = azure_native.insights.ComponentCurrentBillingFeature("componentCurrentBillingFeatureResource",
resource_group_name=string,
resource_name_=string,
current_billing_features=[string],
data_volume_cap={
cap: 0,
stopSendNotificationWhenHitCap: False,
stopSendNotificationWhenHitThreshold: False,
warningThreshold: 0,
})
const componentCurrentBillingFeatureResource = new azure_native.insights.ComponentCurrentBillingFeature("componentCurrentBillingFeatureResource", {
resourceGroupName: "string",
resourceName: "string",
currentBillingFeatures: ["string"],
dataVolumeCap: {
cap: 0,
stopSendNotificationWhenHitCap: false,
stopSendNotificationWhenHitThreshold: false,
warningThreshold: 0,
},
});
type: azure-native:insights:ComponentCurrentBillingFeature
properties:
currentBillingFeatures:
- string
dataVolumeCap:
cap: 0
stopSendNotificationWhenHitCap: false
stopSendNotificationWhenHitThreshold: false
warningThreshold: 0
resourceGroupName: string
resourceName: string
ComponentCurrentBillingFeature 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 ComponentCurrentBillingFeature resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Application Insights component resource.
- Current
Billing List<string>Features - Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- Data
Volume Pulumi.Cap Azure Native. Insights. Inputs. Application Insights Component Data Volume Cap - An Application Insights component daily data volume cap
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Application Insights component resource.
- Current
Billing []stringFeatures - Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- Data
Volume ApplicationCap Insights Component Data Volume Cap Args - An Application Insights component daily data volume cap
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Application Insights component resource.
- current
Billing List<String>Features - Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- data
Volume ApplicationCap Insights Component Data Volume Cap - An Application Insights component daily data volume cap
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the Application Insights component resource.
- current
Billing string[]Features - Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- data
Volume ApplicationCap Insights Component Data Volume Cap - An Application Insights component daily data volume cap
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- resource_
name str - The name of the Application Insights component resource.
- current_
billing_ Sequence[str]features - Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- data_
volume_ Applicationcap Insights Component Data Volume Cap Args - An Application Insights component daily data volume cap
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Application Insights component resource.
- current
Billing List<String>Features - Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- data
Volume Property MapCap - An Application Insights component daily data volume cap
Outputs
All input properties are implicitly available as output properties. Additionally, the ComponentCurrentBillingFeature resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ApplicationInsightsComponentDataVolumeCap, ApplicationInsightsComponentDataVolumeCapArgs
- Cap double
- Daily data volume cap in GB.
- Stop
Send boolNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- Stop
Send boolNotification When Hit Threshold - Reserved, not used for now.
- Warning
Threshold int - Reserved, not used for now.
- Cap float64
- Daily data volume cap in GB.
- Stop
Send boolNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- Stop
Send boolNotification When Hit Threshold - Reserved, not used for now.
- Warning
Threshold int - Reserved, not used for now.
- cap Double
- Daily data volume cap in GB.
- stop
Send BooleanNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- stop
Send BooleanNotification When Hit Threshold - Reserved, not used for now.
- warning
Threshold Integer - Reserved, not used for now.
- cap number
- Daily data volume cap in GB.
- stop
Send booleanNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- stop
Send booleanNotification When Hit Threshold - Reserved, not used for now.
- warning
Threshold number - Reserved, not used for now.
- cap float
- Daily data volume cap in GB.
- stop_
send_ boolnotification_ when_ hit_ cap - Do not send a notification email when the daily data volume cap is met.
- stop_
send_ boolnotification_ when_ hit_ threshold - Reserved, not used for now.
- warning_
threshold int - Reserved, not used for now.
- cap Number
- Daily data volume cap in GB.
- stop
Send BooleanNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- stop
Send BooleanNotification When Hit Threshold - Reserved, not used for now.
- warning
Threshold Number - Reserved, not used for now.
ApplicationInsightsComponentDataVolumeCapResponse, ApplicationInsightsComponentDataVolumeCapResponseArgs
- Max
History doubleCap - Maximum daily data volume cap that the user can set for this component.
- Reset
Time int - Daily data volume cap UTC reset hour.
- Cap double
- Daily data volume cap in GB.
- Stop
Send boolNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- Stop
Send boolNotification When Hit Threshold - Reserved, not used for now.
- Warning
Threshold int - Reserved, not used for now.
- Max
History float64Cap - Maximum daily data volume cap that the user can set for this component.
- Reset
Time int - Daily data volume cap UTC reset hour.
- Cap float64
- Daily data volume cap in GB.
- Stop
Send boolNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- Stop
Send boolNotification When Hit Threshold - Reserved, not used for now.
- Warning
Threshold int - Reserved, not used for now.
- max
History DoubleCap - Maximum daily data volume cap that the user can set for this component.
- reset
Time Integer - Daily data volume cap UTC reset hour.
- cap Double
- Daily data volume cap in GB.
- stop
Send BooleanNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- stop
Send BooleanNotification When Hit Threshold - Reserved, not used for now.
- warning
Threshold Integer - Reserved, not used for now.
- max
History numberCap - Maximum daily data volume cap that the user can set for this component.
- reset
Time number - Daily data volume cap UTC reset hour.
- cap number
- Daily data volume cap in GB.
- stop
Send booleanNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- stop
Send booleanNotification When Hit Threshold - Reserved, not used for now.
- warning
Threshold number - Reserved, not used for now.
- max_
history_ floatcap - Maximum daily data volume cap that the user can set for this component.
- reset_
time int - Daily data volume cap UTC reset hour.
- cap float
- Daily data volume cap in GB.
- stop_
send_ boolnotification_ when_ hit_ cap - Do not send a notification email when the daily data volume cap is met.
- stop_
send_ boolnotification_ when_ hit_ threshold - Reserved, not used for now.
- warning_
threshold int - Reserved, not used for now.
- max
History NumberCap - Maximum daily data volume cap that the user can set for this component.
- reset
Time Number - Daily data volume cap UTC reset hour.
- cap Number
- Daily data volume cap in GB.
- stop
Send BooleanNotification When Hit Cap - Do not send a notification email when the daily data volume cap is met.
- stop
Send BooleanNotification When Hit Threshold - Reserved, not used for now.
- warning
Threshold Number - Reserved, not used for now.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:ComponentCurrentBillingFeature myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures
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