1. Packages
  2. Azure Native v1
  3. API Docs
  4. insights
  5. ComponentCurrentBillingFeature
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.insights.ComponentCurrentBillingFeature

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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

    The ComponentCurrentBillingFeature resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the Application Insights component resource.
    CurrentBillingFeatures List<string>
    Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
    DataVolumeCap Pulumi.AzureNative.Insights.Inputs.ApplicationInsightsComponentDataVolumeCap
    An Application Insights component daily data volume cap
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the Application Insights component resource.
    CurrentBillingFeatures []string
    Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
    DataVolumeCap ApplicationInsightsComponentDataVolumeCapArgs
    An Application Insights component daily data volume cap
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the Application Insights component resource.
    currentBillingFeatures List<String>
    Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
    dataVolumeCap ApplicationInsightsComponentDataVolumeCap
    An Application Insights component daily data volume cap
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    resourceName string
    The name of the Application Insights component resource.
    currentBillingFeatures string[]
    Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
    dataVolumeCap ApplicationInsightsComponentDataVolumeCap
    An Application Insights component daily data volume cap
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    resource_name str
    The name of the Application Insights component resource.
    current_billing_features Sequence[str]
    Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
    data_volume_cap ApplicationInsightsComponentDataVolumeCapArgs
    An Application Insights component daily data volume cap
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the Application Insights component resource.
    currentBillingFeatures List<String>
    Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'.
    dataVolumeCap Property Map
    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.
    StopSendNotificationWhenHitCap bool
    Do not send a notification email when the daily data volume cap is met.
    StopSendNotificationWhenHitThreshold bool
    Reserved, not used for now.
    WarningThreshold int
    Reserved, not used for now.
    Cap float64
    Daily data volume cap in GB.
    StopSendNotificationWhenHitCap bool
    Do not send a notification email when the daily data volume cap is met.
    StopSendNotificationWhenHitThreshold bool
    Reserved, not used for now.
    WarningThreshold int
    Reserved, not used for now.
    cap Double
    Daily data volume cap in GB.
    stopSendNotificationWhenHitCap Boolean
    Do not send a notification email when the daily data volume cap is met.
    stopSendNotificationWhenHitThreshold Boolean
    Reserved, not used for now.
    warningThreshold Integer
    Reserved, not used for now.
    cap number
    Daily data volume cap in GB.
    stopSendNotificationWhenHitCap boolean
    Do not send a notification email when the daily data volume cap is met.
    stopSendNotificationWhenHitThreshold boolean
    Reserved, not used for now.
    warningThreshold number
    Reserved, not used for now.
    cap float
    Daily data volume cap in GB.
    stop_send_notification_when_hit_cap bool
    Do not send a notification email when the daily data volume cap is met.
    stop_send_notification_when_hit_threshold bool
    Reserved, not used for now.
    warning_threshold int
    Reserved, not used for now.
    cap Number
    Daily data volume cap in GB.
    stopSendNotificationWhenHitCap Boolean
    Do not send a notification email when the daily data volume cap is met.
    stopSendNotificationWhenHitThreshold Boolean
    Reserved, not used for now.
    warningThreshold Number
    Reserved, not used for now.

    ApplicationInsightsComponentDataVolumeCapResponse, ApplicationInsightsComponentDataVolumeCapResponseArgs

    MaxHistoryCap double
    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.
    StopSendNotificationWhenHitCap bool
    Do not send a notification email when the daily data volume cap is met.
    StopSendNotificationWhenHitThreshold bool
    Reserved, not used for now.
    WarningThreshold int
    Reserved, not used for now.
    MaxHistoryCap float64
    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.
    StopSendNotificationWhenHitCap bool
    Do not send a notification email when the daily data volume cap is met.
    StopSendNotificationWhenHitThreshold bool
    Reserved, not used for now.
    WarningThreshold int
    Reserved, not used for now.
    maxHistoryCap Double
    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.
    stopSendNotificationWhenHitCap Boolean
    Do not send a notification email when the daily data volume cap is met.
    stopSendNotificationWhenHitThreshold Boolean
    Reserved, not used for now.
    warningThreshold Integer
    Reserved, not used for now.
    maxHistoryCap number
    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.
    stopSendNotificationWhenHitCap boolean
    Do not send a notification email when the daily data volume cap is met.
    stopSendNotificationWhenHitThreshold boolean
    Reserved, not used for now.
    warningThreshold number
    Reserved, not used for now.
    max_history_cap float
    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_notification_when_hit_cap bool
    Do not send a notification email when the daily data volume cap is met.
    stop_send_notification_when_hit_threshold bool
    Reserved, not used for now.
    warning_threshold int
    Reserved, not used for now.
    maxHistoryCap Number
    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.
    stopSendNotificationWhenHitCap Boolean
    Do not send a notification email when the daily data volume cap is met.
    stopSendNotificationWhenHitThreshold Boolean
    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-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi