chronosphere.LogAllocationConfig
Explore with Pulumi AI
Create LogAllocationConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogAllocationConfig(name: string, args: LogAllocationConfigArgs, opts?: CustomResourceOptions);
@overload
def LogAllocationConfig(resource_name: str,
args: LogAllocationConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogAllocationConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_dataset: Optional[LogAllocationConfigDefaultDatasetArgs] = None,
dataset_allocations: Optional[Sequence[LogAllocationConfigDatasetAllocationArgs]] = None)
func NewLogAllocationConfig(ctx *Context, name string, args LogAllocationConfigArgs, opts ...ResourceOption) (*LogAllocationConfig, error)
public LogAllocationConfig(string name, LogAllocationConfigArgs args, CustomResourceOptions? opts = null)
public LogAllocationConfig(String name, LogAllocationConfigArgs args)
public LogAllocationConfig(String name, LogAllocationConfigArgs args, CustomResourceOptions options)
type: chronosphere:LogAllocationConfig
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 LogAllocationConfigArgs
- 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 LogAllocationConfigArgs
- 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 LogAllocationConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogAllocationConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogAllocationConfigArgs
- 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 logAllocationConfigResource = new Pulumi.LogAllocationConfig("logAllocationConfigResource", new()
{
DefaultDataset = new Pulumi.Inputs.LogAllocationConfigDefaultDatasetArgs
{
Allocation = new Pulumi.Inputs.LogAllocationConfigDefaultDatasetAllocationArgs
{
PercentOfLicense = 0,
},
Priorities = new Pulumi.Inputs.LogAllocationConfigDefaultDatasetPrioritiesArgs
{
HighPriorityFilters = new[]
{
new Pulumi.Inputs.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs
{
Query = "string",
},
},
LowPriorityFilters = new[]
{
new Pulumi.Inputs.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs
{
Query = "string",
},
},
},
},
DatasetAllocations = new[]
{
new Pulumi.Inputs.LogAllocationConfigDatasetAllocationArgs
{
Allocation = new Pulumi.Inputs.LogAllocationConfigDatasetAllocationAllocationArgs
{
PercentOfLicense = 0,
},
DatasetId = "string",
Priorities = new Pulumi.Inputs.LogAllocationConfigDatasetAllocationPrioritiesArgs
{
HighPriorityFilters = new[]
{
new Pulumi.Inputs.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs
{
Query = "string",
},
},
LowPriorityFilters = new[]
{
new Pulumi.Inputs.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs
{
Query = "string",
},
},
},
},
},
});
example, err := chronosphere.NewLogAllocationConfig(ctx, "logAllocationConfigResource", &chronosphere.LogAllocationConfigArgs{
DefaultDataset: &chronosphere.LogAllocationConfigDefaultDatasetArgs{
Allocation: &chronosphere.LogAllocationConfigDefaultDatasetAllocationArgs{
PercentOfLicense: pulumi.Float64(0),
},
Priorities: &chronosphere.LogAllocationConfigDefaultDatasetPrioritiesArgs{
HighPriorityFilters: chronosphere.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray{
&chronosphere.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs{
Query: pulumi.String("string"),
},
},
LowPriorityFilters: chronosphere.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray{
&chronosphere.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs{
Query: pulumi.String("string"),
},
},
},
},
DatasetAllocations: chronosphere.LogAllocationConfigDatasetAllocationArray{
&chronosphere.LogAllocationConfigDatasetAllocationArgs{
Allocation: &chronosphere.LogAllocationConfigDatasetAllocationAllocationArgs{
PercentOfLicense: pulumi.Float64(0),
},
DatasetId: pulumi.String("string"),
Priorities: &chronosphere.LogAllocationConfigDatasetAllocationPrioritiesArgs{
HighPriorityFilters: chronosphere.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray{
&chronosphere.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs{
Query: pulumi.String("string"),
},
},
LowPriorityFilters: chronosphere.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray{
&chronosphere.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs{
Query: pulumi.String("string"),
},
},
},
},
},
})
var logAllocationConfigResource = new LogAllocationConfig("logAllocationConfigResource", LogAllocationConfigArgs.builder()
.defaultDataset(LogAllocationConfigDefaultDatasetArgs.builder()
.allocation(LogAllocationConfigDefaultDatasetAllocationArgs.builder()
.percentOfLicense(0)
.build())
.priorities(LogAllocationConfigDefaultDatasetPrioritiesArgs.builder()
.highPriorityFilters(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.builder()
.query("string")
.build())
.lowPriorityFilters(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.builder()
.query("string")
.build())
.build())
.build())
.datasetAllocations(LogAllocationConfigDatasetAllocationArgs.builder()
.allocation(LogAllocationConfigDatasetAllocationAllocationArgs.builder()
.percentOfLicense(0)
.build())
.datasetId("string")
.priorities(LogAllocationConfigDatasetAllocationPrioritiesArgs.builder()
.highPriorityFilters(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.builder()
.query("string")
.build())
.lowPriorityFilters(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.builder()
.query("string")
.build())
.build())
.build())
.build());
log_allocation_config_resource = chronosphere.LogAllocationConfig("logAllocationConfigResource",
default_dataset={
"allocation": {
"percent_of_license": 0,
},
"priorities": {
"high_priority_filters": [{
"query": "string",
}],
"low_priority_filters": [{
"query": "string",
}],
},
},
dataset_allocations=[{
"allocation": {
"percent_of_license": 0,
},
"dataset_id": "string",
"priorities": {
"high_priority_filters": [{
"query": "string",
}],
"low_priority_filters": [{
"query": "string",
}],
},
}])
const logAllocationConfigResource = new chronosphere.LogAllocationConfig("logAllocationConfigResource", {
defaultDataset: {
allocation: {
percentOfLicense: 0,
},
priorities: {
highPriorityFilters: [{
query: "string",
}],
lowPriorityFilters: [{
query: "string",
}],
},
},
datasetAllocations: [{
allocation: {
percentOfLicense: 0,
},
datasetId: "string",
priorities: {
highPriorityFilters: [{
query: "string",
}],
lowPriorityFilters: [{
query: "string",
}],
},
}],
});
type: chronosphere:LogAllocationConfig
properties:
datasetAllocations:
- allocation:
percentOfLicense: 0
datasetId: string
priorities:
highPriorityFilters:
- query: string
lowPriorityFilters:
- query: string
defaultDataset:
allocation:
percentOfLicense: 0
priorities:
highPriorityFilters:
- query: string
lowPriorityFilters:
- query: string
LogAllocationConfig 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 LogAllocationConfig resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the LogAllocationConfig 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 LogAllocationConfig Resource
Get an existing LogAllocationConfig 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?: LogAllocationConfigState, opts?: CustomResourceOptions): LogAllocationConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dataset_allocations: Optional[Sequence[LogAllocationConfigDatasetAllocationArgs]] = None,
default_dataset: Optional[LogAllocationConfigDefaultDatasetArgs] = None) -> LogAllocationConfig
func GetLogAllocationConfig(ctx *Context, name string, id IDInput, state *LogAllocationConfigState, opts ...ResourceOption) (*LogAllocationConfig, error)
public static LogAllocationConfig Get(string name, Input<string> id, LogAllocationConfigState? state, CustomResourceOptions? opts = null)
public static LogAllocationConfig get(String name, Output<String> id, LogAllocationConfigState 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.
Supporting Types
LogAllocationConfigDatasetAllocation, LogAllocationConfigDatasetAllocationArgs
LogAllocationConfigDatasetAllocationAllocation, LogAllocationConfigDatasetAllocationAllocationArgs
- Percent
Of doubleLicense
- Percent
Of float64License
- percent
Of DoubleLicense
- percent
Of numberLicense
- percent_
of_ floatlicense
- percent
Of NumberLicense
LogAllocationConfigDatasetAllocationPriorities, LogAllocationConfigDatasetAllocationPrioritiesArgs
LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter, LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs
- Query string
- Query string
- query String
- query string
- query str
- query String
LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter, LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs
- Query string
- Query string
- query String
- query string
- query str
- query String
LogAllocationConfigDefaultDataset, LogAllocationConfigDefaultDatasetArgs
LogAllocationConfigDefaultDatasetAllocation, LogAllocationConfigDefaultDatasetAllocationArgs
- Percent
Of doubleLicense
- Percent
Of float64License
- percent
Of DoubleLicense
- percent
Of numberLicense
- percent_
of_ floatlicense
- percent
Of NumberLicense
LogAllocationConfigDefaultDatasetPriorities, LogAllocationConfigDefaultDatasetPrioritiesArgs
LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter, LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs
- Query string
- Query string
- query String
- query string
- query str
- query String
LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter, LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs
- Query string
- Query string
- query String
- query string
- query str
- query String
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.