1. Packages
  2. Azure Native
  3. API Docs
  4. insights
  5. ComponentCurrentBillingFeature
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.insights.ComponentCurrentBillingFeature

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    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 (
    	"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 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

    new ComponentCurrentBillingFeature(name: string, args: ComponentCurrentBillingFeatureArgs, opts?: CustomResourceOptions);
    @overload
    def ComponentCurrentBillingFeature(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       current_billing_features: Optional[Sequence[str]] = None,
                                       data_volume_cap: Optional[ApplicationInsightsComponentDataVolumeCapArgs] = None,
                                       resource_group_name: Optional[str] = None,
                                       resource_name_: Optional[str] = None)
    @overload
    def ComponentCurrentBillingFeature(resource_name: str,
                                       args: ComponentCurrentBillingFeatureArgs,
                                       opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi