wavefront.CloudIntegrationAzureActivityLog
Explore with Pulumi AI
Provides a Wavefront Cloud Integration for Azure Activity Logs. This allows Azure activity log cloud integrations to be created, updated, and deleted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
const azureActivityLog = new wavefront.CloudIntegrationAzureActivityLog("azure_activity_log", {
name: "Test Integration",
categoryFilters: ["ADMINISTRATIVE"],
clientId: "client-id2",
clientSecret: "client-secret2",
tenant: "my-tenant2",
});
import pulumi
import pulumi_wavefront as wavefront
azure_activity_log = wavefront.CloudIntegrationAzureActivityLog("azure_activity_log",
name="Test Integration",
category_filters=["ADMINISTRATIVE"],
client_id="client-id2",
client_secret="client-secret2",
tenant="my-tenant2")
package main
import (
"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wavefront.NewCloudIntegrationAzureActivityLog(ctx, "azure_activity_log", &wavefront.CloudIntegrationAzureActivityLogArgs{
Name: pulumi.String("Test Integration"),
CategoryFilters: pulumi.StringArray{
pulumi.String("ADMINISTRATIVE"),
},
ClientId: pulumi.String("client-id2"),
ClientSecret: pulumi.String("client-secret2"),
Tenant: pulumi.String("my-tenant2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;
return await Deployment.RunAsync(() =>
{
var azureActivityLog = new Wavefront.CloudIntegrationAzureActivityLog("azure_activity_log", new()
{
Name = "Test Integration",
CategoryFilters = new[]
{
"ADMINISTRATIVE",
},
ClientId = "client-id2",
ClientSecret = "client-secret2",
Tenant = "my-tenant2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.wavefront.CloudIntegrationAzureActivityLog;
import com.pulumi.wavefront.CloudIntegrationAzureActivityLogArgs;
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 azureActivityLog = new CloudIntegrationAzureActivityLog("azureActivityLog", CloudIntegrationAzureActivityLogArgs.builder()
.name("Test Integration")
.categoryFilters("ADMINISTRATIVE")
.clientId("client-id2")
.clientSecret("client-secret2")
.tenant("my-tenant2")
.build());
}
}
resources:
azureActivityLog:
type: wavefront:CloudIntegrationAzureActivityLog
name: azure_activity_log
properties:
name: Test Integration
categoryFilters:
- ADMINISTRATIVE
clientId: client-id2
clientSecret: client-secret2
tenant: my-tenant2
Create CloudIntegrationAzureActivityLog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudIntegrationAzureActivityLog(name: string, args: CloudIntegrationAzureActivityLogArgs, opts?: CustomResourceOptions);
@overload
def CloudIntegrationAzureActivityLog(resource_name: str,
args: CloudIntegrationAzureActivityLogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudIntegrationAzureActivityLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
service: Optional[str] = None,
tenant: Optional[str] = None,
additional_tags: Optional[Mapping[str, str]] = None,
category_filters: Optional[Sequence[str]] = None,
force_save: Optional[bool] = None,
name: Optional[str] = None,
service_refresh_rate_in_minutes: Optional[int] = None)
func NewCloudIntegrationAzureActivityLog(ctx *Context, name string, args CloudIntegrationAzureActivityLogArgs, opts ...ResourceOption) (*CloudIntegrationAzureActivityLog, error)
public CloudIntegrationAzureActivityLog(string name, CloudIntegrationAzureActivityLogArgs args, CustomResourceOptions? opts = null)
public CloudIntegrationAzureActivityLog(String name, CloudIntegrationAzureActivityLogArgs args)
public CloudIntegrationAzureActivityLog(String name, CloudIntegrationAzureActivityLogArgs args, CustomResourceOptions options)
type: wavefront:CloudIntegrationAzureActivityLog
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 CloudIntegrationAzureActivityLogArgs
- 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 CloudIntegrationAzureActivityLogArgs
- 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 CloudIntegrationAzureActivityLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudIntegrationAzureActivityLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudIntegrationAzureActivityLogArgs
- 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 cloudIntegrationAzureActivityLogResource = new Wavefront.CloudIntegrationAzureActivityLog("cloudIntegrationAzureActivityLogResource", new()
{
ClientId = "string",
ClientSecret = "string",
Service = "string",
Tenant = "string",
AdditionalTags =
{
{ "string", "string" },
},
CategoryFilters = new[]
{
"string",
},
ForceSave = false,
Name = "string",
ServiceRefreshRateInMinutes = 0,
});
example, err := wavefront.NewCloudIntegrationAzureActivityLog(ctx, "cloudIntegrationAzureActivityLogResource", &wavefront.CloudIntegrationAzureActivityLogArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
Service: pulumi.String("string"),
Tenant: pulumi.String("string"),
AdditionalTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
CategoryFilters: pulumi.StringArray{
pulumi.String("string"),
},
ForceSave: pulumi.Bool(false),
Name: pulumi.String("string"),
ServiceRefreshRateInMinutes: pulumi.Int(0),
})
var cloudIntegrationAzureActivityLogResource = new CloudIntegrationAzureActivityLog("cloudIntegrationAzureActivityLogResource", CloudIntegrationAzureActivityLogArgs.builder()
.clientId("string")
.clientSecret("string")
.service("string")
.tenant("string")
.additionalTags(Map.of("string", "string"))
.categoryFilters("string")
.forceSave(false)
.name("string")
.serviceRefreshRateInMinutes(0)
.build());
cloud_integration_azure_activity_log_resource = wavefront.CloudIntegrationAzureActivityLog("cloudIntegrationAzureActivityLogResource",
client_id="string",
client_secret="string",
service="string",
tenant="string",
additional_tags={
"string": "string",
},
category_filters=["string"],
force_save=False,
name="string",
service_refresh_rate_in_minutes=0)
const cloudIntegrationAzureActivityLogResource = new wavefront.CloudIntegrationAzureActivityLog("cloudIntegrationAzureActivityLogResource", {
clientId: "string",
clientSecret: "string",
service: "string",
tenant: "string",
additionalTags: {
string: "string",
},
categoryFilters: ["string"],
forceSave: false,
name: "string",
serviceRefreshRateInMinutes: 0,
});
type: wavefront:CloudIntegrationAzureActivityLog
properties:
additionalTags:
string: string
categoryFilters:
- string
clientId: string
clientSecret: string
forceSave: false
name: string
service: string
serviceRefreshRateInMinutes: 0
tenant: string
CloudIntegrationAzureActivityLog 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 CloudIntegrationAzureActivityLog resource accepts the following input properties:
- Client
Id string - Client ID for an Azure service account within your project.
- Client
Secret string - Client secret for an Azure service account within your project.
- Service string
- A value denoting which cloud service this service integrates with.
- Tenant string
- Tenant ID for an Azure service account within your project.
- Dictionary<string, string>
- A list of point tag key-values to add to every point ingested using this integration.
- Category
Filters List<string> - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- Force
Save bool - Forces this resource to save, even if errors are present.
- Name string
- The human-readable name of this integration.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- Client
Id string - Client ID for an Azure service account within your project.
- Client
Secret string - Client secret for an Azure service account within your project.
- Service string
- A value denoting which cloud service this service integrates with.
- Tenant string
- Tenant ID for an Azure service account within your project.
- map[string]string
- A list of point tag key-values to add to every point ingested using this integration.
- Category
Filters []string - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- Force
Save bool - Forces this resource to save, even if errors are present.
- Name string
- The human-readable name of this integration.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- client
Id String - Client ID for an Azure service account within your project.
- client
Secret String - Client secret for an Azure service account within your project.
- service String
- A value denoting which cloud service this service integrates with.
- tenant String
- Tenant ID for an Azure service account within your project.
- Map<String,String>
- A list of point tag key-values to add to every point ingested using this integration.
- category
Filters List<String> - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- name String
- The human-readable name of this integration.
- service
Refresh IntegerRate In Minutes - How often, in minutes, to refresh the service.
- client
Id string - Client ID for an Azure service account within your project.
- client
Secret string - Client secret for an Azure service account within your project.
- service string
- A value denoting which cloud service this service integrates with.
- tenant string
- Tenant ID for an Azure service account within your project.
- {[key: string]: string}
- A list of point tag key-values to add to every point ingested using this integration.
- category
Filters string[] - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- force
Save boolean - Forces this resource to save, even if errors are present.
- name string
- The human-readable name of this integration.
- service
Refresh numberRate In Minutes - How often, in minutes, to refresh the service.
- client_
id str - Client ID for an Azure service account within your project.
- client_
secret str - Client secret for an Azure service account within your project.
- service str
- A value denoting which cloud service this service integrates with.
- tenant str
- Tenant ID for an Azure service account within your project.
- Mapping[str, str]
- A list of point tag key-values to add to every point ingested using this integration.
- category_
filters Sequence[str] - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- force_
save bool - Forces this resource to save, even if errors are present.
- name str
- The human-readable name of this integration.
- service_
refresh_ intrate_ in_ minutes - How often, in minutes, to refresh the service.
- client
Id String - Client ID for an Azure service account within your project.
- client
Secret String - Client secret for an Azure service account within your project.
- service String
- A value denoting which cloud service this service integrates with.
- tenant String
- Tenant ID for an Azure service account within your project.
- Map<String>
- A list of point tag key-values to add to every point ingested using this integration.
- category
Filters List<String> - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- name String
- The human-readable name of this integration.
- service
Refresh NumberRate In Minutes - How often, in minutes, to refresh the service.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudIntegrationAzureActivityLog 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.
Look up Existing CloudIntegrationAzureActivityLog Resource
Get an existing CloudIntegrationAzureActivityLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CloudIntegrationAzureActivityLogState, opts?: CustomResourceOptions): CloudIntegrationAzureActivityLog
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
additional_tags: Optional[Mapping[str, str]] = None,
category_filters: Optional[Sequence[str]] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
force_save: Optional[bool] = None,
name: Optional[str] = None,
service: Optional[str] = None,
service_refresh_rate_in_minutes: Optional[int] = None,
tenant: Optional[str] = None) -> CloudIntegrationAzureActivityLog
func GetCloudIntegrationAzureActivityLog(ctx *Context, name string, id IDInput, state *CloudIntegrationAzureActivityLogState, opts ...ResourceOption) (*CloudIntegrationAzureActivityLog, error)
public static CloudIntegrationAzureActivityLog Get(string name, Input<string> id, CloudIntegrationAzureActivityLogState? state, CustomResourceOptions? opts = null)
public static CloudIntegrationAzureActivityLog get(String name, Output<String> id, CloudIntegrationAzureActivityLogState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Dictionary<string, string>
- A list of point tag key-values to add to every point ingested using this integration.
- Category
Filters List<string> - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- Client
Id string - Client ID for an Azure service account within your project.
- Client
Secret string - Client secret for an Azure service account within your project.
- Force
Save bool - Forces this resource to save, even if errors are present.
- Name string
- The human-readable name of this integration.
- Service string
- A value denoting which cloud service this service integrates with.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- Tenant string
- Tenant ID for an Azure service account within your project.
- map[string]string
- A list of point tag key-values to add to every point ingested using this integration.
- Category
Filters []string - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- Client
Id string - Client ID for an Azure service account within your project.
- Client
Secret string - Client secret for an Azure service account within your project.
- Force
Save bool - Forces this resource to save, even if errors are present.
- Name string
- The human-readable name of this integration.
- Service string
- A value denoting which cloud service this service integrates with.
- Service
Refresh intRate In Minutes - How often, in minutes, to refresh the service.
- Tenant string
- Tenant ID for an Azure service account within your project.
- Map<String,String>
- A list of point tag key-values to add to every point ingested using this integration.
- category
Filters List<String> - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- client
Id String - Client ID for an Azure service account within your project.
- client
Secret String - Client secret for an Azure service account within your project.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- name String
- The human-readable name of this integration.
- service String
- A value denoting which cloud service this service integrates with.
- service
Refresh IntegerRate In Minutes - How often, in minutes, to refresh the service.
- tenant String
- Tenant ID for an Azure service account within your project.
- {[key: string]: string}
- A list of point tag key-values to add to every point ingested using this integration.
- category
Filters string[] - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- client
Id string - Client ID for an Azure service account within your project.
- client
Secret string - Client secret for an Azure service account within your project.
- force
Save boolean - Forces this resource to save, even if errors are present.
- name string
- The human-readable name of this integration.
- service string
- A value denoting which cloud service this service integrates with.
- service
Refresh numberRate In Minutes - How often, in minutes, to refresh the service.
- tenant string
- Tenant ID for an Azure service account within your project.
- Mapping[str, str]
- A list of point tag key-values to add to every point ingested using this integration.
- category_
filters Sequence[str] - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- client_
id str - Client ID for an Azure service account within your project.
- client_
secret str - Client secret for an Azure service account within your project.
- force_
save bool - Forces this resource to save, even if errors are present.
- name str
- The human-readable name of this integration.
- service str
- A value denoting which cloud service this service integrates with.
- service_
refresh_ intrate_ in_ minutes - How often, in minutes, to refresh the service.
- tenant str
- Tenant ID for an Azure service account within your project.
- Map<String>
- A list of point tag key-values to add to every point ingested using this integration.
- category
Filters List<String> - A list of Azure services (such as Microsoft.Compute/virtualMachines) from which to pull metrics.
- client
Id String - Client ID for an Azure service account within your project.
- client
Secret String - Client secret for an Azure service account within your project.
- force
Save Boolean - Forces this resource to save, even if errors are present.
- name String
- The human-readable name of this integration.
- service String
- A value denoting which cloud service this service integrates with.
- service
Refresh NumberRate In Minutes - How often, in minutes, to refresh the service.
- tenant String
- Tenant ID for an Azure service account within your project.
Import
Azure Activity Log Cloud Integrations can be imported by using the id
, e.g.:
$ pulumi import wavefront:index/cloudIntegrationAzureActivityLog:CloudIntegrationAzureActivityLog azure_al a411c16b-3cf7-4f03-bf11-8ca05aab898d
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Wavefront pulumi/pulumi-wavefront
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
wavefront
Terraform Provider.