azure-native.insights.ComponentCurrentBillingFeature
Explore with Pulumi AI
An Application Insights component billing features Azure REST API version: 2015-05-01. Prior API version in Azure Native 1.x: 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/v2"
	"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 com.pulumi.azurenative.insights.inputs.ApplicationInsightsComponentDataVolumeCapArgs;
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(ApplicationInsightsComponentDataVolumeCapArgs.builder()
                .cap(100)
                .stopSendNotificationWhenHitCap(true)
                .build())
            .resourceGroupName("my-resource-group")
            .resourceName("my-component")
            .build());
    }
}
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",
});
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={
        "cap": 100,
        "stop_send_notification_when_hit_cap": True,
    },
    resource_group_name="my-resource-group",
    resource_name_="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 = new AzureNative.Insights.Inputs.ApplicationInsightsComponentDataVolumeCapArgs
    {
        Cap = 0,
        StopSendNotificationWhenHitCap = false,
        StopSendNotificationWhenHitThreshold = false,
        WarningThreshold = 0,
    },
});
example, err := insights.NewComponentCurrentBillingFeature(ctx, "componentCurrentBillingFeatureResource", &insights.ComponentCurrentBillingFeatureArgs{
	ResourceGroupName: pulumi.String("string"),
	ResourceName:      pulumi.String("string"),
	CurrentBillingFeatures: pulumi.StringArray{
		pulumi.String("string"),
	},
	DataVolumeCap: &insights.ApplicationInsightsComponentDataVolumeCapArgs{
		Cap:                                  pulumi.Float64(0),
		StopSendNotificationWhenHitCap:       pulumi.Bool(false),
		StopSendNotificationWhenHitThreshold: pulumi.Bool(false),
		WarningThreshold:                     pulumi.Int(0),
	},
})
var componentCurrentBillingFeatureResource = new ComponentCurrentBillingFeature("componentCurrentBillingFeatureResource", ComponentCurrentBillingFeatureArgs.builder()
    .resourceGroupName("string")
    .resourceName("string")
    .currentBillingFeatures("string")
    .dataVolumeCap(ApplicationInsightsComponentDataVolumeCapArgs.builder()
        .cap(0)
        .stopSendNotificationWhenHitCap(false)
        .stopSendNotificationWhenHitThreshold(false)
        .warningThreshold(0)
        .build())
    .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,
        "stop_send_notification_when_hit_cap": False,
        "stop_send_notification_when_hit_threshold": False,
        "warning_threshold": 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:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the Application Insights component resource.
- CurrentBilling List<string>Features 
- Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- DataVolume Pulumi.Cap Azure Native. Insights. Inputs. Application Insights Component Data Volume Cap 
- An Application Insights component daily data volume cap
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the Application Insights component resource.
- CurrentBilling []stringFeatures 
- Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- DataVolume ApplicationCap Insights Component Data Volume Cap Args 
- An Application Insights component daily data volume cap
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the Application Insights component resource.
- currentBilling List<String>Features 
- Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- dataVolume ApplicationCap Insights Component Data Volume Cap 
- An Application Insights component daily data volume cap
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- resourceName string
- The name of the Application Insights component resource.
- currentBilling string[]Features 
- Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- dataVolume 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
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the Application Insights component resource.
- currentBilling List<String>Features 
- Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- dataVolume 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.
- StopSend boolNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- StopSend boolNotification When Hit Threshold 
- Reserved, not used for now.
- WarningThreshold int
- Reserved, not used for now.
- Cap float64
- Daily data volume cap in GB.
- StopSend boolNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- StopSend boolNotification When Hit Threshold 
- Reserved, not used for now.
- WarningThreshold int
- Reserved, not used for now.
- cap Double
- Daily data volume cap in GB.
- stopSend BooleanNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- stopSend BooleanNotification When Hit Threshold 
- Reserved, not used for now.
- warningThreshold Integer
- Reserved, not used for now.
- cap number
- Daily data volume cap in GB.
- stopSend booleanNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- stopSend booleanNotification When Hit Threshold 
- Reserved, not used for now.
- warningThreshold 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.
- stopSend BooleanNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- stopSend BooleanNotification When Hit Threshold 
- Reserved, not used for now.
- warningThreshold Number
- Reserved, not used for now.
ApplicationInsightsComponentDataVolumeCapResponse, ApplicationInsightsComponentDataVolumeCapResponseArgs              
- MaxHistory doubleCap 
- Maximum daily data volume cap that the user can set for this component.
- ResetTime int
- Daily data volume cap UTC reset hour.
- Cap double
- Daily data volume cap in GB.
- StopSend boolNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- StopSend boolNotification When Hit Threshold 
- Reserved, not used for now.
- WarningThreshold int
- Reserved, not used for now.
- MaxHistory float64Cap 
- Maximum daily data volume cap that the user can set for this component.
- ResetTime int
- Daily data volume cap UTC reset hour.
- Cap float64
- Daily data volume cap in GB.
- StopSend boolNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- StopSend boolNotification When Hit Threshold 
- Reserved, not used for now.
- WarningThreshold int
- Reserved, not used for now.
- maxHistory DoubleCap 
- Maximum daily data volume cap that the user can set for this component.
- resetTime Integer
- Daily data volume cap UTC reset hour.
- cap Double
- Daily data volume cap in GB.
- stopSend BooleanNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- stopSend BooleanNotification When Hit Threshold 
- Reserved, not used for now.
- warningThreshold Integer
- Reserved, not used for now.
- maxHistory numberCap 
- Maximum daily data volume cap that the user can set for this component.
- resetTime number
- Daily data volume cap UTC reset hour.
- cap number
- Daily data volume cap in GB.
- stopSend booleanNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- stopSend booleanNotification When Hit Threshold 
- Reserved, not used for now.
- warningThreshold 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.
- maxHistory NumberCap 
- Maximum daily data volume cap that the user can set for this component.
- resetTime Number
- Daily data volume cap UTC reset hour.
- cap Number
- Daily data volume cap in GB.
- stopSend BooleanNotification When Hit Cap 
- Do not send a notification email when the daily data volume cap is met.
- stopSend BooleanNotification When Hit Threshold 
- Reserved, not used for now.
- warningThreshold 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 pulumi/pulumi-azure-native
- License
- Apache-2.0