coralogix.TcoPoliciesTraces
Explore with Pulumi AI
Coralogix TCO-Policies-List. For more information - https://coralogix.com/docs/tco-optimizer-api.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.TcoPoliciesTraces;
import com.pulumi.coralogix.TcoPoliciesTracesArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesTracesPolicyArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesTracesPolicyActionsArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesTracesPolicyApplicationsArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesTracesPolicyServicesArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesTracesPolicySubsystemsArgs;
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 tcoPolicies = new TcoPoliciesTraces("tcoPolicies", TcoPoliciesTracesArgs.builder()
.policies(
TcoPoliciesTracesPolicyArgs.builder()
.actions(TcoPoliciesTracesPolicyActionsArgs.builder()
.names(
"action-name",
"action-name2")
.ruleType("is_not")
.build())
.applications(TcoPoliciesTracesPolicyApplicationsArgs.builder()
.names("prod")
.ruleType("starts_with")
.build())
.archiveRetentionId("e1c980d0-c910-4c54-8326-67f3cf95645a")
.name("Example tco_policy from terraform 1")
.priority("low")
.services(TcoPoliciesTracesPolicyServicesArgs.builder()
.names(
"service-name",
"service-name2")
.ruleType("is")
.build())
.subsystems(TcoPoliciesTracesPolicySubsystemsArgs.builder()
.names(
"mobile",
"web")
.ruleType("is")
.build())
.tags(Map.of("tags.http.method", Map.ofEntries(
Map.entry("names", "GET"),
Map.entry("ruleType", "includes")
)))
.build(),
TcoPoliciesTracesPolicyArgs.builder()
.actions(TcoPoliciesTracesPolicyActionsArgs.builder()
.names(
"action-name",
"action-name2")
.build())
.applications(TcoPoliciesTracesPolicyApplicationsArgs.builder()
.names("staging")
.ruleType("starts_with")
.build())
.name("Example tco_policy from terraform 2")
.priority("medium")
.services(TcoPoliciesTracesPolicyServicesArgs.builder()
.names(
"service-name",
"service-name2")
.build())
.subsystems(TcoPoliciesTracesPolicySubsystemsArgs.builder()
.names(
"mobile",
"web")
.ruleType("is_not")
.build())
.tags(Map.of("tags.http.method", Map.ofEntries(
Map.entry("names",
"GET",
"POST"),
Map.entry("ruleType", "is_not")
)))
.build(),
TcoPoliciesTracesPolicyArgs.builder()
.actions(TcoPoliciesTracesPolicyActionsArgs.builder()
.names(
"action-name",
"action-name2")
.build())
.applications(TcoPoliciesTracesPolicyApplicationsArgs.builder()
.names("staging")
.ruleType("starts_with")
.build())
.name("Example tco_policy from terraform 3")
.priority("medium")
.services(TcoPoliciesTracesPolicyServicesArgs.builder()
.names(
"service-name",
"service-name2")
.build())
.subsystems(TcoPoliciesTracesPolicySubsystemsArgs.builder()
.names(
"mobile",
"web")
.ruleType("is_not")
.build())
.tags(Map.of("tags.http.method", Map.ofEntries(
Map.entry("names",
"GET",
"POST"),
Map.entry("ruleType", "is_not")
)))
.build())
.build());
}
}
resources:
tcoPolicies:
type: coralogix:TcoPoliciesTraces
properties:
policies:
- actions:
names:
- action-name
- action-name2
ruleType: is_not
applications:
names:
- prod
ruleType: starts_with
archiveRetentionId: e1c980d0-c910-4c54-8326-67f3cf95645a
name: Example tco_policy from terraform 1
priority: low
services:
names:
- service-name
- service-name2
ruleType: is
subsystems:
names:
- mobile
- web
ruleType: is
tags:
tags.http.method:
- names:
- GET
ruleType: includes
- actions:
names:
- action-name
- action-name2
applications:
names:
- staging
ruleType: starts_with
name: Example tco_policy from terraform 2
priority: medium
services:
names:
- service-name
- service-name2
subsystems:
names:
- mobile
- web
ruleType: is_not
tags:
tags.http.method:
- names:
- GET
- POST
ruleType: is_not
- actions:
names:
- action-name
- action-name2
applications:
names:
- staging
ruleType: starts_with
name: Example tco_policy from terraform 3
priority: medium
services:
names:
- service-name
- service-name2
subsystems:
names:
- mobile
- web
ruleType: is_not
tags:
tags.http.method:
- names:
- GET
- POST
ruleType: is_not
Create TcoPoliciesTraces Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcoPoliciesTraces(name: string, args: TcoPoliciesTracesArgs, opts?: CustomResourceOptions);
@overload
def TcoPoliciesTraces(resource_name: str,
args: TcoPoliciesTracesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TcoPoliciesTraces(resource_name: str,
opts: Optional[ResourceOptions] = None,
policies: Optional[Sequence[TcoPoliciesTracesPolicyArgs]] = None)
func NewTcoPoliciesTraces(ctx *Context, name string, args TcoPoliciesTracesArgs, opts ...ResourceOption) (*TcoPoliciesTraces, error)
public TcoPoliciesTraces(string name, TcoPoliciesTracesArgs args, CustomResourceOptions? opts = null)
public TcoPoliciesTraces(String name, TcoPoliciesTracesArgs args)
public TcoPoliciesTraces(String name, TcoPoliciesTracesArgs args, CustomResourceOptions options)
type: coralogix:TcoPoliciesTraces
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 TcoPoliciesTracesArgs
- 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 TcoPoliciesTracesArgs
- 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 TcoPoliciesTracesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcoPoliciesTracesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcoPoliciesTracesArgs
- 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 tcoPoliciesTracesResource = new Coralogix.TcoPoliciesTraces("tcoPoliciesTracesResource", new()
{
Policies = new[]
{
new Coralogix.Inputs.TcoPoliciesTracesPolicyArgs
{
Name = "string",
Priority = "string",
Actions = new Coralogix.Inputs.TcoPoliciesTracesPolicyActionsArgs
{
Names = new[]
{
"string",
},
RuleType = "string",
},
Applications = new Coralogix.Inputs.TcoPoliciesTracesPolicyApplicationsArgs
{
Names = new[]
{
"string",
},
RuleType = "string",
},
ArchiveRetentionId = "string",
Description = "string",
Enabled = false,
Id = "string",
Order = 0,
Services = new Coralogix.Inputs.TcoPoliciesTracesPolicyServicesArgs
{
Names = new[]
{
"string",
},
RuleType = "string",
},
Subsystems = new Coralogix.Inputs.TcoPoliciesTracesPolicySubsystemsArgs
{
Names = new[]
{
"string",
},
RuleType = "string",
},
Tags =
{
{ "string", new Coralogix.Inputs.TcoPoliciesTracesPolicyTagsArgs
{
Names = new[]
{
"string",
},
RuleType = "string",
} },
},
},
},
});
example, err := coralogix.NewTcoPoliciesTraces(ctx, "tcoPoliciesTracesResource", &coralogix.TcoPoliciesTracesArgs{
Policies: coralogix.TcoPoliciesTracesPolicyArray{
&coralogix.TcoPoliciesTracesPolicyArgs{
Name: pulumi.String("string"),
Priority: pulumi.String("string"),
Actions: &coralogix.TcoPoliciesTracesPolicyActionsArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
RuleType: pulumi.String("string"),
},
Applications: &coralogix.TcoPoliciesTracesPolicyApplicationsArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
RuleType: pulumi.String("string"),
},
ArchiveRetentionId: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Id: pulumi.String("string"),
Order: pulumi.Float64(0),
Services: &coralogix.TcoPoliciesTracesPolicyServicesArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
RuleType: pulumi.String("string"),
},
Subsystems: &coralogix.TcoPoliciesTracesPolicySubsystemsArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
RuleType: pulumi.String("string"),
},
Tags: coralogix.TcoPoliciesTracesPolicyTagsMap{
"string": &coralogix.TcoPoliciesTracesPolicyTagsArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
RuleType: pulumi.String("string"),
},
},
},
},
})
var tcoPoliciesTracesResource = new TcoPoliciesTraces("tcoPoliciesTracesResource", TcoPoliciesTracesArgs.builder()
.policies(TcoPoliciesTracesPolicyArgs.builder()
.name("string")
.priority("string")
.actions(TcoPoliciesTracesPolicyActionsArgs.builder()
.names("string")
.ruleType("string")
.build())
.applications(TcoPoliciesTracesPolicyApplicationsArgs.builder()
.names("string")
.ruleType("string")
.build())
.archiveRetentionId("string")
.description("string")
.enabled(false)
.id("string")
.order(0)
.services(TcoPoliciesTracesPolicyServicesArgs.builder()
.names("string")
.ruleType("string")
.build())
.subsystems(TcoPoliciesTracesPolicySubsystemsArgs.builder()
.names("string")
.ruleType("string")
.build())
.tags(Map.of("string", Map.ofEntries(
Map.entry("names", "string"),
Map.entry("ruleType", "string")
)))
.build())
.build());
tco_policies_traces_resource = coralogix.TcoPoliciesTraces("tcoPoliciesTracesResource", policies=[{
"name": "string",
"priority": "string",
"actions": {
"names": ["string"],
"rule_type": "string",
},
"applications": {
"names": ["string"],
"rule_type": "string",
},
"archive_retention_id": "string",
"description": "string",
"enabled": False,
"id": "string",
"order": 0,
"services": {
"names": ["string"],
"rule_type": "string",
},
"subsystems": {
"names": ["string"],
"rule_type": "string",
},
"tags": {
"string": {
"names": ["string"],
"rule_type": "string",
},
},
}])
const tcoPoliciesTracesResource = new coralogix.TcoPoliciesTraces("tcoPoliciesTracesResource", {policies: [{
name: "string",
priority: "string",
actions: {
names: ["string"],
ruleType: "string",
},
applications: {
names: ["string"],
ruleType: "string",
},
archiveRetentionId: "string",
description: "string",
enabled: false,
id: "string",
order: 0,
services: {
names: ["string"],
ruleType: "string",
},
subsystems: {
names: ["string"],
ruleType: "string",
},
tags: {
string: {
names: ["string"],
ruleType: "string",
},
},
}]});
type: coralogix:TcoPoliciesTraces
properties:
policies:
- actions:
names:
- string
ruleType: string
applications:
names:
- string
ruleType: string
archiveRetentionId: string
description: string
enabled: false
id: string
name: string
order: 0
priority: string
services:
names:
- string
ruleType: string
subsystems:
names:
- string
ruleType: string
tags:
string:
names:
- string
ruleType: string
TcoPoliciesTraces 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 TcoPoliciesTraces resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the TcoPoliciesTraces 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 TcoPoliciesTraces Resource
Get an existing TcoPoliciesTraces 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?: TcoPoliciesTracesState, opts?: CustomResourceOptions): TcoPoliciesTraces
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
policies: Optional[Sequence[TcoPoliciesTracesPolicyArgs]] = None) -> TcoPoliciesTraces
func GetTcoPoliciesTraces(ctx *Context, name string, id IDInput, state *TcoPoliciesTracesState, opts ...ResourceOption) (*TcoPoliciesTraces, error)
public static TcoPoliciesTraces Get(string name, Input<string> id, TcoPoliciesTracesState? state, CustomResourceOptions? opts = null)
public static TcoPoliciesTraces get(String name, Output<String> id, TcoPoliciesTracesState state, CustomResourceOptions options)
resources: _: type: coralogix:TcoPoliciesTraces get: id: ${id}
- 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
TcoPoliciesTracesPolicy, TcoPoliciesTracesPolicyArgs
- Name string
- tco-policy name.
- Priority string
- The policy priority. Can be one of ["block" "high" "low" "medium"].
- Actions
Tco
Policies Traces Policy Actions - The actions to apply the policy on. Applies the policy on all the actions by default.
- Applications
Tco
Policies Traces Policy Applications - The applications to apply the policy on. Applies the policy on all the applications by default.
- Archive
Retention stringId - Allowing logs with a specific retention to be tagged.
- Description string
- The policy description
- Enabled bool
- Determines weather the policy will be enabled. True by default.
- Id string
- tco-policy ID.
- Order double
- The policy's order between the other policies.
- Services
Tco
Policies Traces Policy Services - The services to apply the policy on. Applies the policy on all the services by default.
- Subsystems
Tco
Policies Traces Policy Subsystems - The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
- Dictionary<string, Tco
Policies Traces Policy Tags> - The tags to apply the policy on. Applies the policy on all the tags by default.
- Name string
- tco-policy name.
- Priority string
- The policy priority. Can be one of ["block" "high" "low" "medium"].
- Actions
Tco
Policies Traces Policy Actions - The actions to apply the policy on. Applies the policy on all the actions by default.
- Applications
Tco
Policies Traces Policy Applications - The applications to apply the policy on. Applies the policy on all the applications by default.
- Archive
Retention stringId - Allowing logs with a specific retention to be tagged.
- Description string
- The policy description
- Enabled bool
- Determines weather the policy will be enabled. True by default.
- Id string
- tco-policy ID.
- Order float64
- The policy's order between the other policies.
- Services
Tco
Policies Traces Policy Services - The services to apply the policy on. Applies the policy on all the services by default.
- Subsystems
Tco
Policies Traces Policy Subsystems - The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
- map[string]Tco
Policies Traces Policy Tags - The tags to apply the policy on. Applies the policy on all the tags by default.
- name String
- tco-policy name.
- priority String
- The policy priority. Can be one of ["block" "high" "low" "medium"].
- actions
Tco
Policies Traces Policy Actions - The actions to apply the policy on. Applies the policy on all the actions by default.
- applications
Tco
Policies Traces Policy Applications - The applications to apply the policy on. Applies the policy on all the applications by default.
- archive
Retention StringId - Allowing logs with a specific retention to be tagged.
- description String
- The policy description
- enabled Boolean
- Determines weather the policy will be enabled. True by default.
- id String
- tco-policy ID.
- order Double
- The policy's order between the other policies.
- services
Tco
Policies Traces Policy Services - The services to apply the policy on. Applies the policy on all the services by default.
- subsystems
Tco
Policies Traces Policy Subsystems - The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
- Map<String,Tco
Policies Traces Policy Tags> - The tags to apply the policy on. Applies the policy on all the tags by default.
- name string
- tco-policy name.
- priority string
- The policy priority. Can be one of ["block" "high" "low" "medium"].
- actions
Tco
Policies Traces Policy Actions - The actions to apply the policy on. Applies the policy on all the actions by default.
- applications
Tco
Policies Traces Policy Applications - The applications to apply the policy on. Applies the policy on all the applications by default.
- archive
Retention stringId - Allowing logs with a specific retention to be tagged.
- description string
- The policy description
- enabled boolean
- Determines weather the policy will be enabled. True by default.
- id string
- tco-policy ID.
- order number
- The policy's order between the other policies.
- services
Tco
Policies Traces Policy Services - The services to apply the policy on. Applies the policy on all the services by default.
- subsystems
Tco
Policies Traces Policy Subsystems - The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
- {[key: string]: Tco
Policies Traces Policy Tags} - The tags to apply the policy on. Applies the policy on all the tags by default.
- name str
- tco-policy name.
- priority str
- The policy priority. Can be one of ["block" "high" "low" "medium"].
- actions
Tco
Policies Traces Policy Actions - The actions to apply the policy on. Applies the policy on all the actions by default.
- applications
Tco
Policies Traces Policy Applications - The applications to apply the policy on. Applies the policy on all the applications by default.
- archive_
retention_ strid - Allowing logs with a specific retention to be tagged.
- description str
- The policy description
- enabled bool
- Determines weather the policy will be enabled. True by default.
- id str
- tco-policy ID.
- order float
- The policy's order between the other policies.
- services
Tco
Policies Traces Policy Services - The services to apply the policy on. Applies the policy on all the services by default.
- subsystems
Tco
Policies Traces Policy Subsystems - The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
- Mapping[str, Tco
Policies Traces Policy Tags] - The tags to apply the policy on. Applies the policy on all the tags by default.
- name String
- tco-policy name.
- priority String
- The policy priority. Can be one of ["block" "high" "low" "medium"].
- actions Property Map
- The actions to apply the policy on. Applies the policy on all the actions by default.
- applications Property Map
- The applications to apply the policy on. Applies the policy on all the applications by default.
- archive
Retention StringId - Allowing logs with a specific retention to be tagged.
- description String
- The policy description
- enabled Boolean
- Determines weather the policy will be enabled. True by default.
- id String
- tco-policy ID.
- order Number
- The policy's order between the other policies.
- services Property Map
- The services to apply the policy on. Applies the policy on all the services by default.
- subsystems Property Map
- The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
- Map<Property Map>
- The tags to apply the policy on. Applies the policy on all the tags by default.
TcoPoliciesTracesPolicyActions, TcoPoliciesTracesPolicyActionsArgs
TcoPoliciesTracesPolicyApplications, TcoPoliciesTracesPolicyApplicationsArgs
TcoPoliciesTracesPolicyServices, TcoPoliciesTracesPolicyServicesArgs
TcoPoliciesTracesPolicySubsystems, TcoPoliciesTracesPolicySubsystemsArgs
TcoPoliciesTracesPolicyTags, TcoPoliciesTracesPolicyTagsArgs
Package Details
- Repository
- coralogix coralogix/terraform-provider-coralogix
- License
- Notes
- This Pulumi package is based on the
coralogix
Terraform Provider.