import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Network Function Collector Policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West US 2", * }); * const exampleExpressRoutePort = new azure.network.ExpressRoutePort("example", { * name: "example-erp", * resourceGroupName: example.name, * location: example.location, * peeringLocation: "Equinix-Seattle-SE2", * bandwidthInGbps: 10, * encapsulation: "Dot1Q", * }); * const exampleExpressRouteCircuit = new azure.network.ExpressRouteCircuit("example", { * name: "example-erc", * location: example.location, * resourceGroupName: example.name, * expressRoutePortId: exampleExpressRoutePort.id, * bandwidthInGbps: 1, * sku: { * tier: "Standard", * family: "MeteredData", * }, * }); * const exampleExpressRouteCircuitPeering = new azure.network.ExpressRouteCircuitPeering("example", { * peeringType: "MicrosoftPeering", * expressRouteCircuitName: exampleExpressRouteCircuit.name, * resourceGroupName: example.name, * peerAsn: 100, * primaryPeerAddressPrefix: "192.168.199.0/30", * secondaryPeerAddressPrefix: "192.168.200.0/30", * vlanId: 300, * microsoftPeeringConfig: { * advertisedPublicPrefixes: ["123.6.0.0/24"], * }, * }); * const exampleAzureTrafficCollector = new azure.networkfunction.AzureTrafficCollector("example", { * name: "example-nfatc", * location: example.location, * resourceGroupName: example.name, * }, { * dependsOn: [exampleExpressRouteCircuitPeering], * }); * const exampleCollectorPolicy = new azure.networkfunction.CollectorPolicy("example", { * name: "example-nfcp", * trafficCollectorId: exampleAzureTrafficCollector.id, * location: example.location, * ipfxEmission: { * destinationTypes: "AzureMonitor", * }, * ipfxIngestion: { * sourceResourceIds: [exampleExpressRouteCircuit.id], * }, * tags: { * key: "value", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.NetworkFunction` - 2022-11-01 * * ## Import * * Network Function Collector Policy can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:networkfunction/collectorPolicy:CollectorPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.NetworkFunction/azureTrafficCollectors/azureTrafficCollector1/collectorPolicies/collectorPolicy1 * ``` */ export declare class CollectorPolicy extends pulumi.CustomResource { /** * Get an existing CollectorPolicy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CollectorPolicyState, opts?: pulumi.CustomResourceOptions): CollectorPolicy; /** * Returns true if the given object is an instance of CollectorPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CollectorPolicy; /** * An `ipfxEmission` block as defined below. Changing this forces a new Network Function Collector Policy to be created. */ readonly ipfxEmission: pulumi.Output; /** * An `ipfxIngestion` block as defined below. Changing this forces a new Network Function Collector Policy to be created. */ readonly ipfxIngestion: pulumi.Output; /** * Specifies the Azure Region where the Network Function Collector Policy should exist. Changing this forces a new Network Function Collector Policy to be created. */ readonly location: pulumi.Output; /** * Specifies the name which should be used for this Network Function Collector Policy. Changing this forces a new Network Function Collector Policy to be created. */ readonly name: pulumi.Output; /** * A mapping of tags which should be assigned to the Network Function Collector Policy. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the Azure Traffic Collector ID of the Network Function Collector Policy. Changing this forces a new Network Function Collector Policy to be created. */ readonly trafficCollectorId: pulumi.Output; /** * Create a CollectorPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CollectorPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CollectorPolicy resources. */ export interface CollectorPolicyState { /** * An `ipfxEmission` block as defined below. Changing this forces a new Network Function Collector Policy to be created. */ ipfxEmission?: pulumi.Input; /** * An `ipfxIngestion` block as defined below. Changing this forces a new Network Function Collector Policy to be created. */ ipfxIngestion?: pulumi.Input; /** * Specifies the Azure Region where the Network Function Collector Policy should exist. Changing this forces a new Network Function Collector Policy to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Network Function Collector Policy. Changing this forces a new Network Function Collector Policy to be created. */ name?: pulumi.Input; /** * A mapping of tags which should be assigned to the Network Function Collector Policy. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the Azure Traffic Collector ID of the Network Function Collector Policy. Changing this forces a new Network Function Collector Policy to be created. */ trafficCollectorId?: pulumi.Input; } /** * The set of arguments for constructing a CollectorPolicy resource. */ export interface CollectorPolicyArgs { /** * An `ipfxEmission` block as defined below. Changing this forces a new Network Function Collector Policy to be created. */ ipfxEmission: pulumi.Input; /** * An `ipfxIngestion` block as defined below. Changing this forces a new Network Function Collector Policy to be created. */ ipfxIngestion: pulumi.Input; /** * Specifies the Azure Region where the Network Function Collector Policy should exist. Changing this forces a new Network Function Collector Policy to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Network Function Collector Policy. Changing this forces a new Network Function Collector Policy to be created. */ name?: pulumi.Input; /** * A mapping of tags which should be assigned to the Network Function Collector Policy. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the Azure Traffic Collector ID of the Network Function Collector Policy. Changing this forces a new Network Function Collector Policy to be created. */ trafficCollectorId: pulumi.Input; }