From 419fd797c56b451b83f3f37a5a99298010318a04 Mon Sep 17 00:00:00 2001 From: Adam Schepis Date: Mon, 9 Sep 2024 10:37:42 -0400 Subject: [PATCH] Fix python package name and update to latest tf provider version --- .../bridge-metadata.json | 108 +- .../pulumi-resource-chronosphere/schema.json | 817 +++- provider/go.mod | 3 +- provider/go.sum | 2 + provider/resources.go | 11 +- sdk/dotnet/Inputs/DatasetConfigurationArgs.cs | 3 + .../Inputs/DatasetConfigurationGetArgs.cs | 3 + .../DatasetConfigurationLogDatasetArgs.cs | 24 + .../DatasetConfigurationLogDatasetGetArgs.cs | 24 + ...onfigurationLogDatasetMatchCriteriaArgs.cs | 24 + ...igurationLogDatasetMatchCriteriaGetArgs.cs | 24 + ...rationTraceDatasetMatchCriteriaSpanArgs.cs | 9 - ...aceDatasetMatchCriteriaSpanDurationArgs.cs | 6 - ...DatasetMatchCriteriaSpanDurationGetArgs.cs | 6 - ...ionTraceDatasetMatchCriteriaSpanGetArgs.cs | 9 - ...ceDatasetMatchCriteriaTraceDurationArgs.cs | 6 - ...atasetMatchCriteriaTraceDurationGetArgs.cs | 6 - ...onConfigDatasetAllocationAllocationArgs.cs | 24 + ...onfigDatasetAllocationAllocationGetArgs.cs | 24 + ...ogAllocationConfigDatasetAllocationArgs.cs | 30 + ...llocationConfigDatasetAllocationGetArgs.cs | 30 + ...onConfigDatasetAllocationPrioritiesArgs.cs | 37 + ...onfigDatasetAllocationPrioritiesGetArgs.cs | 37 + ...ocationPrioritiesHighPriorityFilterArgs.cs | 24 + ...tionPrioritiesHighPriorityFilterGetArgs.cs | 24 + ...locationPrioritiesLowPriorityFilterArgs.cs | 24 + ...ationPrioritiesLowPriorityFilterGetArgs.cs | 24 + ...ationConfigDefaultDatasetAllocationArgs.cs | 24 + ...onConfigDefaultDatasetAllocationGetArgs.cs | 24 + .../LogAllocationConfigDefaultDatasetArgs.cs | 27 + ...ogAllocationConfigDefaultDatasetGetArgs.cs | 27 + ...ationConfigDefaultDatasetPrioritiesArgs.cs | 37 + ...onConfigDefaultDatasetPrioritiesGetArgs.cs | 37 + ...DatasetPrioritiesHighPriorityFilterArgs.cs | 24 + ...asetPrioritiesHighPriorityFilterGetArgs.cs | 24 + ...tDatasetPrioritiesLowPriorityFilterArgs.cs | 24 + ...tasetPrioritiesLowPriorityFilterGetArgs.cs | 24 + .../Inputs/LogscaleActionEmailActionArgs.cs | 41 + .../LogscaleActionEmailActionGetArgs.cs | 41 + .../Inputs/LogscaleActionHumioActionArgs.cs | 24 + .../LogscaleActionHumioActionGetArgs.cs | 24 + .../LogscaleActionOpsGenieActionArgs.cs | 30 + .../LogscaleActionOpsGenieActionGetArgs.cs | 30 + .../LogscaleActionPagerDutyActionArgs.cs | 30 + .../LogscaleActionPagerDutyActionGetArgs.cs | 30 + .../Inputs/LogscaleActionSlackActionArgs.cs | 35 + .../LogscaleActionSlackActionGetArgs.cs | 35 + ...ogscaleActionSlackPostMessageActionArgs.cs | 43 + ...caleActionSlackPostMessageActionGetArgs.cs | 43 + .../LogscaleActionUploadFileActionArgs.cs | 24 + .../LogscaleActionUploadFileActionGetArgs.cs | 24 + .../LogscaleActionVictorOpsActionArgs.cs | 30 + .../LogscaleActionVictorOpsActionGetArgs.cs | 30 + .../Inputs/LogscaleActionWebhookActionArgs.cs | 44 + .../LogscaleActionWebhookActionGetArgs.cs | 44 + ...rcePoolsConfigDefaultPoolAllocationArgs.cs | 12 +- ...nfigDefaultPoolAllocationFixedValueArgs.cs | 27 + ...gDefaultPoolAllocationFixedValueGetArgs.cs | 27 + ...PoolsConfigDefaultPoolAllocationGetArgs.cs | 12 +- .../ResourcePoolsConfigDefaultPoolArgs.cs | 4 +- .../ResourcePoolsConfigDefaultPoolGetArgs.cs | 4 +- .../ResourcePoolsConfigPoolAllocationArgs.cs | 12 +- ...PoolsConfigPoolAllocationFixedValueArgs.cs | 27 + ...lsConfigPoolAllocationFixedValueGetArgs.cs | 27 + ...esourcePoolsConfigPoolAllocationGetArgs.cs | 12 +- .../Inputs/ResourcePoolsConfigPoolArgs.cs | 4 +- .../Inputs/ResourcePoolsConfigPoolGetArgs.cs | 4 +- .../TraceMetricsRuleTraceFilterSpanArgs.cs | 9 - ...eMetricsRuleTraceFilterSpanDurationArgs.cs | 6 - ...tricsRuleTraceFilterSpanDurationGetArgs.cs | 6 - .../TraceMetricsRuleTraceFilterSpanGetArgs.cs | 9 - ...MetricsRuleTraceFilterTraceDurationArgs.cs | 6 - ...ricsRuleTraceFilterTraceDurationGetArgs.cs | 6 - ...raceTailSamplingRulesRuleFilterSpanArgs.cs | 9 - ...SamplingRulesRuleFilterSpanDurationArgs.cs | 6 - ...plingRulesRuleFilterSpanDurationGetArgs.cs | 6 - ...eTailSamplingRulesRuleFilterSpanGetArgs.cs | 9 - ...amplingRulesRuleFilterTraceDurationArgs.cs | 6 - ...lingRulesRuleFilterTraceDurationGetArgs.cs | 6 - sdk/dotnet/LogAllocationConfig.cs | 103 + sdk/dotnet/LogscaleAction.cs | 183 + sdk/dotnet/LogscaleAlert.cs | 239 ++ sdk/dotnet/Outputs/DatasetConfiguration.cs | 4 + .../Outputs/DatasetConfigurationLogDataset.cs | 25 + ...setConfigurationLogDatasetMatchCriteria.cs | 25 + ...figurationTraceDatasetMatchCriteriaSpan.cs | 4 - ...onTraceDatasetMatchCriteriaSpanDuration.cs | 8 - ...nTraceDatasetMatchCriteriaTraceDuration.cs | 8 - .../LogAllocationConfigDatasetAllocation.cs | 34 + ...cationConfigDatasetAllocationAllocation.cs | 25 + ...cationConfigDatasetAllocationPriorities.cs | 30 + ...tAllocationPrioritiesHighPriorityFilter.cs | 25 + ...etAllocationPrioritiesLowPriorityFilter.cs | 25 + .../LogAllocationConfigDefaultDataset.cs | 30 + ...llocationConfigDefaultDatasetAllocation.cs | 25 + ...llocationConfigDefaultDatasetPriorities.cs | 30 + ...aultDatasetPrioritiesHighPriorityFilter.cs | 25 + ...faultDatasetPrioritiesLowPriorityFilter.cs | 25 + .../Outputs/LogscaleActionEmailAction.cs | 42 + .../Outputs/LogscaleActionHumioAction.cs | 25 + .../Outputs/LogscaleActionOpsGenieAction.cs | 34 + .../Outputs/LogscaleActionPagerDutyAction.cs | 34 + .../Outputs/LogscaleActionSlackAction.cs | 34 + .../LogscaleActionSlackPostMessageAction.cs | 38 + .../Outputs/LogscaleActionUploadFileAction.cs | 25 + .../Outputs/LogscaleActionVictorOpsAction.cs | 34 + .../Outputs/LogscaleActionWebhookAction.cs | 46 + .../Outputs/ResourcePoolsConfigDefaultPool.cs | 4 +- ...esourcePoolsConfigDefaultPoolAllocation.cs | 9 +- ...lsConfigDefaultPoolAllocationFixedValue.cs | 30 + sdk/dotnet/Outputs/ResourcePoolsConfigPool.cs | 4 +- .../ResourcePoolsConfigPoolAllocation.cs | 9 +- ...urcePoolsConfigPoolAllocationFixedValue.cs | 30 + .../TraceMetricsRuleTraceFilterSpan.cs | 4 - ...TraceMetricsRuleTraceFilterSpanDuration.cs | 8 - ...raceMetricsRuleTraceFilterTraceDuration.cs | 8 - .../TraceTailSamplingRulesRuleFilterSpan.cs | 4 - ...TailSamplingRulesRuleFilterSpanDuration.cs | 8 - ...ailSamplingRulesRuleFilterTraceDuration.cs | 8 - sdk/dotnet/ResourcePoolsConfig.cs | 8 +- sdk/go/chronosphere/init.go | 21 + sdk/go/chronosphere/logAllocationConfig.go | 223 + sdk/go/chronosphere/logscaleAction.go | 314 ++ sdk/go/chronosphere/logscaleAlert.go | 347 ++ sdk/go/chronosphere/pulumiTypes.go | 3673 +++++++++++++++-- sdk/go/chronosphere/resourcePoolsConfig.go | 20 +- .../chronosphere/LogAllocationConfig.java | 82 + .../chronosphere/LogAllocationConfigArgs.java | 87 + .../chronosphere/LogscaleAction.java | 149 + .../chronosphere/LogscaleActionArgs.java | 261 ++ .../chronosphere/LogscaleAlert.java | 172 + .../chronosphere/LogscaleAlertArgs.java | 341 ++ .../chronosphere/ResourcePoolsConfig.java | 10 +- .../chronosphere/ResourcePoolsConfigArgs.java | 11 +- .../inputs/DatasetConfigurationArgs.java | 18 + .../DatasetConfigurationLogDatasetArgs.java | 63 + ...figurationLogDatasetMatchCriteriaArgs.java | 62 + ...tionTraceDatasetMatchCriteriaSpanArgs.java | 57 - ...eDatasetMatchCriteriaSpanDurationArgs.java | 90 - ...DatasetMatchCriteriaTraceDurationArgs.java | 90 - ...ConfigDatasetAllocationAllocationArgs.java | 62 + ...AllocationConfigDatasetAllocationArgs.java | 101 + ...ConfigDatasetAllocationPrioritiesArgs.java | 90 + ...ationPrioritiesHighPriorityFilterArgs.java | 62 + ...cationPrioritiesLowPriorityFilterArgs.java | 62 + ...ionConfigDefaultDatasetAllocationArgs.java | 62 + ...LogAllocationConfigDefaultDatasetArgs.java | 82 + ...ionConfigDefaultDatasetPrioritiesArgs.java | 90 + ...tasetPrioritiesHighPriorityFilterArgs.java | 62 + ...atasetPrioritiesLowPriorityFilterArgs.java | 62 + .../inputs/LogAllocationConfigState.java | 86 + .../inputs/LogscaleActionEmailActionArgs.java | 138 + .../inputs/LogscaleActionHumioActionArgs.java | 62 + .../LogscaleActionOpsGenieActionArgs.java | 100 + .../LogscaleActionPagerDutyActionArgs.java | 100 + .../inputs/LogscaleActionSlackActionArgs.java | 100 + ...scaleActionSlackPostMessageActionArgs.java | 123 + .../inputs/LogscaleActionState.java | 259 ++ .../LogscaleActionUploadFileActionArgs.java | 62 + .../LogscaleActionVictorOpsActionArgs.java | 100 + .../LogscaleActionWebhookActionArgs.java | 152 + .../inputs/LogscaleAlertState.java | 337 ++ ...ePoolsConfigDefaultPoolAllocationArgs.java | 36 +- ...igDefaultPoolAllocationFixedValueArgs.java | 81 + .../ResourcePoolsConfigDefaultPoolArgs.java | 11 +- ...ResourcePoolsConfigPoolAllocationArgs.java | 36 +- ...olsConfigPoolAllocationFixedValueArgs.java | 81 + .../inputs/ResourcePoolsConfigPoolArgs.java | 11 +- .../TraceMetricsRuleTraceFilterSpanArgs.java | 57 - ...etricsRuleTraceFilterSpanDurationArgs.java | 90 - ...tricsRuleTraceFilterTraceDurationArgs.java | 90 - ...ceTailSamplingRulesRuleFilterSpanArgs.java | 57 - ...mplingRulesRuleFilterSpanDurationArgs.java | 90 - ...plingRulesRuleFilterTraceDurationArgs.java | 90 - .../outputs/DatasetConfiguration.java | 13 + .../DatasetConfigurationLogDataset.java | 48 + ...tConfigurationLogDatasetMatchCriteria.java | 46 + ...gurationTraceDatasetMatchCriteriaSpan.java | 27 - ...TraceDatasetMatchCriteriaSpanDuration.java | 48 - ...raceDatasetMatchCriteriaTraceDuration.java | 48 - .../LogAllocationConfigDatasetAllocation.java | 74 + ...tionConfigDatasetAllocationAllocation.java | 46 + ...tionConfigDatasetAllocationPriorities.java | 67 + ...llocationPrioritiesHighPriorityFilter.java | 46 + ...AllocationPrioritiesLowPriorityFilter.java | 46 + .../LogAllocationConfigDefaultDataset.java | 61 + ...ocationConfigDefaultDatasetAllocation.java | 46 + ...ocationConfigDefaultDatasetPriorities.java | 67 + ...ltDatasetPrioritiesHighPriorityFilter.java | 46 + ...ultDatasetPrioritiesLowPriorityFilter.java | 46 + .../outputs/LogscaleActionEmailAction.java | 101 + .../outputs/LogscaleActionHumioAction.java | 46 + .../outputs/LogscaleActionOpsGenieAction.java | 73 + .../LogscaleActionPagerDutyAction.java | 73 + .../outputs/LogscaleActionSlackAction.java | 74 + .../LogscaleActionSlackPostMessageAction.java | 90 + .../LogscaleActionUploadFileAction.java | 46 + .../LogscaleActionVictorOpsAction.java | 73 + .../outputs/LogscaleActionWebhookAction.java | 110 + .../ResourcePoolsConfigDefaultPool.java | 12 +- ...ourcePoolsConfigDefaultPoolAllocation.java | 31 +- ...ConfigDefaultPoolAllocationFixedValue.java | 59 + .../outputs/ResourcePoolsConfigPool.java | 12 +- .../ResourcePoolsConfigPoolAllocation.java | 31 +- ...cePoolsConfigPoolAllocationFixedValue.java | 59 + .../TraceMetricsRuleTraceFilterSpan.java | 27 - ...aceMetricsRuleTraceFilterSpanDuration.java | 48 - ...ceMetricsRuleTraceFilterTraceDuration.java | 48 - .../TraceTailSamplingRulesRuleFilterSpan.java | 27 - ...ilSamplingRulesRuleFilterSpanDuration.java | 48 - ...lSamplingRulesRuleFilterTraceDuration.java | 48 - sdk/nodejs/index.ts | 24 + sdk/nodejs/logAllocationConfig.ts | 82 + sdk/nodejs/logscaleAction.ts | 135 + sdk/nodejs/logscaleAlert.ts | 171 + sdk/nodejs/resourcePoolsConfig.ts | 9 +- sdk/nodejs/tsconfig.json | 3 + sdk/nodejs/types/input.ts | 190 +- sdk/nodejs/types/output.ts | 190 +- .../README.md | 0 .../__init__.py | 89 +- .../_inputs.py | 1066 +++-- .../_utilities.py | 0 .../blackhole_alert_notifier.py | 0 .../bucket.py | 0 .../bucket_data_source.py | 0 .../classic_dashboard.py | 0 .../collection.py | 0 .../collection_data_source.py | 0 .../config/__init__.py | 0 .../config/__init__.pyi | 0 .../config/vars.py | 0 .../dashboard.py | 0 .../dataset.py | 0 .../derived_label.py | 0 .../derived_metric.py | 0 .../drop_rule.py | 0 .../email_alert_notifier.py | 0 .../gcp_metrics_integration.py | 0 .../log_allocation_config.py | 167 + .../pulumi_chronosphere/logscale_action.py | 508 +++ .../pulumi_chronosphere/logscale_alert.py | 581 +++ .../mapping_rule.py | 0 .../monitor.py | 0 .../notification_policy.py | 0 .../opsgenie_alert_notifier.py | 0 .../otel_metrics_ingestion.py | 0 .../outputs.py | 1062 ++++- .../pagerduty_alert_notifier.py | 0 .../provider.py | 0 .../pulumi-plugin.json | 0 .../py.typed | 0 .../recording_rule.py | 0 .../resource_pools_config.py | 15 +- .../rollup_rule.py | 0 .../service_account.py | 0 .../service_data_source.py | 0 .../slack_alert_notifier.py | 0 .../team.py | 0 .../trace_jaeger_remote_sampling_strategy.py | 0 .../trace_metrics_rule.py | 0 .../trace_tail_sampling_rules.py | 0 .../victorops_alert_notifier.py | 0 .../webhook_alert_notifier.py | 0 sdk/python/setup.py | 4 +- 265 files changed, 16735 insertions(+), 2459 deletions(-) create mode 100644 sdk/dotnet/Inputs/DatasetConfigurationLogDatasetArgs.cs create mode 100644 sdk/dotnet/Inputs/DatasetConfigurationLogDatasetGetArgs.cs create mode 100644 sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.cs create mode 100644 sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.cs create mode 100644 sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionEmailActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionEmailActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionHumioActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionHumioActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionOpsGenieActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionOpsGenieActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionPagerDutyActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionPagerDutyActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionSlackActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionSlackActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionUploadFileActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionUploadFileActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionVictorOpsActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionVictorOpsActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionWebhookActionArgs.cs create mode 100644 sdk/dotnet/Inputs/LogscaleActionWebhookActionGetArgs.cs create mode 100644 sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.cs create mode 100644 sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs.cs create mode 100644 sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.cs create mode 100644 sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueGetArgs.cs create mode 100644 sdk/dotnet/LogAllocationConfig.cs create mode 100644 sdk/dotnet/LogscaleAction.cs create mode 100644 sdk/dotnet/LogscaleAlert.cs create mode 100644 sdk/dotnet/Outputs/DatasetConfigurationLogDataset.cs create mode 100644 sdk/dotnet/Outputs/DatasetConfigurationLogDatasetMatchCriteria.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocation.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationAllocation.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPriorities.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDefaultDataset.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetAllocation.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPriorities.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.cs create mode 100644 sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionEmailAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionHumioAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionOpsGenieAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionPagerDutyAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionSlackAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionSlackPostMessageAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionUploadFileAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionVictorOpsAction.cs create mode 100644 sdk/dotnet/Outputs/LogscaleActionWebhookAction.cs create mode 100644 sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.cs create mode 100644 sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocationFixedValue.cs create mode 100644 sdk/go/chronosphere/logAllocationConfig.go create mode 100644 sdk/go/chronosphere/logscaleAction.go create mode 100644 sdk/go/chronosphere/logscaleAlert.go create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfig.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfigArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlert.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlertArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationAllocationArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetAllocationArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigState.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionEmailActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionHumioActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionOpsGenieActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionPagerDutyActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackPostMessageActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionState.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionUploadFileActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionVictorOpsActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionWebhookActionArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleAlertState.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDataset.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDatasetMatchCriteria.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocation.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationAllocation.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPriorities.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDataset.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetAllocation.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPriorities.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionEmailAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionHumioAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionOpsGenieAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionPagerDutyAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackPostMessageAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionUploadFileAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionVictorOpsAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionWebhookAction.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.java create mode 100644 sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocationFixedValue.java create mode 100644 sdk/nodejs/logAllocationConfig.ts create mode 100644 sdk/nodejs/logscaleAction.ts create mode 100644 sdk/nodejs/logscaleAlert.ts rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/README.md (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/__init__.py (78%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/_inputs.py (83%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/_utilities.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/blackhole_alert_notifier.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/bucket.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/bucket_data_source.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/classic_dashboard.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/collection.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/collection_data_source.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/config/__init__.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/config/__init__.pyi (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/config/vars.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/dashboard.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/dataset.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/derived_label.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/derived_metric.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/drop_rule.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/email_alert_notifier.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/gcp_metrics_integration.py (100%) create mode 100644 sdk/python/pulumi_chronosphere/log_allocation_config.py create mode 100644 sdk/python/pulumi_chronosphere/logscale_action.py create mode 100644 sdk/python/pulumi_chronosphere/logscale_alert.py rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/mapping_rule.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/monitor.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/notification_policy.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/opsgenie_alert_notifier.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/otel_metrics_ingestion.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/outputs.py (82%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/pagerduty_alert_notifier.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/provider.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/pulumi-plugin.json (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/py.typed (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/recording_rule.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/resource_pools_config.py (94%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/rollup_rule.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/service_account.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/service_data_source.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/slack_alert_notifier.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/team.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/trace_jaeger_remote_sampling_strategy.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/trace_metrics_rule.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/trace_tail_sampling_rules.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/victorops_alert_notifier.py (100%) rename sdk/python/{chronosphereio_chronosphere => pulumi_chronosphere}/webhook_alert_notifier.py (100%) diff --git a/provider/cmd/pulumi-resource-chronosphere/bridge-metadata.json b/provider/cmd/pulumi-resource-chronosphere/bridge-metadata.json index fb0528ae..2097e20c 100644 --- a/provider/cmd/pulumi-resource-chronosphere/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-chronosphere/bridge-metadata.json @@ -12,6 +12,9 @@ "chronosphere:index/dropRule:DropRule": "chronosphere_drop_rule", "chronosphere:index/emailAlertNotifier:EmailAlertNotifier": "chronosphere_email_alert_notifier", "chronosphere:index/gcpMetricsIntegration:GcpMetricsIntegration": "chronosphere_gcp_metrics_integration", + "chronosphere:index/logAllocationConfig:LogAllocationConfig": "chronosphere_log_allocation_config", + "chronosphere:index/logscaleAction:LogscaleAction": "chronosphere_logscale_action", + "chronosphere:index/logscaleAlert:LogscaleAlert": "chronosphere_logscale_alert", "chronosphere:index/mappingRule:MappingRule": "chronosphere_mapping_rule", "chronosphere:index/monitor:Monitor": "chronosphere_monitor", "chronosphere:index/notificationPolicy:NotificationPolicy": "chronosphere_notification_policy", @@ -37,8 +40,12 @@ }, "renamedProperties": { "chronosphere:index/DatasetConfiguration:DatasetConfiguration": { + "logDataset": "log_dataset", "traceDataset": "trace_dataset" }, + "chronosphere:index/DatasetConfigurationLogDataset:DatasetConfigurationLogDataset": { + "matchCriteria": "match_criteria" + }, "chronosphere:index/DatasetConfigurationTraceDataset:DatasetConfigurationTraceDataset": { "matchCriteria": "match_criteria" }, @@ -49,12 +56,11 @@ "matchType": "match_type", "parentOperation": "parent_operation", "parentService": "parent_service", - "spanCount": "span_count" + "spanCount": "span_count", + "tags": "tag" }, "chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration:DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration": { - "maxSeconds": "max_seconds", "maxSecs": "max_secs", - "minSeconds": "min_seconds", "minSecs": "min_secs" }, "chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaSpanOperation:DatasetConfigurationTraceDatasetMatchCriteriaSpanOperation": { @@ -76,9 +82,7 @@ "inValues": "in_values" }, "chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration:DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration": { - "maxSeconds": "max_seconds", "maxSecs": "max_secs", - "minSeconds": "min_seconds", "minSecs": "min_secs" }, "chronosphere:index/DerivedLabelMetricLabel:DerivedLabelMetricLabel": { @@ -122,6 +126,61 @@ "chronosphere:index/GcpMetricsIntegrationServiceAccount:GcpMetricsIntegrationServiceAccount": { "clientEmail": "client_email" }, + "chronosphere:index/LogAllocationConfigDatasetAllocation:LogAllocationConfigDatasetAllocation": { + "datasetId": "dataset_id" + }, + "chronosphere:index/LogAllocationConfigDatasetAllocationAllocation:LogAllocationConfigDatasetAllocationAllocation": { + "percentOfLicense": "percent_of_license" + }, + "chronosphere:index/LogAllocationConfigDatasetAllocationPriorities:LogAllocationConfigDatasetAllocationPriorities": { + "highPriorityFilters": "high_priority_filter", + "lowPriorityFilters": "low_priority_filter" + }, + "chronosphere:index/LogAllocationConfigDefaultDatasetAllocation:LogAllocationConfigDefaultDatasetAllocation": { + "percentOfLicense": "percent_of_license" + }, + "chronosphere:index/LogAllocationConfigDefaultDatasetPriorities:LogAllocationConfigDefaultDatasetPriorities": { + "highPriorityFilters": "high_priority_filter", + "lowPriorityFilters": "low_priority_filter" + }, + "chronosphere:index/LogscaleActionEmailAction:LogscaleActionEmailAction": { + "attachCsv": "attach_csv", + "bodyTemplate": "body_template", + "subjectTemplate": "subject_template", + "useProxy": "use_proxy" + }, + "chronosphere:index/LogscaleActionHumioAction:LogscaleActionHumioAction": { + "ingestToken": "ingest_token" + }, + "chronosphere:index/LogscaleActionOpsGenieAction:LogscaleActionOpsGenieAction": { + "apiUrl": "api_url", + "opsGenieKey": "ops_genie_key", + "useProxy": "use_proxy" + }, + "chronosphere:index/LogscaleActionPagerDutyAction:LogscaleActionPagerDutyAction": { + "routingKey": "routing_key", + "useProxy": "use_proxy" + }, + "chronosphere:index/LogscaleActionSlackAction:LogscaleActionSlackAction": { + "useProxy": "use_proxy" + }, + "chronosphere:index/LogscaleActionSlackPostMessageAction:LogscaleActionSlackPostMessageAction": { + "apiToken": "api_token", + "useProxy": "use_proxy" + }, + "chronosphere:index/LogscaleActionUploadFileAction:LogscaleActionUploadFileAction": { + "fileName": "file_name" + }, + "chronosphere:index/LogscaleActionVictorOpsAction:LogscaleActionVictorOpsAction": { + "messageType": "message_type", + "notifyUrl": "notify_url", + "useProxy": "use_proxy" + }, + "chronosphere:index/LogscaleActionWebhookAction:LogscaleActionWebhookAction": { + "bodyTemplate": "body_template", + "ignoreSsl": "ignore_ssl", + "useProxy": "use_proxy" + }, "chronosphere:index/MonitorQuery:MonitorQuery": { "graphiteExpr": "graphite_expr", "prometheusExpr": "prometheus_expr" @@ -172,6 +231,7 @@ "generateTargetInfo": "generate_target_info" }, "chronosphere:index/ResourcePoolsConfigDefaultPoolAllocation:ResourcePoolsConfigDefaultPoolAllocation": { + "fixedValues": "fixed_value", "percentOfLicense": "percent_of_license" }, "chronosphere:index/ResourcePoolsConfigDefaultPoolPriorities:ResourcePoolsConfigDefaultPoolPriorities": { @@ -183,6 +243,7 @@ "matchRules": "match_rules" }, "chronosphere:index/ResourcePoolsConfigPoolAllocation:ResourcePoolsConfigPoolAllocation": { + "fixedValues": "fixed_value", "percentOfLicense": "percent_of_license" }, "chronosphere:index/ResourcePoolsConfigPoolPriorities:ResourcePoolsConfigPoolPriorities": { @@ -234,12 +295,11 @@ "matchType": "match_type", "parentOperation": "parent_operation", "parentService": "parent_service", - "spanCount": "span_count" + "spanCount": "span_count", + "tags": "tag" }, "chronosphere:index/TraceMetricsRuleTraceFilterSpanDuration:TraceMetricsRuleTraceFilterSpanDuration": { - "maxSeconds": "max_seconds", "maxSecs": "max_secs", - "minSeconds": "min_seconds", "minSecs": "min_secs" }, "chronosphere:index/TraceMetricsRuleTraceFilterSpanOperation:TraceMetricsRuleTraceFilterSpanOperation": { @@ -261,9 +321,7 @@ "inValues": "in_values" }, "chronosphere:index/TraceMetricsRuleTraceFilterTraceDuration:TraceMetricsRuleTraceFilterTraceDuration": { - "maxSeconds": "max_seconds", "maxSecs": "max_secs", - "minSeconds": "min_seconds", "minSecs": "min_secs" }, "chronosphere:index/TraceTailSamplingRulesDefaultSampleRate:TraceTailSamplingRulesDefaultSampleRate": { @@ -280,12 +338,11 @@ "matchType": "match_type", "parentOperation": "parent_operation", "parentService": "parent_service", - "spanCount": "span_count" + "spanCount": "span_count", + "tags": "tag" }, "chronosphere:index/TraceTailSamplingRulesRuleFilterSpanDuration:TraceTailSamplingRulesRuleFilterSpanDuration": { - "maxSeconds": "max_seconds", "maxSecs": "max_secs", - "minSeconds": "min_seconds", "minSecs": "min_secs" }, "chronosphere:index/TraceTailSamplingRulesRuleFilterSpanOperation:TraceTailSamplingRulesRuleFilterSpanOperation": { @@ -307,9 +364,7 @@ "inValues": "in_values" }, "chronosphere:index/TraceTailSamplingRulesRuleFilterTraceDuration:TraceTailSamplingRulesRuleFilterTraceDuration": { - "maxSeconds": "max_seconds", "maxSecs": "max_secs", - "minSeconds": "min_seconds", "minSecs": "min_secs" }, "chronosphere:index/bucket:Bucket": { @@ -354,6 +409,29 @@ "metricGroups": "metric_groups", "serviceAccount": "service_account" }, + "chronosphere:index/logAllocationConfig:LogAllocationConfig": { + "datasetAllocations": "dataset_allocation", + "defaultDataset": "default_dataset" + }, + "chronosphere:index/logscaleAction:LogscaleAction": { + "emailAction": "email_action", + "humioAction": "humio_action", + "opsGenieAction": "ops_genie_action", + "pagerDutyAction": "pager_duty_action", + "slackAction": "slack_action", + "slackPostMessageAction": "slack_post_message_action", + "uploadFileAction": "upload_file_action", + "victorOpsAction": "victor_ops_action", + "webhookAction": "webhook_action" + }, + "chronosphere:index/logscaleAlert:LogscaleAlert": { + "actionIds": "action_ids", + "alertType": "alert_type", + "runAsUser": "run_as_user", + "throttleDuration": "throttle_duration", + "throttleField": "throttle_field", + "timeWindow": "time_window" + }, "chronosphere:index/mappingRule:MappingRule": { "bucketId": "bucket_id", "dropTimestamp": "drop_timestamp", diff --git a/provider/cmd/pulumi-resource-chronosphere/schema.json b/provider/cmd/pulumi-resource-chronosphere/schema.json index d9c2d521..44e2c2ad 100644 --- a/provider/cmd/pulumi-resource-chronosphere/schema.json +++ b/provider/cmd/pulumi-resource-chronosphere/schema.json @@ -52,7 +52,7 @@ "disableUnionOutputTypes": true }, "python": { - "packageName": "chronosphereio_chronosphere", + "packageName": "pulumi_chronosphere", "requires": { "pulumi": "\u003e=3.0.0,\u003c4.0.0" }, @@ -95,6 +95,9 @@ "types": { "chronosphere:index/DatasetConfiguration:DatasetConfiguration": { "properties": { + "logDataset": { + "$ref": "#/types/chronosphere:index/DatasetConfigurationLogDataset:DatasetConfigurationLogDataset" + }, "traceDataset": { "$ref": "#/types/chronosphere:index/DatasetConfigurationTraceDataset:DatasetConfigurationTraceDataset" }, @@ -107,6 +110,25 @@ "type" ] }, + "chronosphere:index/DatasetConfigurationLogDataset:DatasetConfigurationLogDataset": { + "properties": { + "matchCriteria": { + "$ref": "#/types/chronosphere:index/DatasetConfigurationLogDatasetMatchCriteria:DatasetConfigurationLogDatasetMatchCriteria" + } + }, + "type": "object" + }, + "chronosphere:index/DatasetConfigurationLogDatasetMatchCriteria:DatasetConfigurationLogDatasetMatchCriteria": { + "properties": { + "query": { + "type": "string" + } + }, + "type": "object", + "required": [ + "query" + ] + }, "chronosphere:index/DatasetConfigurationTraceDataset:DatasetConfigurationTraceDataset": { "properties": { "matchCriteria": { @@ -158,35 +180,20 @@ "spanCount": { "$ref": "#/types/chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount:DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount" }, - "tag": { - "type": "array", - "items": { - "$ref": "#/types/chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaSpanTag:DatasetConfigurationTraceDatasetMatchCriteriaSpanTag" - } - }, "tags": { "type": "array", "items": { "$ref": "#/types/chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaSpanTag:DatasetConfigurationTraceDatasetMatchCriteriaSpanTag" - }, - "deprecationMessage": "`tags` is deprecated, use `tag` instead." + } } }, "type": "object" }, "chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration:DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration": { "properties": { - "maxSeconds": { - "type": "number", - "deprecationMessage": "use max_secs instead" - }, "maxSecs": { "type": "number" }, - "minSeconds": { - "type": "number", - "deprecationMessage": "use min_secs instead" - }, "minSecs": { "type": "number" } @@ -342,17 +349,9 @@ }, "chronosphere:index/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration:DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration": { "properties": { - "maxSeconds": { - "type": "number", - "deprecationMessage": "use max_secs instead" - }, "maxSecs": { "type": "number" }, - "minSeconds": { - "type": "number", - "deprecationMessage": "use min_secs instead" - }, "minSecs": { "type": "number" } @@ -616,6 +615,317 @@ "clientEmail" ] }, + "chronosphere:index/LogAllocationConfigDatasetAllocation:LogAllocationConfigDatasetAllocation": { + "properties": { + "allocation": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDatasetAllocationAllocation:LogAllocationConfigDatasetAllocationAllocation" + }, + "datasetId": { + "type": "string" + }, + "priorities": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDatasetAllocationPriorities:LogAllocationConfigDatasetAllocationPriorities" + } + }, + "type": "object", + "required": [ + "allocation", + "datasetId" + ] + }, + "chronosphere:index/LogAllocationConfigDatasetAllocationAllocation:LogAllocationConfigDatasetAllocationAllocation": { + "properties": { + "percentOfLicense": { + "type": "number" + } + }, + "type": "object", + "required": [ + "percentOfLicense" + ] + }, + "chronosphere:index/LogAllocationConfigDatasetAllocationPriorities:LogAllocationConfigDatasetAllocationPriorities": { + "properties": { + "highPriorityFilters": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter:LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter" + } + }, + "lowPriorityFilters": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter:LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter" + } + } + }, + "type": "object" + }, + "chronosphere:index/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter:LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter": { + "properties": { + "query": { + "type": "string" + } + }, + "type": "object", + "required": [ + "query" + ] + }, + "chronosphere:index/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter:LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter": { + "properties": { + "query": { + "type": "string" + } + }, + "type": "object", + "required": [ + "query" + ] + }, + "chronosphere:index/LogAllocationConfigDefaultDataset:LogAllocationConfigDefaultDataset": { + "properties": { + "allocation": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDefaultDatasetAllocation:LogAllocationConfigDefaultDatasetAllocation" + }, + "priorities": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDefaultDatasetPriorities:LogAllocationConfigDefaultDatasetPriorities" + } + }, + "type": "object", + "required": [ + "allocation" + ] + }, + "chronosphere:index/LogAllocationConfigDefaultDatasetAllocation:LogAllocationConfigDefaultDatasetAllocation": { + "properties": { + "percentOfLicense": { + "type": "number" + } + }, + "type": "object", + "required": [ + "percentOfLicense" + ] + }, + "chronosphere:index/LogAllocationConfigDefaultDatasetPriorities:LogAllocationConfigDefaultDatasetPriorities": { + "properties": { + "highPriorityFilters": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter:LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter" + } + }, + "lowPriorityFilters": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter:LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter" + } + } + }, + "type": "object" + }, + "chronosphere:index/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter:LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter": { + "properties": { + "query": { + "type": "string" + } + }, + "type": "object", + "required": [ + "query" + ] + }, + "chronosphere:index/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter:LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter": { + "properties": { + "query": { + "type": "string" + } + }, + "type": "object", + "required": [ + "query" + ] + }, + "chronosphere:index/LogscaleActionEmailAction:LogscaleActionEmailAction": { + "properties": { + "attachCsv": { + "type": "boolean" + }, + "bodyTemplate": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "type": "string" + } + }, + "subjectTemplate": { + "type": "string" + }, + "useProxy": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "recipients" + ] + }, + "chronosphere:index/LogscaleActionHumioAction:LogscaleActionHumioAction": { + "properties": { + "ingestToken": { + "type": "string" + } + }, + "type": "object", + "required": [ + "ingestToken" + ] + }, + "chronosphere:index/LogscaleActionOpsGenieAction:LogscaleActionOpsGenieAction": { + "properties": { + "apiUrl": { + "type": "string" + }, + "opsGenieKey": { + "type": "string" + }, + "useProxy": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "apiUrl", + "opsGenieKey" + ] + }, + "chronosphere:index/LogscaleActionPagerDutyAction:LogscaleActionPagerDutyAction": { + "properties": { + "routingKey": { + "type": "string" + }, + "severity": { + "type": "string" + }, + "useProxy": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "routingKey", + "severity" + ] + }, + "chronosphere:index/LogscaleActionSlackAction:LogscaleActionSlackAction": { + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "url": { + "type": "string" + }, + "useProxy": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "url" + ] + }, + "chronosphere:index/LogscaleActionSlackPostMessageAction:LogscaleActionSlackPostMessageAction": { + "properties": { + "apiToken": { + "type": "string" + }, + "channels": { + "type": "array", + "items": { + "type": "string" + } + }, + "fields": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "useProxy": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "apiToken", + "channels" + ] + }, + "chronosphere:index/LogscaleActionUploadFileAction:LogscaleActionUploadFileAction": { + "properties": { + "fileName": { + "type": "string" + } + }, + "type": "object", + "required": [ + "fileName" + ] + }, + "chronosphere:index/LogscaleActionVictorOpsAction:LogscaleActionVictorOpsAction": { + "properties": { + "messageType": { + "type": "string" + }, + "notifyUrl": { + "type": "string" + }, + "useProxy": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "messageType", + "notifyUrl" + ] + }, + "chronosphere:index/LogscaleActionWebhookAction:LogscaleActionWebhookAction": { + "properties": { + "bodyTemplate": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "ignoreSsl": { + "type": "boolean" + }, + "method": { + "type": "string" + }, + "url": { + "type": "string" + }, + "useProxy": { + "type": "boolean" + } + }, + "type": "object", + "required": [ + "method", + "url" + ] + }, "chronosphere:index/MappingRuleStoragePolicy:MappingRuleStoragePolicy": { "properties": { "resolution": { @@ -987,20 +1297,35 @@ "$ref": "#/types/chronosphere:index/ResourcePoolsConfigDefaultPoolPriorities:ResourcePoolsConfigDefaultPoolPriorities" } }, - "type": "object", - "required": [ - "allocation" - ] + "type": "object" }, "chronosphere:index/ResourcePoolsConfigDefaultPoolAllocation:ResourcePoolsConfigDefaultPoolAllocation": { "properties": { + "fixedValues": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/ResourcePoolsConfigDefaultPoolAllocationFixedValue:ResourcePoolsConfigDefaultPoolAllocationFixedValue" + } + }, "percentOfLicense": { "type": "number" } }, + "type": "object" + }, + "chronosphere:index/ResourcePoolsConfigDefaultPoolAllocationFixedValue:ResourcePoolsConfigDefaultPoolAllocationFixedValue": { + "properties": { + "license": { + "type": "string" + }, + "value": { + "type": "integer" + } + }, "type": "object", "required": [ - "percentOfLicense" + "license", + "value" ] }, "chronosphere:index/ResourcePoolsConfigDefaultPoolPriorities:ResourcePoolsConfigDefaultPoolPriorities": { @@ -1044,19 +1369,36 @@ }, "type": "object", "required": [ - "allocation", "name" ] }, "chronosphere:index/ResourcePoolsConfigPoolAllocation:ResourcePoolsConfigPoolAllocation": { "properties": { + "fixedValues": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/ResourcePoolsConfigPoolAllocationFixedValue:ResourcePoolsConfigPoolAllocationFixedValue" + } + }, "percentOfLicense": { "type": "number" } }, + "type": "object" + }, + "chronosphere:index/ResourcePoolsConfigPoolAllocationFixedValue:ResourcePoolsConfigPoolAllocationFixedValue": { + "properties": { + "license": { + "type": "string" + }, + "value": { + "type": "integer" + } + }, "type": "object", "required": [ - "percentOfLicense" + "license", + "value" ] }, "chronosphere:index/ResourcePoolsConfigPoolPriorities:ResourcePoolsConfigPoolPriorities": { @@ -1334,38 +1676,23 @@ "service": { "$ref": "#/types/chronosphere:index/TraceMetricsRuleTraceFilterSpanService:TraceMetricsRuleTraceFilterSpanService" }, - "spanCount": { - "$ref": "#/types/chronosphere:index/TraceMetricsRuleTraceFilterSpanSpanCount:TraceMetricsRuleTraceFilterSpanSpanCount" - }, - "tag": { - "type": "array", - "items": { - "$ref": "#/types/chronosphere:index/TraceMetricsRuleTraceFilterSpanTag:TraceMetricsRuleTraceFilterSpanTag" - } + "spanCount": { + "$ref": "#/types/chronosphere:index/TraceMetricsRuleTraceFilterSpanSpanCount:TraceMetricsRuleTraceFilterSpanSpanCount" }, "tags": { "type": "array", "items": { "$ref": "#/types/chronosphere:index/TraceMetricsRuleTraceFilterSpanTag:TraceMetricsRuleTraceFilterSpanTag" - }, - "deprecationMessage": "`tags` is deprecated, use `tag` instead." + } } }, "type": "object" }, "chronosphere:index/TraceMetricsRuleTraceFilterSpanDuration:TraceMetricsRuleTraceFilterSpanDuration": { "properties": { - "maxSeconds": { - "type": "number", - "deprecationMessage": "use max_secs instead" - }, "maxSecs": { "type": "number" }, - "minSeconds": { - "type": "number", - "deprecationMessage": "use min_secs instead" - }, "minSecs": { "type": "number" } @@ -1521,17 +1848,9 @@ }, "chronosphere:index/TraceMetricsRuleTraceFilterTraceDuration:TraceMetricsRuleTraceFilterTraceDuration": { "properties": { - "maxSeconds": { - "type": "number", - "deprecationMessage": "use max_secs instead" - }, "maxSecs": { "type": "number" }, - "minSeconds": { - "type": "number", - "deprecationMessage": "use min_secs instead" - }, "minSecs": { "type": "number" } @@ -1624,35 +1943,20 @@ "spanCount": { "$ref": "#/types/chronosphere:index/TraceTailSamplingRulesRuleFilterSpanSpanCount:TraceTailSamplingRulesRuleFilterSpanSpanCount" }, - "tag": { - "type": "array", - "items": { - "$ref": "#/types/chronosphere:index/TraceTailSamplingRulesRuleFilterSpanTag:TraceTailSamplingRulesRuleFilterSpanTag" - } - }, "tags": { "type": "array", "items": { "$ref": "#/types/chronosphere:index/TraceTailSamplingRulesRuleFilterSpanTag:TraceTailSamplingRulesRuleFilterSpanTag" - }, - "deprecationMessage": "`tags` is deprecated, use `tag` instead." + } } }, "type": "object" }, "chronosphere:index/TraceTailSamplingRulesRuleFilterSpanDuration:TraceTailSamplingRulesRuleFilterSpanDuration": { "properties": { - "maxSeconds": { - "type": "number", - "deprecationMessage": "use max_secs instead" - }, "maxSecs": { "type": "number" }, - "minSeconds": { - "type": "number", - "deprecationMessage": "use min_secs instead" - }, "minSecs": { "type": "number" } @@ -1808,17 +2112,9 @@ }, "chronosphere:index/TraceTailSamplingRulesRuleFilterTraceDuration:TraceTailSamplingRulesRuleFilterTraceDuration": { "properties": { - "maxSeconds": { - "type": "number", - "deprecationMessage": "use max_secs instead" - }, "maxSecs": { "type": "number" }, - "minSeconds": { - "type": "number", - "deprecationMessage": "use min_secs instead" - }, "minSecs": { "type": "number" } @@ -2659,6 +2955,357 @@ "type": "object" } }, + "chronosphere:index/logAllocationConfig:LogAllocationConfig": { + "properties": { + "datasetAllocations": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDatasetAllocation:LogAllocationConfigDatasetAllocation" + } + }, + "defaultDataset": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDefaultDataset:LogAllocationConfigDefaultDataset" + } + }, + "required": [ + "defaultDataset" + ], + "inputProperties": { + "datasetAllocations": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDatasetAllocation:LogAllocationConfigDatasetAllocation" + } + }, + "defaultDataset": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDefaultDataset:LogAllocationConfigDefaultDataset" + } + }, + "requiredInputs": [ + "defaultDataset" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering LogAllocationConfig resources.\n", + "properties": { + "datasetAllocations": { + "type": "array", + "items": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDatasetAllocation:LogAllocationConfigDatasetAllocation" + } + }, + "defaultDataset": { + "$ref": "#/types/chronosphere:index/LogAllocationConfigDefaultDataset:LogAllocationConfigDefaultDataset" + } + }, + "type": "object" + } + }, + "chronosphere:index/logscaleAction:LogscaleAction": { + "properties": { + "emailAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionEmailAction:LogscaleActionEmailAction" + }, + "humioAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionHumioAction:LogscaleActionHumioAction" + }, + "name": { + "type": "string" + }, + "opsGenieAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionOpsGenieAction:LogscaleActionOpsGenieAction" + }, + "pagerDutyAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionPagerDutyAction:LogscaleActionPagerDutyAction" + }, + "repository": { + "type": "string" + }, + "slackAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionSlackAction:LogscaleActionSlackAction" + }, + "slackPostMessageAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionSlackPostMessageAction:LogscaleActionSlackPostMessageAction" + }, + "slug": { + "type": "string" + }, + "uploadFileAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionUploadFileAction:LogscaleActionUploadFileAction" + }, + "victorOpsAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionVictorOpsAction:LogscaleActionVictorOpsAction" + }, + "webhookAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionWebhookAction:LogscaleActionWebhookAction" + } + }, + "required": [ + "name", + "repository", + "slug" + ], + "inputProperties": { + "emailAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionEmailAction:LogscaleActionEmailAction" + }, + "humioAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionHumioAction:LogscaleActionHumioAction" + }, + "name": { + "type": "string" + }, + "opsGenieAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionOpsGenieAction:LogscaleActionOpsGenieAction" + }, + "pagerDutyAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionPagerDutyAction:LogscaleActionPagerDutyAction" + }, + "repository": { + "type": "string", + "willReplaceOnChanges": true + }, + "slackAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionSlackAction:LogscaleActionSlackAction" + }, + "slackPostMessageAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionSlackPostMessageAction:LogscaleActionSlackPostMessageAction" + }, + "slug": { + "type": "string", + "willReplaceOnChanges": true + }, + "uploadFileAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionUploadFileAction:LogscaleActionUploadFileAction" + }, + "victorOpsAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionVictorOpsAction:LogscaleActionVictorOpsAction" + }, + "webhookAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionWebhookAction:LogscaleActionWebhookAction" + } + }, + "requiredInputs": [ + "name", + "repository" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering LogscaleAction resources.\n", + "properties": { + "emailAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionEmailAction:LogscaleActionEmailAction" + }, + "humioAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionHumioAction:LogscaleActionHumioAction" + }, + "name": { + "type": "string" + }, + "opsGenieAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionOpsGenieAction:LogscaleActionOpsGenieAction" + }, + "pagerDutyAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionPagerDutyAction:LogscaleActionPagerDutyAction" + }, + "repository": { + "type": "string", + "willReplaceOnChanges": true + }, + "slackAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionSlackAction:LogscaleActionSlackAction" + }, + "slackPostMessageAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionSlackPostMessageAction:LogscaleActionSlackPostMessageAction" + }, + "slug": { + "type": "string", + "willReplaceOnChanges": true + }, + "uploadFileAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionUploadFileAction:LogscaleActionUploadFileAction" + }, + "victorOpsAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionVictorOpsAction:LogscaleActionVictorOpsAction" + }, + "webhookAction": { + "$ref": "#/types/chronosphere:index/LogscaleActionWebhookAction:LogscaleActionWebhookAction" + } + }, + "type": "object" + } + }, + "chronosphere:index/logscaleAlert:LogscaleAlert": { + "properties": { + "actionIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "alertType": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "query": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "runAsUser": { + "type": "string", + "description": "Email of the user that the alert runs on behalf of\n" + }, + "slug": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "throttleDuration": { + "type": "string", + "description": "Required for STANDARD type alerts, optional for FILTER type alerts\n" + }, + "throttleField": { + "type": "string" + }, + "timeWindow": { + "type": "string", + "description": "Required for STANDARD type alerts, ignored for FILTER type alerts\n" + } + }, + "required": [ + "alertType", + "name", + "repository", + "runAsUser", + "slug" + ], + "inputProperties": { + "actionIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "alertType": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "query": { + "type": "string" + }, + "repository": { + "type": "string", + "willReplaceOnChanges": true + }, + "runAsUser": { + "type": "string", + "description": "Email of the user that the alert runs on behalf of\n" + }, + "slug": { + "type": "string", + "willReplaceOnChanges": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "throttleDuration": { + "type": "string", + "description": "Required for STANDARD type alerts, optional for FILTER type alerts\n" + }, + "throttleField": { + "type": "string" + }, + "timeWindow": { + "type": "string", + "description": "Required for STANDARD type alerts, ignored for FILTER type alerts\n" + } + }, + "requiredInputs": [ + "alertType", + "name", + "repository", + "runAsUser" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering LogscaleAlert resources.\n", + "properties": { + "actionIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "alertType": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "query": { + "type": "string" + }, + "repository": { + "type": "string", + "willReplaceOnChanges": true + }, + "runAsUser": { + "type": "string", + "description": "Email of the user that the alert runs on behalf of\n" + }, + "slug": { + "type": "string", + "willReplaceOnChanges": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "throttleDuration": { + "type": "string", + "description": "Required for STANDARD type alerts, optional for FILTER type alerts\n" + }, + "throttleField": { + "type": "string" + }, + "timeWindow": { + "type": "string", + "description": "Required for STANDARD type alerts, ignored for FILTER type alerts\n" + } + }, + "type": "object" + } + }, "chronosphere:index/mappingRule:MappingRule": { "properties": { "aggregations": { @@ -3642,9 +4289,6 @@ "deprecationMessage": "Use pool instead of pools" } }, - "required": [ - "defaultPool" - ], "inputProperties": { "defaultPool": { "$ref": "#/types/chronosphere:index/ResourcePoolsConfigDefaultPool:ResourcePoolsConfigDefaultPool" @@ -3663,9 +4307,6 @@ "deprecationMessage": "Use pool instead of pools" } }, - "requiredInputs": [ - "defaultPool" - ], "stateInputs": { "description": "Input properties used for looking up and filtering ResourcePoolsConfig resources.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index f2bce27a..c69e92fb 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -79,7 +79,7 @@ require ( github.com/charmbracelet/bubbletea v0.24.2 // indirect github.com/charmbracelet/lipgloss v0.7.1 // indirect github.com/cheggaaa/pb v1.0.29 // indirect - github.com/chronosphereio/terraform-provider-chronosphere v1.2.0 // indirect + github.com/chronosphereio/terraform-provider-chronosphere v1.5.0 // indirect github.com/cloudflare/circl v1.3.3 // indirect github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect github.com/cyphar/filepath-securejoin v0.2.4 // indirect @@ -148,6 +148,7 @@ require ( github.com/hashicorp/terraform-plugin-go v0.19.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-sdk/v2 v2.30.0 // indirect + github.com/hashicorp/terraform-registry-address v0.2.2 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/vault/api v1.8.2 // indirect github.com/hashicorp/vault/sdk v0.6.1 // indirect diff --git a/provider/go.sum b/provider/go.sum index c5e1bbfe..5aea03d0 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -931,6 +931,8 @@ github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= github.com/chronosphereio/terraform-provider-chronosphere v1.2.0 h1:jXNP4ohJWvaXekThO4DWFiRYO6VMSo65DQufI0xgibY= github.com/chronosphereio/terraform-provider-chronosphere v1.2.0/go.mod h1:Aj+ZF3Ncra9gNWU96t3Fk4KghEMv3h8bW8gyeWXZaSo= +github.com/chronosphereio/terraform-provider-chronosphere v1.5.0 h1:XLodvwC62c4yEVYVa/WQgDIeyDiOvj8l0ONh+69PF5M= +github.com/chronosphereio/terraform-provider-chronosphere v1.5.0/go.mod h1:Aj+ZF3Ncra9gNWU96t3Fk4KghEMv3h8bW8gyeWXZaSo= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= diff --git a/provider/resources.go b/provider/resources.go index 4ca6deb7..aeb5fecb 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -149,6 +149,15 @@ func Provider() tfbridge.ProviderInfo { "chronosphere_otel_metrics_ingestion": { Tok: tfbridge.MakeResource(mainPkg, mainMod, "OtelMetricsIngestion"), }, + "chronosphere_log_allocation_config": { + Tok: tfbridge.MakeResource(mainPkg, mainMod, "LogAllocationConfig"), + }, + "chronosphere_logscale_action": { + Tok: tfbridge.MakeResource(mainPkg, mainMod, "LogscaleAction"), + }, + "chronosphere_logscale_alert": { + Tok: tfbridge.MakeResource(mainPkg, mainMod, "LogscaleAlert"), + }, }, DataSources: map[string]*tfbridge.DataSourceInfo{ "chronosphere_bucket": { @@ -176,7 +185,7 @@ func Provider() tfbridge.ProviderInfo { Requires: map[string]string{ "pulumi": ">=3.0.0,<4.0.0", }, - PackageName: "chronosphereio_chronosphere", + PackageName: "pulumi_chronosphere", }, Golang: &tfbridge.GolangInfo{ ImportBasePath: filepath.Join( diff --git a/sdk/dotnet/Inputs/DatasetConfigurationArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationArgs.cs index 3d3a06e3..81d7abf7 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationArgs.cs @@ -13,6 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class DatasetConfigurationArgs : global::Pulumi.ResourceArgs { + [Input("logDataset")] + public Input? LogDataset { get; set; } + [Input("traceDataset")] public Input? TraceDataset { get; set; } diff --git a/sdk/dotnet/Inputs/DatasetConfigurationGetArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationGetArgs.cs index 7e94ac79..5f69ea09 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationGetArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationGetArgs.cs @@ -13,6 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class DatasetConfigurationGetArgs : global::Pulumi.ResourceArgs { + [Input("logDataset")] + public Input? LogDataset { get; set; } + [Input("traceDataset")] public Input? TraceDataset { get; set; } diff --git a/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetArgs.cs new file mode 100644 index 00000000..3bbbc938 --- /dev/null +++ b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class DatasetConfigurationLogDatasetArgs : global::Pulumi.ResourceArgs + { + [Input("matchCriteria")] + public Input? MatchCriteria { get; set; } + + public DatasetConfigurationLogDatasetArgs() + { + } + public static new DatasetConfigurationLogDatasetArgs Empty => new DatasetConfigurationLogDatasetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetGetArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetGetArgs.cs new file mode 100644 index 00000000..fad4da13 --- /dev/null +++ b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class DatasetConfigurationLogDatasetGetArgs : global::Pulumi.ResourceArgs + { + [Input("matchCriteria")] + public Input? MatchCriteria { get; set; } + + public DatasetConfigurationLogDatasetGetArgs() + { + } + public static new DatasetConfigurationLogDatasetGetArgs Empty => new DatasetConfigurationLogDatasetGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.cs new file mode 100644 index 00000000..2be1de0f --- /dev/null +++ b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class DatasetConfigurationLogDatasetMatchCriteriaArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public DatasetConfigurationLogDatasetMatchCriteriaArgs() + { + } + public static new DatasetConfigurationLogDatasetMatchCriteriaArgs Empty => new DatasetConfigurationLogDatasetMatchCriteriaArgs(); + } +} diff --git a/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaGetArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaGetArgs.cs new file mode 100644 index 00000000..48da3f5c --- /dev/null +++ b/sdk/dotnet/Inputs/DatasetConfigurationLogDatasetMatchCriteriaGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class DatasetConfigurationLogDatasetMatchCriteriaGetArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public DatasetConfigurationLogDatasetMatchCriteriaGetArgs() + { + } + public static new DatasetConfigurationLogDatasetMatchCriteriaGetArgs Empty => new DatasetConfigurationLogDatasetMatchCriteriaGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.cs index ac5d5d18..d3228a4d 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.cs @@ -37,17 +37,8 @@ public sealed class DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs : glob [Input("spanCount")] public Input? SpanCount { get; set; } - [Input("tag")] - private InputList? _tag; - public InputList Tag - { - get => _tag ?? (_tag = new InputList()); - set => _tag = value; - } - [Input("tags")] private InputList? _tags; - [Obsolete(@"`tags` is deprecated, use `tag` instead.")] public InputList Tags { get => _tags ?? (_tags = new InputList()); diff --git a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.cs index d392072c..1013b48f 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationGetArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationGetArgs.cs index a054841f..d32e78bc 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationGetArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationGetArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationGetArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanGetArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanGetArgs.cs index 3e305e9a..177796c9 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanGetArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanGetArgs.cs @@ -37,17 +37,8 @@ public sealed class DatasetConfigurationTraceDatasetMatchCriteriaSpanGetArgs : g [Input("spanCount")] public Input? SpanCount { get; set; } - [Input("tag")] - private InputList? _tag; - public InputList Tag - { - get => _tag ?? (_tag = new InputList()); - set => _tag = value; - } - [Input("tags")] private InputList? _tags; - [Obsolete(@"`tags` is deprecated, use `tag` instead.")] public InputList Tags { get => _tags ?? (_tags = new InputList()); diff --git a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.cs index 32f31a73..cd981b82 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationGetArgs.cs b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationGetArgs.cs index 466564d6..4d98645b 100644 --- a/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationGetArgs.cs +++ b/sdk/dotnet/Inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationGetArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationGetArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationArgs.cs new file mode 100644 index 00000000..d87afd9b --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationAllocationArgs : global::Pulumi.ResourceArgs + { + [Input("percentOfLicense", required: true)] + public Input PercentOfLicense { get; set; } = null!; + + public LogAllocationConfigDatasetAllocationAllocationArgs() + { + } + public static new LogAllocationConfigDatasetAllocationAllocationArgs Empty => new LogAllocationConfigDatasetAllocationAllocationArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationGetArgs.cs new file mode 100644 index 00000000..e98a4821 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationAllocationGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationAllocationGetArgs : global::Pulumi.ResourceArgs + { + [Input("percentOfLicense", required: true)] + public Input PercentOfLicense { get; set; } = null!; + + public LogAllocationConfigDatasetAllocationAllocationGetArgs() + { + } + public static new LogAllocationConfigDatasetAllocationAllocationGetArgs Empty => new LogAllocationConfigDatasetAllocationAllocationGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationArgs.cs new file mode 100644 index 00000000..a3073cbc --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationArgs : global::Pulumi.ResourceArgs + { + [Input("allocation", required: true)] + public Input Allocation { get; set; } = null!; + + [Input("datasetId", required: true)] + public Input DatasetId { get; set; } = null!; + + [Input("priorities")] + public Input? Priorities { get; set; } + + public LogAllocationConfigDatasetAllocationArgs() + { + } + public static new LogAllocationConfigDatasetAllocationArgs Empty => new LogAllocationConfigDatasetAllocationArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationGetArgs.cs new file mode 100644 index 00000000..dd048161 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationGetArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationGetArgs : global::Pulumi.ResourceArgs + { + [Input("allocation", required: true)] + public Input Allocation { get; set; } = null!; + + [Input("datasetId", required: true)] + public Input DatasetId { get; set; } = null!; + + [Input("priorities")] + public Input? Priorities { get; set; } + + public LogAllocationConfigDatasetAllocationGetArgs() + { + } + public static new LogAllocationConfigDatasetAllocationGetArgs Empty => new LogAllocationConfigDatasetAllocationGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.cs new file mode 100644 index 00000000..ede3716f --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.cs @@ -0,0 +1,37 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationPrioritiesArgs : global::Pulumi.ResourceArgs + { + [Input("highPriorityFilters")] + private InputList? _highPriorityFilters; + public InputList HighPriorityFilters + { + get => _highPriorityFilters ?? (_highPriorityFilters = new InputList()); + set => _highPriorityFilters = value; + } + + [Input("lowPriorityFilters")] + private InputList? _lowPriorityFilters; + public InputList LowPriorityFilters + { + get => _lowPriorityFilters ?? (_lowPriorityFilters = new InputList()); + set => _lowPriorityFilters = value; + } + + public LogAllocationConfigDatasetAllocationPrioritiesArgs() + { + } + public static new LogAllocationConfigDatasetAllocationPrioritiesArgs Empty => new LogAllocationConfigDatasetAllocationPrioritiesArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesGetArgs.cs new file mode 100644 index 00000000..fc90d63b --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesGetArgs.cs @@ -0,0 +1,37 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationPrioritiesGetArgs : global::Pulumi.ResourceArgs + { + [Input("highPriorityFilters")] + private InputList? _highPriorityFilters; + public InputList HighPriorityFilters + { + get => _highPriorityFilters ?? (_highPriorityFilters = new InputList()); + set => _highPriorityFilters = value; + } + + [Input("lowPriorityFilters")] + private InputList? _lowPriorityFilters; + public InputList LowPriorityFilters + { + get => _lowPriorityFilters ?? (_lowPriorityFilters = new InputList()); + set => _lowPriorityFilters = value; + } + + public LogAllocationConfigDatasetAllocationPrioritiesGetArgs() + { + } + public static new LogAllocationConfigDatasetAllocationPrioritiesGetArgs Empty => new LogAllocationConfigDatasetAllocationPrioritiesGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.cs new file mode 100644 index 00000000..f82990ac --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs() + { + } + public static new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs Empty => new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs.cs new file mode 100644 index 00000000..36a171a9 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs() + { + } + public static new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs Empty => new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.cs new file mode 100644 index 00000000..821de60d --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs() + { + } + public static new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs Empty => new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs.cs new file mode 100644 index 00000000..a70bf7ce --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs() + { + } + public static new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs Empty => new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationArgs.cs new file mode 100644 index 00000000..9f92a36a --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetAllocationArgs : global::Pulumi.ResourceArgs + { + [Input("percentOfLicense", required: true)] + public Input PercentOfLicense { get; set; } = null!; + + public LogAllocationConfigDefaultDatasetAllocationArgs() + { + } + public static new LogAllocationConfigDefaultDatasetAllocationArgs Empty => new LogAllocationConfigDefaultDatasetAllocationArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationGetArgs.cs new file mode 100644 index 00000000..5d5c7563 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetAllocationGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetAllocationGetArgs : global::Pulumi.ResourceArgs + { + [Input("percentOfLicense", required: true)] + public Input PercentOfLicense { get; set; } = null!; + + public LogAllocationConfigDefaultDatasetAllocationGetArgs() + { + } + public static new LogAllocationConfigDefaultDatasetAllocationGetArgs Empty => new LogAllocationConfigDefaultDatasetAllocationGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetArgs.cs new file mode 100644 index 00000000..196a508a --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetArgs : global::Pulumi.ResourceArgs + { + [Input("allocation", required: true)] + public Input Allocation { get; set; } = null!; + + [Input("priorities")] + public Input? Priorities { get; set; } + + public LogAllocationConfigDefaultDatasetArgs() + { + } + public static new LogAllocationConfigDefaultDatasetArgs Empty => new LogAllocationConfigDefaultDatasetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetGetArgs.cs new file mode 100644 index 00000000..94adf366 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetGetArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetGetArgs : global::Pulumi.ResourceArgs + { + [Input("allocation", required: true)] + public Input Allocation { get; set; } = null!; + + [Input("priorities")] + public Input? Priorities { get; set; } + + public LogAllocationConfigDefaultDatasetGetArgs() + { + } + public static new LogAllocationConfigDefaultDatasetGetArgs Empty => new LogAllocationConfigDefaultDatasetGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.cs new file mode 100644 index 00000000..b81a7372 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.cs @@ -0,0 +1,37 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetPrioritiesArgs : global::Pulumi.ResourceArgs + { + [Input("highPriorityFilters")] + private InputList? _highPriorityFilters; + public InputList HighPriorityFilters + { + get => _highPriorityFilters ?? (_highPriorityFilters = new InputList()); + set => _highPriorityFilters = value; + } + + [Input("lowPriorityFilters")] + private InputList? _lowPriorityFilters; + public InputList LowPriorityFilters + { + get => _lowPriorityFilters ?? (_lowPriorityFilters = new InputList()); + set => _lowPriorityFilters = value; + } + + public LogAllocationConfigDefaultDatasetPrioritiesArgs() + { + } + public static new LogAllocationConfigDefaultDatasetPrioritiesArgs Empty => new LogAllocationConfigDefaultDatasetPrioritiesArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesGetArgs.cs new file mode 100644 index 00000000..ff8f9879 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesGetArgs.cs @@ -0,0 +1,37 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetPrioritiesGetArgs : global::Pulumi.ResourceArgs + { + [Input("highPriorityFilters")] + private InputList? _highPriorityFilters; + public InputList HighPriorityFilters + { + get => _highPriorityFilters ?? (_highPriorityFilters = new InputList()); + set => _highPriorityFilters = value; + } + + [Input("lowPriorityFilters")] + private InputList? _lowPriorityFilters; + public InputList LowPriorityFilters + { + get => _lowPriorityFilters ?? (_lowPriorityFilters = new InputList()); + set => _lowPriorityFilters = value; + } + + public LogAllocationConfigDefaultDatasetPrioritiesGetArgs() + { + } + public static new LogAllocationConfigDefaultDatasetPrioritiesGetArgs Empty => new LogAllocationConfigDefaultDatasetPrioritiesGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.cs new file mode 100644 index 00000000..fa010c40 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs() + { + } + public static new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs Empty => new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs.cs new file mode 100644 index 00000000..9a12cd89 --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs() + { + } + public static new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs Empty => new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.cs new file mode 100644 index 00000000..500bfa3a --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs() + { + } + public static new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs Empty => new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs.cs b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs.cs new file mode 100644 index 00000000..dac9edad --- /dev/null +++ b/sdk/dotnet/Inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs : global::Pulumi.ResourceArgs + { + [Input("query", required: true)] + public Input Query { get; set; } = null!; + + public LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs() + { + } + public static new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs Empty => new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionEmailActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionEmailActionArgs.cs new file mode 100644 index 00000000..d7a92113 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionEmailActionArgs.cs @@ -0,0 +1,41 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionEmailActionArgs : global::Pulumi.ResourceArgs + { + [Input("attachCsv")] + public Input? AttachCsv { get; set; } + + [Input("bodyTemplate")] + public Input? BodyTemplate { get; set; } + + [Input("recipients", required: true)] + private InputList? _recipients; + public InputList Recipients + { + get => _recipients ?? (_recipients = new InputList()); + set => _recipients = value; + } + + [Input("subjectTemplate")] + public Input? SubjectTemplate { get; set; } + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionEmailActionArgs() + { + } + public static new LogscaleActionEmailActionArgs Empty => new LogscaleActionEmailActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionEmailActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionEmailActionGetArgs.cs new file mode 100644 index 00000000..b5100478 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionEmailActionGetArgs.cs @@ -0,0 +1,41 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionEmailActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("attachCsv")] + public Input? AttachCsv { get; set; } + + [Input("bodyTemplate")] + public Input? BodyTemplate { get; set; } + + [Input("recipients", required: true)] + private InputList? _recipients; + public InputList Recipients + { + get => _recipients ?? (_recipients = new InputList()); + set => _recipients = value; + } + + [Input("subjectTemplate")] + public Input? SubjectTemplate { get; set; } + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionEmailActionGetArgs() + { + } + public static new LogscaleActionEmailActionGetArgs Empty => new LogscaleActionEmailActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionHumioActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionHumioActionArgs.cs new file mode 100644 index 00000000..2ecbe660 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionHumioActionArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionHumioActionArgs : global::Pulumi.ResourceArgs + { + [Input("ingestToken", required: true)] + public Input IngestToken { get; set; } = null!; + + public LogscaleActionHumioActionArgs() + { + } + public static new LogscaleActionHumioActionArgs Empty => new LogscaleActionHumioActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionHumioActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionHumioActionGetArgs.cs new file mode 100644 index 00000000..fd4ced1e --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionHumioActionGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionHumioActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("ingestToken", required: true)] + public Input IngestToken { get; set; } = null!; + + public LogscaleActionHumioActionGetArgs() + { + } + public static new LogscaleActionHumioActionGetArgs Empty => new LogscaleActionHumioActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionOpsGenieActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionOpsGenieActionArgs.cs new file mode 100644 index 00000000..1ef88a1a --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionOpsGenieActionArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionOpsGenieActionArgs : global::Pulumi.ResourceArgs + { + [Input("apiUrl", required: true)] + public Input ApiUrl { get; set; } = null!; + + [Input("opsGenieKey", required: true)] + public Input OpsGenieKey { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionOpsGenieActionArgs() + { + } + public static new LogscaleActionOpsGenieActionArgs Empty => new LogscaleActionOpsGenieActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionOpsGenieActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionOpsGenieActionGetArgs.cs new file mode 100644 index 00000000..87a0bf20 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionOpsGenieActionGetArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionOpsGenieActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("apiUrl", required: true)] + public Input ApiUrl { get; set; } = null!; + + [Input("opsGenieKey", required: true)] + public Input OpsGenieKey { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionOpsGenieActionGetArgs() + { + } + public static new LogscaleActionOpsGenieActionGetArgs Empty => new LogscaleActionOpsGenieActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionPagerDutyActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionPagerDutyActionArgs.cs new file mode 100644 index 00000000..4c97e309 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionPagerDutyActionArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionPagerDutyActionArgs : global::Pulumi.ResourceArgs + { + [Input("routingKey", required: true)] + public Input RoutingKey { get; set; } = null!; + + [Input("severity", required: true)] + public Input Severity { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionPagerDutyActionArgs() + { + } + public static new LogscaleActionPagerDutyActionArgs Empty => new LogscaleActionPagerDutyActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionPagerDutyActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionPagerDutyActionGetArgs.cs new file mode 100644 index 00000000..81c86d43 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionPagerDutyActionGetArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionPagerDutyActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("routingKey", required: true)] + public Input RoutingKey { get; set; } = null!; + + [Input("severity", required: true)] + public Input Severity { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionPagerDutyActionGetArgs() + { + } + public static new LogscaleActionPagerDutyActionGetArgs Empty => new LogscaleActionPagerDutyActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionSlackActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionSlackActionArgs.cs new file mode 100644 index 00000000..ac4f5590 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionSlackActionArgs.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionSlackActionArgs : global::Pulumi.ResourceArgs + { + [Input("fields")] + private InputMap? _fields; + public InputMap Fields + { + get => _fields ?? (_fields = new InputMap()); + set => _fields = value; + } + + [Input("url", required: true)] + public Input Url { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionSlackActionArgs() + { + } + public static new LogscaleActionSlackActionArgs Empty => new LogscaleActionSlackActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionSlackActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionSlackActionGetArgs.cs new file mode 100644 index 00000000..0f08d7f0 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionSlackActionGetArgs.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionSlackActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("fields")] + private InputMap? _fields; + public InputMap Fields + { + get => _fields ?? (_fields = new InputMap()); + set => _fields = value; + } + + [Input("url", required: true)] + public Input Url { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionSlackActionGetArgs() + { + } + public static new LogscaleActionSlackActionGetArgs Empty => new LogscaleActionSlackActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionArgs.cs new file mode 100644 index 00000000..d2c57d52 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionArgs.cs @@ -0,0 +1,43 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionSlackPostMessageActionArgs : global::Pulumi.ResourceArgs + { + [Input("apiToken", required: true)] + public Input ApiToken { get; set; } = null!; + + [Input("channels", required: true)] + private InputList? _channels; + public InputList Channels + { + get => _channels ?? (_channels = new InputList()); + set => _channels = value; + } + + [Input("fields")] + private InputMap? _fields; + public InputMap Fields + { + get => _fields ?? (_fields = new InputMap()); + set => _fields = value; + } + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionSlackPostMessageActionArgs() + { + } + public static new LogscaleActionSlackPostMessageActionArgs Empty => new LogscaleActionSlackPostMessageActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionGetArgs.cs new file mode 100644 index 00000000..73e4d262 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionSlackPostMessageActionGetArgs.cs @@ -0,0 +1,43 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionSlackPostMessageActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("apiToken", required: true)] + public Input ApiToken { get; set; } = null!; + + [Input("channels", required: true)] + private InputList? _channels; + public InputList Channels + { + get => _channels ?? (_channels = new InputList()); + set => _channels = value; + } + + [Input("fields")] + private InputMap? _fields; + public InputMap Fields + { + get => _fields ?? (_fields = new InputMap()); + set => _fields = value; + } + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionSlackPostMessageActionGetArgs() + { + } + public static new LogscaleActionSlackPostMessageActionGetArgs Empty => new LogscaleActionSlackPostMessageActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionUploadFileActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionUploadFileActionArgs.cs new file mode 100644 index 00000000..a758e458 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionUploadFileActionArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionUploadFileActionArgs : global::Pulumi.ResourceArgs + { + [Input("fileName", required: true)] + public Input FileName { get; set; } = null!; + + public LogscaleActionUploadFileActionArgs() + { + } + public static new LogscaleActionUploadFileActionArgs Empty => new LogscaleActionUploadFileActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionUploadFileActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionUploadFileActionGetArgs.cs new file mode 100644 index 00000000..87c54e80 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionUploadFileActionGetArgs.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionUploadFileActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("fileName", required: true)] + public Input FileName { get; set; } = null!; + + public LogscaleActionUploadFileActionGetArgs() + { + } + public static new LogscaleActionUploadFileActionGetArgs Empty => new LogscaleActionUploadFileActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionVictorOpsActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionVictorOpsActionArgs.cs new file mode 100644 index 00000000..55059b70 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionVictorOpsActionArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionVictorOpsActionArgs : global::Pulumi.ResourceArgs + { + [Input("messageType", required: true)] + public Input MessageType { get; set; } = null!; + + [Input("notifyUrl", required: true)] + public Input NotifyUrl { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionVictorOpsActionArgs() + { + } + public static new LogscaleActionVictorOpsActionArgs Empty => new LogscaleActionVictorOpsActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionVictorOpsActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionVictorOpsActionGetArgs.cs new file mode 100644 index 00000000..a724f8fd --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionVictorOpsActionGetArgs.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionVictorOpsActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("messageType", required: true)] + public Input MessageType { get; set; } = null!; + + [Input("notifyUrl", required: true)] + public Input NotifyUrl { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionVictorOpsActionGetArgs() + { + } + public static new LogscaleActionVictorOpsActionGetArgs Empty => new LogscaleActionVictorOpsActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionWebhookActionArgs.cs b/sdk/dotnet/Inputs/LogscaleActionWebhookActionArgs.cs new file mode 100644 index 00000000..15a89551 --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionWebhookActionArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionWebhookActionArgs : global::Pulumi.ResourceArgs + { + [Input("bodyTemplate")] + public Input? BodyTemplate { get; set; } + + [Input("headers")] + private InputMap? _headers; + public InputMap Headers + { + get => _headers ?? (_headers = new InputMap()); + set => _headers = value; + } + + [Input("ignoreSsl")] + public Input? IgnoreSsl { get; set; } + + [Input("method", required: true)] + public Input Method { get; set; } = null!; + + [Input("url", required: true)] + public Input Url { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionWebhookActionArgs() + { + } + public static new LogscaleActionWebhookActionArgs Empty => new LogscaleActionWebhookActionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LogscaleActionWebhookActionGetArgs.cs b/sdk/dotnet/Inputs/LogscaleActionWebhookActionGetArgs.cs new file mode 100644 index 00000000..8333df0e --- /dev/null +++ b/sdk/dotnet/Inputs/LogscaleActionWebhookActionGetArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class LogscaleActionWebhookActionGetArgs : global::Pulumi.ResourceArgs + { + [Input("bodyTemplate")] + public Input? BodyTemplate { get; set; } + + [Input("headers")] + private InputMap? _headers; + public InputMap Headers + { + get => _headers ?? (_headers = new InputMap()); + set => _headers = value; + } + + [Input("ignoreSsl")] + public Input? IgnoreSsl { get; set; } + + [Input("method", required: true)] + public Input Method { get; set; } = null!; + + [Input("url", required: true)] + public Input Url { get; set; } = null!; + + [Input("useProxy")] + public Input? UseProxy { get; set; } + + public LogscaleActionWebhookActionGetArgs() + { + } + public static new LogscaleActionWebhookActionGetArgs Empty => new LogscaleActionWebhookActionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.cs index 6618cbf8..2a1b538d 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.cs @@ -13,8 +13,16 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigDefaultPoolAllocationArgs : global::Pulumi.ResourceArgs { - [Input("percentOfLicense", required: true)] - public Input PercentOfLicense { get; set; } = null!; + [Input("fixedValues")] + private InputList? _fixedValues; + public InputList FixedValues + { + get => _fixedValues ?? (_fixedValues = new InputList()); + set => _fixedValues = value; + } + + [Input("percentOfLicense")] + public Input? PercentOfLicense { get; set; } public ResourcePoolsConfigDefaultPoolAllocationArgs() { diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.cs new file mode 100644 index 00000000..1205b3ee --- /dev/null +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs : global::Pulumi.ResourceArgs + { + [Input("license", required: true)] + public Input License { get; set; } = null!; + + [Input("value", required: true)] + public Input Value { get; set; } = null!; + + public ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs() + { + } + public static new ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs Empty => new ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs.cs new file mode 100644 index 00000000..96a9172c --- /dev/null +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs : global::Pulumi.ResourceArgs + { + [Input("license", required: true)] + public Input License { get; set; } = null!; + + [Input("value", required: true)] + public Input Value { get; set; } = null!; + + public ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs() + { + } + public static new ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs Empty => new ResourcePoolsConfigDefaultPoolAllocationFixedValueGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationGetArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationGetArgs.cs index cec8a480..fc862dd9 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationGetArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolAllocationGetArgs.cs @@ -13,8 +13,16 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigDefaultPoolAllocationGetArgs : global::Pulumi.ResourceArgs { - [Input("percentOfLicense", required: true)] - public Input PercentOfLicense { get; set; } = null!; + [Input("fixedValues")] + private InputList? _fixedValues; + public InputList FixedValues + { + get => _fixedValues ?? (_fixedValues = new InputList()); + set => _fixedValues = value; + } + + [Input("percentOfLicense")] + public Input? PercentOfLicense { get; set; } public ResourcePoolsConfigDefaultPoolAllocationGetArgs() { diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolArgs.cs index a3d343db..af010237 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolArgs.cs @@ -13,8 +13,8 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigDefaultPoolArgs : global::Pulumi.ResourceArgs { - [Input("allocation", required: true)] - public Input Allocation { get; set; } = null!; + [Input("allocation")] + public Input? Allocation { get; set; } [Input("priorities")] public Input? Priorities { get; set; } diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolGetArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolGetArgs.cs index 4b426054..77ff7bf4 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolGetArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigDefaultPoolGetArgs.cs @@ -13,8 +13,8 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigDefaultPoolGetArgs : global::Pulumi.ResourceArgs { - [Input("allocation", required: true)] - public Input Allocation { get; set; } = null!; + [Input("allocation")] + public Input? Allocation { get; set; } [Input("priorities")] public Input? Priorities { get; set; } diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationArgs.cs index 5bf2465b..4cfc0cf6 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationArgs.cs @@ -13,8 +13,16 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigPoolAllocationArgs : global::Pulumi.ResourceArgs { - [Input("percentOfLicense", required: true)] - public Input PercentOfLicense { get; set; } = null!; + [Input("fixedValues")] + private InputList? _fixedValues; + public InputList FixedValues + { + get => _fixedValues ?? (_fixedValues = new InputList()); + set => _fixedValues = value; + } + + [Input("percentOfLicense")] + public Input? PercentOfLicense { get; set; } public ResourcePoolsConfigPoolAllocationArgs() { diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.cs new file mode 100644 index 00000000..c7015b2d --- /dev/null +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class ResourcePoolsConfigPoolAllocationFixedValueArgs : global::Pulumi.ResourceArgs + { + [Input("license", required: true)] + public Input License { get; set; } = null!; + + [Input("value", required: true)] + public Input Value { get; set; } = null!; + + public ResourcePoolsConfigPoolAllocationFixedValueArgs() + { + } + public static new ResourcePoolsConfigPoolAllocationFixedValueArgs Empty => new ResourcePoolsConfigPoolAllocationFixedValueArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueGetArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueGetArgs.cs new file mode 100644 index 00000000..a2843002 --- /dev/null +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationFixedValueGetArgs.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Inputs +{ + + public sealed class ResourcePoolsConfigPoolAllocationFixedValueGetArgs : global::Pulumi.ResourceArgs + { + [Input("license", required: true)] + public Input License { get; set; } = null!; + + [Input("value", required: true)] + public Input Value { get; set; } = null!; + + public ResourcePoolsConfigPoolAllocationFixedValueGetArgs() + { + } + public static new ResourcePoolsConfigPoolAllocationFixedValueGetArgs Empty => new ResourcePoolsConfigPoolAllocationFixedValueGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationGetArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationGetArgs.cs index 4e3860b1..5e966949 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationGetArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolAllocationGetArgs.cs @@ -13,8 +13,16 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigPoolAllocationGetArgs : global::Pulumi.ResourceArgs { - [Input("percentOfLicense", required: true)] - public Input PercentOfLicense { get; set; } = null!; + [Input("fixedValues")] + private InputList? _fixedValues; + public InputList FixedValues + { + get => _fixedValues ?? (_fixedValues = new InputList()); + set => _fixedValues = value; + } + + [Input("percentOfLicense")] + public Input? PercentOfLicense { get; set; } public ResourcePoolsConfigPoolAllocationGetArgs() { diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolArgs.cs index 55a0115a..c857cc8f 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolArgs.cs @@ -13,8 +13,8 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigPoolArgs : global::Pulumi.ResourceArgs { - [Input("allocation", required: true)] - public Input Allocation { get; set; } = null!; + [Input("allocation")] + public Input? Allocation { get; set; } [Input("matchRule")] public Input? MatchRule { get; set; } diff --git a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolGetArgs.cs b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolGetArgs.cs index 87762ca0..afe8c2a3 100644 --- a/sdk/dotnet/Inputs/ResourcePoolsConfigPoolGetArgs.cs +++ b/sdk/dotnet/Inputs/ResourcePoolsConfigPoolGetArgs.cs @@ -13,8 +13,8 @@ namespace Chronosphere.Pulumi.Inputs public sealed class ResourcePoolsConfigPoolGetArgs : global::Pulumi.ResourceArgs { - [Input("allocation", required: true)] - public Input Allocation { get; set; } = null!; + [Input("allocation")] + public Input? Allocation { get; set; } [Input("matchRule")] public Input? MatchRule { get; set; } diff --git a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanArgs.cs b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanArgs.cs index 89c6199c..2bb0606d 100644 --- a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanArgs.cs +++ b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanArgs.cs @@ -37,17 +37,8 @@ public sealed class TraceMetricsRuleTraceFilterSpanArgs : global::Pulumi.Resourc [Input("spanCount")] public Input? SpanCount { get; set; } - [Input("tag")] - private InputList? _tag; - public InputList Tag - { - get => _tag ?? (_tag = new InputList()); - set => _tag = value; - } - [Input("tags")] private InputList? _tags; - [Obsolete(@"`tags` is deprecated, use `tag` instead.")] public InputList Tags { get => _tags ?? (_tags = new InputList()); diff --git a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.cs b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.cs index 7791892d..958be4ee 100644 --- a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.cs +++ b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceMetricsRuleTraceFilterSpanDurationArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationGetArgs.cs b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationGetArgs.cs index 50c8e805..33c33515 100644 --- a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationGetArgs.cs +++ b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanDurationGetArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceMetricsRuleTraceFilterSpanDurationGetArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanGetArgs.cs b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanGetArgs.cs index 5d3aad5c..b417b307 100644 --- a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanGetArgs.cs +++ b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterSpanGetArgs.cs @@ -37,17 +37,8 @@ public sealed class TraceMetricsRuleTraceFilterSpanGetArgs : global::Pulumi.Reso [Input("spanCount")] public Input? SpanCount { get; set; } - [Input("tag")] - private InputList? _tag; - public InputList Tag - { - get => _tag ?? (_tag = new InputList()); - set => _tag = value; - } - [Input("tags")] private InputList? _tags; - [Obsolete(@"`tags` is deprecated, use `tag` instead.")] public InputList Tags { get => _tags ?? (_tags = new InputList()); diff --git a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.cs b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.cs index 9f85c340..491d2962 100644 --- a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.cs +++ b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceMetricsRuleTraceFilterTraceDurationArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationGetArgs.cs b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationGetArgs.cs index 99fe3def..735571fc 100644 --- a/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationGetArgs.cs +++ b/sdk/dotnet/Inputs/TraceMetricsRuleTraceFilterTraceDurationGetArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceMetricsRuleTraceFilterTraceDurationGetArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanArgs.cs b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanArgs.cs index d92ef974..030e2f2e 100644 --- a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanArgs.cs +++ b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanArgs.cs @@ -37,17 +37,8 @@ public sealed class TraceTailSamplingRulesRuleFilterSpanArgs : global::Pulumi.Re [Input("spanCount")] public Input? SpanCount { get; set; } - [Input("tag")] - private InputList? _tag; - public InputList Tag - { - get => _tag ?? (_tag = new InputList()); - set => _tag = value; - } - [Input("tags")] private InputList? _tags; - [Obsolete(@"`tags` is deprecated, use `tag` instead.")] public InputList Tags { get => _tags ?? (_tags = new InputList()); diff --git a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.cs b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.cs index 724a37ef..b1a7b823 100644 --- a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.cs +++ b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceTailSamplingRulesRuleFilterSpanDurationArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationGetArgs.cs b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationGetArgs.cs index 5a10f6ca..60cdbf78 100644 --- a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationGetArgs.cs +++ b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanDurationGetArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceTailSamplingRulesRuleFilterSpanDurationGetArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanGetArgs.cs b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanGetArgs.cs index 2e76d0a7..d54027cf 100644 --- a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanGetArgs.cs +++ b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterSpanGetArgs.cs @@ -37,17 +37,8 @@ public sealed class TraceTailSamplingRulesRuleFilterSpanGetArgs : global::Pulumi [Input("spanCount")] public Input? SpanCount { get; set; } - [Input("tag")] - private InputList? _tag; - public InputList Tag - { - get => _tag ?? (_tag = new InputList()); - set => _tag = value; - } - [Input("tags")] private InputList? _tags; - [Obsolete(@"`tags` is deprecated, use `tag` instead.")] public InputList Tags { get => _tags ?? (_tags = new InputList()); diff --git a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.cs b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.cs index 5bc7e9fe..688496f4 100644 --- a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.cs +++ b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceTailSamplingRulesRuleFilterTraceDurationArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationGetArgs.cs b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationGetArgs.cs index 26d33bc1..b8ffd019 100644 --- a/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationGetArgs.cs +++ b/sdk/dotnet/Inputs/TraceTailSamplingRulesRuleFilterTraceDurationGetArgs.cs @@ -13,15 +13,9 @@ namespace Chronosphere.Pulumi.Inputs public sealed class TraceTailSamplingRulesRuleFilterTraceDurationGetArgs : global::Pulumi.ResourceArgs { - [Input("maxSeconds")] - public Input? MaxSeconds { get; set; } - [Input("maxSecs")] public Input? MaxSecs { get; set; } - [Input("minSeconds")] - public Input? MinSeconds { get; set; } - [Input("minSecs")] public Input? MinSecs { get; set; } diff --git a/sdk/dotnet/LogAllocationConfig.cs b/sdk/dotnet/LogAllocationConfig.cs new file mode 100644 index 00000000..e2537c9a --- /dev/null +++ b/sdk/dotnet/LogAllocationConfig.cs @@ -0,0 +1,103 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi +{ + [PulumiResourceType("chronosphere:index/logAllocationConfig:LogAllocationConfig")] + public partial class LogAllocationConfig : global::Pulumi.CustomResource + { + [Output("datasetAllocations")] + public Output> DatasetAllocations { get; private set; } = null!; + + [Output("defaultDataset")] + public Output DefaultDataset { get; private set; } = null!; + + + /// + /// Create a LogAllocationConfig resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public LogAllocationConfig(string name, LogAllocationConfigArgs args, CustomResourceOptions? options = null) + : base("chronosphere:index/logAllocationConfig:LogAllocationConfig", name, args ?? new LogAllocationConfigArgs(), MakeResourceOptions(options, "")) + { + } + + private LogAllocationConfig(string name, Input id, LogAllocationConfigState? state = null, CustomResourceOptions? options = null) + : base("chronosphere:index/logAllocationConfig:LogAllocationConfig", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing LogAllocationConfig resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static LogAllocationConfig Get(string name, Input id, LogAllocationConfigState? state = null, CustomResourceOptions? options = null) + { + return new LogAllocationConfig(name, id, state, options); + } + } + + public sealed class LogAllocationConfigArgs : global::Pulumi.ResourceArgs + { + [Input("datasetAllocations")] + private InputList? _datasetAllocations; + public InputList DatasetAllocations + { + get => _datasetAllocations ?? (_datasetAllocations = new InputList()); + set => _datasetAllocations = value; + } + + [Input("defaultDataset", required: true)] + public Input DefaultDataset { get; set; } = null!; + + public LogAllocationConfigArgs() + { + } + public static new LogAllocationConfigArgs Empty => new LogAllocationConfigArgs(); + } + + public sealed class LogAllocationConfigState : global::Pulumi.ResourceArgs + { + [Input("datasetAllocations")] + private InputList? _datasetAllocations; + public InputList DatasetAllocations + { + get => _datasetAllocations ?? (_datasetAllocations = new InputList()); + set => _datasetAllocations = value; + } + + [Input("defaultDataset")] + public Input? DefaultDataset { get; set; } + + public LogAllocationConfigState() + { + } + public static new LogAllocationConfigState Empty => new LogAllocationConfigState(); + } +} diff --git a/sdk/dotnet/LogscaleAction.cs b/sdk/dotnet/LogscaleAction.cs new file mode 100644 index 00000000..733c395c --- /dev/null +++ b/sdk/dotnet/LogscaleAction.cs @@ -0,0 +1,183 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi +{ + [PulumiResourceType("chronosphere:index/logscaleAction:LogscaleAction")] + public partial class LogscaleAction : global::Pulumi.CustomResource + { + [Output("emailAction")] + public Output EmailAction { get; private set; } = null!; + + [Output("humioAction")] + public Output HumioAction { get; private set; } = null!; + + [Output("name")] + public Output Name { get; private set; } = null!; + + [Output("opsGenieAction")] + public Output OpsGenieAction { get; private set; } = null!; + + [Output("pagerDutyAction")] + public Output PagerDutyAction { get; private set; } = null!; + + [Output("repository")] + public Output Repository { get; private set; } = null!; + + [Output("slackAction")] + public Output SlackAction { get; private set; } = null!; + + [Output("slackPostMessageAction")] + public Output SlackPostMessageAction { get; private set; } = null!; + + [Output("slug")] + public Output Slug { get; private set; } = null!; + + [Output("uploadFileAction")] + public Output UploadFileAction { get; private set; } = null!; + + [Output("victorOpsAction")] + public Output VictorOpsAction { get; private set; } = null!; + + [Output("webhookAction")] + public Output WebhookAction { get; private set; } = null!; + + + /// + /// Create a LogscaleAction resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public LogscaleAction(string name, LogscaleActionArgs args, CustomResourceOptions? options = null) + : base("chronosphere:index/logscaleAction:LogscaleAction", name, args ?? new LogscaleActionArgs(), MakeResourceOptions(options, "")) + { + } + + private LogscaleAction(string name, Input id, LogscaleActionState? state = null, CustomResourceOptions? options = null) + : base("chronosphere:index/logscaleAction:LogscaleAction", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing LogscaleAction resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static LogscaleAction Get(string name, Input id, LogscaleActionState? state = null, CustomResourceOptions? options = null) + { + return new LogscaleAction(name, id, state, options); + } + } + + public sealed class LogscaleActionArgs : global::Pulumi.ResourceArgs + { + [Input("emailAction")] + public Input? EmailAction { get; set; } + + [Input("humioAction")] + public Input? HumioAction { get; set; } + + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("opsGenieAction")] + public Input? OpsGenieAction { get; set; } + + [Input("pagerDutyAction")] + public Input? PagerDutyAction { get; set; } + + [Input("repository", required: true)] + public Input Repository { get; set; } = null!; + + [Input("slackAction")] + public Input? SlackAction { get; set; } + + [Input("slackPostMessageAction")] + public Input? SlackPostMessageAction { get; set; } + + [Input("slug")] + public Input? Slug { get; set; } + + [Input("uploadFileAction")] + public Input? UploadFileAction { get; set; } + + [Input("victorOpsAction")] + public Input? VictorOpsAction { get; set; } + + [Input("webhookAction")] + public Input? WebhookAction { get; set; } + + public LogscaleActionArgs() + { + } + public static new LogscaleActionArgs Empty => new LogscaleActionArgs(); + } + + public sealed class LogscaleActionState : global::Pulumi.ResourceArgs + { + [Input("emailAction")] + public Input? EmailAction { get; set; } + + [Input("humioAction")] + public Input? HumioAction { get; set; } + + [Input("name")] + public Input? Name { get; set; } + + [Input("opsGenieAction")] + public Input? OpsGenieAction { get; set; } + + [Input("pagerDutyAction")] + public Input? PagerDutyAction { get; set; } + + [Input("repository")] + public Input? Repository { get; set; } + + [Input("slackAction")] + public Input? SlackAction { get; set; } + + [Input("slackPostMessageAction")] + public Input? SlackPostMessageAction { get; set; } + + [Input("slug")] + public Input? Slug { get; set; } + + [Input("uploadFileAction")] + public Input? UploadFileAction { get; set; } + + [Input("victorOpsAction")] + public Input? VictorOpsAction { get; set; } + + [Input("webhookAction")] + public Input? WebhookAction { get; set; } + + public LogscaleActionState() + { + } + public static new LogscaleActionState Empty => new LogscaleActionState(); + } +} diff --git a/sdk/dotnet/LogscaleAlert.cs b/sdk/dotnet/LogscaleAlert.cs new file mode 100644 index 00000000..1297b53f --- /dev/null +++ b/sdk/dotnet/LogscaleAlert.cs @@ -0,0 +1,239 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi +{ + [PulumiResourceType("chronosphere:index/logscaleAlert:LogscaleAlert")] + public partial class LogscaleAlert : global::Pulumi.CustomResource + { + [Output("actionIds")] + public Output> ActionIds { get; private set; } = null!; + + [Output("alertType")] + public Output AlertType { get; private set; } = null!; + + [Output("description")] + public Output Description { get; private set; } = null!; + + [Output("disabled")] + public Output Disabled { get; private set; } = null!; + + [Output("name")] + public Output Name { get; private set; } = null!; + + [Output("query")] + public Output Query { get; private set; } = null!; + + [Output("repository")] + public Output Repository { get; private set; } = null!; + + /// + /// Email of the user that the alert runs on behalf of + /// + [Output("runAsUser")] + public Output RunAsUser { get; private set; } = null!; + + [Output("slug")] + public Output Slug { get; private set; } = null!; + + [Output("tags")] + public Output> Tags { get; private set; } = null!; + + /// + /// Required for STANDARD type alerts, optional for FILTER type alerts + /// + [Output("throttleDuration")] + public Output ThrottleDuration { get; private set; } = null!; + + [Output("throttleField")] + public Output ThrottleField { get; private set; } = null!; + + /// + /// Required for STANDARD type alerts, ignored for FILTER type alerts + /// + [Output("timeWindow")] + public Output TimeWindow { get; private set; } = null!; + + + /// + /// Create a LogscaleAlert resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public LogscaleAlert(string name, LogscaleAlertArgs args, CustomResourceOptions? options = null) + : base("chronosphere:index/logscaleAlert:LogscaleAlert", name, args ?? new LogscaleAlertArgs(), MakeResourceOptions(options, "")) + { + } + + private LogscaleAlert(string name, Input id, LogscaleAlertState? state = null, CustomResourceOptions? options = null) + : base("chronosphere:index/logscaleAlert:LogscaleAlert", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing LogscaleAlert resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static LogscaleAlert Get(string name, Input id, LogscaleAlertState? state = null, CustomResourceOptions? options = null) + { + return new LogscaleAlert(name, id, state, options); + } + } + + public sealed class LogscaleAlertArgs : global::Pulumi.ResourceArgs + { + [Input("actionIds")] + private InputList? _actionIds; + public InputList ActionIds + { + get => _actionIds ?? (_actionIds = new InputList()); + set => _actionIds = value; + } + + [Input("alertType", required: true)] + public Input AlertType { get; set; } = null!; + + [Input("description")] + public Input? Description { get; set; } + + [Input("disabled")] + public Input? Disabled { get; set; } + + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("query")] + public Input? Query { get; set; } + + [Input("repository", required: true)] + public Input Repository { get; set; } = null!; + + /// + /// Email of the user that the alert runs on behalf of + /// + [Input("runAsUser", required: true)] + public Input RunAsUser { get; set; } = null!; + + [Input("slug")] + public Input? Slug { get; set; } + + [Input("tags")] + private InputList? _tags; + public InputList Tags + { + get => _tags ?? (_tags = new InputList()); + set => _tags = value; + } + + /// + /// Required for STANDARD type alerts, optional for FILTER type alerts + /// + [Input("throttleDuration")] + public Input? ThrottleDuration { get; set; } + + [Input("throttleField")] + public Input? ThrottleField { get; set; } + + /// + /// Required for STANDARD type alerts, ignored for FILTER type alerts + /// + [Input("timeWindow")] + public Input? TimeWindow { get; set; } + + public LogscaleAlertArgs() + { + } + public static new LogscaleAlertArgs Empty => new LogscaleAlertArgs(); + } + + public sealed class LogscaleAlertState : global::Pulumi.ResourceArgs + { + [Input("actionIds")] + private InputList? _actionIds; + public InputList ActionIds + { + get => _actionIds ?? (_actionIds = new InputList()); + set => _actionIds = value; + } + + [Input("alertType")] + public Input? AlertType { get; set; } + + [Input("description")] + public Input? Description { get; set; } + + [Input("disabled")] + public Input? Disabled { get; set; } + + [Input("name")] + public Input? Name { get; set; } + + [Input("query")] + public Input? Query { get; set; } + + [Input("repository")] + public Input? Repository { get; set; } + + /// + /// Email of the user that the alert runs on behalf of + /// + [Input("runAsUser")] + public Input? RunAsUser { get; set; } + + [Input("slug")] + public Input? Slug { get; set; } + + [Input("tags")] + private InputList? _tags; + public InputList Tags + { + get => _tags ?? (_tags = new InputList()); + set => _tags = value; + } + + /// + /// Required for STANDARD type alerts, optional for FILTER type alerts + /// + [Input("throttleDuration")] + public Input? ThrottleDuration { get; set; } + + [Input("throttleField")] + public Input? ThrottleField { get; set; } + + /// + /// Required for STANDARD type alerts, ignored for FILTER type alerts + /// + [Input("timeWindow")] + public Input? TimeWindow { get; set; } + + public LogscaleAlertState() + { + } + public static new LogscaleAlertState Empty => new LogscaleAlertState(); + } +} diff --git a/sdk/dotnet/Outputs/DatasetConfiguration.cs b/sdk/dotnet/Outputs/DatasetConfiguration.cs index 6b3bef11..08bbbce2 100644 --- a/sdk/dotnet/Outputs/DatasetConfiguration.cs +++ b/sdk/dotnet/Outputs/DatasetConfiguration.cs @@ -14,15 +14,19 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class DatasetConfiguration { + public readonly Outputs.DatasetConfigurationLogDataset? LogDataset; public readonly Outputs.DatasetConfigurationTraceDataset? TraceDataset; public readonly string Type; [OutputConstructor] private DatasetConfiguration( + Outputs.DatasetConfigurationLogDataset? logDataset, + Outputs.DatasetConfigurationTraceDataset? traceDataset, string type) { + LogDataset = logDataset; TraceDataset = traceDataset; Type = type; } diff --git a/sdk/dotnet/Outputs/DatasetConfigurationLogDataset.cs b/sdk/dotnet/Outputs/DatasetConfigurationLogDataset.cs new file mode 100644 index 00000000..99b6b8a2 --- /dev/null +++ b/sdk/dotnet/Outputs/DatasetConfigurationLogDataset.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class DatasetConfigurationLogDataset + { + public readonly Outputs.DatasetConfigurationLogDatasetMatchCriteria? MatchCriteria; + + [OutputConstructor] + private DatasetConfigurationLogDataset(Outputs.DatasetConfigurationLogDatasetMatchCriteria? matchCriteria) + { + MatchCriteria = matchCriteria; + } + } +} diff --git a/sdk/dotnet/Outputs/DatasetConfigurationLogDatasetMatchCriteria.cs b/sdk/dotnet/Outputs/DatasetConfigurationLogDatasetMatchCriteria.cs new file mode 100644 index 00000000..89cee974 --- /dev/null +++ b/sdk/dotnet/Outputs/DatasetConfigurationLogDatasetMatchCriteria.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class DatasetConfigurationLogDatasetMatchCriteria + { + public readonly string Query; + + [OutputConstructor] + private DatasetConfigurationLogDatasetMatchCriteria(string query) + { + Query = query; + } + } +} diff --git a/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.cs b/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.cs index dbd13cba..c1d3f3c6 100644 --- a/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.cs +++ b/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.cs @@ -22,7 +22,6 @@ public sealed class DatasetConfigurationTraceDatasetMatchCriteriaSpan public readonly Outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanParentService? ParentService; public readonly Outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanService? Service; public readonly Outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount? SpanCount; - public readonly ImmutableArray Tag; public readonly ImmutableArray Tags; [OutputConstructor] @@ -43,8 +42,6 @@ private DatasetConfigurationTraceDatasetMatchCriteriaSpan( Outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount? spanCount, - ImmutableArray tag, - ImmutableArray tags) { Duration = duration; @@ -55,7 +52,6 @@ private DatasetConfigurationTraceDatasetMatchCriteriaSpan( ParentService = parentService; Service = service; SpanCount = spanCount; - Tag = tag; Tags = tags; } } diff --git a/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.cs b/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.cs index 1c181270..e2e71435 100644 --- a/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.cs +++ b/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.cs @@ -14,24 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration { - public readonly double? MaxSeconds; public readonly double? MaxSecs; - public readonly double? MinSeconds; public readonly double? MinSecs; [OutputConstructor] private DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration( - double? maxSeconds, - double? maxSecs, - double? minSeconds, - double? minSecs) { - MaxSeconds = maxSeconds; MaxSecs = maxSecs; - MinSeconds = minSeconds; MinSecs = minSecs; } } diff --git a/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.cs b/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.cs index 7697054a..ee92b35a 100644 --- a/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.cs +++ b/sdk/dotnet/Outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.cs @@ -14,24 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration { - public readonly double? MaxSeconds; public readonly double? MaxSecs; - public readonly double? MinSeconds; public readonly double? MinSecs; [OutputConstructor] private DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration( - double? maxSeconds, - double? maxSecs, - double? minSeconds, - double? minSecs) { - MaxSeconds = maxSeconds; MaxSecs = maxSecs; - MinSeconds = minSeconds; MinSecs = minSecs; } } diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocation.cs b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocation.cs new file mode 100644 index 00000000..0d9c7141 --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocation.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDatasetAllocation + { + public readonly Outputs.LogAllocationConfigDatasetAllocationAllocation Allocation; + public readonly string DatasetId; + public readonly Outputs.LogAllocationConfigDatasetAllocationPriorities? Priorities; + + [OutputConstructor] + private LogAllocationConfigDatasetAllocation( + Outputs.LogAllocationConfigDatasetAllocationAllocation allocation, + + string datasetId, + + Outputs.LogAllocationConfigDatasetAllocationPriorities? priorities) + { + Allocation = allocation; + DatasetId = datasetId; + Priorities = priorities; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationAllocation.cs b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationAllocation.cs new file mode 100644 index 00000000..adc34993 --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationAllocation.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDatasetAllocationAllocation + { + public readonly double PercentOfLicense; + + [OutputConstructor] + private LogAllocationConfigDatasetAllocationAllocation(double percentOfLicense) + { + PercentOfLicense = percentOfLicense; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPriorities.cs b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPriorities.cs new file mode 100644 index 00000000..c00a5f8e --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPriorities.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDatasetAllocationPriorities + { + public readonly ImmutableArray HighPriorityFilters; + public readonly ImmutableArray LowPriorityFilters; + + [OutputConstructor] + private LogAllocationConfigDatasetAllocationPriorities( + ImmutableArray highPriorityFilters, + + ImmutableArray lowPriorityFilters) + { + HighPriorityFilters = highPriorityFilters; + LowPriorityFilters = lowPriorityFilters; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.cs b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.cs new file mode 100644 index 00000000..69295fc2 --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter + { + public readonly string Query; + + [OutputConstructor] + private LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter(string query) + { + Query = query; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.cs b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.cs new file mode 100644 index 00000000..d7b02701 --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter + { + public readonly string Query; + + [OutputConstructor] + private LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter(string query) + { + Query = query; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDefaultDataset.cs b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDataset.cs new file mode 100644 index 00000000..a4c73407 --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDataset.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDefaultDataset + { + public readonly Outputs.LogAllocationConfigDefaultDatasetAllocation Allocation; + public readonly Outputs.LogAllocationConfigDefaultDatasetPriorities? Priorities; + + [OutputConstructor] + private LogAllocationConfigDefaultDataset( + Outputs.LogAllocationConfigDefaultDatasetAllocation allocation, + + Outputs.LogAllocationConfigDefaultDatasetPriorities? priorities) + { + Allocation = allocation; + Priorities = priorities; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetAllocation.cs b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetAllocation.cs new file mode 100644 index 00000000..3a76b3fc --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetAllocation.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDefaultDatasetAllocation + { + public readonly double PercentOfLicense; + + [OutputConstructor] + private LogAllocationConfigDefaultDatasetAllocation(double percentOfLicense) + { + PercentOfLicense = percentOfLicense; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPriorities.cs b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPriorities.cs new file mode 100644 index 00000000..99153dc3 --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPriorities.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDefaultDatasetPriorities + { + public readonly ImmutableArray HighPriorityFilters; + public readonly ImmutableArray LowPriorityFilters; + + [OutputConstructor] + private LogAllocationConfigDefaultDatasetPriorities( + ImmutableArray highPriorityFilters, + + ImmutableArray lowPriorityFilters) + { + HighPriorityFilters = highPriorityFilters; + LowPriorityFilters = lowPriorityFilters; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.cs b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.cs new file mode 100644 index 00000000..59c08c8b --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter + { + public readonly string Query; + + [OutputConstructor] + private LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter(string query) + { + Query = query; + } + } +} diff --git a/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.cs b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.cs new file mode 100644 index 00000000..28a55025 --- /dev/null +++ b/sdk/dotnet/Outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter + { + public readonly string Query; + + [OutputConstructor] + private LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter(string query) + { + Query = query; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionEmailAction.cs b/sdk/dotnet/Outputs/LogscaleActionEmailAction.cs new file mode 100644 index 00000000..da5364dd --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionEmailAction.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionEmailAction + { + public readonly bool? AttachCsv; + public readonly string? BodyTemplate; + public readonly ImmutableArray Recipients; + public readonly string? SubjectTemplate; + public readonly bool? UseProxy; + + [OutputConstructor] + private LogscaleActionEmailAction( + bool? attachCsv, + + string? bodyTemplate, + + ImmutableArray recipients, + + string? subjectTemplate, + + bool? useProxy) + { + AttachCsv = attachCsv; + BodyTemplate = bodyTemplate; + Recipients = recipients; + SubjectTemplate = subjectTemplate; + UseProxy = useProxy; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionHumioAction.cs b/sdk/dotnet/Outputs/LogscaleActionHumioAction.cs new file mode 100644 index 00000000..f8b77718 --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionHumioAction.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionHumioAction + { + public readonly string IngestToken; + + [OutputConstructor] + private LogscaleActionHumioAction(string ingestToken) + { + IngestToken = ingestToken; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionOpsGenieAction.cs b/sdk/dotnet/Outputs/LogscaleActionOpsGenieAction.cs new file mode 100644 index 00000000..3395df85 --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionOpsGenieAction.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionOpsGenieAction + { + public readonly string ApiUrl; + public readonly string OpsGenieKey; + public readonly bool? UseProxy; + + [OutputConstructor] + private LogscaleActionOpsGenieAction( + string apiUrl, + + string opsGenieKey, + + bool? useProxy) + { + ApiUrl = apiUrl; + OpsGenieKey = opsGenieKey; + UseProxy = useProxy; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionPagerDutyAction.cs b/sdk/dotnet/Outputs/LogscaleActionPagerDutyAction.cs new file mode 100644 index 00000000..a7e74ed4 --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionPagerDutyAction.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionPagerDutyAction + { + public readonly string RoutingKey; + public readonly string Severity; + public readonly bool? UseProxy; + + [OutputConstructor] + private LogscaleActionPagerDutyAction( + string routingKey, + + string severity, + + bool? useProxy) + { + RoutingKey = routingKey; + Severity = severity; + UseProxy = useProxy; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionSlackAction.cs b/sdk/dotnet/Outputs/LogscaleActionSlackAction.cs new file mode 100644 index 00000000..406d8232 --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionSlackAction.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionSlackAction + { + public readonly ImmutableDictionary? Fields; + public readonly string Url; + public readonly bool? UseProxy; + + [OutputConstructor] + private LogscaleActionSlackAction( + ImmutableDictionary? fields, + + string url, + + bool? useProxy) + { + Fields = fields; + Url = url; + UseProxy = useProxy; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionSlackPostMessageAction.cs b/sdk/dotnet/Outputs/LogscaleActionSlackPostMessageAction.cs new file mode 100644 index 00000000..f1f3fdff --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionSlackPostMessageAction.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionSlackPostMessageAction + { + public readonly string ApiToken; + public readonly ImmutableArray Channels; + public readonly ImmutableDictionary? Fields; + public readonly bool? UseProxy; + + [OutputConstructor] + private LogscaleActionSlackPostMessageAction( + string apiToken, + + ImmutableArray channels, + + ImmutableDictionary? fields, + + bool? useProxy) + { + ApiToken = apiToken; + Channels = channels; + Fields = fields; + UseProxy = useProxy; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionUploadFileAction.cs b/sdk/dotnet/Outputs/LogscaleActionUploadFileAction.cs new file mode 100644 index 00000000..c243d6b5 --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionUploadFileAction.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionUploadFileAction + { + public readonly string FileName; + + [OutputConstructor] + private LogscaleActionUploadFileAction(string fileName) + { + FileName = fileName; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionVictorOpsAction.cs b/sdk/dotnet/Outputs/LogscaleActionVictorOpsAction.cs new file mode 100644 index 00000000..d258f521 --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionVictorOpsAction.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionVictorOpsAction + { + public readonly string MessageType; + public readonly string NotifyUrl; + public readonly bool? UseProxy; + + [OutputConstructor] + private LogscaleActionVictorOpsAction( + string messageType, + + string notifyUrl, + + bool? useProxy) + { + MessageType = messageType; + NotifyUrl = notifyUrl; + UseProxy = useProxy; + } + } +} diff --git a/sdk/dotnet/Outputs/LogscaleActionWebhookAction.cs b/sdk/dotnet/Outputs/LogscaleActionWebhookAction.cs new file mode 100644 index 00000000..ea5dcb31 --- /dev/null +++ b/sdk/dotnet/Outputs/LogscaleActionWebhookAction.cs @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class LogscaleActionWebhookAction + { + public readonly string? BodyTemplate; + public readonly ImmutableDictionary? Headers; + public readonly bool? IgnoreSsl; + public readonly string Method; + public readonly string Url; + public readonly bool? UseProxy; + + [OutputConstructor] + private LogscaleActionWebhookAction( + string? bodyTemplate, + + ImmutableDictionary? headers, + + bool? ignoreSsl, + + string method, + + string url, + + bool? useProxy) + { + BodyTemplate = bodyTemplate; + Headers = headers; + IgnoreSsl = ignoreSsl; + Method = method; + Url = url; + UseProxy = useProxy; + } + } +} diff --git a/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPool.cs b/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPool.cs index 303a3b22..467aa73e 100644 --- a/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPool.cs +++ b/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPool.cs @@ -14,12 +14,12 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class ResourcePoolsConfigDefaultPool { - public readonly Outputs.ResourcePoolsConfigDefaultPoolAllocation Allocation; + public readonly Outputs.ResourcePoolsConfigDefaultPoolAllocation? Allocation; public readonly Outputs.ResourcePoolsConfigDefaultPoolPriorities? Priorities; [OutputConstructor] private ResourcePoolsConfigDefaultPool( - Outputs.ResourcePoolsConfigDefaultPoolAllocation allocation, + Outputs.ResourcePoolsConfigDefaultPoolAllocation? allocation, Outputs.ResourcePoolsConfigDefaultPoolPriorities? priorities) { diff --git a/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocation.cs b/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocation.cs index d8b72738..666783b6 100644 --- a/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocation.cs +++ b/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocation.cs @@ -14,11 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class ResourcePoolsConfigDefaultPoolAllocation { - public readonly double PercentOfLicense; + public readonly ImmutableArray FixedValues; + public readonly double? PercentOfLicense; [OutputConstructor] - private ResourcePoolsConfigDefaultPoolAllocation(double percentOfLicense) + private ResourcePoolsConfigDefaultPoolAllocation( + ImmutableArray fixedValues, + + double? percentOfLicense) { + FixedValues = fixedValues; PercentOfLicense = percentOfLicense; } } diff --git a/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.cs b/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.cs new file mode 100644 index 00000000..3c8ad012 --- /dev/null +++ b/sdk/dotnet/Outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class ResourcePoolsConfigDefaultPoolAllocationFixedValue + { + public readonly string License; + public readonly int Value; + + [OutputConstructor] + private ResourcePoolsConfigDefaultPoolAllocationFixedValue( + string license, + + int value) + { + License = license; + Value = value; + } + } +} diff --git a/sdk/dotnet/Outputs/ResourcePoolsConfigPool.cs b/sdk/dotnet/Outputs/ResourcePoolsConfigPool.cs index 253bbdb4..827b5dfd 100644 --- a/sdk/dotnet/Outputs/ResourcePoolsConfigPool.cs +++ b/sdk/dotnet/Outputs/ResourcePoolsConfigPool.cs @@ -14,7 +14,7 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class ResourcePoolsConfigPool { - public readonly Outputs.ResourcePoolsConfigPoolAllocation Allocation; + public readonly Outputs.ResourcePoolsConfigPoolAllocation? Allocation; public readonly string? MatchRule; public readonly ImmutableArray MatchRules; public readonly string Name; @@ -22,7 +22,7 @@ public sealed class ResourcePoolsConfigPool [OutputConstructor] private ResourcePoolsConfigPool( - Outputs.ResourcePoolsConfigPoolAllocation allocation, + Outputs.ResourcePoolsConfigPoolAllocation? allocation, string? matchRule, diff --git a/sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocation.cs b/sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocation.cs index 56e3a64d..c1accd14 100644 --- a/sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocation.cs +++ b/sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocation.cs @@ -14,11 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class ResourcePoolsConfigPoolAllocation { - public readonly double PercentOfLicense; + public readonly ImmutableArray FixedValues; + public readonly double? PercentOfLicense; [OutputConstructor] - private ResourcePoolsConfigPoolAllocation(double percentOfLicense) + private ResourcePoolsConfigPoolAllocation( + ImmutableArray fixedValues, + + double? percentOfLicense) { + FixedValues = fixedValues; PercentOfLicense = percentOfLicense; } } diff --git a/sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocationFixedValue.cs b/sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocationFixedValue.cs new file mode 100644 index 00000000..621a0d0d --- /dev/null +++ b/sdk/dotnet/Outputs/ResourcePoolsConfigPoolAllocationFixedValue.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace Chronosphere.Pulumi.Outputs +{ + + [OutputType] + public sealed class ResourcePoolsConfigPoolAllocationFixedValue + { + public readonly string License; + public readonly int Value; + + [OutputConstructor] + private ResourcePoolsConfigPoolAllocationFixedValue( + string license, + + int value) + { + License = license; + Value = value; + } + } +} diff --git a/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpan.cs b/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpan.cs index 7865033e..4f949b69 100644 --- a/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpan.cs +++ b/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpan.cs @@ -22,7 +22,6 @@ public sealed class TraceMetricsRuleTraceFilterSpan public readonly Outputs.TraceMetricsRuleTraceFilterSpanParentService? ParentService; public readonly Outputs.TraceMetricsRuleTraceFilterSpanService? Service; public readonly Outputs.TraceMetricsRuleTraceFilterSpanSpanCount? SpanCount; - public readonly ImmutableArray Tag; public readonly ImmutableArray Tags; [OutputConstructor] @@ -43,8 +42,6 @@ private TraceMetricsRuleTraceFilterSpan( Outputs.TraceMetricsRuleTraceFilterSpanSpanCount? spanCount, - ImmutableArray tag, - ImmutableArray tags) { Duration = duration; @@ -55,7 +52,6 @@ private TraceMetricsRuleTraceFilterSpan( ParentService = parentService; Service = service; SpanCount = spanCount; - Tag = tag; Tags = tags; } } diff --git a/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpanDuration.cs b/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpanDuration.cs index 086678d6..6bc50a6d 100644 --- a/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpanDuration.cs +++ b/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterSpanDuration.cs @@ -14,24 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class TraceMetricsRuleTraceFilterSpanDuration { - public readonly double? MaxSeconds; public readonly double? MaxSecs; - public readonly double? MinSeconds; public readonly double? MinSecs; [OutputConstructor] private TraceMetricsRuleTraceFilterSpanDuration( - double? maxSeconds, - double? maxSecs, - double? minSeconds, - double? minSecs) { - MaxSeconds = maxSeconds; MaxSecs = maxSecs; - MinSeconds = minSeconds; MinSecs = minSecs; } } diff --git a/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterTraceDuration.cs b/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterTraceDuration.cs index c5668347..8a0b090a 100644 --- a/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterTraceDuration.cs +++ b/sdk/dotnet/Outputs/TraceMetricsRuleTraceFilterTraceDuration.cs @@ -14,24 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class TraceMetricsRuleTraceFilterTraceDuration { - public readonly double? MaxSeconds; public readonly double? MaxSecs; - public readonly double? MinSeconds; public readonly double? MinSecs; [OutputConstructor] private TraceMetricsRuleTraceFilterTraceDuration( - double? maxSeconds, - double? maxSecs, - double? minSeconds, - double? minSecs) { - MaxSeconds = maxSeconds; MaxSecs = maxSecs; - MinSeconds = minSeconds; MinSecs = minSecs; } } diff --git a/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpan.cs b/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpan.cs index 09659cb7..7d073de5 100644 --- a/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpan.cs +++ b/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpan.cs @@ -22,7 +22,6 @@ public sealed class TraceTailSamplingRulesRuleFilterSpan public readonly Outputs.TraceTailSamplingRulesRuleFilterSpanParentService? ParentService; public readonly Outputs.TraceTailSamplingRulesRuleFilterSpanService? Service; public readonly Outputs.TraceTailSamplingRulesRuleFilterSpanSpanCount? SpanCount; - public readonly ImmutableArray Tag; public readonly ImmutableArray Tags; [OutputConstructor] @@ -43,8 +42,6 @@ private TraceTailSamplingRulesRuleFilterSpan( Outputs.TraceTailSamplingRulesRuleFilterSpanSpanCount? spanCount, - ImmutableArray tag, - ImmutableArray tags) { Duration = duration; @@ -55,7 +52,6 @@ private TraceTailSamplingRulesRuleFilterSpan( ParentService = parentService; Service = service; SpanCount = spanCount; - Tag = tag; Tags = tags; } } diff --git a/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpanDuration.cs b/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpanDuration.cs index 940ee6b5..618ef700 100644 --- a/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpanDuration.cs +++ b/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterSpanDuration.cs @@ -14,24 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class TraceTailSamplingRulesRuleFilterSpanDuration { - public readonly double? MaxSeconds; public readonly double? MaxSecs; - public readonly double? MinSeconds; public readonly double? MinSecs; [OutputConstructor] private TraceTailSamplingRulesRuleFilterSpanDuration( - double? maxSeconds, - double? maxSecs, - double? minSeconds, - double? minSecs) { - MaxSeconds = maxSeconds; MaxSecs = maxSecs; - MinSeconds = minSeconds; MinSecs = minSecs; } } diff --git a/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterTraceDuration.cs b/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterTraceDuration.cs index e08003ed..d4b4d84a 100644 --- a/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterTraceDuration.cs +++ b/sdk/dotnet/Outputs/TraceTailSamplingRulesRuleFilterTraceDuration.cs @@ -14,24 +14,16 @@ namespace Chronosphere.Pulumi.Outputs [OutputType] public sealed class TraceTailSamplingRulesRuleFilterTraceDuration { - public readonly double? MaxSeconds; public readonly double? MaxSecs; - public readonly double? MinSeconds; public readonly double? MinSecs; [OutputConstructor] private TraceTailSamplingRulesRuleFilterTraceDuration( - double? maxSeconds, - double? maxSecs, - double? minSeconds, - double? minSecs) { - MaxSeconds = maxSeconds; MaxSecs = maxSecs; - MinSeconds = minSeconds; MinSecs = minSecs; } } diff --git a/sdk/dotnet/ResourcePoolsConfig.cs b/sdk/dotnet/ResourcePoolsConfig.cs index 644fbe77..a7684635 100644 --- a/sdk/dotnet/ResourcePoolsConfig.cs +++ b/sdk/dotnet/ResourcePoolsConfig.cs @@ -14,7 +14,7 @@ namespace Chronosphere.Pulumi public partial class ResourcePoolsConfig : global::Pulumi.CustomResource { [Output("defaultPool")] - public Output DefaultPool { get; private set; } = null!; + public Output DefaultPool { get; private set; } = null!; [Output("pool")] public Output> Pool { get; private set; } = null!; @@ -30,7 +30,7 @@ public partial class ResourcePoolsConfig : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public ResourcePoolsConfig(string name, ResourcePoolsConfigArgs args, CustomResourceOptions? options = null) + public ResourcePoolsConfig(string name, ResourcePoolsConfigArgs? args = null, CustomResourceOptions? options = null) : base("chronosphere:index/resourcePoolsConfig:ResourcePoolsConfig", name, args ?? new ResourcePoolsConfigArgs(), MakeResourceOptions(options, "")) { } @@ -68,8 +68,8 @@ public static ResourcePoolsConfig Get(string name, Input id, ResourcePoo public sealed class ResourcePoolsConfigArgs : global::Pulumi.ResourceArgs { - [Input("defaultPool", required: true)] - public Input DefaultPool { get; set; } = null!; + [Input("defaultPool")] + public Input? DefaultPool { get; set; } [Input("pool")] private InputList? _pool; diff --git a/sdk/go/chronosphere/init.go b/sdk/go/chronosphere/init.go index 123d5c9b..bf63fcae 100644 --- a/sdk/go/chronosphere/init.go +++ b/sdk/go/chronosphere/init.go @@ -43,6 +43,12 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &EmailAlertNotifier{} case "chronosphere:index/gcpMetricsIntegration:GcpMetricsIntegration": r = &GcpMetricsIntegration{} + case "chronosphere:index/logAllocationConfig:LogAllocationConfig": + r = &LogAllocationConfig{} + case "chronosphere:index/logscaleAction:LogscaleAction": + r = &LogscaleAction{} + case "chronosphere:index/logscaleAlert:LogscaleAlert": + r = &LogscaleAlert{} case "chronosphere:index/mappingRule:MappingRule": r = &MappingRule{} case "chronosphere:index/monitor:Monitor": @@ -163,6 +169,21 @@ func init() { "index/gcpMetricsIntegration", &module{version}, ) + pulumi.RegisterResourceModule( + "chronosphere", + "index/logAllocationConfig", + &module{version}, + ) + pulumi.RegisterResourceModule( + "chronosphere", + "index/logscaleAction", + &module{version}, + ) + pulumi.RegisterResourceModule( + "chronosphere", + "index/logscaleAlert", + &module{version}, + ) pulumi.RegisterResourceModule( "chronosphere", "index/mappingRule", diff --git a/sdk/go/chronosphere/logAllocationConfig.go b/sdk/go/chronosphere/logAllocationConfig.go new file mode 100644 index 00000000..8839d27b --- /dev/null +++ b/sdk/go/chronosphere/logAllocationConfig.go @@ -0,0 +1,223 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package chronosphere + +import ( + "context" + "reflect" + + "errors" + "github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type LogAllocationConfig struct { + pulumi.CustomResourceState + + DatasetAllocations LogAllocationConfigDatasetAllocationArrayOutput `pulumi:"datasetAllocations"` + DefaultDataset LogAllocationConfigDefaultDatasetOutput `pulumi:"defaultDataset"` +} + +// NewLogAllocationConfig registers a new resource with the given unique name, arguments, and options. +func NewLogAllocationConfig(ctx *pulumi.Context, + name string, args *LogAllocationConfigArgs, opts ...pulumi.ResourceOption) (*LogAllocationConfig, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.DefaultDataset == nil { + return nil, errors.New("invalid value for required argument 'DefaultDataset'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource LogAllocationConfig + err := ctx.RegisterResource("chronosphere:index/logAllocationConfig:LogAllocationConfig", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetLogAllocationConfig gets an existing LogAllocationConfig resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetLogAllocationConfig(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *LogAllocationConfigState, opts ...pulumi.ResourceOption) (*LogAllocationConfig, error) { + var resource LogAllocationConfig + err := ctx.ReadResource("chronosphere:index/logAllocationConfig:LogAllocationConfig", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering LogAllocationConfig resources. +type logAllocationConfigState struct { + DatasetAllocations []LogAllocationConfigDatasetAllocation `pulumi:"datasetAllocations"` + DefaultDataset *LogAllocationConfigDefaultDataset `pulumi:"defaultDataset"` +} + +type LogAllocationConfigState struct { + DatasetAllocations LogAllocationConfigDatasetAllocationArrayInput + DefaultDataset LogAllocationConfigDefaultDatasetPtrInput +} + +func (LogAllocationConfigState) ElementType() reflect.Type { + return reflect.TypeOf((*logAllocationConfigState)(nil)).Elem() +} + +type logAllocationConfigArgs struct { + DatasetAllocations []LogAllocationConfigDatasetAllocation `pulumi:"datasetAllocations"` + DefaultDataset LogAllocationConfigDefaultDataset `pulumi:"defaultDataset"` +} + +// The set of arguments for constructing a LogAllocationConfig resource. +type LogAllocationConfigArgs struct { + DatasetAllocations LogAllocationConfigDatasetAllocationArrayInput + DefaultDataset LogAllocationConfigDefaultDatasetInput +} + +func (LogAllocationConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*logAllocationConfigArgs)(nil)).Elem() +} + +type LogAllocationConfigInput interface { + pulumi.Input + + ToLogAllocationConfigOutput() LogAllocationConfigOutput + ToLogAllocationConfigOutputWithContext(ctx context.Context) LogAllocationConfigOutput +} + +func (*LogAllocationConfig) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfig)(nil)).Elem() +} + +func (i *LogAllocationConfig) ToLogAllocationConfigOutput() LogAllocationConfigOutput { + return i.ToLogAllocationConfigOutputWithContext(context.Background()) +} + +func (i *LogAllocationConfig) ToLogAllocationConfigOutputWithContext(ctx context.Context) LogAllocationConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigOutput) +} + +// LogAllocationConfigArrayInput is an input type that accepts LogAllocationConfigArray and LogAllocationConfigArrayOutput values. +// You can construct a concrete instance of `LogAllocationConfigArrayInput` via: +// +// LogAllocationConfigArray{ LogAllocationConfigArgs{...} } +type LogAllocationConfigArrayInput interface { + pulumi.Input + + ToLogAllocationConfigArrayOutput() LogAllocationConfigArrayOutput + ToLogAllocationConfigArrayOutputWithContext(context.Context) LogAllocationConfigArrayOutput +} + +type LogAllocationConfigArray []LogAllocationConfigInput + +func (LogAllocationConfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LogAllocationConfig)(nil)).Elem() +} + +func (i LogAllocationConfigArray) ToLogAllocationConfigArrayOutput() LogAllocationConfigArrayOutput { + return i.ToLogAllocationConfigArrayOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigArray) ToLogAllocationConfigArrayOutputWithContext(ctx context.Context) LogAllocationConfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigArrayOutput) +} + +// LogAllocationConfigMapInput is an input type that accepts LogAllocationConfigMap and LogAllocationConfigMapOutput values. +// You can construct a concrete instance of `LogAllocationConfigMapInput` via: +// +// LogAllocationConfigMap{ "key": LogAllocationConfigArgs{...} } +type LogAllocationConfigMapInput interface { + pulumi.Input + + ToLogAllocationConfigMapOutput() LogAllocationConfigMapOutput + ToLogAllocationConfigMapOutputWithContext(context.Context) LogAllocationConfigMapOutput +} + +type LogAllocationConfigMap map[string]LogAllocationConfigInput + +func (LogAllocationConfigMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LogAllocationConfig)(nil)).Elem() +} + +func (i LogAllocationConfigMap) ToLogAllocationConfigMapOutput() LogAllocationConfigMapOutput { + return i.ToLogAllocationConfigMapOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigMap) ToLogAllocationConfigMapOutputWithContext(ctx context.Context) LogAllocationConfigMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigMapOutput) +} + +type LogAllocationConfigOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfig)(nil)).Elem() +} + +func (o LogAllocationConfigOutput) ToLogAllocationConfigOutput() LogAllocationConfigOutput { + return o +} + +func (o LogAllocationConfigOutput) ToLogAllocationConfigOutputWithContext(ctx context.Context) LogAllocationConfigOutput { + return o +} + +func (o LogAllocationConfigOutput) DatasetAllocations() LogAllocationConfigDatasetAllocationArrayOutput { + return o.ApplyT(func(v *LogAllocationConfig) LogAllocationConfigDatasetAllocationArrayOutput { + return v.DatasetAllocations + }).(LogAllocationConfigDatasetAllocationArrayOutput) +} + +func (o LogAllocationConfigOutput) DefaultDataset() LogAllocationConfigDefaultDatasetOutput { + return o.ApplyT(func(v *LogAllocationConfig) LogAllocationConfigDefaultDatasetOutput { return v.DefaultDataset }).(LogAllocationConfigDefaultDatasetOutput) +} + +type LogAllocationConfigArrayOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LogAllocationConfig)(nil)).Elem() +} + +func (o LogAllocationConfigArrayOutput) ToLogAllocationConfigArrayOutput() LogAllocationConfigArrayOutput { + return o +} + +func (o LogAllocationConfigArrayOutput) ToLogAllocationConfigArrayOutputWithContext(ctx context.Context) LogAllocationConfigArrayOutput { + return o +} + +func (o LogAllocationConfigArrayOutput) Index(i pulumi.IntInput) LogAllocationConfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LogAllocationConfig { + return vs[0].([]*LogAllocationConfig)[vs[1].(int)] + }).(LogAllocationConfigOutput) +} + +type LogAllocationConfigMapOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LogAllocationConfig)(nil)).Elem() +} + +func (o LogAllocationConfigMapOutput) ToLogAllocationConfigMapOutput() LogAllocationConfigMapOutput { + return o +} + +func (o LogAllocationConfigMapOutput) ToLogAllocationConfigMapOutputWithContext(ctx context.Context) LogAllocationConfigMapOutput { + return o +} + +func (o LogAllocationConfigMapOutput) MapIndex(k pulumi.StringInput) LogAllocationConfigOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LogAllocationConfig { + return vs[0].(map[string]*LogAllocationConfig)[vs[1].(string)] + }).(LogAllocationConfigOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigInput)(nil)).Elem(), &LogAllocationConfig{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigArrayInput)(nil)).Elem(), LogAllocationConfigArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigMapInput)(nil)).Elem(), LogAllocationConfigMap{}) + pulumi.RegisterOutputType(LogAllocationConfigOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigArrayOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigMapOutput{}) +} diff --git a/sdk/go/chronosphere/logscaleAction.go b/sdk/go/chronosphere/logscaleAction.go new file mode 100644 index 00000000..97725d0c --- /dev/null +++ b/sdk/go/chronosphere/logscaleAction.go @@ -0,0 +1,314 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package chronosphere + +import ( + "context" + "reflect" + + "errors" + "github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type LogscaleAction struct { + pulumi.CustomResourceState + + EmailAction LogscaleActionEmailActionPtrOutput `pulumi:"emailAction"` + HumioAction LogscaleActionHumioActionPtrOutput `pulumi:"humioAction"` + Name pulumi.StringOutput `pulumi:"name"` + OpsGenieAction LogscaleActionOpsGenieActionPtrOutput `pulumi:"opsGenieAction"` + PagerDutyAction LogscaleActionPagerDutyActionPtrOutput `pulumi:"pagerDutyAction"` + Repository pulumi.StringOutput `pulumi:"repository"` + SlackAction LogscaleActionSlackActionPtrOutput `pulumi:"slackAction"` + SlackPostMessageAction LogscaleActionSlackPostMessageActionPtrOutput `pulumi:"slackPostMessageAction"` + Slug pulumi.StringOutput `pulumi:"slug"` + UploadFileAction LogscaleActionUploadFileActionPtrOutput `pulumi:"uploadFileAction"` + VictorOpsAction LogscaleActionVictorOpsActionPtrOutput `pulumi:"victorOpsAction"` + WebhookAction LogscaleActionWebhookActionPtrOutput `pulumi:"webhookAction"` +} + +// NewLogscaleAction registers a new resource with the given unique name, arguments, and options. +func NewLogscaleAction(ctx *pulumi.Context, + name string, args *LogscaleActionArgs, opts ...pulumi.ResourceOption) (*LogscaleAction, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Repository == nil { + return nil, errors.New("invalid value for required argument 'Repository'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource LogscaleAction + err := ctx.RegisterResource("chronosphere:index/logscaleAction:LogscaleAction", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetLogscaleAction gets an existing LogscaleAction resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetLogscaleAction(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *LogscaleActionState, opts ...pulumi.ResourceOption) (*LogscaleAction, error) { + var resource LogscaleAction + err := ctx.ReadResource("chronosphere:index/logscaleAction:LogscaleAction", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering LogscaleAction resources. +type logscaleActionState struct { + EmailAction *LogscaleActionEmailAction `pulumi:"emailAction"` + HumioAction *LogscaleActionHumioAction `pulumi:"humioAction"` + Name *string `pulumi:"name"` + OpsGenieAction *LogscaleActionOpsGenieAction `pulumi:"opsGenieAction"` + PagerDutyAction *LogscaleActionPagerDutyAction `pulumi:"pagerDutyAction"` + Repository *string `pulumi:"repository"` + SlackAction *LogscaleActionSlackAction `pulumi:"slackAction"` + SlackPostMessageAction *LogscaleActionSlackPostMessageAction `pulumi:"slackPostMessageAction"` + Slug *string `pulumi:"slug"` + UploadFileAction *LogscaleActionUploadFileAction `pulumi:"uploadFileAction"` + VictorOpsAction *LogscaleActionVictorOpsAction `pulumi:"victorOpsAction"` + WebhookAction *LogscaleActionWebhookAction `pulumi:"webhookAction"` +} + +type LogscaleActionState struct { + EmailAction LogscaleActionEmailActionPtrInput + HumioAction LogscaleActionHumioActionPtrInput + Name pulumi.StringPtrInput + OpsGenieAction LogscaleActionOpsGenieActionPtrInput + PagerDutyAction LogscaleActionPagerDutyActionPtrInput + Repository pulumi.StringPtrInput + SlackAction LogscaleActionSlackActionPtrInput + SlackPostMessageAction LogscaleActionSlackPostMessageActionPtrInput + Slug pulumi.StringPtrInput + UploadFileAction LogscaleActionUploadFileActionPtrInput + VictorOpsAction LogscaleActionVictorOpsActionPtrInput + WebhookAction LogscaleActionWebhookActionPtrInput +} + +func (LogscaleActionState) ElementType() reflect.Type { + return reflect.TypeOf((*logscaleActionState)(nil)).Elem() +} + +type logscaleActionArgs struct { + EmailAction *LogscaleActionEmailAction `pulumi:"emailAction"` + HumioAction *LogscaleActionHumioAction `pulumi:"humioAction"` + Name string `pulumi:"name"` + OpsGenieAction *LogscaleActionOpsGenieAction `pulumi:"opsGenieAction"` + PagerDutyAction *LogscaleActionPagerDutyAction `pulumi:"pagerDutyAction"` + Repository string `pulumi:"repository"` + SlackAction *LogscaleActionSlackAction `pulumi:"slackAction"` + SlackPostMessageAction *LogscaleActionSlackPostMessageAction `pulumi:"slackPostMessageAction"` + Slug *string `pulumi:"slug"` + UploadFileAction *LogscaleActionUploadFileAction `pulumi:"uploadFileAction"` + VictorOpsAction *LogscaleActionVictorOpsAction `pulumi:"victorOpsAction"` + WebhookAction *LogscaleActionWebhookAction `pulumi:"webhookAction"` +} + +// The set of arguments for constructing a LogscaleAction resource. +type LogscaleActionArgs struct { + EmailAction LogscaleActionEmailActionPtrInput + HumioAction LogscaleActionHumioActionPtrInput + Name pulumi.StringInput + OpsGenieAction LogscaleActionOpsGenieActionPtrInput + PagerDutyAction LogscaleActionPagerDutyActionPtrInput + Repository pulumi.StringInput + SlackAction LogscaleActionSlackActionPtrInput + SlackPostMessageAction LogscaleActionSlackPostMessageActionPtrInput + Slug pulumi.StringPtrInput + UploadFileAction LogscaleActionUploadFileActionPtrInput + VictorOpsAction LogscaleActionVictorOpsActionPtrInput + WebhookAction LogscaleActionWebhookActionPtrInput +} + +func (LogscaleActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*logscaleActionArgs)(nil)).Elem() +} + +type LogscaleActionInput interface { + pulumi.Input + + ToLogscaleActionOutput() LogscaleActionOutput + ToLogscaleActionOutputWithContext(ctx context.Context) LogscaleActionOutput +} + +func (*LogscaleAction) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleAction)(nil)).Elem() +} + +func (i *LogscaleAction) ToLogscaleActionOutput() LogscaleActionOutput { + return i.ToLogscaleActionOutputWithContext(context.Background()) +} + +func (i *LogscaleAction) ToLogscaleActionOutputWithContext(ctx context.Context) LogscaleActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionOutput) +} + +// LogscaleActionArrayInput is an input type that accepts LogscaleActionArray and LogscaleActionArrayOutput values. +// You can construct a concrete instance of `LogscaleActionArrayInput` via: +// +// LogscaleActionArray{ LogscaleActionArgs{...} } +type LogscaleActionArrayInput interface { + pulumi.Input + + ToLogscaleActionArrayOutput() LogscaleActionArrayOutput + ToLogscaleActionArrayOutputWithContext(context.Context) LogscaleActionArrayOutput +} + +type LogscaleActionArray []LogscaleActionInput + +func (LogscaleActionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LogscaleAction)(nil)).Elem() +} + +func (i LogscaleActionArray) ToLogscaleActionArrayOutput() LogscaleActionArrayOutput { + return i.ToLogscaleActionArrayOutputWithContext(context.Background()) +} + +func (i LogscaleActionArray) ToLogscaleActionArrayOutputWithContext(ctx context.Context) LogscaleActionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionArrayOutput) +} + +// LogscaleActionMapInput is an input type that accepts LogscaleActionMap and LogscaleActionMapOutput values. +// You can construct a concrete instance of `LogscaleActionMapInput` via: +// +// LogscaleActionMap{ "key": LogscaleActionArgs{...} } +type LogscaleActionMapInput interface { + pulumi.Input + + ToLogscaleActionMapOutput() LogscaleActionMapOutput + ToLogscaleActionMapOutputWithContext(context.Context) LogscaleActionMapOutput +} + +type LogscaleActionMap map[string]LogscaleActionInput + +func (LogscaleActionMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LogscaleAction)(nil)).Elem() +} + +func (i LogscaleActionMap) ToLogscaleActionMapOutput() LogscaleActionMapOutput { + return i.ToLogscaleActionMapOutputWithContext(context.Background()) +} + +func (i LogscaleActionMap) ToLogscaleActionMapOutputWithContext(ctx context.Context) LogscaleActionMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionMapOutput) +} + +type LogscaleActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleAction)(nil)).Elem() +} + +func (o LogscaleActionOutput) ToLogscaleActionOutput() LogscaleActionOutput { + return o +} + +func (o LogscaleActionOutput) ToLogscaleActionOutputWithContext(ctx context.Context) LogscaleActionOutput { + return o +} + +func (o LogscaleActionOutput) EmailAction() LogscaleActionEmailActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionEmailActionPtrOutput { return v.EmailAction }).(LogscaleActionEmailActionPtrOutput) +} + +func (o LogscaleActionOutput) HumioAction() LogscaleActionHumioActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionHumioActionPtrOutput { return v.HumioAction }).(LogscaleActionHumioActionPtrOutput) +} + +func (o LogscaleActionOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAction) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +func (o LogscaleActionOutput) OpsGenieAction() LogscaleActionOpsGenieActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionOpsGenieActionPtrOutput { return v.OpsGenieAction }).(LogscaleActionOpsGenieActionPtrOutput) +} + +func (o LogscaleActionOutput) PagerDutyAction() LogscaleActionPagerDutyActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionPagerDutyActionPtrOutput { return v.PagerDutyAction }).(LogscaleActionPagerDutyActionPtrOutput) +} + +func (o LogscaleActionOutput) Repository() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAction) pulumi.StringOutput { return v.Repository }).(pulumi.StringOutput) +} + +func (o LogscaleActionOutput) SlackAction() LogscaleActionSlackActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionSlackActionPtrOutput { return v.SlackAction }).(LogscaleActionSlackActionPtrOutput) +} + +func (o LogscaleActionOutput) SlackPostMessageAction() LogscaleActionSlackPostMessageActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionSlackPostMessageActionPtrOutput { return v.SlackPostMessageAction }).(LogscaleActionSlackPostMessageActionPtrOutput) +} + +func (o LogscaleActionOutput) Slug() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAction) pulumi.StringOutput { return v.Slug }).(pulumi.StringOutput) +} + +func (o LogscaleActionOutput) UploadFileAction() LogscaleActionUploadFileActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionUploadFileActionPtrOutput { return v.UploadFileAction }).(LogscaleActionUploadFileActionPtrOutput) +} + +func (o LogscaleActionOutput) VictorOpsAction() LogscaleActionVictorOpsActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionVictorOpsActionPtrOutput { return v.VictorOpsAction }).(LogscaleActionVictorOpsActionPtrOutput) +} + +func (o LogscaleActionOutput) WebhookAction() LogscaleActionWebhookActionPtrOutput { + return o.ApplyT(func(v *LogscaleAction) LogscaleActionWebhookActionPtrOutput { return v.WebhookAction }).(LogscaleActionWebhookActionPtrOutput) +} + +type LogscaleActionArrayOutput struct{ *pulumi.OutputState } + +func (LogscaleActionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LogscaleAction)(nil)).Elem() +} + +func (o LogscaleActionArrayOutput) ToLogscaleActionArrayOutput() LogscaleActionArrayOutput { + return o +} + +func (o LogscaleActionArrayOutput) ToLogscaleActionArrayOutputWithContext(ctx context.Context) LogscaleActionArrayOutput { + return o +} + +func (o LogscaleActionArrayOutput) Index(i pulumi.IntInput) LogscaleActionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LogscaleAction { + return vs[0].([]*LogscaleAction)[vs[1].(int)] + }).(LogscaleActionOutput) +} + +type LogscaleActionMapOutput struct{ *pulumi.OutputState } + +func (LogscaleActionMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LogscaleAction)(nil)).Elem() +} + +func (o LogscaleActionMapOutput) ToLogscaleActionMapOutput() LogscaleActionMapOutput { + return o +} + +func (o LogscaleActionMapOutput) ToLogscaleActionMapOutputWithContext(ctx context.Context) LogscaleActionMapOutput { + return o +} + +func (o LogscaleActionMapOutput) MapIndex(k pulumi.StringInput) LogscaleActionOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LogscaleAction { + return vs[0].(map[string]*LogscaleAction)[vs[1].(string)] + }).(LogscaleActionOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionInput)(nil)).Elem(), &LogscaleAction{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionArrayInput)(nil)).Elem(), LogscaleActionArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionMapInput)(nil)).Elem(), LogscaleActionMap{}) + pulumi.RegisterOutputType(LogscaleActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionArrayOutput{}) + pulumi.RegisterOutputType(LogscaleActionMapOutput{}) +} diff --git a/sdk/go/chronosphere/logscaleAlert.go b/sdk/go/chronosphere/logscaleAlert.go new file mode 100644 index 00000000..9736b655 --- /dev/null +++ b/sdk/go/chronosphere/logscaleAlert.go @@ -0,0 +1,347 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package chronosphere + +import ( + "context" + "reflect" + + "errors" + "github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type LogscaleAlert struct { + pulumi.CustomResourceState + + ActionIds pulumi.StringArrayOutput `pulumi:"actionIds"` + AlertType pulumi.StringOutput `pulumi:"alertType"` + Description pulumi.StringPtrOutput `pulumi:"description"` + Disabled pulumi.BoolPtrOutput `pulumi:"disabled"` + Name pulumi.StringOutput `pulumi:"name"` + Query pulumi.StringPtrOutput `pulumi:"query"` + Repository pulumi.StringOutput `pulumi:"repository"` + // Email of the user that the alert runs on behalf of + RunAsUser pulumi.StringOutput `pulumi:"runAsUser"` + Slug pulumi.StringOutput `pulumi:"slug"` + Tags pulumi.StringArrayOutput `pulumi:"tags"` + // Required for STANDARD type alerts, optional for FILTER type alerts + ThrottleDuration pulumi.StringPtrOutput `pulumi:"throttleDuration"` + ThrottleField pulumi.StringPtrOutput `pulumi:"throttleField"` + // Required for STANDARD type alerts, ignored for FILTER type alerts + TimeWindow pulumi.StringPtrOutput `pulumi:"timeWindow"` +} + +// NewLogscaleAlert registers a new resource with the given unique name, arguments, and options. +func NewLogscaleAlert(ctx *pulumi.Context, + name string, args *LogscaleAlertArgs, opts ...pulumi.ResourceOption) (*LogscaleAlert, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AlertType == nil { + return nil, errors.New("invalid value for required argument 'AlertType'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Repository == nil { + return nil, errors.New("invalid value for required argument 'Repository'") + } + if args.RunAsUser == nil { + return nil, errors.New("invalid value for required argument 'RunAsUser'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource LogscaleAlert + err := ctx.RegisterResource("chronosphere:index/logscaleAlert:LogscaleAlert", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetLogscaleAlert gets an existing LogscaleAlert resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetLogscaleAlert(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *LogscaleAlertState, opts ...pulumi.ResourceOption) (*LogscaleAlert, error) { + var resource LogscaleAlert + err := ctx.ReadResource("chronosphere:index/logscaleAlert:LogscaleAlert", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering LogscaleAlert resources. +type logscaleAlertState struct { + ActionIds []string `pulumi:"actionIds"` + AlertType *string `pulumi:"alertType"` + Description *string `pulumi:"description"` + Disabled *bool `pulumi:"disabled"` + Name *string `pulumi:"name"` + Query *string `pulumi:"query"` + Repository *string `pulumi:"repository"` + // Email of the user that the alert runs on behalf of + RunAsUser *string `pulumi:"runAsUser"` + Slug *string `pulumi:"slug"` + Tags []string `pulumi:"tags"` + // Required for STANDARD type alerts, optional for FILTER type alerts + ThrottleDuration *string `pulumi:"throttleDuration"` + ThrottleField *string `pulumi:"throttleField"` + // Required for STANDARD type alerts, ignored for FILTER type alerts + TimeWindow *string `pulumi:"timeWindow"` +} + +type LogscaleAlertState struct { + ActionIds pulumi.StringArrayInput + AlertType pulumi.StringPtrInput + Description pulumi.StringPtrInput + Disabled pulumi.BoolPtrInput + Name pulumi.StringPtrInput + Query pulumi.StringPtrInput + Repository pulumi.StringPtrInput + // Email of the user that the alert runs on behalf of + RunAsUser pulumi.StringPtrInput + Slug pulumi.StringPtrInput + Tags pulumi.StringArrayInput + // Required for STANDARD type alerts, optional for FILTER type alerts + ThrottleDuration pulumi.StringPtrInput + ThrottleField pulumi.StringPtrInput + // Required for STANDARD type alerts, ignored for FILTER type alerts + TimeWindow pulumi.StringPtrInput +} + +func (LogscaleAlertState) ElementType() reflect.Type { + return reflect.TypeOf((*logscaleAlertState)(nil)).Elem() +} + +type logscaleAlertArgs struct { + ActionIds []string `pulumi:"actionIds"` + AlertType string `pulumi:"alertType"` + Description *string `pulumi:"description"` + Disabled *bool `pulumi:"disabled"` + Name string `pulumi:"name"` + Query *string `pulumi:"query"` + Repository string `pulumi:"repository"` + // Email of the user that the alert runs on behalf of + RunAsUser string `pulumi:"runAsUser"` + Slug *string `pulumi:"slug"` + Tags []string `pulumi:"tags"` + // Required for STANDARD type alerts, optional for FILTER type alerts + ThrottleDuration *string `pulumi:"throttleDuration"` + ThrottleField *string `pulumi:"throttleField"` + // Required for STANDARD type alerts, ignored for FILTER type alerts + TimeWindow *string `pulumi:"timeWindow"` +} + +// The set of arguments for constructing a LogscaleAlert resource. +type LogscaleAlertArgs struct { + ActionIds pulumi.StringArrayInput + AlertType pulumi.StringInput + Description pulumi.StringPtrInput + Disabled pulumi.BoolPtrInput + Name pulumi.StringInput + Query pulumi.StringPtrInput + Repository pulumi.StringInput + // Email of the user that the alert runs on behalf of + RunAsUser pulumi.StringInput + Slug pulumi.StringPtrInput + Tags pulumi.StringArrayInput + // Required for STANDARD type alerts, optional for FILTER type alerts + ThrottleDuration pulumi.StringPtrInput + ThrottleField pulumi.StringPtrInput + // Required for STANDARD type alerts, ignored for FILTER type alerts + TimeWindow pulumi.StringPtrInput +} + +func (LogscaleAlertArgs) ElementType() reflect.Type { + return reflect.TypeOf((*logscaleAlertArgs)(nil)).Elem() +} + +type LogscaleAlertInput interface { + pulumi.Input + + ToLogscaleAlertOutput() LogscaleAlertOutput + ToLogscaleAlertOutputWithContext(ctx context.Context) LogscaleAlertOutput +} + +func (*LogscaleAlert) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleAlert)(nil)).Elem() +} + +func (i *LogscaleAlert) ToLogscaleAlertOutput() LogscaleAlertOutput { + return i.ToLogscaleAlertOutputWithContext(context.Background()) +} + +func (i *LogscaleAlert) ToLogscaleAlertOutputWithContext(ctx context.Context) LogscaleAlertOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleAlertOutput) +} + +// LogscaleAlertArrayInput is an input type that accepts LogscaleAlertArray and LogscaleAlertArrayOutput values. +// You can construct a concrete instance of `LogscaleAlertArrayInput` via: +// +// LogscaleAlertArray{ LogscaleAlertArgs{...} } +type LogscaleAlertArrayInput interface { + pulumi.Input + + ToLogscaleAlertArrayOutput() LogscaleAlertArrayOutput + ToLogscaleAlertArrayOutputWithContext(context.Context) LogscaleAlertArrayOutput +} + +type LogscaleAlertArray []LogscaleAlertInput + +func (LogscaleAlertArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LogscaleAlert)(nil)).Elem() +} + +func (i LogscaleAlertArray) ToLogscaleAlertArrayOutput() LogscaleAlertArrayOutput { + return i.ToLogscaleAlertArrayOutputWithContext(context.Background()) +} + +func (i LogscaleAlertArray) ToLogscaleAlertArrayOutputWithContext(ctx context.Context) LogscaleAlertArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleAlertArrayOutput) +} + +// LogscaleAlertMapInput is an input type that accepts LogscaleAlertMap and LogscaleAlertMapOutput values. +// You can construct a concrete instance of `LogscaleAlertMapInput` via: +// +// LogscaleAlertMap{ "key": LogscaleAlertArgs{...} } +type LogscaleAlertMapInput interface { + pulumi.Input + + ToLogscaleAlertMapOutput() LogscaleAlertMapOutput + ToLogscaleAlertMapOutputWithContext(context.Context) LogscaleAlertMapOutput +} + +type LogscaleAlertMap map[string]LogscaleAlertInput + +func (LogscaleAlertMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LogscaleAlert)(nil)).Elem() +} + +func (i LogscaleAlertMap) ToLogscaleAlertMapOutput() LogscaleAlertMapOutput { + return i.ToLogscaleAlertMapOutputWithContext(context.Background()) +} + +func (i LogscaleAlertMap) ToLogscaleAlertMapOutputWithContext(ctx context.Context) LogscaleAlertMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleAlertMapOutput) +} + +type LogscaleAlertOutput struct{ *pulumi.OutputState } + +func (LogscaleAlertOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleAlert)(nil)).Elem() +} + +func (o LogscaleAlertOutput) ToLogscaleAlertOutput() LogscaleAlertOutput { + return o +} + +func (o LogscaleAlertOutput) ToLogscaleAlertOutputWithContext(ctx context.Context) LogscaleAlertOutput { + return o +} + +func (o LogscaleAlertOutput) ActionIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringArrayOutput { return v.ActionIds }).(pulumi.StringArrayOutput) +} + +func (o LogscaleAlertOutput) AlertType() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringOutput { return v.AlertType }).(pulumi.StringOutput) +} + +func (o LogscaleAlertOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + +func (o LogscaleAlertOutput) Disabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.BoolPtrOutput { return v.Disabled }).(pulumi.BoolPtrOutput) +} + +func (o LogscaleAlertOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +func (o LogscaleAlertOutput) Query() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringPtrOutput { return v.Query }).(pulumi.StringPtrOutput) +} + +func (o LogscaleAlertOutput) Repository() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringOutput { return v.Repository }).(pulumi.StringOutput) +} + +// Email of the user that the alert runs on behalf of +func (o LogscaleAlertOutput) RunAsUser() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringOutput { return v.RunAsUser }).(pulumi.StringOutput) +} + +func (o LogscaleAlertOutput) Slug() pulumi.StringOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringOutput { return v.Slug }).(pulumi.StringOutput) +} + +func (o LogscaleAlertOutput) Tags() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput) +} + +// Required for STANDARD type alerts, optional for FILTER type alerts +func (o LogscaleAlertOutput) ThrottleDuration() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringPtrOutput { return v.ThrottleDuration }).(pulumi.StringPtrOutput) +} + +func (o LogscaleAlertOutput) ThrottleField() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringPtrOutput { return v.ThrottleField }).(pulumi.StringPtrOutput) +} + +// Required for STANDARD type alerts, ignored for FILTER type alerts +func (o LogscaleAlertOutput) TimeWindow() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleAlert) pulumi.StringPtrOutput { return v.TimeWindow }).(pulumi.StringPtrOutput) +} + +type LogscaleAlertArrayOutput struct{ *pulumi.OutputState } + +func (LogscaleAlertArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LogscaleAlert)(nil)).Elem() +} + +func (o LogscaleAlertArrayOutput) ToLogscaleAlertArrayOutput() LogscaleAlertArrayOutput { + return o +} + +func (o LogscaleAlertArrayOutput) ToLogscaleAlertArrayOutputWithContext(ctx context.Context) LogscaleAlertArrayOutput { + return o +} + +func (o LogscaleAlertArrayOutput) Index(i pulumi.IntInput) LogscaleAlertOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LogscaleAlert { + return vs[0].([]*LogscaleAlert)[vs[1].(int)] + }).(LogscaleAlertOutput) +} + +type LogscaleAlertMapOutput struct{ *pulumi.OutputState } + +func (LogscaleAlertMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LogscaleAlert)(nil)).Elem() +} + +func (o LogscaleAlertMapOutput) ToLogscaleAlertMapOutput() LogscaleAlertMapOutput { + return o +} + +func (o LogscaleAlertMapOutput) ToLogscaleAlertMapOutputWithContext(ctx context.Context) LogscaleAlertMapOutput { + return o +} + +func (o LogscaleAlertMapOutput) MapIndex(k pulumi.StringInput) LogscaleAlertOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LogscaleAlert { + return vs[0].(map[string]*LogscaleAlert)[vs[1].(string)] + }).(LogscaleAlertOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleAlertInput)(nil)).Elem(), &LogscaleAlert{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleAlertArrayInput)(nil)).Elem(), LogscaleAlertArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleAlertMapInput)(nil)).Elem(), LogscaleAlertMap{}) + pulumi.RegisterOutputType(LogscaleAlertOutput{}) + pulumi.RegisterOutputType(LogscaleAlertArrayOutput{}) + pulumi.RegisterOutputType(LogscaleAlertMapOutput{}) +} diff --git a/sdk/go/chronosphere/pulumiTypes.go b/sdk/go/chronosphere/pulumiTypes.go index 2d2c302a..b4a6a114 100644 --- a/sdk/go/chronosphere/pulumiTypes.go +++ b/sdk/go/chronosphere/pulumiTypes.go @@ -14,6 +14,7 @@ import ( var _ = internal.GetEnvOrDefault type DatasetConfiguration struct { + LogDataset *DatasetConfigurationLogDataset `pulumi:"logDataset"` TraceDataset *DatasetConfigurationTraceDataset `pulumi:"traceDataset"` Type string `pulumi:"type"` } @@ -30,6 +31,7 @@ type DatasetConfigurationInput interface { } type DatasetConfigurationArgs struct { + LogDataset DatasetConfigurationLogDatasetPtrInput `pulumi:"logDataset"` TraceDataset DatasetConfigurationTraceDatasetPtrInput `pulumi:"traceDataset"` Type pulumi.StringInput `pulumi:"type"` } @@ -111,6 +113,10 @@ func (o DatasetConfigurationOutput) ToDatasetConfigurationPtrOutputWithContext(c }).(DatasetConfigurationPtrOutput) } +func (o DatasetConfigurationOutput) LogDataset() DatasetConfigurationLogDatasetPtrOutput { + return o.ApplyT(func(v DatasetConfiguration) *DatasetConfigurationLogDataset { return v.LogDataset }).(DatasetConfigurationLogDatasetPtrOutput) +} + func (o DatasetConfigurationOutput) TraceDataset() DatasetConfigurationTraceDatasetPtrOutput { return o.ApplyT(func(v DatasetConfiguration) *DatasetConfigurationTraceDataset { return v.TraceDataset }).(DatasetConfigurationTraceDatasetPtrOutput) } @@ -143,6 +149,15 @@ func (o DatasetConfigurationPtrOutput) Elem() DatasetConfigurationOutput { }).(DatasetConfigurationOutput) } +func (o DatasetConfigurationPtrOutput) LogDataset() DatasetConfigurationLogDatasetPtrOutput { + return o.ApplyT(func(v *DatasetConfiguration) *DatasetConfigurationLogDataset { + if v == nil { + return nil + } + return v.LogDataset + }).(DatasetConfigurationLogDatasetPtrOutput) +} + func (o DatasetConfigurationPtrOutput) TraceDataset() DatasetConfigurationTraceDatasetPtrOutput { return o.ApplyT(func(v *DatasetConfiguration) *DatasetConfigurationTraceDataset { if v == nil { @@ -161,6 +176,274 @@ func (o DatasetConfigurationPtrOutput) Type() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +type DatasetConfigurationLogDataset struct { + MatchCriteria *DatasetConfigurationLogDatasetMatchCriteria `pulumi:"matchCriteria"` +} + +// DatasetConfigurationLogDatasetInput is an input type that accepts DatasetConfigurationLogDatasetArgs and DatasetConfigurationLogDatasetOutput values. +// You can construct a concrete instance of `DatasetConfigurationLogDatasetInput` via: +// +// DatasetConfigurationLogDatasetArgs{...} +type DatasetConfigurationLogDatasetInput interface { + pulumi.Input + + ToDatasetConfigurationLogDatasetOutput() DatasetConfigurationLogDatasetOutput + ToDatasetConfigurationLogDatasetOutputWithContext(context.Context) DatasetConfigurationLogDatasetOutput +} + +type DatasetConfigurationLogDatasetArgs struct { + MatchCriteria DatasetConfigurationLogDatasetMatchCriteriaPtrInput `pulumi:"matchCriteria"` +} + +func (DatasetConfigurationLogDatasetArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DatasetConfigurationLogDataset)(nil)).Elem() +} + +func (i DatasetConfigurationLogDatasetArgs) ToDatasetConfigurationLogDatasetOutput() DatasetConfigurationLogDatasetOutput { + return i.ToDatasetConfigurationLogDatasetOutputWithContext(context.Background()) +} + +func (i DatasetConfigurationLogDatasetArgs) ToDatasetConfigurationLogDatasetOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatasetConfigurationLogDatasetOutput) +} + +func (i DatasetConfigurationLogDatasetArgs) ToDatasetConfigurationLogDatasetPtrOutput() DatasetConfigurationLogDatasetPtrOutput { + return i.ToDatasetConfigurationLogDatasetPtrOutputWithContext(context.Background()) +} + +func (i DatasetConfigurationLogDatasetArgs) ToDatasetConfigurationLogDatasetPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatasetConfigurationLogDatasetOutput).ToDatasetConfigurationLogDatasetPtrOutputWithContext(ctx) +} + +// DatasetConfigurationLogDatasetPtrInput is an input type that accepts DatasetConfigurationLogDatasetArgs, DatasetConfigurationLogDatasetPtr and DatasetConfigurationLogDatasetPtrOutput values. +// You can construct a concrete instance of `DatasetConfigurationLogDatasetPtrInput` via: +// +// DatasetConfigurationLogDatasetArgs{...} +// +// or: +// +// nil +type DatasetConfigurationLogDatasetPtrInput interface { + pulumi.Input + + ToDatasetConfigurationLogDatasetPtrOutput() DatasetConfigurationLogDatasetPtrOutput + ToDatasetConfigurationLogDatasetPtrOutputWithContext(context.Context) DatasetConfigurationLogDatasetPtrOutput +} + +type datasetConfigurationLogDatasetPtrType DatasetConfigurationLogDatasetArgs + +func DatasetConfigurationLogDatasetPtr(v *DatasetConfigurationLogDatasetArgs) DatasetConfigurationLogDatasetPtrInput { + return (*datasetConfigurationLogDatasetPtrType)(v) +} + +func (*datasetConfigurationLogDatasetPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DatasetConfigurationLogDataset)(nil)).Elem() +} + +func (i *datasetConfigurationLogDatasetPtrType) ToDatasetConfigurationLogDatasetPtrOutput() DatasetConfigurationLogDatasetPtrOutput { + return i.ToDatasetConfigurationLogDatasetPtrOutputWithContext(context.Background()) +} + +func (i *datasetConfigurationLogDatasetPtrType) ToDatasetConfigurationLogDatasetPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatasetConfigurationLogDatasetPtrOutput) +} + +type DatasetConfigurationLogDatasetOutput struct{ *pulumi.OutputState } + +func (DatasetConfigurationLogDatasetOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DatasetConfigurationLogDataset)(nil)).Elem() +} + +func (o DatasetConfigurationLogDatasetOutput) ToDatasetConfigurationLogDatasetOutput() DatasetConfigurationLogDatasetOutput { + return o +} + +func (o DatasetConfigurationLogDatasetOutput) ToDatasetConfigurationLogDatasetOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetOutput { + return o +} + +func (o DatasetConfigurationLogDatasetOutput) ToDatasetConfigurationLogDatasetPtrOutput() DatasetConfigurationLogDatasetPtrOutput { + return o.ToDatasetConfigurationLogDatasetPtrOutputWithContext(context.Background()) +} + +func (o DatasetConfigurationLogDatasetOutput) ToDatasetConfigurationLogDatasetPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DatasetConfigurationLogDataset) *DatasetConfigurationLogDataset { + return &v + }).(DatasetConfigurationLogDatasetPtrOutput) +} + +func (o DatasetConfigurationLogDatasetOutput) MatchCriteria() DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return o.ApplyT(func(v DatasetConfigurationLogDataset) *DatasetConfigurationLogDatasetMatchCriteria { + return v.MatchCriteria + }).(DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) +} + +type DatasetConfigurationLogDatasetPtrOutput struct{ *pulumi.OutputState } + +func (DatasetConfigurationLogDatasetPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DatasetConfigurationLogDataset)(nil)).Elem() +} + +func (o DatasetConfigurationLogDatasetPtrOutput) ToDatasetConfigurationLogDatasetPtrOutput() DatasetConfigurationLogDatasetPtrOutput { + return o +} + +func (o DatasetConfigurationLogDatasetPtrOutput) ToDatasetConfigurationLogDatasetPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetPtrOutput { + return o +} + +func (o DatasetConfigurationLogDatasetPtrOutput) Elem() DatasetConfigurationLogDatasetOutput { + return o.ApplyT(func(v *DatasetConfigurationLogDataset) DatasetConfigurationLogDataset { + if v != nil { + return *v + } + var ret DatasetConfigurationLogDataset + return ret + }).(DatasetConfigurationLogDatasetOutput) +} + +func (o DatasetConfigurationLogDatasetPtrOutput) MatchCriteria() DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return o.ApplyT(func(v *DatasetConfigurationLogDataset) *DatasetConfigurationLogDatasetMatchCriteria { + if v == nil { + return nil + } + return v.MatchCriteria + }).(DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) +} + +type DatasetConfigurationLogDatasetMatchCriteria struct { + Query string `pulumi:"query"` +} + +// DatasetConfigurationLogDatasetMatchCriteriaInput is an input type that accepts DatasetConfigurationLogDatasetMatchCriteriaArgs and DatasetConfigurationLogDatasetMatchCriteriaOutput values. +// You can construct a concrete instance of `DatasetConfigurationLogDatasetMatchCriteriaInput` via: +// +// DatasetConfigurationLogDatasetMatchCriteriaArgs{...} +type DatasetConfigurationLogDatasetMatchCriteriaInput interface { + pulumi.Input + + ToDatasetConfigurationLogDatasetMatchCriteriaOutput() DatasetConfigurationLogDatasetMatchCriteriaOutput + ToDatasetConfigurationLogDatasetMatchCriteriaOutputWithContext(context.Context) DatasetConfigurationLogDatasetMatchCriteriaOutput +} + +type DatasetConfigurationLogDatasetMatchCriteriaArgs struct { + Query pulumi.StringInput `pulumi:"query"` +} + +func (DatasetConfigurationLogDatasetMatchCriteriaArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DatasetConfigurationLogDatasetMatchCriteria)(nil)).Elem() +} + +func (i DatasetConfigurationLogDatasetMatchCriteriaArgs) ToDatasetConfigurationLogDatasetMatchCriteriaOutput() DatasetConfigurationLogDatasetMatchCriteriaOutput { + return i.ToDatasetConfigurationLogDatasetMatchCriteriaOutputWithContext(context.Background()) +} + +func (i DatasetConfigurationLogDatasetMatchCriteriaArgs) ToDatasetConfigurationLogDatasetMatchCriteriaOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetMatchCriteriaOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatasetConfigurationLogDatasetMatchCriteriaOutput) +} + +func (i DatasetConfigurationLogDatasetMatchCriteriaArgs) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutput() DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return i.ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(context.Background()) +} + +func (i DatasetConfigurationLogDatasetMatchCriteriaArgs) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatasetConfigurationLogDatasetMatchCriteriaOutput).ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(ctx) +} + +// DatasetConfigurationLogDatasetMatchCriteriaPtrInput is an input type that accepts DatasetConfigurationLogDatasetMatchCriteriaArgs, DatasetConfigurationLogDatasetMatchCriteriaPtr and DatasetConfigurationLogDatasetMatchCriteriaPtrOutput values. +// You can construct a concrete instance of `DatasetConfigurationLogDatasetMatchCriteriaPtrInput` via: +// +// DatasetConfigurationLogDatasetMatchCriteriaArgs{...} +// +// or: +// +// nil +type DatasetConfigurationLogDatasetMatchCriteriaPtrInput interface { + pulumi.Input + + ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutput() DatasetConfigurationLogDatasetMatchCriteriaPtrOutput + ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(context.Context) DatasetConfigurationLogDatasetMatchCriteriaPtrOutput +} + +type datasetConfigurationLogDatasetMatchCriteriaPtrType DatasetConfigurationLogDatasetMatchCriteriaArgs + +func DatasetConfigurationLogDatasetMatchCriteriaPtr(v *DatasetConfigurationLogDatasetMatchCriteriaArgs) DatasetConfigurationLogDatasetMatchCriteriaPtrInput { + return (*datasetConfigurationLogDatasetMatchCriteriaPtrType)(v) +} + +func (*datasetConfigurationLogDatasetMatchCriteriaPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DatasetConfigurationLogDatasetMatchCriteria)(nil)).Elem() +} + +func (i *datasetConfigurationLogDatasetMatchCriteriaPtrType) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutput() DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return i.ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(context.Background()) +} + +func (i *datasetConfigurationLogDatasetMatchCriteriaPtrType) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) +} + +type DatasetConfigurationLogDatasetMatchCriteriaOutput struct{ *pulumi.OutputState } + +func (DatasetConfigurationLogDatasetMatchCriteriaOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DatasetConfigurationLogDatasetMatchCriteria)(nil)).Elem() +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaOutput) ToDatasetConfigurationLogDatasetMatchCriteriaOutput() DatasetConfigurationLogDatasetMatchCriteriaOutput { + return o +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaOutput) ToDatasetConfigurationLogDatasetMatchCriteriaOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetMatchCriteriaOutput { + return o +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaOutput) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutput() DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return o.ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(context.Background()) +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaOutput) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DatasetConfigurationLogDatasetMatchCriteria) *DatasetConfigurationLogDatasetMatchCriteria { + return &v + }).(DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaOutput) Query() pulumi.StringOutput { + return o.ApplyT(func(v DatasetConfigurationLogDatasetMatchCriteria) string { return v.Query }).(pulumi.StringOutput) +} + +type DatasetConfigurationLogDatasetMatchCriteriaPtrOutput struct{ *pulumi.OutputState } + +func (DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DatasetConfigurationLogDatasetMatchCriteria)(nil)).Elem() +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutput() DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return o +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) ToDatasetConfigurationLogDatasetMatchCriteriaPtrOutputWithContext(ctx context.Context) DatasetConfigurationLogDatasetMatchCriteriaPtrOutput { + return o +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) Elem() DatasetConfigurationLogDatasetMatchCriteriaOutput { + return o.ApplyT(func(v *DatasetConfigurationLogDatasetMatchCriteria) DatasetConfigurationLogDatasetMatchCriteria { + if v != nil { + return *v + } + var ret DatasetConfigurationLogDatasetMatchCriteria + return ret + }).(DatasetConfigurationLogDatasetMatchCriteriaOutput) +} + +func (o DatasetConfigurationLogDatasetMatchCriteriaPtrOutput) Query() pulumi.StringPtrOutput { + return o.ApplyT(func(v *DatasetConfigurationLogDatasetMatchCriteria) *string { + if v == nil { + return nil + } + return &v.Query + }).(pulumi.StringPtrOutput) +} + type DatasetConfigurationTraceDataset struct { MatchCriteria DatasetConfigurationTraceDatasetMatchCriteria `pulumi:"matchCriteria"` } @@ -457,9 +740,7 @@ type DatasetConfigurationTraceDatasetMatchCriteriaSpan struct { ParentService *DatasetConfigurationTraceDatasetMatchCriteriaSpanParentService `pulumi:"parentService"` Service *DatasetConfigurationTraceDatasetMatchCriteriaSpanService `pulumi:"service"` SpanCount *DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount `pulumi:"spanCount"` - Tag []DatasetConfigurationTraceDatasetMatchCriteriaSpanTag `pulumi:"tag"` - // Deprecated: `tags` is deprecated, use `tag` instead. - Tags []DatasetConfigurationTraceDatasetMatchCriteriaSpanTag `pulumi:"tags"` + Tags []DatasetConfigurationTraceDatasetMatchCriteriaSpanTag `pulumi:"tags"` } // DatasetConfigurationTraceDatasetMatchCriteriaSpanInput is an input type that accepts DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs and DatasetConfigurationTraceDatasetMatchCriteriaSpanOutput values. @@ -482,9 +763,7 @@ type DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs struct { ParentService DatasetConfigurationTraceDatasetMatchCriteriaSpanParentServicePtrInput `pulumi:"parentService"` Service DatasetConfigurationTraceDatasetMatchCriteriaSpanServicePtrInput `pulumi:"service"` SpanCount DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountPtrInput `pulumi:"spanCount"` - Tag DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArrayInput `pulumi:"tag"` - // Deprecated: `tags` is deprecated, use `tag` instead. - Tags DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArrayInput `pulumi:"tags"` + Tags DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArrayInput `pulumi:"tags"` } func (DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs) ElementType() reflect.Type { @@ -584,13 +863,6 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanOutput) SpanCount() Dat }).(DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountPtrOutput) } -func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanOutput) Tag() DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArrayOutput { - return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaSpan) []DatasetConfigurationTraceDatasetMatchCriteriaSpanTag { - return v.Tag - }).(DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArrayOutput) -} - -// Deprecated: `tags` is deprecated, use `tag` instead. func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanOutput) Tags() DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArrayOutput { return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaSpan) []DatasetConfigurationTraceDatasetMatchCriteriaSpanTag { return v.Tags @@ -618,12 +890,8 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanArrayOutput) Index(i pu } type DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration struct { - // Deprecated: use max_secs instead - MaxSeconds *float64 `pulumi:"maxSeconds"` - MaxSecs *float64 `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds *float64 `pulumi:"minSeconds"` - MinSecs *float64 `pulumi:"minSecs"` + MaxSecs *float64 `pulumi:"maxSecs"` + MinSecs *float64 `pulumi:"minSecs"` } // DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationInput is an input type that accepts DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs and DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationOutput values. @@ -638,12 +906,8 @@ type DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationInput interface { } type DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs struct { - // Deprecated: use max_secs instead - MaxSeconds pulumi.Float64PtrInput `pulumi:"maxSeconds"` - MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds pulumi.Float64PtrInput `pulumi:"minSeconds"` - MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` + MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` + MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` } func (DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs) ElementType() reflect.Type { @@ -723,20 +987,10 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationOutput) ToDatas }).(DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationPtrOutput) } -// Deprecated: use max_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { return v.MaxSeconds }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { return v.MaxSecs }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { return v.MinSeconds }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { return v.MinSecs }).(pulumi.Float64PtrOutput) } @@ -765,16 +1019,6 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationPtrOutput) Elem }).(DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationOutput) } -// Deprecated: use max_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationPtrOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { - if v == nil { - return nil - } - return v.MaxSeconds - }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationPtrOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { if v == nil { @@ -784,16 +1028,6 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationPtrOutput) MaxS }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationPtrOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { - if v == nil { - return nil - } - return v.MinSeconds - }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationPtrOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration) *float64 { if v == nil { @@ -2310,12 +2544,8 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaTracePtrOutput) Error() Dat } type DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration struct { - // Deprecated: use max_secs instead - MaxSeconds *float64 `pulumi:"maxSeconds"` - MaxSecs *float64 `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds *float64 `pulumi:"minSeconds"` - MinSecs *float64 `pulumi:"minSecs"` + MaxSecs *float64 `pulumi:"maxSecs"` + MinSecs *float64 `pulumi:"minSecs"` } // DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationInput is an input type that accepts DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs and DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationOutput values. @@ -2330,12 +2560,8 @@ type DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationInput interface { } type DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs struct { - // Deprecated: use max_secs instead - MaxSeconds pulumi.Float64PtrInput `pulumi:"maxSeconds"` - MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds pulumi.Float64PtrInput `pulumi:"minSeconds"` - MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` + MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` + MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` } func (DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs) ElementType() reflect.Type { @@ -2415,20 +2641,10 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationOutput) ToData }).(DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationPtrOutput) } -// Deprecated: use max_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { return v.MaxSeconds }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { return v.MaxSecs }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { return v.MinSeconds }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { return v.MinSecs }).(pulumi.Float64PtrOutput) } @@ -2457,16 +2673,6 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationPtrOutput) Ele }).(DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationOutput) } -// Deprecated: use max_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationPtrOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { - if v == nil { - return nil - } - return v.MaxSeconds - }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationPtrOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { if v == nil { @@ -2476,16 +2682,6 @@ func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationPtrOutput) Max }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationPtrOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { - if v == nil { - return nil - } - return v.MinSeconds - }).(pulumi.Float64PtrOutput) -} - func (o DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationPtrOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration) *float64 { if v == nil { @@ -4420,15 +4616,2636 @@ func (o GcpMetricsIntegrationServiceAccountPtrOutput) Elem() GcpMetricsIntegrati }).(GcpMetricsIntegrationServiceAccountOutput) } -func (o GcpMetricsIntegrationServiceAccountPtrOutput) ClientEmail() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GcpMetricsIntegrationServiceAccount) *string { +func (o GcpMetricsIntegrationServiceAccountPtrOutput) ClientEmail() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GcpMetricsIntegrationServiceAccount) *string { + if v == nil { + return nil + } + return &v.ClientEmail + }).(pulumi.StringPtrOutput) +} + +type LogAllocationConfigDatasetAllocation struct { + Allocation LogAllocationConfigDatasetAllocationAllocation `pulumi:"allocation"` + DatasetId string `pulumi:"datasetId"` + Priorities *LogAllocationConfigDatasetAllocationPriorities `pulumi:"priorities"` +} + +// LogAllocationConfigDatasetAllocationInput is an input type that accepts LogAllocationConfigDatasetAllocationArgs and LogAllocationConfigDatasetAllocationOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationInput` via: +// +// LogAllocationConfigDatasetAllocationArgs{...} +type LogAllocationConfigDatasetAllocationInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationOutput() LogAllocationConfigDatasetAllocationOutput + ToLogAllocationConfigDatasetAllocationOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationOutput +} + +type LogAllocationConfigDatasetAllocationArgs struct { + Allocation LogAllocationConfigDatasetAllocationAllocationInput `pulumi:"allocation"` + DatasetId pulumi.StringInput `pulumi:"datasetId"` + Priorities LogAllocationConfigDatasetAllocationPrioritiesPtrInput `pulumi:"priorities"` +} + +func (LogAllocationConfigDatasetAllocationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocation)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationArgs) ToLogAllocationConfigDatasetAllocationOutput() LogAllocationConfigDatasetAllocationOutput { + return i.ToLogAllocationConfigDatasetAllocationOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationArgs) ToLogAllocationConfigDatasetAllocationOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationOutput) +} + +// LogAllocationConfigDatasetAllocationArrayInput is an input type that accepts LogAllocationConfigDatasetAllocationArray and LogAllocationConfigDatasetAllocationArrayOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationArrayInput` via: +// +// LogAllocationConfigDatasetAllocationArray{ LogAllocationConfigDatasetAllocationArgs{...} } +type LogAllocationConfigDatasetAllocationArrayInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationArrayOutput() LogAllocationConfigDatasetAllocationArrayOutput + ToLogAllocationConfigDatasetAllocationArrayOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationArrayOutput +} + +type LogAllocationConfigDatasetAllocationArray []LogAllocationConfigDatasetAllocationInput + +func (LogAllocationConfigDatasetAllocationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDatasetAllocation)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationArray) ToLogAllocationConfigDatasetAllocationArrayOutput() LogAllocationConfigDatasetAllocationArrayOutput { + return i.ToLogAllocationConfigDatasetAllocationArrayOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationArray) ToLogAllocationConfigDatasetAllocationArrayOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationArrayOutput) +} + +type LogAllocationConfigDatasetAllocationOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocation)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationOutput) ToLogAllocationConfigDatasetAllocationOutput() LogAllocationConfigDatasetAllocationOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationOutput) ToLogAllocationConfigDatasetAllocationOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationOutput) Allocation() LogAllocationConfigDatasetAllocationAllocationOutput { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocation) LogAllocationConfigDatasetAllocationAllocation { + return v.Allocation + }).(LogAllocationConfigDatasetAllocationAllocationOutput) +} + +func (o LogAllocationConfigDatasetAllocationOutput) DatasetId() pulumi.StringOutput { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocation) string { return v.DatasetId }).(pulumi.StringOutput) +} + +func (o LogAllocationConfigDatasetAllocationOutput) Priorities() LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocation) *LogAllocationConfigDatasetAllocationPriorities { + return v.Priorities + }).(LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) +} + +type LogAllocationConfigDatasetAllocationArrayOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDatasetAllocation)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationArrayOutput) ToLogAllocationConfigDatasetAllocationArrayOutput() LogAllocationConfigDatasetAllocationArrayOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationArrayOutput) ToLogAllocationConfigDatasetAllocationArrayOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationArrayOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationArrayOutput) Index(i pulumi.IntInput) LogAllocationConfigDatasetAllocationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) LogAllocationConfigDatasetAllocation { + return vs[0].([]LogAllocationConfigDatasetAllocation)[vs[1].(int)] + }).(LogAllocationConfigDatasetAllocationOutput) +} + +type LogAllocationConfigDatasetAllocationAllocation struct { + PercentOfLicense float64 `pulumi:"percentOfLicense"` +} + +// LogAllocationConfigDatasetAllocationAllocationInput is an input type that accepts LogAllocationConfigDatasetAllocationAllocationArgs and LogAllocationConfigDatasetAllocationAllocationOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationAllocationInput` via: +// +// LogAllocationConfigDatasetAllocationAllocationArgs{...} +type LogAllocationConfigDatasetAllocationAllocationInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationAllocationOutput() LogAllocationConfigDatasetAllocationAllocationOutput + ToLogAllocationConfigDatasetAllocationAllocationOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationAllocationOutput +} + +type LogAllocationConfigDatasetAllocationAllocationArgs struct { + PercentOfLicense pulumi.Float64Input `pulumi:"percentOfLicense"` +} + +func (LogAllocationConfigDatasetAllocationAllocationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationAllocation)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationAllocationArgs) ToLogAllocationConfigDatasetAllocationAllocationOutput() LogAllocationConfigDatasetAllocationAllocationOutput { + return i.ToLogAllocationConfigDatasetAllocationAllocationOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationAllocationArgs) ToLogAllocationConfigDatasetAllocationAllocationOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationAllocationOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationAllocationOutput) +} + +type LogAllocationConfigDatasetAllocationAllocationOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationAllocationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationAllocation)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationAllocationOutput) ToLogAllocationConfigDatasetAllocationAllocationOutput() LogAllocationConfigDatasetAllocationAllocationOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationAllocationOutput) ToLogAllocationConfigDatasetAllocationAllocationOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationAllocationOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationAllocationOutput) PercentOfLicense() pulumi.Float64Output { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocationAllocation) float64 { return v.PercentOfLicense }).(pulumi.Float64Output) +} + +type LogAllocationConfigDatasetAllocationPriorities struct { + HighPriorityFilters []LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter `pulumi:"highPriorityFilters"` + LowPriorityFilters []LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter `pulumi:"lowPriorityFilters"` +} + +// LogAllocationConfigDatasetAllocationPrioritiesInput is an input type that accepts LogAllocationConfigDatasetAllocationPrioritiesArgs and LogAllocationConfigDatasetAllocationPrioritiesOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationPrioritiesInput` via: +// +// LogAllocationConfigDatasetAllocationPrioritiesArgs{...} +type LogAllocationConfigDatasetAllocationPrioritiesInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationPrioritiesOutput() LogAllocationConfigDatasetAllocationPrioritiesOutput + ToLogAllocationConfigDatasetAllocationPrioritiesOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationPrioritiesOutput +} + +type LogAllocationConfigDatasetAllocationPrioritiesArgs struct { + HighPriorityFilters LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayInput `pulumi:"highPriorityFilters"` + LowPriorityFilters LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayInput `pulumi:"lowPriorityFilters"` +} + +func (LogAllocationConfigDatasetAllocationPrioritiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationPriorities)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesArgs) ToLogAllocationConfigDatasetAllocationPrioritiesOutput() LogAllocationConfigDatasetAllocationPrioritiesOutput { + return i.ToLogAllocationConfigDatasetAllocationPrioritiesOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesArgs) ToLogAllocationConfigDatasetAllocationPrioritiesOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationPrioritiesOutput) +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesArgs) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutput() LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return i.ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesArgs) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationPrioritiesOutput).ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(ctx) +} + +// LogAllocationConfigDatasetAllocationPrioritiesPtrInput is an input type that accepts LogAllocationConfigDatasetAllocationPrioritiesArgs, LogAllocationConfigDatasetAllocationPrioritiesPtr and LogAllocationConfigDatasetAllocationPrioritiesPtrOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationPrioritiesPtrInput` via: +// +// LogAllocationConfigDatasetAllocationPrioritiesArgs{...} +// +// or: +// +// nil +type LogAllocationConfigDatasetAllocationPrioritiesPtrInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutput() LogAllocationConfigDatasetAllocationPrioritiesPtrOutput + ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationPrioritiesPtrOutput +} + +type logAllocationConfigDatasetAllocationPrioritiesPtrType LogAllocationConfigDatasetAllocationPrioritiesArgs + +func LogAllocationConfigDatasetAllocationPrioritiesPtr(v *LogAllocationConfigDatasetAllocationPrioritiesArgs) LogAllocationConfigDatasetAllocationPrioritiesPtrInput { + return (*logAllocationConfigDatasetAllocationPrioritiesPtrType)(v) +} + +func (*logAllocationConfigDatasetAllocationPrioritiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDatasetAllocationPriorities)(nil)).Elem() +} + +func (i *logAllocationConfigDatasetAllocationPrioritiesPtrType) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutput() LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return i.ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(context.Background()) +} + +func (i *logAllocationConfigDatasetAllocationPrioritiesPtrType) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationPrioritiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationPriorities)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesOutput) ToLogAllocationConfigDatasetAllocationPrioritiesOutput() LogAllocationConfigDatasetAllocationPrioritiesOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesOutput) ToLogAllocationConfigDatasetAllocationPrioritiesOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesOutput) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutput() LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return o.ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(context.Background()) +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesOutput) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogAllocationConfigDatasetAllocationPriorities) *LogAllocationConfigDatasetAllocationPriorities { + return &v + }).(LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesOutput) HighPriorityFilters() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocationPriorities) []LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter { + return v.HighPriorityFilters + }).(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput) +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesOutput) LowPriorityFilters() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocationPriorities) []LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter { + return v.LowPriorityFilters + }).(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesPtrOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDatasetAllocationPriorities)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutput() LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) ToLogAllocationConfigDatasetAllocationPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesPtrOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) Elem() LogAllocationConfigDatasetAllocationPrioritiesOutput { + return o.ApplyT(func(v *LogAllocationConfigDatasetAllocationPriorities) LogAllocationConfigDatasetAllocationPriorities { + if v != nil { + return *v + } + var ret LogAllocationConfigDatasetAllocationPriorities + return ret + }).(LogAllocationConfigDatasetAllocationPrioritiesOutput) +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) HighPriorityFilters() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput { + return o.ApplyT(func(v *LogAllocationConfigDatasetAllocationPriorities) []LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter { + if v == nil { + return nil + } + return v.HighPriorityFilters + }).(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput) +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesPtrOutput) LowPriorityFilters() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput { + return o.ApplyT(func(v *LogAllocationConfigDatasetAllocationPriorities) []LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter { + if v == nil { + return nil + } + return v.LowPriorityFilters + }).(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter struct { + Query string `pulumi:"query"` +} + +// LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterInput is an input type that accepts LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs and LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterInput` via: +// +// LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs{...} +type LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput + ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput +} + +type LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs struct { + Query pulumi.StringInput `pulumi:"query"` +} + +func (LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput { + return i.ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput) +} + +// LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayInput is an input type that accepts LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray and LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayInput` via: +// +// LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray{ LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs{...} } +type LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput + ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput +} + +type LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray []LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterInput + +func (LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput { + return i.ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput) Query() pulumi.StringOutput { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter) string { return v.Query }).(pulumi.StringOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput() LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput) ToLogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput) Index(i pulumi.IntInput) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter { + return vs[0].([]LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter)[vs[1].(int)] + }).(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter struct { + Query string `pulumi:"query"` +} + +// LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterInput is an input type that accepts LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs and LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterInput` via: +// +// LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs{...} +type LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput + ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput +} + +type LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs struct { + Query pulumi.StringInput `pulumi:"query"` +} + +func (LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput { + return i.ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput) +} + +// LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayInput is an input type that accepts LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray and LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput values. +// You can construct a concrete instance of `LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayInput` via: +// +// LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray{ LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs{...} } +type LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayInput interface { + pulumi.Input + + ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput + ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutputWithContext(context.Context) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput +} + +type LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray []LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterInput + +func (LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput { + return i.ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput) Query() pulumi.StringOutput { + return o.ApplyT(func(v LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter) string { return v.Query }).(pulumi.StringOutput) +} + +type LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput() LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput) ToLogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput) Index(i pulumi.IntInput) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter { + return vs[0].([]LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter)[vs[1].(int)] + }).(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput) +} + +type LogAllocationConfigDefaultDataset struct { + Allocation LogAllocationConfigDefaultDatasetAllocation `pulumi:"allocation"` + Priorities *LogAllocationConfigDefaultDatasetPriorities `pulumi:"priorities"` +} + +// LogAllocationConfigDefaultDatasetInput is an input type that accepts LogAllocationConfigDefaultDatasetArgs and LogAllocationConfigDefaultDatasetOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetInput` via: +// +// LogAllocationConfigDefaultDatasetArgs{...} +type LogAllocationConfigDefaultDatasetInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetOutput() LogAllocationConfigDefaultDatasetOutput + ToLogAllocationConfigDefaultDatasetOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetOutput +} + +type LogAllocationConfigDefaultDatasetArgs struct { + Allocation LogAllocationConfigDefaultDatasetAllocationInput `pulumi:"allocation"` + Priorities LogAllocationConfigDefaultDatasetPrioritiesPtrInput `pulumi:"priorities"` +} + +func (LogAllocationConfigDefaultDatasetArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDataset)(nil)).Elem() +} + +func (i LogAllocationConfigDefaultDatasetArgs) ToLogAllocationConfigDefaultDatasetOutput() LogAllocationConfigDefaultDatasetOutput { + return i.ToLogAllocationConfigDefaultDatasetOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetArgs) ToLogAllocationConfigDefaultDatasetOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetOutput) +} + +func (i LogAllocationConfigDefaultDatasetArgs) ToLogAllocationConfigDefaultDatasetPtrOutput() LogAllocationConfigDefaultDatasetPtrOutput { + return i.ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetArgs) ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetOutput).ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(ctx) +} + +// LogAllocationConfigDefaultDatasetPtrInput is an input type that accepts LogAllocationConfigDefaultDatasetArgs, LogAllocationConfigDefaultDatasetPtr and LogAllocationConfigDefaultDatasetPtrOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetPtrInput` via: +// +// LogAllocationConfigDefaultDatasetArgs{...} +// +// or: +// +// nil +type LogAllocationConfigDefaultDatasetPtrInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetPtrOutput() LogAllocationConfigDefaultDatasetPtrOutput + ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetPtrOutput +} + +type logAllocationConfigDefaultDatasetPtrType LogAllocationConfigDefaultDatasetArgs + +func LogAllocationConfigDefaultDatasetPtr(v *LogAllocationConfigDefaultDatasetArgs) LogAllocationConfigDefaultDatasetPtrInput { + return (*logAllocationConfigDefaultDatasetPtrType)(v) +} + +func (*logAllocationConfigDefaultDatasetPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDefaultDataset)(nil)).Elem() +} + +func (i *logAllocationConfigDefaultDatasetPtrType) ToLogAllocationConfigDefaultDatasetPtrOutput() LogAllocationConfigDefaultDatasetPtrOutput { + return i.ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(context.Background()) +} + +func (i *logAllocationConfigDefaultDatasetPtrType) ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPtrOutput) +} + +type LogAllocationConfigDefaultDatasetOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDataset)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetOutput) ToLogAllocationConfigDefaultDatasetOutput() LogAllocationConfigDefaultDatasetOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetOutput) ToLogAllocationConfigDefaultDatasetOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetOutput) ToLogAllocationConfigDefaultDatasetPtrOutput() LogAllocationConfigDefaultDatasetPtrOutput { + return o.ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(context.Background()) +} + +func (o LogAllocationConfigDefaultDatasetOutput) ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogAllocationConfigDefaultDataset) *LogAllocationConfigDefaultDataset { + return &v + }).(LogAllocationConfigDefaultDatasetPtrOutput) +} + +func (o LogAllocationConfigDefaultDatasetOutput) Allocation() LogAllocationConfigDefaultDatasetAllocationOutput { + return o.ApplyT(func(v LogAllocationConfigDefaultDataset) LogAllocationConfigDefaultDatasetAllocation { + return v.Allocation + }).(LogAllocationConfigDefaultDatasetAllocationOutput) +} + +func (o LogAllocationConfigDefaultDatasetOutput) Priorities() LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return o.ApplyT(func(v LogAllocationConfigDefaultDataset) *LogAllocationConfigDefaultDatasetPriorities { + return v.Priorities + }).(LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) +} + +type LogAllocationConfigDefaultDatasetPtrOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDefaultDataset)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetPtrOutput) ToLogAllocationConfigDefaultDatasetPtrOutput() LogAllocationConfigDefaultDatasetPtrOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPtrOutput) ToLogAllocationConfigDefaultDatasetPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPtrOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPtrOutput) Elem() LogAllocationConfigDefaultDatasetOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDataset) LogAllocationConfigDefaultDataset { + if v != nil { + return *v + } + var ret LogAllocationConfigDefaultDataset + return ret + }).(LogAllocationConfigDefaultDatasetOutput) +} + +func (o LogAllocationConfigDefaultDatasetPtrOutput) Allocation() LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDataset) *LogAllocationConfigDefaultDatasetAllocation { + if v == nil { + return nil + } + return &v.Allocation + }).(LogAllocationConfigDefaultDatasetAllocationPtrOutput) +} + +func (o LogAllocationConfigDefaultDatasetPtrOutput) Priorities() LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDataset) *LogAllocationConfigDefaultDatasetPriorities { + if v == nil { + return nil + } + return v.Priorities + }).(LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) +} + +type LogAllocationConfigDefaultDatasetAllocation struct { + PercentOfLicense float64 `pulumi:"percentOfLicense"` +} + +// LogAllocationConfigDefaultDatasetAllocationInput is an input type that accepts LogAllocationConfigDefaultDatasetAllocationArgs and LogAllocationConfigDefaultDatasetAllocationOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetAllocationInput` via: +// +// LogAllocationConfigDefaultDatasetAllocationArgs{...} +type LogAllocationConfigDefaultDatasetAllocationInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetAllocationOutput() LogAllocationConfigDefaultDatasetAllocationOutput + ToLogAllocationConfigDefaultDatasetAllocationOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetAllocationOutput +} + +type LogAllocationConfigDefaultDatasetAllocationArgs struct { + PercentOfLicense pulumi.Float64Input `pulumi:"percentOfLicense"` +} + +func (LogAllocationConfigDefaultDatasetAllocationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetAllocation)(nil)).Elem() +} + +func (i LogAllocationConfigDefaultDatasetAllocationArgs) ToLogAllocationConfigDefaultDatasetAllocationOutput() LogAllocationConfigDefaultDatasetAllocationOutput { + return i.ToLogAllocationConfigDefaultDatasetAllocationOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetAllocationArgs) ToLogAllocationConfigDefaultDatasetAllocationOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetAllocationOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetAllocationOutput) +} + +func (i LogAllocationConfigDefaultDatasetAllocationArgs) ToLogAllocationConfigDefaultDatasetAllocationPtrOutput() LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return i.ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetAllocationArgs) ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetAllocationOutput).ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(ctx) +} + +// LogAllocationConfigDefaultDatasetAllocationPtrInput is an input type that accepts LogAllocationConfigDefaultDatasetAllocationArgs, LogAllocationConfigDefaultDatasetAllocationPtr and LogAllocationConfigDefaultDatasetAllocationPtrOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetAllocationPtrInput` via: +// +// LogAllocationConfigDefaultDatasetAllocationArgs{...} +// +// or: +// +// nil +type LogAllocationConfigDefaultDatasetAllocationPtrInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetAllocationPtrOutput() LogAllocationConfigDefaultDatasetAllocationPtrOutput + ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetAllocationPtrOutput +} + +type logAllocationConfigDefaultDatasetAllocationPtrType LogAllocationConfigDefaultDatasetAllocationArgs + +func LogAllocationConfigDefaultDatasetAllocationPtr(v *LogAllocationConfigDefaultDatasetAllocationArgs) LogAllocationConfigDefaultDatasetAllocationPtrInput { + return (*logAllocationConfigDefaultDatasetAllocationPtrType)(v) +} + +func (*logAllocationConfigDefaultDatasetAllocationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDefaultDatasetAllocation)(nil)).Elem() +} + +func (i *logAllocationConfigDefaultDatasetAllocationPtrType) ToLogAllocationConfigDefaultDatasetAllocationPtrOutput() LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return i.ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(context.Background()) +} + +func (i *logAllocationConfigDefaultDatasetAllocationPtrType) ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetAllocationPtrOutput) +} + +type LogAllocationConfigDefaultDatasetAllocationOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetAllocationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetAllocation)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetAllocationOutput) ToLogAllocationConfigDefaultDatasetAllocationOutput() LogAllocationConfigDefaultDatasetAllocationOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetAllocationOutput) ToLogAllocationConfigDefaultDatasetAllocationOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetAllocationOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetAllocationOutput) ToLogAllocationConfigDefaultDatasetAllocationPtrOutput() LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return o.ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(context.Background()) +} + +func (o LogAllocationConfigDefaultDatasetAllocationOutput) ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogAllocationConfigDefaultDatasetAllocation) *LogAllocationConfigDefaultDatasetAllocation { + return &v + }).(LogAllocationConfigDefaultDatasetAllocationPtrOutput) +} + +func (o LogAllocationConfigDefaultDatasetAllocationOutput) PercentOfLicense() pulumi.Float64Output { + return o.ApplyT(func(v LogAllocationConfigDefaultDatasetAllocation) float64 { return v.PercentOfLicense }).(pulumi.Float64Output) +} + +type LogAllocationConfigDefaultDatasetAllocationPtrOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetAllocationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDefaultDatasetAllocation)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetAllocationPtrOutput) ToLogAllocationConfigDefaultDatasetAllocationPtrOutput() LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetAllocationPtrOutput) ToLogAllocationConfigDefaultDatasetAllocationPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetAllocationPtrOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetAllocationPtrOutput) Elem() LogAllocationConfigDefaultDatasetAllocationOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDatasetAllocation) LogAllocationConfigDefaultDatasetAllocation { + if v != nil { + return *v + } + var ret LogAllocationConfigDefaultDatasetAllocation + return ret + }).(LogAllocationConfigDefaultDatasetAllocationOutput) +} + +func (o LogAllocationConfigDefaultDatasetAllocationPtrOutput) PercentOfLicense() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDatasetAllocation) *float64 { + if v == nil { + return nil + } + return &v.PercentOfLicense + }).(pulumi.Float64PtrOutput) +} + +type LogAllocationConfigDefaultDatasetPriorities struct { + HighPriorityFilters []LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter `pulumi:"highPriorityFilters"` + LowPriorityFilters []LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter `pulumi:"lowPriorityFilters"` +} + +// LogAllocationConfigDefaultDatasetPrioritiesInput is an input type that accepts LogAllocationConfigDefaultDatasetPrioritiesArgs and LogAllocationConfigDefaultDatasetPrioritiesOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetPrioritiesInput` via: +// +// LogAllocationConfigDefaultDatasetPrioritiesArgs{...} +type LogAllocationConfigDefaultDatasetPrioritiesInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetPrioritiesOutput() LogAllocationConfigDefaultDatasetPrioritiesOutput + ToLogAllocationConfigDefaultDatasetPrioritiesOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetPrioritiesOutput +} + +type LogAllocationConfigDefaultDatasetPrioritiesArgs struct { + HighPriorityFilters LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayInput `pulumi:"highPriorityFilters"` + LowPriorityFilters LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayInput `pulumi:"lowPriorityFilters"` +} + +func (LogAllocationConfigDefaultDatasetPrioritiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetPriorities)(nil)).Elem() +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesArgs) ToLogAllocationConfigDefaultDatasetPrioritiesOutput() LogAllocationConfigDefaultDatasetPrioritiesOutput { + return i.ToLogAllocationConfigDefaultDatasetPrioritiesOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesArgs) ToLogAllocationConfigDefaultDatasetPrioritiesOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPrioritiesOutput) +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesArgs) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutput() LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return i.ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesArgs) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPrioritiesOutput).ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(ctx) +} + +// LogAllocationConfigDefaultDatasetPrioritiesPtrInput is an input type that accepts LogAllocationConfigDefaultDatasetPrioritiesArgs, LogAllocationConfigDefaultDatasetPrioritiesPtr and LogAllocationConfigDefaultDatasetPrioritiesPtrOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetPrioritiesPtrInput` via: +// +// LogAllocationConfigDefaultDatasetPrioritiesArgs{...} +// +// or: +// +// nil +type LogAllocationConfigDefaultDatasetPrioritiesPtrInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutput() LogAllocationConfigDefaultDatasetPrioritiesPtrOutput + ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetPrioritiesPtrOutput +} + +type logAllocationConfigDefaultDatasetPrioritiesPtrType LogAllocationConfigDefaultDatasetPrioritiesArgs + +func LogAllocationConfigDefaultDatasetPrioritiesPtr(v *LogAllocationConfigDefaultDatasetPrioritiesArgs) LogAllocationConfigDefaultDatasetPrioritiesPtrInput { + return (*logAllocationConfigDefaultDatasetPrioritiesPtrType)(v) +} + +func (*logAllocationConfigDefaultDatasetPrioritiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDefaultDatasetPriorities)(nil)).Elem() +} + +func (i *logAllocationConfigDefaultDatasetPrioritiesPtrType) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutput() LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return i.ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(context.Background()) +} + +func (i *logAllocationConfigDefaultDatasetPrioritiesPtrType) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetPrioritiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetPriorities)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesOutput) ToLogAllocationConfigDefaultDatasetPrioritiesOutput() LogAllocationConfigDefaultDatasetPrioritiesOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesOutput) ToLogAllocationConfigDefaultDatasetPrioritiesOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesOutput) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutput() LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return o.ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(context.Background()) +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesOutput) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogAllocationConfigDefaultDatasetPriorities) *LogAllocationConfigDefaultDatasetPriorities { + return &v + }).(LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesOutput) HighPriorityFilters() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput { + return o.ApplyT(func(v LogAllocationConfigDefaultDatasetPriorities) []LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter { + return v.HighPriorityFilters + }).(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput) +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesOutput) LowPriorityFilters() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput { + return o.ApplyT(func(v LogAllocationConfigDefaultDatasetPriorities) []LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter { + return v.LowPriorityFilters + }).(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesPtrOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogAllocationConfigDefaultDatasetPriorities)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutput() LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) ToLogAllocationConfigDefaultDatasetPrioritiesPtrOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesPtrOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) Elem() LogAllocationConfigDefaultDatasetPrioritiesOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDatasetPriorities) LogAllocationConfigDefaultDatasetPriorities { + if v != nil { + return *v + } + var ret LogAllocationConfigDefaultDatasetPriorities + return ret + }).(LogAllocationConfigDefaultDatasetPrioritiesOutput) +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) HighPriorityFilters() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDatasetPriorities) []LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter { + if v == nil { + return nil + } + return v.HighPriorityFilters + }).(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput) +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesPtrOutput) LowPriorityFilters() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput { + return o.ApplyT(func(v *LogAllocationConfigDefaultDatasetPriorities) []LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter { + if v == nil { + return nil + } + return v.LowPriorityFilters + }).(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter struct { + Query string `pulumi:"query"` +} + +// LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterInput is an input type that accepts LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs and LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterInput` via: +// +// LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs{...} +type LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput + ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput +} + +type LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs struct { + Query pulumi.StringInput `pulumi:"query"` +} + +func (LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput { + return i.ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput) +} + +// LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayInput is an input type that accepts LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray and LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayInput` via: +// +// LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray{ LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs{...} } +type LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput + ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput +} + +type LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray []LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterInput + +func (LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput { + return i.ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput) Query() pulumi.StringOutput { + return o.ApplyT(func(v LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter) string { return v.Query }).(pulumi.StringOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput() LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput) ToLogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput) Index(i pulumi.IntInput) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter { + return vs[0].([]LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter)[vs[1].(int)] + }).(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter struct { + Query string `pulumi:"query"` +} + +// LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterInput is an input type that accepts LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs and LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterInput` via: +// +// LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs{...} +type LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput + ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput +} + +type LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs struct { + Query pulumi.StringInput `pulumi:"query"` +} + +func (LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput { + return i.ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput) +} + +// LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayInput is an input type that accepts LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray and LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput values. +// You can construct a concrete instance of `LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayInput` via: +// +// LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray{ LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs{...} } +type LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayInput interface { + pulumi.Input + + ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput + ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutputWithContext(context.Context) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput +} + +type LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray []LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterInput + +func (LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput { + return i.ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutputWithContext(context.Background()) +} + +func (i LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput) Query() pulumi.StringOutput { + return o.ApplyT(func(v LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter) string { return v.Query }).(pulumi.StringOutput) +} + +type LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput struct{ *pulumi.OutputState } + +func (LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter)(nil)).Elem() +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput() LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput) ToLogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutputWithContext(ctx context.Context) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput { + return o +} + +func (o LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput) Index(i pulumi.IntInput) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter { + return vs[0].([]LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter)[vs[1].(int)] + }).(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput) +} + +type LogscaleActionEmailAction struct { + AttachCsv *bool `pulumi:"attachCsv"` + BodyTemplate *string `pulumi:"bodyTemplate"` + Recipients []string `pulumi:"recipients"` + SubjectTemplate *string `pulumi:"subjectTemplate"` + UseProxy *bool `pulumi:"useProxy"` +} + +// LogscaleActionEmailActionInput is an input type that accepts LogscaleActionEmailActionArgs and LogscaleActionEmailActionOutput values. +// You can construct a concrete instance of `LogscaleActionEmailActionInput` via: +// +// LogscaleActionEmailActionArgs{...} +type LogscaleActionEmailActionInput interface { + pulumi.Input + + ToLogscaleActionEmailActionOutput() LogscaleActionEmailActionOutput + ToLogscaleActionEmailActionOutputWithContext(context.Context) LogscaleActionEmailActionOutput +} + +type LogscaleActionEmailActionArgs struct { + AttachCsv pulumi.BoolPtrInput `pulumi:"attachCsv"` + BodyTemplate pulumi.StringPtrInput `pulumi:"bodyTemplate"` + Recipients pulumi.StringArrayInput `pulumi:"recipients"` + SubjectTemplate pulumi.StringPtrInput `pulumi:"subjectTemplate"` + UseProxy pulumi.BoolPtrInput `pulumi:"useProxy"` +} + +func (LogscaleActionEmailActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionEmailAction)(nil)).Elem() +} + +func (i LogscaleActionEmailActionArgs) ToLogscaleActionEmailActionOutput() LogscaleActionEmailActionOutput { + return i.ToLogscaleActionEmailActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionEmailActionArgs) ToLogscaleActionEmailActionOutputWithContext(ctx context.Context) LogscaleActionEmailActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionEmailActionOutput) +} + +func (i LogscaleActionEmailActionArgs) ToLogscaleActionEmailActionPtrOutput() LogscaleActionEmailActionPtrOutput { + return i.ToLogscaleActionEmailActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionEmailActionArgs) ToLogscaleActionEmailActionPtrOutputWithContext(ctx context.Context) LogscaleActionEmailActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionEmailActionOutput).ToLogscaleActionEmailActionPtrOutputWithContext(ctx) +} + +// LogscaleActionEmailActionPtrInput is an input type that accepts LogscaleActionEmailActionArgs, LogscaleActionEmailActionPtr and LogscaleActionEmailActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionEmailActionPtrInput` via: +// +// LogscaleActionEmailActionArgs{...} +// +// or: +// +// nil +type LogscaleActionEmailActionPtrInput interface { + pulumi.Input + + ToLogscaleActionEmailActionPtrOutput() LogscaleActionEmailActionPtrOutput + ToLogscaleActionEmailActionPtrOutputWithContext(context.Context) LogscaleActionEmailActionPtrOutput +} + +type logscaleActionEmailActionPtrType LogscaleActionEmailActionArgs + +func LogscaleActionEmailActionPtr(v *LogscaleActionEmailActionArgs) LogscaleActionEmailActionPtrInput { + return (*logscaleActionEmailActionPtrType)(v) +} + +func (*logscaleActionEmailActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionEmailAction)(nil)).Elem() +} + +func (i *logscaleActionEmailActionPtrType) ToLogscaleActionEmailActionPtrOutput() LogscaleActionEmailActionPtrOutput { + return i.ToLogscaleActionEmailActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionEmailActionPtrType) ToLogscaleActionEmailActionPtrOutputWithContext(ctx context.Context) LogscaleActionEmailActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionEmailActionPtrOutput) +} + +type LogscaleActionEmailActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionEmailActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionEmailAction)(nil)).Elem() +} + +func (o LogscaleActionEmailActionOutput) ToLogscaleActionEmailActionOutput() LogscaleActionEmailActionOutput { + return o +} + +func (o LogscaleActionEmailActionOutput) ToLogscaleActionEmailActionOutputWithContext(ctx context.Context) LogscaleActionEmailActionOutput { + return o +} + +func (o LogscaleActionEmailActionOutput) ToLogscaleActionEmailActionPtrOutput() LogscaleActionEmailActionPtrOutput { + return o.ToLogscaleActionEmailActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionEmailActionOutput) ToLogscaleActionEmailActionPtrOutputWithContext(ctx context.Context) LogscaleActionEmailActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionEmailAction) *LogscaleActionEmailAction { + return &v + }).(LogscaleActionEmailActionPtrOutput) +} + +func (o LogscaleActionEmailActionOutput) AttachCsv() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionEmailAction) *bool { return v.AttachCsv }).(pulumi.BoolPtrOutput) +} + +func (o LogscaleActionEmailActionOutput) BodyTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v LogscaleActionEmailAction) *string { return v.BodyTemplate }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionEmailActionOutput) Recipients() pulumi.StringArrayOutput { + return o.ApplyT(func(v LogscaleActionEmailAction) []string { return v.Recipients }).(pulumi.StringArrayOutput) +} + +func (o LogscaleActionEmailActionOutput) SubjectTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v LogscaleActionEmailAction) *string { return v.SubjectTemplate }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionEmailActionOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionEmailAction) *bool { return v.UseProxy }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionEmailActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionEmailActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionEmailAction)(nil)).Elem() +} + +func (o LogscaleActionEmailActionPtrOutput) ToLogscaleActionEmailActionPtrOutput() LogscaleActionEmailActionPtrOutput { + return o +} + +func (o LogscaleActionEmailActionPtrOutput) ToLogscaleActionEmailActionPtrOutputWithContext(ctx context.Context) LogscaleActionEmailActionPtrOutput { + return o +} + +func (o LogscaleActionEmailActionPtrOutput) Elem() LogscaleActionEmailActionOutput { + return o.ApplyT(func(v *LogscaleActionEmailAction) LogscaleActionEmailAction { + if v != nil { + return *v + } + var ret LogscaleActionEmailAction + return ret + }).(LogscaleActionEmailActionOutput) +} + +func (o LogscaleActionEmailActionPtrOutput) AttachCsv() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionEmailAction) *bool { + if v == nil { + return nil + } + return v.AttachCsv + }).(pulumi.BoolPtrOutput) +} + +func (o LogscaleActionEmailActionPtrOutput) BodyTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionEmailAction) *string { + if v == nil { + return nil + } + return v.BodyTemplate + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionEmailActionPtrOutput) Recipients() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LogscaleActionEmailAction) []string { + if v == nil { + return nil + } + return v.Recipients + }).(pulumi.StringArrayOutput) +} + +func (o LogscaleActionEmailActionPtrOutput) SubjectTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionEmailAction) *string { + if v == nil { + return nil + } + return v.SubjectTemplate + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionEmailActionPtrOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionEmailAction) *bool { + if v == nil { + return nil + } + return v.UseProxy + }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionHumioAction struct { + IngestToken string `pulumi:"ingestToken"` +} + +// LogscaleActionHumioActionInput is an input type that accepts LogscaleActionHumioActionArgs and LogscaleActionHumioActionOutput values. +// You can construct a concrete instance of `LogscaleActionHumioActionInput` via: +// +// LogscaleActionHumioActionArgs{...} +type LogscaleActionHumioActionInput interface { + pulumi.Input + + ToLogscaleActionHumioActionOutput() LogscaleActionHumioActionOutput + ToLogscaleActionHumioActionOutputWithContext(context.Context) LogscaleActionHumioActionOutput +} + +type LogscaleActionHumioActionArgs struct { + IngestToken pulumi.StringInput `pulumi:"ingestToken"` +} + +func (LogscaleActionHumioActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionHumioAction)(nil)).Elem() +} + +func (i LogscaleActionHumioActionArgs) ToLogscaleActionHumioActionOutput() LogscaleActionHumioActionOutput { + return i.ToLogscaleActionHumioActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionHumioActionArgs) ToLogscaleActionHumioActionOutputWithContext(ctx context.Context) LogscaleActionHumioActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionHumioActionOutput) +} + +func (i LogscaleActionHumioActionArgs) ToLogscaleActionHumioActionPtrOutput() LogscaleActionHumioActionPtrOutput { + return i.ToLogscaleActionHumioActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionHumioActionArgs) ToLogscaleActionHumioActionPtrOutputWithContext(ctx context.Context) LogscaleActionHumioActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionHumioActionOutput).ToLogscaleActionHumioActionPtrOutputWithContext(ctx) +} + +// LogscaleActionHumioActionPtrInput is an input type that accepts LogscaleActionHumioActionArgs, LogscaleActionHumioActionPtr and LogscaleActionHumioActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionHumioActionPtrInput` via: +// +// LogscaleActionHumioActionArgs{...} +// +// or: +// +// nil +type LogscaleActionHumioActionPtrInput interface { + pulumi.Input + + ToLogscaleActionHumioActionPtrOutput() LogscaleActionHumioActionPtrOutput + ToLogscaleActionHumioActionPtrOutputWithContext(context.Context) LogscaleActionHumioActionPtrOutput +} + +type logscaleActionHumioActionPtrType LogscaleActionHumioActionArgs + +func LogscaleActionHumioActionPtr(v *LogscaleActionHumioActionArgs) LogscaleActionHumioActionPtrInput { + return (*logscaleActionHumioActionPtrType)(v) +} + +func (*logscaleActionHumioActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionHumioAction)(nil)).Elem() +} + +func (i *logscaleActionHumioActionPtrType) ToLogscaleActionHumioActionPtrOutput() LogscaleActionHumioActionPtrOutput { + return i.ToLogscaleActionHumioActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionHumioActionPtrType) ToLogscaleActionHumioActionPtrOutputWithContext(ctx context.Context) LogscaleActionHumioActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionHumioActionPtrOutput) +} + +type LogscaleActionHumioActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionHumioActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionHumioAction)(nil)).Elem() +} + +func (o LogscaleActionHumioActionOutput) ToLogscaleActionHumioActionOutput() LogscaleActionHumioActionOutput { + return o +} + +func (o LogscaleActionHumioActionOutput) ToLogscaleActionHumioActionOutputWithContext(ctx context.Context) LogscaleActionHumioActionOutput { + return o +} + +func (o LogscaleActionHumioActionOutput) ToLogscaleActionHumioActionPtrOutput() LogscaleActionHumioActionPtrOutput { + return o.ToLogscaleActionHumioActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionHumioActionOutput) ToLogscaleActionHumioActionPtrOutputWithContext(ctx context.Context) LogscaleActionHumioActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionHumioAction) *LogscaleActionHumioAction { + return &v + }).(LogscaleActionHumioActionPtrOutput) +} + +func (o LogscaleActionHumioActionOutput) IngestToken() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionHumioAction) string { return v.IngestToken }).(pulumi.StringOutput) +} + +type LogscaleActionHumioActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionHumioActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionHumioAction)(nil)).Elem() +} + +func (o LogscaleActionHumioActionPtrOutput) ToLogscaleActionHumioActionPtrOutput() LogscaleActionHumioActionPtrOutput { + return o +} + +func (o LogscaleActionHumioActionPtrOutput) ToLogscaleActionHumioActionPtrOutputWithContext(ctx context.Context) LogscaleActionHumioActionPtrOutput { + return o +} + +func (o LogscaleActionHumioActionPtrOutput) Elem() LogscaleActionHumioActionOutput { + return o.ApplyT(func(v *LogscaleActionHumioAction) LogscaleActionHumioAction { + if v != nil { + return *v + } + var ret LogscaleActionHumioAction + return ret + }).(LogscaleActionHumioActionOutput) +} + +func (o LogscaleActionHumioActionPtrOutput) IngestToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionHumioAction) *string { + if v == nil { + return nil + } + return &v.IngestToken + }).(pulumi.StringPtrOutput) +} + +type LogscaleActionOpsGenieAction struct { + ApiUrl string `pulumi:"apiUrl"` + OpsGenieKey string `pulumi:"opsGenieKey"` + UseProxy *bool `pulumi:"useProxy"` +} + +// LogscaleActionOpsGenieActionInput is an input type that accepts LogscaleActionOpsGenieActionArgs and LogscaleActionOpsGenieActionOutput values. +// You can construct a concrete instance of `LogscaleActionOpsGenieActionInput` via: +// +// LogscaleActionOpsGenieActionArgs{...} +type LogscaleActionOpsGenieActionInput interface { + pulumi.Input + + ToLogscaleActionOpsGenieActionOutput() LogscaleActionOpsGenieActionOutput + ToLogscaleActionOpsGenieActionOutputWithContext(context.Context) LogscaleActionOpsGenieActionOutput +} + +type LogscaleActionOpsGenieActionArgs struct { + ApiUrl pulumi.StringInput `pulumi:"apiUrl"` + OpsGenieKey pulumi.StringInput `pulumi:"opsGenieKey"` + UseProxy pulumi.BoolPtrInput `pulumi:"useProxy"` +} + +func (LogscaleActionOpsGenieActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionOpsGenieAction)(nil)).Elem() +} + +func (i LogscaleActionOpsGenieActionArgs) ToLogscaleActionOpsGenieActionOutput() LogscaleActionOpsGenieActionOutput { + return i.ToLogscaleActionOpsGenieActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionOpsGenieActionArgs) ToLogscaleActionOpsGenieActionOutputWithContext(ctx context.Context) LogscaleActionOpsGenieActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionOpsGenieActionOutput) +} + +func (i LogscaleActionOpsGenieActionArgs) ToLogscaleActionOpsGenieActionPtrOutput() LogscaleActionOpsGenieActionPtrOutput { + return i.ToLogscaleActionOpsGenieActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionOpsGenieActionArgs) ToLogscaleActionOpsGenieActionPtrOutputWithContext(ctx context.Context) LogscaleActionOpsGenieActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionOpsGenieActionOutput).ToLogscaleActionOpsGenieActionPtrOutputWithContext(ctx) +} + +// LogscaleActionOpsGenieActionPtrInput is an input type that accepts LogscaleActionOpsGenieActionArgs, LogscaleActionOpsGenieActionPtr and LogscaleActionOpsGenieActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionOpsGenieActionPtrInput` via: +// +// LogscaleActionOpsGenieActionArgs{...} +// +// or: +// +// nil +type LogscaleActionOpsGenieActionPtrInput interface { + pulumi.Input + + ToLogscaleActionOpsGenieActionPtrOutput() LogscaleActionOpsGenieActionPtrOutput + ToLogscaleActionOpsGenieActionPtrOutputWithContext(context.Context) LogscaleActionOpsGenieActionPtrOutput +} + +type logscaleActionOpsGenieActionPtrType LogscaleActionOpsGenieActionArgs + +func LogscaleActionOpsGenieActionPtr(v *LogscaleActionOpsGenieActionArgs) LogscaleActionOpsGenieActionPtrInput { + return (*logscaleActionOpsGenieActionPtrType)(v) +} + +func (*logscaleActionOpsGenieActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionOpsGenieAction)(nil)).Elem() +} + +func (i *logscaleActionOpsGenieActionPtrType) ToLogscaleActionOpsGenieActionPtrOutput() LogscaleActionOpsGenieActionPtrOutput { + return i.ToLogscaleActionOpsGenieActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionOpsGenieActionPtrType) ToLogscaleActionOpsGenieActionPtrOutputWithContext(ctx context.Context) LogscaleActionOpsGenieActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionOpsGenieActionPtrOutput) +} + +type LogscaleActionOpsGenieActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionOpsGenieActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionOpsGenieAction)(nil)).Elem() +} + +func (o LogscaleActionOpsGenieActionOutput) ToLogscaleActionOpsGenieActionOutput() LogscaleActionOpsGenieActionOutput { + return o +} + +func (o LogscaleActionOpsGenieActionOutput) ToLogscaleActionOpsGenieActionOutputWithContext(ctx context.Context) LogscaleActionOpsGenieActionOutput { + return o +} + +func (o LogscaleActionOpsGenieActionOutput) ToLogscaleActionOpsGenieActionPtrOutput() LogscaleActionOpsGenieActionPtrOutput { + return o.ToLogscaleActionOpsGenieActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionOpsGenieActionOutput) ToLogscaleActionOpsGenieActionPtrOutputWithContext(ctx context.Context) LogscaleActionOpsGenieActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionOpsGenieAction) *LogscaleActionOpsGenieAction { + return &v + }).(LogscaleActionOpsGenieActionPtrOutput) +} + +func (o LogscaleActionOpsGenieActionOutput) ApiUrl() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionOpsGenieAction) string { return v.ApiUrl }).(pulumi.StringOutput) +} + +func (o LogscaleActionOpsGenieActionOutput) OpsGenieKey() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionOpsGenieAction) string { return v.OpsGenieKey }).(pulumi.StringOutput) +} + +func (o LogscaleActionOpsGenieActionOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionOpsGenieAction) *bool { return v.UseProxy }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionOpsGenieActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionOpsGenieActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionOpsGenieAction)(nil)).Elem() +} + +func (o LogscaleActionOpsGenieActionPtrOutput) ToLogscaleActionOpsGenieActionPtrOutput() LogscaleActionOpsGenieActionPtrOutput { + return o +} + +func (o LogscaleActionOpsGenieActionPtrOutput) ToLogscaleActionOpsGenieActionPtrOutputWithContext(ctx context.Context) LogscaleActionOpsGenieActionPtrOutput { + return o +} + +func (o LogscaleActionOpsGenieActionPtrOutput) Elem() LogscaleActionOpsGenieActionOutput { + return o.ApplyT(func(v *LogscaleActionOpsGenieAction) LogscaleActionOpsGenieAction { + if v != nil { + return *v + } + var ret LogscaleActionOpsGenieAction + return ret + }).(LogscaleActionOpsGenieActionOutput) +} + +func (o LogscaleActionOpsGenieActionPtrOutput) ApiUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionOpsGenieAction) *string { + if v == nil { + return nil + } + return &v.ApiUrl + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionOpsGenieActionPtrOutput) OpsGenieKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionOpsGenieAction) *string { + if v == nil { + return nil + } + return &v.OpsGenieKey + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionOpsGenieActionPtrOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionOpsGenieAction) *bool { + if v == nil { + return nil + } + return v.UseProxy + }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionPagerDutyAction struct { + RoutingKey string `pulumi:"routingKey"` + Severity string `pulumi:"severity"` + UseProxy *bool `pulumi:"useProxy"` +} + +// LogscaleActionPagerDutyActionInput is an input type that accepts LogscaleActionPagerDutyActionArgs and LogscaleActionPagerDutyActionOutput values. +// You can construct a concrete instance of `LogscaleActionPagerDutyActionInput` via: +// +// LogscaleActionPagerDutyActionArgs{...} +type LogscaleActionPagerDutyActionInput interface { + pulumi.Input + + ToLogscaleActionPagerDutyActionOutput() LogscaleActionPagerDutyActionOutput + ToLogscaleActionPagerDutyActionOutputWithContext(context.Context) LogscaleActionPagerDutyActionOutput +} + +type LogscaleActionPagerDutyActionArgs struct { + RoutingKey pulumi.StringInput `pulumi:"routingKey"` + Severity pulumi.StringInput `pulumi:"severity"` + UseProxy pulumi.BoolPtrInput `pulumi:"useProxy"` +} + +func (LogscaleActionPagerDutyActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionPagerDutyAction)(nil)).Elem() +} + +func (i LogscaleActionPagerDutyActionArgs) ToLogscaleActionPagerDutyActionOutput() LogscaleActionPagerDutyActionOutput { + return i.ToLogscaleActionPagerDutyActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionPagerDutyActionArgs) ToLogscaleActionPagerDutyActionOutputWithContext(ctx context.Context) LogscaleActionPagerDutyActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionPagerDutyActionOutput) +} + +func (i LogscaleActionPagerDutyActionArgs) ToLogscaleActionPagerDutyActionPtrOutput() LogscaleActionPagerDutyActionPtrOutput { + return i.ToLogscaleActionPagerDutyActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionPagerDutyActionArgs) ToLogscaleActionPagerDutyActionPtrOutputWithContext(ctx context.Context) LogscaleActionPagerDutyActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionPagerDutyActionOutput).ToLogscaleActionPagerDutyActionPtrOutputWithContext(ctx) +} + +// LogscaleActionPagerDutyActionPtrInput is an input type that accepts LogscaleActionPagerDutyActionArgs, LogscaleActionPagerDutyActionPtr and LogscaleActionPagerDutyActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionPagerDutyActionPtrInput` via: +// +// LogscaleActionPagerDutyActionArgs{...} +// +// or: +// +// nil +type LogscaleActionPagerDutyActionPtrInput interface { + pulumi.Input + + ToLogscaleActionPagerDutyActionPtrOutput() LogscaleActionPagerDutyActionPtrOutput + ToLogscaleActionPagerDutyActionPtrOutputWithContext(context.Context) LogscaleActionPagerDutyActionPtrOutput +} + +type logscaleActionPagerDutyActionPtrType LogscaleActionPagerDutyActionArgs + +func LogscaleActionPagerDutyActionPtr(v *LogscaleActionPagerDutyActionArgs) LogscaleActionPagerDutyActionPtrInput { + return (*logscaleActionPagerDutyActionPtrType)(v) +} + +func (*logscaleActionPagerDutyActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionPagerDutyAction)(nil)).Elem() +} + +func (i *logscaleActionPagerDutyActionPtrType) ToLogscaleActionPagerDutyActionPtrOutput() LogscaleActionPagerDutyActionPtrOutput { + return i.ToLogscaleActionPagerDutyActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionPagerDutyActionPtrType) ToLogscaleActionPagerDutyActionPtrOutputWithContext(ctx context.Context) LogscaleActionPagerDutyActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionPagerDutyActionPtrOutput) +} + +type LogscaleActionPagerDutyActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionPagerDutyActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionPagerDutyAction)(nil)).Elem() +} + +func (o LogscaleActionPagerDutyActionOutput) ToLogscaleActionPagerDutyActionOutput() LogscaleActionPagerDutyActionOutput { + return o +} + +func (o LogscaleActionPagerDutyActionOutput) ToLogscaleActionPagerDutyActionOutputWithContext(ctx context.Context) LogscaleActionPagerDutyActionOutput { + return o +} + +func (o LogscaleActionPagerDutyActionOutput) ToLogscaleActionPagerDutyActionPtrOutput() LogscaleActionPagerDutyActionPtrOutput { + return o.ToLogscaleActionPagerDutyActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionPagerDutyActionOutput) ToLogscaleActionPagerDutyActionPtrOutputWithContext(ctx context.Context) LogscaleActionPagerDutyActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionPagerDutyAction) *LogscaleActionPagerDutyAction { + return &v + }).(LogscaleActionPagerDutyActionPtrOutput) +} + +func (o LogscaleActionPagerDutyActionOutput) RoutingKey() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionPagerDutyAction) string { return v.RoutingKey }).(pulumi.StringOutput) +} + +func (o LogscaleActionPagerDutyActionOutput) Severity() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionPagerDutyAction) string { return v.Severity }).(pulumi.StringOutput) +} + +func (o LogscaleActionPagerDutyActionOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionPagerDutyAction) *bool { return v.UseProxy }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionPagerDutyActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionPagerDutyActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionPagerDutyAction)(nil)).Elem() +} + +func (o LogscaleActionPagerDutyActionPtrOutput) ToLogscaleActionPagerDutyActionPtrOutput() LogscaleActionPagerDutyActionPtrOutput { + return o +} + +func (o LogscaleActionPagerDutyActionPtrOutput) ToLogscaleActionPagerDutyActionPtrOutputWithContext(ctx context.Context) LogscaleActionPagerDutyActionPtrOutput { + return o +} + +func (o LogscaleActionPagerDutyActionPtrOutput) Elem() LogscaleActionPagerDutyActionOutput { + return o.ApplyT(func(v *LogscaleActionPagerDutyAction) LogscaleActionPagerDutyAction { + if v != nil { + return *v + } + var ret LogscaleActionPagerDutyAction + return ret + }).(LogscaleActionPagerDutyActionOutput) +} + +func (o LogscaleActionPagerDutyActionPtrOutput) RoutingKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionPagerDutyAction) *string { + if v == nil { + return nil + } + return &v.RoutingKey + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionPagerDutyActionPtrOutput) Severity() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionPagerDutyAction) *string { + if v == nil { + return nil + } + return &v.Severity + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionPagerDutyActionPtrOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionPagerDutyAction) *bool { + if v == nil { + return nil + } + return v.UseProxy + }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionSlackAction struct { + Fields map[string]string `pulumi:"fields"` + Url string `pulumi:"url"` + UseProxy *bool `pulumi:"useProxy"` +} + +// LogscaleActionSlackActionInput is an input type that accepts LogscaleActionSlackActionArgs and LogscaleActionSlackActionOutput values. +// You can construct a concrete instance of `LogscaleActionSlackActionInput` via: +// +// LogscaleActionSlackActionArgs{...} +type LogscaleActionSlackActionInput interface { + pulumi.Input + + ToLogscaleActionSlackActionOutput() LogscaleActionSlackActionOutput + ToLogscaleActionSlackActionOutputWithContext(context.Context) LogscaleActionSlackActionOutput +} + +type LogscaleActionSlackActionArgs struct { + Fields pulumi.StringMapInput `pulumi:"fields"` + Url pulumi.StringInput `pulumi:"url"` + UseProxy pulumi.BoolPtrInput `pulumi:"useProxy"` +} + +func (LogscaleActionSlackActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionSlackAction)(nil)).Elem() +} + +func (i LogscaleActionSlackActionArgs) ToLogscaleActionSlackActionOutput() LogscaleActionSlackActionOutput { + return i.ToLogscaleActionSlackActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionSlackActionArgs) ToLogscaleActionSlackActionOutputWithContext(ctx context.Context) LogscaleActionSlackActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionSlackActionOutput) +} + +func (i LogscaleActionSlackActionArgs) ToLogscaleActionSlackActionPtrOutput() LogscaleActionSlackActionPtrOutput { + return i.ToLogscaleActionSlackActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionSlackActionArgs) ToLogscaleActionSlackActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionSlackActionOutput).ToLogscaleActionSlackActionPtrOutputWithContext(ctx) +} + +// LogscaleActionSlackActionPtrInput is an input type that accepts LogscaleActionSlackActionArgs, LogscaleActionSlackActionPtr and LogscaleActionSlackActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionSlackActionPtrInput` via: +// +// LogscaleActionSlackActionArgs{...} +// +// or: +// +// nil +type LogscaleActionSlackActionPtrInput interface { + pulumi.Input + + ToLogscaleActionSlackActionPtrOutput() LogscaleActionSlackActionPtrOutput + ToLogscaleActionSlackActionPtrOutputWithContext(context.Context) LogscaleActionSlackActionPtrOutput +} + +type logscaleActionSlackActionPtrType LogscaleActionSlackActionArgs + +func LogscaleActionSlackActionPtr(v *LogscaleActionSlackActionArgs) LogscaleActionSlackActionPtrInput { + return (*logscaleActionSlackActionPtrType)(v) +} + +func (*logscaleActionSlackActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionSlackAction)(nil)).Elem() +} + +func (i *logscaleActionSlackActionPtrType) ToLogscaleActionSlackActionPtrOutput() LogscaleActionSlackActionPtrOutput { + return i.ToLogscaleActionSlackActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionSlackActionPtrType) ToLogscaleActionSlackActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionSlackActionPtrOutput) +} + +type LogscaleActionSlackActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionSlackActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionSlackAction)(nil)).Elem() +} + +func (o LogscaleActionSlackActionOutput) ToLogscaleActionSlackActionOutput() LogscaleActionSlackActionOutput { + return o +} + +func (o LogscaleActionSlackActionOutput) ToLogscaleActionSlackActionOutputWithContext(ctx context.Context) LogscaleActionSlackActionOutput { + return o +} + +func (o LogscaleActionSlackActionOutput) ToLogscaleActionSlackActionPtrOutput() LogscaleActionSlackActionPtrOutput { + return o.ToLogscaleActionSlackActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionSlackActionOutput) ToLogscaleActionSlackActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionSlackAction) *LogscaleActionSlackAction { + return &v + }).(LogscaleActionSlackActionPtrOutput) +} + +func (o LogscaleActionSlackActionOutput) Fields() pulumi.StringMapOutput { + return o.ApplyT(func(v LogscaleActionSlackAction) map[string]string { return v.Fields }).(pulumi.StringMapOutput) +} + +func (o LogscaleActionSlackActionOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionSlackAction) string { return v.Url }).(pulumi.StringOutput) +} + +func (o LogscaleActionSlackActionOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionSlackAction) *bool { return v.UseProxy }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionSlackActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionSlackActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionSlackAction)(nil)).Elem() +} + +func (o LogscaleActionSlackActionPtrOutput) ToLogscaleActionSlackActionPtrOutput() LogscaleActionSlackActionPtrOutput { + return o +} + +func (o LogscaleActionSlackActionPtrOutput) ToLogscaleActionSlackActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackActionPtrOutput { + return o +} + +func (o LogscaleActionSlackActionPtrOutput) Elem() LogscaleActionSlackActionOutput { + return o.ApplyT(func(v *LogscaleActionSlackAction) LogscaleActionSlackAction { + if v != nil { + return *v + } + var ret LogscaleActionSlackAction + return ret + }).(LogscaleActionSlackActionOutput) +} + +func (o LogscaleActionSlackActionPtrOutput) Fields() pulumi.StringMapOutput { + return o.ApplyT(func(v *LogscaleActionSlackAction) map[string]string { + if v == nil { + return nil + } + return v.Fields + }).(pulumi.StringMapOutput) +} + +func (o LogscaleActionSlackActionPtrOutput) Url() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionSlackAction) *string { + if v == nil { + return nil + } + return &v.Url + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionSlackActionPtrOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionSlackAction) *bool { + if v == nil { + return nil + } + return v.UseProxy + }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionSlackPostMessageAction struct { + ApiToken string `pulumi:"apiToken"` + Channels []string `pulumi:"channels"` + Fields map[string]string `pulumi:"fields"` + UseProxy *bool `pulumi:"useProxy"` +} + +// LogscaleActionSlackPostMessageActionInput is an input type that accepts LogscaleActionSlackPostMessageActionArgs and LogscaleActionSlackPostMessageActionOutput values. +// You can construct a concrete instance of `LogscaleActionSlackPostMessageActionInput` via: +// +// LogscaleActionSlackPostMessageActionArgs{...} +type LogscaleActionSlackPostMessageActionInput interface { + pulumi.Input + + ToLogscaleActionSlackPostMessageActionOutput() LogscaleActionSlackPostMessageActionOutput + ToLogscaleActionSlackPostMessageActionOutputWithContext(context.Context) LogscaleActionSlackPostMessageActionOutput +} + +type LogscaleActionSlackPostMessageActionArgs struct { + ApiToken pulumi.StringInput `pulumi:"apiToken"` + Channels pulumi.StringArrayInput `pulumi:"channels"` + Fields pulumi.StringMapInput `pulumi:"fields"` + UseProxy pulumi.BoolPtrInput `pulumi:"useProxy"` +} + +func (LogscaleActionSlackPostMessageActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionSlackPostMessageAction)(nil)).Elem() +} + +func (i LogscaleActionSlackPostMessageActionArgs) ToLogscaleActionSlackPostMessageActionOutput() LogscaleActionSlackPostMessageActionOutput { + return i.ToLogscaleActionSlackPostMessageActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionSlackPostMessageActionArgs) ToLogscaleActionSlackPostMessageActionOutputWithContext(ctx context.Context) LogscaleActionSlackPostMessageActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionSlackPostMessageActionOutput) +} + +func (i LogscaleActionSlackPostMessageActionArgs) ToLogscaleActionSlackPostMessageActionPtrOutput() LogscaleActionSlackPostMessageActionPtrOutput { + return i.ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionSlackPostMessageActionArgs) ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackPostMessageActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionSlackPostMessageActionOutput).ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(ctx) +} + +// LogscaleActionSlackPostMessageActionPtrInput is an input type that accepts LogscaleActionSlackPostMessageActionArgs, LogscaleActionSlackPostMessageActionPtr and LogscaleActionSlackPostMessageActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionSlackPostMessageActionPtrInput` via: +// +// LogscaleActionSlackPostMessageActionArgs{...} +// +// or: +// +// nil +type LogscaleActionSlackPostMessageActionPtrInput interface { + pulumi.Input + + ToLogscaleActionSlackPostMessageActionPtrOutput() LogscaleActionSlackPostMessageActionPtrOutput + ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(context.Context) LogscaleActionSlackPostMessageActionPtrOutput +} + +type logscaleActionSlackPostMessageActionPtrType LogscaleActionSlackPostMessageActionArgs + +func LogscaleActionSlackPostMessageActionPtr(v *LogscaleActionSlackPostMessageActionArgs) LogscaleActionSlackPostMessageActionPtrInput { + return (*logscaleActionSlackPostMessageActionPtrType)(v) +} + +func (*logscaleActionSlackPostMessageActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionSlackPostMessageAction)(nil)).Elem() +} + +func (i *logscaleActionSlackPostMessageActionPtrType) ToLogscaleActionSlackPostMessageActionPtrOutput() LogscaleActionSlackPostMessageActionPtrOutput { + return i.ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionSlackPostMessageActionPtrType) ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackPostMessageActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionSlackPostMessageActionPtrOutput) +} + +type LogscaleActionSlackPostMessageActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionSlackPostMessageActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionSlackPostMessageAction)(nil)).Elem() +} + +func (o LogscaleActionSlackPostMessageActionOutput) ToLogscaleActionSlackPostMessageActionOutput() LogscaleActionSlackPostMessageActionOutput { + return o +} + +func (o LogscaleActionSlackPostMessageActionOutput) ToLogscaleActionSlackPostMessageActionOutputWithContext(ctx context.Context) LogscaleActionSlackPostMessageActionOutput { + return o +} + +func (o LogscaleActionSlackPostMessageActionOutput) ToLogscaleActionSlackPostMessageActionPtrOutput() LogscaleActionSlackPostMessageActionPtrOutput { + return o.ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionSlackPostMessageActionOutput) ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackPostMessageActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionSlackPostMessageAction) *LogscaleActionSlackPostMessageAction { + return &v + }).(LogscaleActionSlackPostMessageActionPtrOutput) +} + +func (o LogscaleActionSlackPostMessageActionOutput) ApiToken() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionSlackPostMessageAction) string { return v.ApiToken }).(pulumi.StringOutput) +} + +func (o LogscaleActionSlackPostMessageActionOutput) Channels() pulumi.StringArrayOutput { + return o.ApplyT(func(v LogscaleActionSlackPostMessageAction) []string { return v.Channels }).(pulumi.StringArrayOutput) +} + +func (o LogscaleActionSlackPostMessageActionOutput) Fields() pulumi.StringMapOutput { + return o.ApplyT(func(v LogscaleActionSlackPostMessageAction) map[string]string { return v.Fields }).(pulumi.StringMapOutput) +} + +func (o LogscaleActionSlackPostMessageActionOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionSlackPostMessageAction) *bool { return v.UseProxy }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionSlackPostMessageActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionSlackPostMessageActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionSlackPostMessageAction)(nil)).Elem() +} + +func (o LogscaleActionSlackPostMessageActionPtrOutput) ToLogscaleActionSlackPostMessageActionPtrOutput() LogscaleActionSlackPostMessageActionPtrOutput { + return o +} + +func (o LogscaleActionSlackPostMessageActionPtrOutput) ToLogscaleActionSlackPostMessageActionPtrOutputWithContext(ctx context.Context) LogscaleActionSlackPostMessageActionPtrOutput { + return o +} + +func (o LogscaleActionSlackPostMessageActionPtrOutput) Elem() LogscaleActionSlackPostMessageActionOutput { + return o.ApplyT(func(v *LogscaleActionSlackPostMessageAction) LogscaleActionSlackPostMessageAction { + if v != nil { + return *v + } + var ret LogscaleActionSlackPostMessageAction + return ret + }).(LogscaleActionSlackPostMessageActionOutput) +} + +func (o LogscaleActionSlackPostMessageActionPtrOutput) ApiToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionSlackPostMessageAction) *string { + if v == nil { + return nil + } + return &v.ApiToken + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionSlackPostMessageActionPtrOutput) Channels() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LogscaleActionSlackPostMessageAction) []string { + if v == nil { + return nil + } + return v.Channels + }).(pulumi.StringArrayOutput) +} + +func (o LogscaleActionSlackPostMessageActionPtrOutput) Fields() pulumi.StringMapOutput { + return o.ApplyT(func(v *LogscaleActionSlackPostMessageAction) map[string]string { + if v == nil { + return nil + } + return v.Fields + }).(pulumi.StringMapOutput) +} + +func (o LogscaleActionSlackPostMessageActionPtrOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionSlackPostMessageAction) *bool { + if v == nil { + return nil + } + return v.UseProxy + }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionUploadFileAction struct { + FileName string `pulumi:"fileName"` +} + +// LogscaleActionUploadFileActionInput is an input type that accepts LogscaleActionUploadFileActionArgs and LogscaleActionUploadFileActionOutput values. +// You can construct a concrete instance of `LogscaleActionUploadFileActionInput` via: +// +// LogscaleActionUploadFileActionArgs{...} +type LogscaleActionUploadFileActionInput interface { + pulumi.Input + + ToLogscaleActionUploadFileActionOutput() LogscaleActionUploadFileActionOutput + ToLogscaleActionUploadFileActionOutputWithContext(context.Context) LogscaleActionUploadFileActionOutput +} + +type LogscaleActionUploadFileActionArgs struct { + FileName pulumi.StringInput `pulumi:"fileName"` +} + +func (LogscaleActionUploadFileActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionUploadFileAction)(nil)).Elem() +} + +func (i LogscaleActionUploadFileActionArgs) ToLogscaleActionUploadFileActionOutput() LogscaleActionUploadFileActionOutput { + return i.ToLogscaleActionUploadFileActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionUploadFileActionArgs) ToLogscaleActionUploadFileActionOutputWithContext(ctx context.Context) LogscaleActionUploadFileActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionUploadFileActionOutput) +} + +func (i LogscaleActionUploadFileActionArgs) ToLogscaleActionUploadFileActionPtrOutput() LogscaleActionUploadFileActionPtrOutput { + return i.ToLogscaleActionUploadFileActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionUploadFileActionArgs) ToLogscaleActionUploadFileActionPtrOutputWithContext(ctx context.Context) LogscaleActionUploadFileActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionUploadFileActionOutput).ToLogscaleActionUploadFileActionPtrOutputWithContext(ctx) +} + +// LogscaleActionUploadFileActionPtrInput is an input type that accepts LogscaleActionUploadFileActionArgs, LogscaleActionUploadFileActionPtr and LogscaleActionUploadFileActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionUploadFileActionPtrInput` via: +// +// LogscaleActionUploadFileActionArgs{...} +// +// or: +// +// nil +type LogscaleActionUploadFileActionPtrInput interface { + pulumi.Input + + ToLogscaleActionUploadFileActionPtrOutput() LogscaleActionUploadFileActionPtrOutput + ToLogscaleActionUploadFileActionPtrOutputWithContext(context.Context) LogscaleActionUploadFileActionPtrOutput +} + +type logscaleActionUploadFileActionPtrType LogscaleActionUploadFileActionArgs + +func LogscaleActionUploadFileActionPtr(v *LogscaleActionUploadFileActionArgs) LogscaleActionUploadFileActionPtrInput { + return (*logscaleActionUploadFileActionPtrType)(v) +} + +func (*logscaleActionUploadFileActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionUploadFileAction)(nil)).Elem() +} + +func (i *logscaleActionUploadFileActionPtrType) ToLogscaleActionUploadFileActionPtrOutput() LogscaleActionUploadFileActionPtrOutput { + return i.ToLogscaleActionUploadFileActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionUploadFileActionPtrType) ToLogscaleActionUploadFileActionPtrOutputWithContext(ctx context.Context) LogscaleActionUploadFileActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionUploadFileActionPtrOutput) +} + +type LogscaleActionUploadFileActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionUploadFileActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionUploadFileAction)(nil)).Elem() +} + +func (o LogscaleActionUploadFileActionOutput) ToLogscaleActionUploadFileActionOutput() LogscaleActionUploadFileActionOutput { + return o +} + +func (o LogscaleActionUploadFileActionOutput) ToLogscaleActionUploadFileActionOutputWithContext(ctx context.Context) LogscaleActionUploadFileActionOutput { + return o +} + +func (o LogscaleActionUploadFileActionOutput) ToLogscaleActionUploadFileActionPtrOutput() LogscaleActionUploadFileActionPtrOutput { + return o.ToLogscaleActionUploadFileActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionUploadFileActionOutput) ToLogscaleActionUploadFileActionPtrOutputWithContext(ctx context.Context) LogscaleActionUploadFileActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionUploadFileAction) *LogscaleActionUploadFileAction { + return &v + }).(LogscaleActionUploadFileActionPtrOutput) +} + +func (o LogscaleActionUploadFileActionOutput) FileName() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionUploadFileAction) string { return v.FileName }).(pulumi.StringOutput) +} + +type LogscaleActionUploadFileActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionUploadFileActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionUploadFileAction)(nil)).Elem() +} + +func (o LogscaleActionUploadFileActionPtrOutput) ToLogscaleActionUploadFileActionPtrOutput() LogscaleActionUploadFileActionPtrOutput { + return o +} + +func (o LogscaleActionUploadFileActionPtrOutput) ToLogscaleActionUploadFileActionPtrOutputWithContext(ctx context.Context) LogscaleActionUploadFileActionPtrOutput { + return o +} + +func (o LogscaleActionUploadFileActionPtrOutput) Elem() LogscaleActionUploadFileActionOutput { + return o.ApplyT(func(v *LogscaleActionUploadFileAction) LogscaleActionUploadFileAction { + if v != nil { + return *v + } + var ret LogscaleActionUploadFileAction + return ret + }).(LogscaleActionUploadFileActionOutput) +} + +func (o LogscaleActionUploadFileActionPtrOutput) FileName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionUploadFileAction) *string { + if v == nil { + return nil + } + return &v.FileName + }).(pulumi.StringPtrOutput) +} + +type LogscaleActionVictorOpsAction struct { + MessageType string `pulumi:"messageType"` + NotifyUrl string `pulumi:"notifyUrl"` + UseProxy *bool `pulumi:"useProxy"` +} + +// LogscaleActionVictorOpsActionInput is an input type that accepts LogscaleActionVictorOpsActionArgs and LogscaleActionVictorOpsActionOutput values. +// You can construct a concrete instance of `LogscaleActionVictorOpsActionInput` via: +// +// LogscaleActionVictorOpsActionArgs{...} +type LogscaleActionVictorOpsActionInput interface { + pulumi.Input + + ToLogscaleActionVictorOpsActionOutput() LogscaleActionVictorOpsActionOutput + ToLogscaleActionVictorOpsActionOutputWithContext(context.Context) LogscaleActionVictorOpsActionOutput +} + +type LogscaleActionVictorOpsActionArgs struct { + MessageType pulumi.StringInput `pulumi:"messageType"` + NotifyUrl pulumi.StringInput `pulumi:"notifyUrl"` + UseProxy pulumi.BoolPtrInput `pulumi:"useProxy"` +} + +func (LogscaleActionVictorOpsActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionVictorOpsAction)(nil)).Elem() +} + +func (i LogscaleActionVictorOpsActionArgs) ToLogscaleActionVictorOpsActionOutput() LogscaleActionVictorOpsActionOutput { + return i.ToLogscaleActionVictorOpsActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionVictorOpsActionArgs) ToLogscaleActionVictorOpsActionOutputWithContext(ctx context.Context) LogscaleActionVictorOpsActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionVictorOpsActionOutput) +} + +func (i LogscaleActionVictorOpsActionArgs) ToLogscaleActionVictorOpsActionPtrOutput() LogscaleActionVictorOpsActionPtrOutput { + return i.ToLogscaleActionVictorOpsActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionVictorOpsActionArgs) ToLogscaleActionVictorOpsActionPtrOutputWithContext(ctx context.Context) LogscaleActionVictorOpsActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionVictorOpsActionOutput).ToLogscaleActionVictorOpsActionPtrOutputWithContext(ctx) +} + +// LogscaleActionVictorOpsActionPtrInput is an input type that accepts LogscaleActionVictorOpsActionArgs, LogscaleActionVictorOpsActionPtr and LogscaleActionVictorOpsActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionVictorOpsActionPtrInput` via: +// +// LogscaleActionVictorOpsActionArgs{...} +// +// or: +// +// nil +type LogscaleActionVictorOpsActionPtrInput interface { + pulumi.Input + + ToLogscaleActionVictorOpsActionPtrOutput() LogscaleActionVictorOpsActionPtrOutput + ToLogscaleActionVictorOpsActionPtrOutputWithContext(context.Context) LogscaleActionVictorOpsActionPtrOutput +} + +type logscaleActionVictorOpsActionPtrType LogscaleActionVictorOpsActionArgs + +func LogscaleActionVictorOpsActionPtr(v *LogscaleActionVictorOpsActionArgs) LogscaleActionVictorOpsActionPtrInput { + return (*logscaleActionVictorOpsActionPtrType)(v) +} + +func (*logscaleActionVictorOpsActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionVictorOpsAction)(nil)).Elem() +} + +func (i *logscaleActionVictorOpsActionPtrType) ToLogscaleActionVictorOpsActionPtrOutput() LogscaleActionVictorOpsActionPtrOutput { + return i.ToLogscaleActionVictorOpsActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionVictorOpsActionPtrType) ToLogscaleActionVictorOpsActionPtrOutputWithContext(ctx context.Context) LogscaleActionVictorOpsActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionVictorOpsActionPtrOutput) +} + +type LogscaleActionVictorOpsActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionVictorOpsActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionVictorOpsAction)(nil)).Elem() +} + +func (o LogscaleActionVictorOpsActionOutput) ToLogscaleActionVictorOpsActionOutput() LogscaleActionVictorOpsActionOutput { + return o +} + +func (o LogscaleActionVictorOpsActionOutput) ToLogscaleActionVictorOpsActionOutputWithContext(ctx context.Context) LogscaleActionVictorOpsActionOutput { + return o +} + +func (o LogscaleActionVictorOpsActionOutput) ToLogscaleActionVictorOpsActionPtrOutput() LogscaleActionVictorOpsActionPtrOutput { + return o.ToLogscaleActionVictorOpsActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionVictorOpsActionOutput) ToLogscaleActionVictorOpsActionPtrOutputWithContext(ctx context.Context) LogscaleActionVictorOpsActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionVictorOpsAction) *LogscaleActionVictorOpsAction { + return &v + }).(LogscaleActionVictorOpsActionPtrOutput) +} + +func (o LogscaleActionVictorOpsActionOutput) MessageType() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionVictorOpsAction) string { return v.MessageType }).(pulumi.StringOutput) +} + +func (o LogscaleActionVictorOpsActionOutput) NotifyUrl() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionVictorOpsAction) string { return v.NotifyUrl }).(pulumi.StringOutput) +} + +func (o LogscaleActionVictorOpsActionOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionVictorOpsAction) *bool { return v.UseProxy }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionVictorOpsActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionVictorOpsActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionVictorOpsAction)(nil)).Elem() +} + +func (o LogscaleActionVictorOpsActionPtrOutput) ToLogscaleActionVictorOpsActionPtrOutput() LogscaleActionVictorOpsActionPtrOutput { + return o +} + +func (o LogscaleActionVictorOpsActionPtrOutput) ToLogscaleActionVictorOpsActionPtrOutputWithContext(ctx context.Context) LogscaleActionVictorOpsActionPtrOutput { + return o +} + +func (o LogscaleActionVictorOpsActionPtrOutput) Elem() LogscaleActionVictorOpsActionOutput { + return o.ApplyT(func(v *LogscaleActionVictorOpsAction) LogscaleActionVictorOpsAction { + if v != nil { + return *v + } + var ret LogscaleActionVictorOpsAction + return ret + }).(LogscaleActionVictorOpsActionOutput) +} + +func (o LogscaleActionVictorOpsActionPtrOutput) MessageType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionVictorOpsAction) *string { + if v == nil { + return nil + } + return &v.MessageType + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionVictorOpsActionPtrOutput) NotifyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionVictorOpsAction) *string { + if v == nil { + return nil + } + return &v.NotifyUrl + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionVictorOpsActionPtrOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionVictorOpsAction) *bool { + if v == nil { + return nil + } + return v.UseProxy + }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionWebhookAction struct { + BodyTemplate *string `pulumi:"bodyTemplate"` + Headers map[string]string `pulumi:"headers"` + IgnoreSsl *bool `pulumi:"ignoreSsl"` + Method string `pulumi:"method"` + Url string `pulumi:"url"` + UseProxy *bool `pulumi:"useProxy"` +} + +// LogscaleActionWebhookActionInput is an input type that accepts LogscaleActionWebhookActionArgs and LogscaleActionWebhookActionOutput values. +// You can construct a concrete instance of `LogscaleActionWebhookActionInput` via: +// +// LogscaleActionWebhookActionArgs{...} +type LogscaleActionWebhookActionInput interface { + pulumi.Input + + ToLogscaleActionWebhookActionOutput() LogscaleActionWebhookActionOutput + ToLogscaleActionWebhookActionOutputWithContext(context.Context) LogscaleActionWebhookActionOutput +} + +type LogscaleActionWebhookActionArgs struct { + BodyTemplate pulumi.StringPtrInput `pulumi:"bodyTemplate"` + Headers pulumi.StringMapInput `pulumi:"headers"` + IgnoreSsl pulumi.BoolPtrInput `pulumi:"ignoreSsl"` + Method pulumi.StringInput `pulumi:"method"` + Url pulumi.StringInput `pulumi:"url"` + UseProxy pulumi.BoolPtrInput `pulumi:"useProxy"` +} + +func (LogscaleActionWebhookActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionWebhookAction)(nil)).Elem() +} + +func (i LogscaleActionWebhookActionArgs) ToLogscaleActionWebhookActionOutput() LogscaleActionWebhookActionOutput { + return i.ToLogscaleActionWebhookActionOutputWithContext(context.Background()) +} + +func (i LogscaleActionWebhookActionArgs) ToLogscaleActionWebhookActionOutputWithContext(ctx context.Context) LogscaleActionWebhookActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionWebhookActionOutput) +} + +func (i LogscaleActionWebhookActionArgs) ToLogscaleActionWebhookActionPtrOutput() LogscaleActionWebhookActionPtrOutput { + return i.ToLogscaleActionWebhookActionPtrOutputWithContext(context.Background()) +} + +func (i LogscaleActionWebhookActionArgs) ToLogscaleActionWebhookActionPtrOutputWithContext(ctx context.Context) LogscaleActionWebhookActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionWebhookActionOutput).ToLogscaleActionWebhookActionPtrOutputWithContext(ctx) +} + +// LogscaleActionWebhookActionPtrInput is an input type that accepts LogscaleActionWebhookActionArgs, LogscaleActionWebhookActionPtr and LogscaleActionWebhookActionPtrOutput values. +// You can construct a concrete instance of `LogscaleActionWebhookActionPtrInput` via: +// +// LogscaleActionWebhookActionArgs{...} +// +// or: +// +// nil +type LogscaleActionWebhookActionPtrInput interface { + pulumi.Input + + ToLogscaleActionWebhookActionPtrOutput() LogscaleActionWebhookActionPtrOutput + ToLogscaleActionWebhookActionPtrOutputWithContext(context.Context) LogscaleActionWebhookActionPtrOutput +} + +type logscaleActionWebhookActionPtrType LogscaleActionWebhookActionArgs + +func LogscaleActionWebhookActionPtr(v *LogscaleActionWebhookActionArgs) LogscaleActionWebhookActionPtrInput { + return (*logscaleActionWebhookActionPtrType)(v) +} + +func (*logscaleActionWebhookActionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionWebhookAction)(nil)).Elem() +} + +func (i *logscaleActionWebhookActionPtrType) ToLogscaleActionWebhookActionPtrOutput() LogscaleActionWebhookActionPtrOutput { + return i.ToLogscaleActionWebhookActionPtrOutputWithContext(context.Background()) +} + +func (i *logscaleActionWebhookActionPtrType) ToLogscaleActionWebhookActionPtrOutputWithContext(ctx context.Context) LogscaleActionWebhookActionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LogscaleActionWebhookActionPtrOutput) +} + +type LogscaleActionWebhookActionOutput struct{ *pulumi.OutputState } + +func (LogscaleActionWebhookActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LogscaleActionWebhookAction)(nil)).Elem() +} + +func (o LogscaleActionWebhookActionOutput) ToLogscaleActionWebhookActionOutput() LogscaleActionWebhookActionOutput { + return o +} + +func (o LogscaleActionWebhookActionOutput) ToLogscaleActionWebhookActionOutputWithContext(ctx context.Context) LogscaleActionWebhookActionOutput { + return o +} + +func (o LogscaleActionWebhookActionOutput) ToLogscaleActionWebhookActionPtrOutput() LogscaleActionWebhookActionPtrOutput { + return o.ToLogscaleActionWebhookActionPtrOutputWithContext(context.Background()) +} + +func (o LogscaleActionWebhookActionOutput) ToLogscaleActionWebhookActionPtrOutputWithContext(ctx context.Context) LogscaleActionWebhookActionPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LogscaleActionWebhookAction) *LogscaleActionWebhookAction { + return &v + }).(LogscaleActionWebhookActionPtrOutput) +} + +func (o LogscaleActionWebhookActionOutput) BodyTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v LogscaleActionWebhookAction) *string { return v.BodyTemplate }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionWebhookActionOutput) Headers() pulumi.StringMapOutput { + return o.ApplyT(func(v LogscaleActionWebhookAction) map[string]string { return v.Headers }).(pulumi.StringMapOutput) +} + +func (o LogscaleActionWebhookActionOutput) IgnoreSsl() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionWebhookAction) *bool { return v.IgnoreSsl }).(pulumi.BoolPtrOutput) +} + +func (o LogscaleActionWebhookActionOutput) Method() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionWebhookAction) string { return v.Method }).(pulumi.StringOutput) +} + +func (o LogscaleActionWebhookActionOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v LogscaleActionWebhookAction) string { return v.Url }).(pulumi.StringOutput) +} + +func (o LogscaleActionWebhookActionOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LogscaleActionWebhookAction) *bool { return v.UseProxy }).(pulumi.BoolPtrOutput) +} + +type LogscaleActionWebhookActionPtrOutput struct{ *pulumi.OutputState } + +func (LogscaleActionWebhookActionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LogscaleActionWebhookAction)(nil)).Elem() +} + +func (o LogscaleActionWebhookActionPtrOutput) ToLogscaleActionWebhookActionPtrOutput() LogscaleActionWebhookActionPtrOutput { + return o +} + +func (o LogscaleActionWebhookActionPtrOutput) ToLogscaleActionWebhookActionPtrOutputWithContext(ctx context.Context) LogscaleActionWebhookActionPtrOutput { + return o +} + +func (o LogscaleActionWebhookActionPtrOutput) Elem() LogscaleActionWebhookActionOutput { + return o.ApplyT(func(v *LogscaleActionWebhookAction) LogscaleActionWebhookAction { + if v != nil { + return *v + } + var ret LogscaleActionWebhookAction + return ret + }).(LogscaleActionWebhookActionOutput) +} + +func (o LogscaleActionWebhookActionPtrOutput) BodyTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionWebhookAction) *string { + if v == nil { + return nil + } + return v.BodyTemplate + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionWebhookActionPtrOutput) Headers() pulumi.StringMapOutput { + return o.ApplyT(func(v *LogscaleActionWebhookAction) map[string]string { + if v == nil { + return nil + } + return v.Headers + }).(pulumi.StringMapOutput) +} + +func (o LogscaleActionWebhookActionPtrOutput) IgnoreSsl() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionWebhookAction) *bool { + if v == nil { + return nil + } + return v.IgnoreSsl + }).(pulumi.BoolPtrOutput) +} + +func (o LogscaleActionWebhookActionPtrOutput) Method() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionWebhookAction) *string { + if v == nil { + return nil + } + return &v.Method + }).(pulumi.StringPtrOutput) +} + +func (o LogscaleActionWebhookActionPtrOutput) Url() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LogscaleActionWebhookAction) *string { if v == nil { return nil } - return &v.ClientEmail + return &v.Url }).(pulumi.StringPtrOutput) } +func (o LogscaleActionWebhookActionPtrOutput) UseProxy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LogscaleActionWebhookAction) *bool { + if v == nil { + return nil + } + return v.UseProxy + }).(pulumi.BoolPtrOutput) +} + type MappingRuleStoragePolicy struct { Resolution string `pulumi:"resolution"` Retention string `pulumi:"retention"` @@ -6916,7 +9733,7 @@ func (o PagerdutyAlertNotifierLinkArrayOutput) Index(i pulumi.IntInput) Pagerdut } type ResourcePoolsConfigDefaultPool struct { - Allocation ResourcePoolsConfigDefaultPoolAllocation `pulumi:"allocation"` + Allocation *ResourcePoolsConfigDefaultPoolAllocation `pulumi:"allocation"` Priorities *ResourcePoolsConfigDefaultPoolPriorities `pulumi:"priorities"` } @@ -6932,7 +9749,7 @@ type ResourcePoolsConfigDefaultPoolInput interface { } type ResourcePoolsConfigDefaultPoolArgs struct { - Allocation ResourcePoolsConfigDefaultPoolAllocationInput `pulumi:"allocation"` + Allocation ResourcePoolsConfigDefaultPoolAllocationPtrInput `pulumi:"allocation"` Priorities ResourcePoolsConfigDefaultPoolPrioritiesPtrInput `pulumi:"priorities"` } @@ -7013,8 +9830,8 @@ func (o ResourcePoolsConfigDefaultPoolOutput) ToResourcePoolsConfigDefaultPoolPt }).(ResourcePoolsConfigDefaultPoolPtrOutput) } -func (o ResourcePoolsConfigDefaultPoolOutput) Allocation() ResourcePoolsConfigDefaultPoolAllocationOutput { - return o.ApplyT(func(v ResourcePoolsConfigDefaultPool) ResourcePoolsConfigDefaultPoolAllocation { return v.Allocation }).(ResourcePoolsConfigDefaultPoolAllocationOutput) +func (o ResourcePoolsConfigDefaultPoolOutput) Allocation() ResourcePoolsConfigDefaultPoolAllocationPtrOutput { + return o.ApplyT(func(v ResourcePoolsConfigDefaultPool) *ResourcePoolsConfigDefaultPoolAllocation { return v.Allocation }).(ResourcePoolsConfigDefaultPoolAllocationPtrOutput) } func (o ResourcePoolsConfigDefaultPoolOutput) Priorities() ResourcePoolsConfigDefaultPoolPrioritiesPtrOutput { @@ -7050,7 +9867,7 @@ func (o ResourcePoolsConfigDefaultPoolPtrOutput) Allocation() ResourcePoolsConfi if v == nil { return nil } - return &v.Allocation + return v.Allocation }).(ResourcePoolsConfigDefaultPoolAllocationPtrOutput) } @@ -7064,7 +9881,8 @@ func (o ResourcePoolsConfigDefaultPoolPtrOutput) Priorities() ResourcePoolsConfi } type ResourcePoolsConfigDefaultPoolAllocation struct { - PercentOfLicense float64 `pulumi:"percentOfLicense"` + FixedValues []ResourcePoolsConfigDefaultPoolAllocationFixedValue `pulumi:"fixedValues"` + PercentOfLicense *float64 `pulumi:"percentOfLicense"` } // ResourcePoolsConfigDefaultPoolAllocationInput is an input type that accepts ResourcePoolsConfigDefaultPoolAllocationArgs and ResourcePoolsConfigDefaultPoolAllocationOutput values. @@ -7079,7 +9897,8 @@ type ResourcePoolsConfigDefaultPoolAllocationInput interface { } type ResourcePoolsConfigDefaultPoolAllocationArgs struct { - PercentOfLicense pulumi.Float64Input `pulumi:"percentOfLicense"` + FixedValues ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayInput `pulumi:"fixedValues"` + PercentOfLicense pulumi.Float64PtrInput `pulumi:"percentOfLicense"` } func (ResourcePoolsConfigDefaultPoolAllocationArgs) ElementType() reflect.Type { @@ -7159,8 +9978,14 @@ func (o ResourcePoolsConfigDefaultPoolAllocationOutput) ToResourcePoolsConfigDef }).(ResourcePoolsConfigDefaultPoolAllocationPtrOutput) } -func (o ResourcePoolsConfigDefaultPoolAllocationOutput) PercentOfLicense() pulumi.Float64Output { - return o.ApplyT(func(v ResourcePoolsConfigDefaultPoolAllocation) float64 { return v.PercentOfLicense }).(pulumi.Float64Output) +func (o ResourcePoolsConfigDefaultPoolAllocationOutput) FixedValues() ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput { + return o.ApplyT(func(v ResourcePoolsConfigDefaultPoolAllocation) []ResourcePoolsConfigDefaultPoolAllocationFixedValue { + return v.FixedValues + }).(ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput) +} + +func (o ResourcePoolsConfigDefaultPoolAllocationOutput) PercentOfLicense() pulumi.Float64PtrOutput { + return o.ApplyT(func(v ResourcePoolsConfigDefaultPoolAllocation) *float64 { return v.PercentOfLicense }).(pulumi.Float64PtrOutput) } type ResourcePoolsConfigDefaultPoolAllocationPtrOutput struct{ *pulumi.OutputState } @@ -7187,15 +10012,124 @@ func (o ResourcePoolsConfigDefaultPoolAllocationPtrOutput) Elem() ResourcePoolsC }).(ResourcePoolsConfigDefaultPoolAllocationOutput) } +func (o ResourcePoolsConfigDefaultPoolAllocationPtrOutput) FixedValues() ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput { + return o.ApplyT(func(v *ResourcePoolsConfigDefaultPoolAllocation) []ResourcePoolsConfigDefaultPoolAllocationFixedValue { + if v == nil { + return nil + } + return v.FixedValues + }).(ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput) +} + func (o ResourcePoolsConfigDefaultPoolAllocationPtrOutput) PercentOfLicense() pulumi.Float64PtrOutput { return o.ApplyT(func(v *ResourcePoolsConfigDefaultPoolAllocation) *float64 { if v == nil { return nil } - return &v.PercentOfLicense + return v.PercentOfLicense }).(pulumi.Float64PtrOutput) } +type ResourcePoolsConfigDefaultPoolAllocationFixedValue struct { + License string `pulumi:"license"` + Value int `pulumi:"value"` +} + +// ResourcePoolsConfigDefaultPoolAllocationFixedValueInput is an input type that accepts ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs and ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput values. +// You can construct a concrete instance of `ResourcePoolsConfigDefaultPoolAllocationFixedValueInput` via: +// +// ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs{...} +type ResourcePoolsConfigDefaultPoolAllocationFixedValueInput interface { + pulumi.Input + + ToResourcePoolsConfigDefaultPoolAllocationFixedValueOutput() ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput + ToResourcePoolsConfigDefaultPoolAllocationFixedValueOutputWithContext(context.Context) ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput +} + +type ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs struct { + License pulumi.StringInput `pulumi:"license"` + Value pulumi.IntInput `pulumi:"value"` +} + +func (ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ResourcePoolsConfigDefaultPoolAllocationFixedValue)(nil)).Elem() +} + +func (i ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs) ToResourcePoolsConfigDefaultPoolAllocationFixedValueOutput() ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput { + return i.ToResourcePoolsConfigDefaultPoolAllocationFixedValueOutputWithContext(context.Background()) +} + +func (i ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs) ToResourcePoolsConfigDefaultPoolAllocationFixedValueOutputWithContext(ctx context.Context) ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput) +} + +// ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayInput is an input type that accepts ResourcePoolsConfigDefaultPoolAllocationFixedValueArray and ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput values. +// You can construct a concrete instance of `ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayInput` via: +// +// ResourcePoolsConfigDefaultPoolAllocationFixedValueArray{ ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs{...} } +type ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayInput interface { + pulumi.Input + + ToResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput() ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput + ToResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutputWithContext(context.Context) ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput +} + +type ResourcePoolsConfigDefaultPoolAllocationFixedValueArray []ResourcePoolsConfigDefaultPoolAllocationFixedValueInput + +func (ResourcePoolsConfigDefaultPoolAllocationFixedValueArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ResourcePoolsConfigDefaultPoolAllocationFixedValue)(nil)).Elem() +} + +func (i ResourcePoolsConfigDefaultPoolAllocationFixedValueArray) ToResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput() ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput { + return i.ToResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutputWithContext(context.Background()) +} + +func (i ResourcePoolsConfigDefaultPoolAllocationFixedValueArray) ToResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutputWithContext(ctx context.Context) ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput) +} + +type ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput struct{ *pulumi.OutputState } + +func (ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ResourcePoolsConfigDefaultPoolAllocationFixedValue)(nil)).Elem() +} + +func (o ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput) ToResourcePoolsConfigDefaultPoolAllocationFixedValueOutput() ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput { + return o +} + +func (o ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput) ToResourcePoolsConfigDefaultPoolAllocationFixedValueOutputWithContext(ctx context.Context) ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput { + return o +} + +func (o ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput) License() pulumi.StringOutput { + return o.ApplyT(func(v ResourcePoolsConfigDefaultPoolAllocationFixedValue) string { return v.License }).(pulumi.StringOutput) +} + +func (o ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput) Value() pulumi.IntOutput { + return o.ApplyT(func(v ResourcePoolsConfigDefaultPoolAllocationFixedValue) int { return v.Value }).(pulumi.IntOutput) +} + +type ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput struct{ *pulumi.OutputState } + +func (ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ResourcePoolsConfigDefaultPoolAllocationFixedValue)(nil)).Elem() +} + +func (o ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput) ToResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput() ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput { + return o +} + +func (o ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput) ToResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutputWithContext(ctx context.Context) ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput { + return o +} + +func (o ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput) Index(i pulumi.IntInput) ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ResourcePoolsConfigDefaultPoolAllocationFixedValue { + return vs[0].([]ResourcePoolsConfigDefaultPoolAllocationFixedValue)[vs[1].(int)] + }).(ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput) +} + type ResourcePoolsConfigDefaultPoolPriorities struct { HighPriorityMatchRules []string `pulumi:"highPriorityMatchRules"` LowPriorityMatchRules []string `pulumi:"lowPriorityMatchRules"` @@ -7345,7 +10279,7 @@ func (o ResourcePoolsConfigDefaultPoolPrioritiesPtrOutput) LowPriorityMatchRules } type ResourcePoolsConfigPool struct { - Allocation ResourcePoolsConfigPoolAllocation `pulumi:"allocation"` + Allocation *ResourcePoolsConfigPoolAllocation `pulumi:"allocation"` // Deprecated: use match_rules MatchRule *string `pulumi:"matchRule"` MatchRules []string `pulumi:"matchRules"` @@ -7365,7 +10299,7 @@ type ResourcePoolsConfigPoolInput interface { } type ResourcePoolsConfigPoolArgs struct { - Allocation ResourcePoolsConfigPoolAllocationInput `pulumi:"allocation"` + Allocation ResourcePoolsConfigPoolAllocationPtrInput `pulumi:"allocation"` // Deprecated: use match_rules MatchRule pulumi.StringPtrInput `pulumi:"matchRule"` MatchRules pulumi.StringArrayInput `pulumi:"matchRules"` @@ -7424,8 +10358,8 @@ func (o ResourcePoolsConfigPoolOutput) ToResourcePoolsConfigPoolOutputWithContex return o } -func (o ResourcePoolsConfigPoolOutput) Allocation() ResourcePoolsConfigPoolAllocationOutput { - return o.ApplyT(func(v ResourcePoolsConfigPool) ResourcePoolsConfigPoolAllocation { return v.Allocation }).(ResourcePoolsConfigPoolAllocationOutput) +func (o ResourcePoolsConfigPoolOutput) Allocation() ResourcePoolsConfigPoolAllocationPtrOutput { + return o.ApplyT(func(v ResourcePoolsConfigPool) *ResourcePoolsConfigPoolAllocation { return v.Allocation }).(ResourcePoolsConfigPoolAllocationPtrOutput) } // Deprecated: use match_rules @@ -7466,7 +10400,8 @@ func (o ResourcePoolsConfigPoolArrayOutput) Index(i pulumi.IntInput) ResourcePoo } type ResourcePoolsConfigPoolAllocation struct { - PercentOfLicense float64 `pulumi:"percentOfLicense"` + FixedValues []ResourcePoolsConfigPoolAllocationFixedValue `pulumi:"fixedValues"` + PercentOfLicense *float64 `pulumi:"percentOfLicense"` } // ResourcePoolsConfigPoolAllocationInput is an input type that accepts ResourcePoolsConfigPoolAllocationArgs and ResourcePoolsConfigPoolAllocationOutput values. @@ -7481,7 +10416,8 @@ type ResourcePoolsConfigPoolAllocationInput interface { } type ResourcePoolsConfigPoolAllocationArgs struct { - PercentOfLicense pulumi.Float64Input `pulumi:"percentOfLicense"` + FixedValues ResourcePoolsConfigPoolAllocationFixedValueArrayInput `pulumi:"fixedValues"` + PercentOfLicense pulumi.Float64PtrInput `pulumi:"percentOfLicense"` } func (ResourcePoolsConfigPoolAllocationArgs) ElementType() reflect.Type { @@ -7496,6 +10432,47 @@ func (i ResourcePoolsConfigPoolAllocationArgs) ToResourcePoolsConfigPoolAllocati return pulumi.ToOutputWithContext(ctx, i).(ResourcePoolsConfigPoolAllocationOutput) } +func (i ResourcePoolsConfigPoolAllocationArgs) ToResourcePoolsConfigPoolAllocationPtrOutput() ResourcePoolsConfigPoolAllocationPtrOutput { + return i.ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(context.Background()) +} + +func (i ResourcePoolsConfigPoolAllocationArgs) ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ResourcePoolsConfigPoolAllocationOutput).ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(ctx) +} + +// ResourcePoolsConfigPoolAllocationPtrInput is an input type that accepts ResourcePoolsConfigPoolAllocationArgs, ResourcePoolsConfigPoolAllocationPtr and ResourcePoolsConfigPoolAllocationPtrOutput values. +// You can construct a concrete instance of `ResourcePoolsConfigPoolAllocationPtrInput` via: +// +// ResourcePoolsConfigPoolAllocationArgs{...} +// +// or: +// +// nil +type ResourcePoolsConfigPoolAllocationPtrInput interface { + pulumi.Input + + ToResourcePoolsConfigPoolAllocationPtrOutput() ResourcePoolsConfigPoolAllocationPtrOutput + ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(context.Context) ResourcePoolsConfigPoolAllocationPtrOutput +} + +type resourcePoolsConfigPoolAllocationPtrType ResourcePoolsConfigPoolAllocationArgs + +func ResourcePoolsConfigPoolAllocationPtr(v *ResourcePoolsConfigPoolAllocationArgs) ResourcePoolsConfigPoolAllocationPtrInput { + return (*resourcePoolsConfigPoolAllocationPtrType)(v) +} + +func (*resourcePoolsConfigPoolAllocationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ResourcePoolsConfigPoolAllocation)(nil)).Elem() +} + +func (i *resourcePoolsConfigPoolAllocationPtrType) ToResourcePoolsConfigPoolAllocationPtrOutput() ResourcePoolsConfigPoolAllocationPtrOutput { + return i.ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(context.Background()) +} + +func (i *resourcePoolsConfigPoolAllocationPtrType) ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ResourcePoolsConfigPoolAllocationPtrOutput) +} + type ResourcePoolsConfigPoolAllocationOutput struct{ *pulumi.OutputState } func (ResourcePoolsConfigPoolAllocationOutput) ElementType() reflect.Type { @@ -7510,8 +10487,166 @@ func (o ResourcePoolsConfigPoolAllocationOutput) ToResourcePoolsConfigPoolAlloca return o } -func (o ResourcePoolsConfigPoolAllocationOutput) PercentOfLicense() pulumi.Float64Output { - return o.ApplyT(func(v ResourcePoolsConfigPoolAllocation) float64 { return v.PercentOfLicense }).(pulumi.Float64Output) +func (o ResourcePoolsConfigPoolAllocationOutput) ToResourcePoolsConfigPoolAllocationPtrOutput() ResourcePoolsConfigPoolAllocationPtrOutput { + return o.ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(context.Background()) +} + +func (o ResourcePoolsConfigPoolAllocationOutput) ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ResourcePoolsConfigPoolAllocation) *ResourcePoolsConfigPoolAllocation { + return &v + }).(ResourcePoolsConfigPoolAllocationPtrOutput) +} + +func (o ResourcePoolsConfigPoolAllocationOutput) FixedValues() ResourcePoolsConfigPoolAllocationFixedValueArrayOutput { + return o.ApplyT(func(v ResourcePoolsConfigPoolAllocation) []ResourcePoolsConfigPoolAllocationFixedValue { + return v.FixedValues + }).(ResourcePoolsConfigPoolAllocationFixedValueArrayOutput) +} + +func (o ResourcePoolsConfigPoolAllocationOutput) PercentOfLicense() pulumi.Float64PtrOutput { + return o.ApplyT(func(v ResourcePoolsConfigPoolAllocation) *float64 { return v.PercentOfLicense }).(pulumi.Float64PtrOutput) +} + +type ResourcePoolsConfigPoolAllocationPtrOutput struct{ *pulumi.OutputState } + +func (ResourcePoolsConfigPoolAllocationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ResourcePoolsConfigPoolAllocation)(nil)).Elem() +} + +func (o ResourcePoolsConfigPoolAllocationPtrOutput) ToResourcePoolsConfigPoolAllocationPtrOutput() ResourcePoolsConfigPoolAllocationPtrOutput { + return o +} + +func (o ResourcePoolsConfigPoolAllocationPtrOutput) ToResourcePoolsConfigPoolAllocationPtrOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationPtrOutput { + return o +} + +func (o ResourcePoolsConfigPoolAllocationPtrOutput) Elem() ResourcePoolsConfigPoolAllocationOutput { + return o.ApplyT(func(v *ResourcePoolsConfigPoolAllocation) ResourcePoolsConfigPoolAllocation { + if v != nil { + return *v + } + var ret ResourcePoolsConfigPoolAllocation + return ret + }).(ResourcePoolsConfigPoolAllocationOutput) +} + +func (o ResourcePoolsConfigPoolAllocationPtrOutput) FixedValues() ResourcePoolsConfigPoolAllocationFixedValueArrayOutput { + return o.ApplyT(func(v *ResourcePoolsConfigPoolAllocation) []ResourcePoolsConfigPoolAllocationFixedValue { + if v == nil { + return nil + } + return v.FixedValues + }).(ResourcePoolsConfigPoolAllocationFixedValueArrayOutput) +} + +func (o ResourcePoolsConfigPoolAllocationPtrOutput) PercentOfLicense() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *ResourcePoolsConfigPoolAllocation) *float64 { + if v == nil { + return nil + } + return v.PercentOfLicense + }).(pulumi.Float64PtrOutput) +} + +type ResourcePoolsConfigPoolAllocationFixedValue struct { + License string `pulumi:"license"` + Value int `pulumi:"value"` +} + +// ResourcePoolsConfigPoolAllocationFixedValueInput is an input type that accepts ResourcePoolsConfigPoolAllocationFixedValueArgs and ResourcePoolsConfigPoolAllocationFixedValueOutput values. +// You can construct a concrete instance of `ResourcePoolsConfigPoolAllocationFixedValueInput` via: +// +// ResourcePoolsConfigPoolAllocationFixedValueArgs{...} +type ResourcePoolsConfigPoolAllocationFixedValueInput interface { + pulumi.Input + + ToResourcePoolsConfigPoolAllocationFixedValueOutput() ResourcePoolsConfigPoolAllocationFixedValueOutput + ToResourcePoolsConfigPoolAllocationFixedValueOutputWithContext(context.Context) ResourcePoolsConfigPoolAllocationFixedValueOutput +} + +type ResourcePoolsConfigPoolAllocationFixedValueArgs struct { + License pulumi.StringInput `pulumi:"license"` + Value pulumi.IntInput `pulumi:"value"` +} + +func (ResourcePoolsConfigPoolAllocationFixedValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ResourcePoolsConfigPoolAllocationFixedValue)(nil)).Elem() +} + +func (i ResourcePoolsConfigPoolAllocationFixedValueArgs) ToResourcePoolsConfigPoolAllocationFixedValueOutput() ResourcePoolsConfigPoolAllocationFixedValueOutput { + return i.ToResourcePoolsConfigPoolAllocationFixedValueOutputWithContext(context.Background()) +} + +func (i ResourcePoolsConfigPoolAllocationFixedValueArgs) ToResourcePoolsConfigPoolAllocationFixedValueOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationFixedValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(ResourcePoolsConfigPoolAllocationFixedValueOutput) +} + +// ResourcePoolsConfigPoolAllocationFixedValueArrayInput is an input type that accepts ResourcePoolsConfigPoolAllocationFixedValueArray and ResourcePoolsConfigPoolAllocationFixedValueArrayOutput values. +// You can construct a concrete instance of `ResourcePoolsConfigPoolAllocationFixedValueArrayInput` via: +// +// ResourcePoolsConfigPoolAllocationFixedValueArray{ ResourcePoolsConfigPoolAllocationFixedValueArgs{...} } +type ResourcePoolsConfigPoolAllocationFixedValueArrayInput interface { + pulumi.Input + + ToResourcePoolsConfigPoolAllocationFixedValueArrayOutput() ResourcePoolsConfigPoolAllocationFixedValueArrayOutput + ToResourcePoolsConfigPoolAllocationFixedValueArrayOutputWithContext(context.Context) ResourcePoolsConfigPoolAllocationFixedValueArrayOutput +} + +type ResourcePoolsConfigPoolAllocationFixedValueArray []ResourcePoolsConfigPoolAllocationFixedValueInput + +func (ResourcePoolsConfigPoolAllocationFixedValueArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ResourcePoolsConfigPoolAllocationFixedValue)(nil)).Elem() +} + +func (i ResourcePoolsConfigPoolAllocationFixedValueArray) ToResourcePoolsConfigPoolAllocationFixedValueArrayOutput() ResourcePoolsConfigPoolAllocationFixedValueArrayOutput { + return i.ToResourcePoolsConfigPoolAllocationFixedValueArrayOutputWithContext(context.Background()) +} + +func (i ResourcePoolsConfigPoolAllocationFixedValueArray) ToResourcePoolsConfigPoolAllocationFixedValueArrayOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationFixedValueArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ResourcePoolsConfigPoolAllocationFixedValueArrayOutput) +} + +type ResourcePoolsConfigPoolAllocationFixedValueOutput struct{ *pulumi.OutputState } + +func (ResourcePoolsConfigPoolAllocationFixedValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ResourcePoolsConfigPoolAllocationFixedValue)(nil)).Elem() +} + +func (o ResourcePoolsConfigPoolAllocationFixedValueOutput) ToResourcePoolsConfigPoolAllocationFixedValueOutput() ResourcePoolsConfigPoolAllocationFixedValueOutput { + return o +} + +func (o ResourcePoolsConfigPoolAllocationFixedValueOutput) ToResourcePoolsConfigPoolAllocationFixedValueOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationFixedValueOutput { + return o +} + +func (o ResourcePoolsConfigPoolAllocationFixedValueOutput) License() pulumi.StringOutput { + return o.ApplyT(func(v ResourcePoolsConfigPoolAllocationFixedValue) string { return v.License }).(pulumi.StringOutput) +} + +func (o ResourcePoolsConfigPoolAllocationFixedValueOutput) Value() pulumi.IntOutput { + return o.ApplyT(func(v ResourcePoolsConfigPoolAllocationFixedValue) int { return v.Value }).(pulumi.IntOutput) +} + +type ResourcePoolsConfigPoolAllocationFixedValueArrayOutput struct{ *pulumi.OutputState } + +func (ResourcePoolsConfigPoolAllocationFixedValueArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ResourcePoolsConfigPoolAllocationFixedValue)(nil)).Elem() +} + +func (o ResourcePoolsConfigPoolAllocationFixedValueArrayOutput) ToResourcePoolsConfigPoolAllocationFixedValueArrayOutput() ResourcePoolsConfigPoolAllocationFixedValueArrayOutput { + return o +} + +func (o ResourcePoolsConfigPoolAllocationFixedValueArrayOutput) ToResourcePoolsConfigPoolAllocationFixedValueArrayOutputWithContext(ctx context.Context) ResourcePoolsConfigPoolAllocationFixedValueArrayOutput { + return o +} + +func (o ResourcePoolsConfigPoolAllocationFixedValueArrayOutput) Index(i pulumi.IntInput) ResourcePoolsConfigPoolAllocationFixedValueOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ResourcePoolsConfigPoolAllocationFixedValue { + return vs[0].([]ResourcePoolsConfigPoolAllocationFixedValue)[vs[1].(int)] + }).(ResourcePoolsConfigPoolAllocationFixedValueOutput) } type ResourcePoolsConfigPoolPriorities struct { @@ -9537,9 +12672,7 @@ type TraceMetricsRuleTraceFilterSpan struct { ParentService *TraceMetricsRuleTraceFilterSpanParentService `pulumi:"parentService"` Service *TraceMetricsRuleTraceFilterSpanService `pulumi:"service"` SpanCount *TraceMetricsRuleTraceFilterSpanSpanCount `pulumi:"spanCount"` - Tag []TraceMetricsRuleTraceFilterSpanTag `pulumi:"tag"` - // Deprecated: `tags` is deprecated, use `tag` instead. - Tags []TraceMetricsRuleTraceFilterSpanTag `pulumi:"tags"` + Tags []TraceMetricsRuleTraceFilterSpanTag `pulumi:"tags"` } // TraceMetricsRuleTraceFilterSpanInput is an input type that accepts TraceMetricsRuleTraceFilterSpanArgs and TraceMetricsRuleTraceFilterSpanOutput values. @@ -9562,9 +12695,7 @@ type TraceMetricsRuleTraceFilterSpanArgs struct { ParentService TraceMetricsRuleTraceFilterSpanParentServicePtrInput `pulumi:"parentService"` Service TraceMetricsRuleTraceFilterSpanServicePtrInput `pulumi:"service"` SpanCount TraceMetricsRuleTraceFilterSpanSpanCountPtrInput `pulumi:"spanCount"` - Tag TraceMetricsRuleTraceFilterSpanTagArrayInput `pulumi:"tag"` - // Deprecated: `tags` is deprecated, use `tag` instead. - Tags TraceMetricsRuleTraceFilterSpanTagArrayInput `pulumi:"tags"` + Tags TraceMetricsRuleTraceFilterSpanTagArrayInput `pulumi:"tags"` } func (TraceMetricsRuleTraceFilterSpanArgs) ElementType() reflect.Type { @@ -9654,11 +12785,6 @@ func (o TraceMetricsRuleTraceFilterSpanOutput) SpanCount() TraceMetricsRuleTrace return o.ApplyT(func(v TraceMetricsRuleTraceFilterSpan) *TraceMetricsRuleTraceFilterSpanSpanCount { return v.SpanCount }).(TraceMetricsRuleTraceFilterSpanSpanCountPtrOutput) } -func (o TraceMetricsRuleTraceFilterSpanOutput) Tag() TraceMetricsRuleTraceFilterSpanTagArrayOutput { - return o.ApplyT(func(v TraceMetricsRuleTraceFilterSpan) []TraceMetricsRuleTraceFilterSpanTag { return v.Tag }).(TraceMetricsRuleTraceFilterSpanTagArrayOutput) -} - -// Deprecated: `tags` is deprecated, use `tag` instead. func (o TraceMetricsRuleTraceFilterSpanOutput) Tags() TraceMetricsRuleTraceFilterSpanTagArrayOutput { return o.ApplyT(func(v TraceMetricsRuleTraceFilterSpan) []TraceMetricsRuleTraceFilterSpanTag { return v.Tags }).(TraceMetricsRuleTraceFilterSpanTagArrayOutput) } @@ -9684,12 +12810,8 @@ func (o TraceMetricsRuleTraceFilterSpanArrayOutput) Index(i pulumi.IntInput) Tra } type TraceMetricsRuleTraceFilterSpanDuration struct { - // Deprecated: use max_secs instead - MaxSeconds *float64 `pulumi:"maxSeconds"` - MaxSecs *float64 `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds *float64 `pulumi:"minSeconds"` - MinSecs *float64 `pulumi:"minSecs"` + MaxSecs *float64 `pulumi:"maxSecs"` + MinSecs *float64 `pulumi:"minSecs"` } // TraceMetricsRuleTraceFilterSpanDurationInput is an input type that accepts TraceMetricsRuleTraceFilterSpanDurationArgs and TraceMetricsRuleTraceFilterSpanDurationOutput values. @@ -9704,12 +12826,8 @@ type TraceMetricsRuleTraceFilterSpanDurationInput interface { } type TraceMetricsRuleTraceFilterSpanDurationArgs struct { - // Deprecated: use max_secs instead - MaxSeconds pulumi.Float64PtrInput `pulumi:"maxSeconds"` - MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds pulumi.Float64PtrInput `pulumi:"minSeconds"` - MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` + MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` + MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` } func (TraceMetricsRuleTraceFilterSpanDurationArgs) ElementType() reflect.Type { @@ -9789,20 +12907,10 @@ func (o TraceMetricsRuleTraceFilterSpanDurationOutput) ToTraceMetricsRuleTraceFi }).(TraceMetricsRuleTraceFilterSpanDurationPtrOutput) } -// Deprecated: use max_secs instead -func (o TraceMetricsRuleTraceFilterSpanDurationOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceMetricsRuleTraceFilterSpanDuration) *float64 { return v.MaxSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterSpanDurationOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceMetricsRuleTraceFilterSpanDuration) *float64 { return v.MaxSecs }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceMetricsRuleTraceFilterSpanDurationOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceMetricsRuleTraceFilterSpanDuration) *float64 { return v.MinSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterSpanDurationOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceMetricsRuleTraceFilterSpanDuration) *float64 { return v.MinSecs }).(pulumi.Float64PtrOutput) } @@ -9831,16 +12939,6 @@ func (o TraceMetricsRuleTraceFilterSpanDurationPtrOutput) Elem() TraceMetricsRul }).(TraceMetricsRuleTraceFilterSpanDurationOutput) } -// Deprecated: use max_secs instead -func (o TraceMetricsRuleTraceFilterSpanDurationPtrOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceMetricsRuleTraceFilterSpanDuration) *float64 { - if v == nil { - return nil - } - return v.MaxSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterSpanDurationPtrOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceMetricsRuleTraceFilterSpanDuration) *float64 { if v == nil { @@ -9850,16 +12948,6 @@ func (o TraceMetricsRuleTraceFilterSpanDurationPtrOutput) MaxSecs() pulumi.Float }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceMetricsRuleTraceFilterSpanDurationPtrOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceMetricsRuleTraceFilterSpanDuration) *float64 { - if v == nil { - return nil - } - return v.MinSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterSpanDurationPtrOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceMetricsRuleTraceFilterSpanDuration) *float64 { if v == nil { @@ -11370,12 +14458,8 @@ func (o TraceMetricsRuleTraceFilterTracePtrOutput) Error() TraceMetricsRuleTrace } type TraceMetricsRuleTraceFilterTraceDuration struct { - // Deprecated: use max_secs instead - MaxSeconds *float64 `pulumi:"maxSeconds"` - MaxSecs *float64 `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds *float64 `pulumi:"minSeconds"` - MinSecs *float64 `pulumi:"minSecs"` + MaxSecs *float64 `pulumi:"maxSecs"` + MinSecs *float64 `pulumi:"minSecs"` } // TraceMetricsRuleTraceFilterTraceDurationInput is an input type that accepts TraceMetricsRuleTraceFilterTraceDurationArgs and TraceMetricsRuleTraceFilterTraceDurationOutput values. @@ -11390,12 +14474,8 @@ type TraceMetricsRuleTraceFilterTraceDurationInput interface { } type TraceMetricsRuleTraceFilterTraceDurationArgs struct { - // Deprecated: use max_secs instead - MaxSeconds pulumi.Float64PtrInput `pulumi:"maxSeconds"` - MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds pulumi.Float64PtrInput `pulumi:"minSeconds"` - MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` + MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` + MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` } func (TraceMetricsRuleTraceFilterTraceDurationArgs) ElementType() reflect.Type { @@ -11475,20 +14555,10 @@ func (o TraceMetricsRuleTraceFilterTraceDurationOutput) ToTraceMetricsRuleTraceF }).(TraceMetricsRuleTraceFilterTraceDurationPtrOutput) } -// Deprecated: use max_secs instead -func (o TraceMetricsRuleTraceFilterTraceDurationOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceMetricsRuleTraceFilterTraceDuration) *float64 { return v.MaxSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterTraceDurationOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceMetricsRuleTraceFilterTraceDuration) *float64 { return v.MaxSecs }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceMetricsRuleTraceFilterTraceDurationOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceMetricsRuleTraceFilterTraceDuration) *float64 { return v.MinSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterTraceDurationOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceMetricsRuleTraceFilterTraceDuration) *float64 { return v.MinSecs }).(pulumi.Float64PtrOutput) } @@ -11517,16 +14587,6 @@ func (o TraceMetricsRuleTraceFilterTraceDurationPtrOutput) Elem() TraceMetricsRu }).(TraceMetricsRuleTraceFilterTraceDurationOutput) } -// Deprecated: use max_secs instead -func (o TraceMetricsRuleTraceFilterTraceDurationPtrOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceMetricsRuleTraceFilterTraceDuration) *float64 { - if v == nil { - return nil - } - return v.MaxSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterTraceDurationPtrOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceMetricsRuleTraceFilterTraceDuration) *float64 { if v == nil { @@ -11536,16 +14596,6 @@ func (o TraceMetricsRuleTraceFilterTraceDurationPtrOutput) MaxSecs() pulumi.Floa }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceMetricsRuleTraceFilterTraceDurationPtrOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceMetricsRuleTraceFilterTraceDuration) *float64 { - if v == nil { - return nil - } - return v.MinSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceMetricsRuleTraceFilterTraceDurationPtrOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceMetricsRuleTraceFilterTraceDuration) *float64 { if v == nil { @@ -12012,9 +15062,7 @@ type TraceTailSamplingRulesRuleFilterSpan struct { ParentService *TraceTailSamplingRulesRuleFilterSpanParentService `pulumi:"parentService"` Service *TraceTailSamplingRulesRuleFilterSpanService `pulumi:"service"` SpanCount *TraceTailSamplingRulesRuleFilterSpanSpanCount `pulumi:"spanCount"` - Tag []TraceTailSamplingRulesRuleFilterSpanTag `pulumi:"tag"` - // Deprecated: `tags` is deprecated, use `tag` instead. - Tags []TraceTailSamplingRulesRuleFilterSpanTag `pulumi:"tags"` + Tags []TraceTailSamplingRulesRuleFilterSpanTag `pulumi:"tags"` } // TraceTailSamplingRulesRuleFilterSpanInput is an input type that accepts TraceTailSamplingRulesRuleFilterSpanArgs and TraceTailSamplingRulesRuleFilterSpanOutput values. @@ -12037,9 +15085,7 @@ type TraceTailSamplingRulesRuleFilterSpanArgs struct { ParentService TraceTailSamplingRulesRuleFilterSpanParentServicePtrInput `pulumi:"parentService"` Service TraceTailSamplingRulesRuleFilterSpanServicePtrInput `pulumi:"service"` SpanCount TraceTailSamplingRulesRuleFilterSpanSpanCountPtrInput `pulumi:"spanCount"` - Tag TraceTailSamplingRulesRuleFilterSpanTagArrayInput `pulumi:"tag"` - // Deprecated: `tags` is deprecated, use `tag` instead. - Tags TraceTailSamplingRulesRuleFilterSpanTagArrayInput `pulumi:"tags"` + Tags TraceTailSamplingRulesRuleFilterSpanTagArrayInput `pulumi:"tags"` } func (TraceTailSamplingRulesRuleFilterSpanArgs) ElementType() reflect.Type { @@ -12139,11 +15185,6 @@ func (o TraceTailSamplingRulesRuleFilterSpanOutput) SpanCount() TraceTailSamplin }).(TraceTailSamplingRulesRuleFilterSpanSpanCountPtrOutput) } -func (o TraceTailSamplingRulesRuleFilterSpanOutput) Tag() TraceTailSamplingRulesRuleFilterSpanTagArrayOutput { - return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterSpan) []TraceTailSamplingRulesRuleFilterSpanTag { return v.Tag }).(TraceTailSamplingRulesRuleFilterSpanTagArrayOutput) -} - -// Deprecated: `tags` is deprecated, use `tag` instead. func (o TraceTailSamplingRulesRuleFilterSpanOutput) Tags() TraceTailSamplingRulesRuleFilterSpanTagArrayOutput { return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterSpan) []TraceTailSamplingRulesRuleFilterSpanTag { return v.Tags }).(TraceTailSamplingRulesRuleFilterSpanTagArrayOutput) } @@ -12169,12 +15210,8 @@ func (o TraceTailSamplingRulesRuleFilterSpanArrayOutput) Index(i pulumi.IntInput } type TraceTailSamplingRulesRuleFilterSpanDuration struct { - // Deprecated: use max_secs instead - MaxSeconds *float64 `pulumi:"maxSeconds"` - MaxSecs *float64 `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds *float64 `pulumi:"minSeconds"` - MinSecs *float64 `pulumi:"minSecs"` + MaxSecs *float64 `pulumi:"maxSecs"` + MinSecs *float64 `pulumi:"minSecs"` } // TraceTailSamplingRulesRuleFilterSpanDurationInput is an input type that accepts TraceTailSamplingRulesRuleFilterSpanDurationArgs and TraceTailSamplingRulesRuleFilterSpanDurationOutput values. @@ -12189,12 +15226,8 @@ type TraceTailSamplingRulesRuleFilterSpanDurationInput interface { } type TraceTailSamplingRulesRuleFilterSpanDurationArgs struct { - // Deprecated: use max_secs instead - MaxSeconds pulumi.Float64PtrInput `pulumi:"maxSeconds"` - MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds pulumi.Float64PtrInput `pulumi:"minSeconds"` - MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` + MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` + MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` } func (TraceTailSamplingRulesRuleFilterSpanDurationArgs) ElementType() reflect.Type { @@ -12274,20 +15307,10 @@ func (o TraceTailSamplingRulesRuleFilterSpanDurationOutput) ToTraceTailSamplingR }).(TraceTailSamplingRulesRuleFilterSpanDurationPtrOutput) } -// Deprecated: use max_secs instead -func (o TraceTailSamplingRulesRuleFilterSpanDurationOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { return v.MaxSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterSpanDurationOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { return v.MaxSecs }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceTailSamplingRulesRuleFilterSpanDurationOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { return v.MinSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterSpanDurationOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { return v.MinSecs }).(pulumi.Float64PtrOutput) } @@ -12316,16 +15339,6 @@ func (o TraceTailSamplingRulesRuleFilterSpanDurationPtrOutput) Elem() TraceTailS }).(TraceTailSamplingRulesRuleFilterSpanDurationOutput) } -// Deprecated: use max_secs instead -func (o TraceTailSamplingRulesRuleFilterSpanDurationPtrOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { - if v == nil { - return nil - } - return v.MaxSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterSpanDurationPtrOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { if v == nil { @@ -12335,16 +15348,6 @@ func (o TraceTailSamplingRulesRuleFilterSpanDurationPtrOutput) MaxSecs() pulumi. }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceTailSamplingRulesRuleFilterSpanDurationPtrOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { - if v == nil { - return nil - } - return v.MinSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterSpanDurationPtrOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterSpanDuration) *float64 { if v == nil { @@ -13861,12 +16864,8 @@ func (o TraceTailSamplingRulesRuleFilterTracePtrOutput) Error() TraceTailSamplin } type TraceTailSamplingRulesRuleFilterTraceDuration struct { - // Deprecated: use max_secs instead - MaxSeconds *float64 `pulumi:"maxSeconds"` - MaxSecs *float64 `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds *float64 `pulumi:"minSeconds"` - MinSecs *float64 `pulumi:"minSecs"` + MaxSecs *float64 `pulumi:"maxSecs"` + MinSecs *float64 `pulumi:"minSecs"` } // TraceTailSamplingRulesRuleFilterTraceDurationInput is an input type that accepts TraceTailSamplingRulesRuleFilterTraceDurationArgs and TraceTailSamplingRulesRuleFilterTraceDurationOutput values. @@ -13881,12 +16880,8 @@ type TraceTailSamplingRulesRuleFilterTraceDurationInput interface { } type TraceTailSamplingRulesRuleFilterTraceDurationArgs struct { - // Deprecated: use max_secs instead - MaxSeconds pulumi.Float64PtrInput `pulumi:"maxSeconds"` - MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` - // Deprecated: use min_secs instead - MinSeconds pulumi.Float64PtrInput `pulumi:"minSeconds"` - MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` + MaxSecs pulumi.Float64PtrInput `pulumi:"maxSecs"` + MinSecs pulumi.Float64PtrInput `pulumi:"minSecs"` } func (TraceTailSamplingRulesRuleFilterTraceDurationArgs) ElementType() reflect.Type { @@ -13966,20 +16961,10 @@ func (o TraceTailSamplingRulesRuleFilterTraceDurationOutput) ToTraceTailSampling }).(TraceTailSamplingRulesRuleFilterTraceDurationPtrOutput) } -// Deprecated: use max_secs instead -func (o TraceTailSamplingRulesRuleFilterTraceDurationOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { return v.MaxSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterTraceDurationOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { return v.MaxSecs }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceTailSamplingRulesRuleFilterTraceDurationOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { return v.MinSeconds }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterTraceDurationOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { return v.MinSecs }).(pulumi.Float64PtrOutput) } @@ -14008,16 +16993,6 @@ func (o TraceTailSamplingRulesRuleFilterTraceDurationPtrOutput) Elem() TraceTail }).(TraceTailSamplingRulesRuleFilterTraceDurationOutput) } -// Deprecated: use max_secs instead -func (o TraceTailSamplingRulesRuleFilterTraceDurationPtrOutput) MaxSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { - if v == nil { - return nil - } - return v.MaxSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterTraceDurationPtrOutput) MaxSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { if v == nil { @@ -14027,16 +17002,6 @@ func (o TraceTailSamplingRulesRuleFilterTraceDurationPtrOutput) MaxSecs() pulumi }).(pulumi.Float64PtrOutput) } -// Deprecated: use min_secs instead -func (o TraceTailSamplingRulesRuleFilterTraceDurationPtrOutput) MinSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { - if v == nil { - return nil - } - return v.MinSeconds - }).(pulumi.Float64PtrOutput) -} - func (o TraceTailSamplingRulesRuleFilterTraceDurationPtrOutput) MinSecs() pulumi.Float64PtrOutput { return o.ApplyT(func(v *TraceTailSamplingRulesRuleFilterTraceDuration) *float64 { if v == nil { @@ -14182,6 +17147,10 @@ func (o TraceTailSamplingRulesRuleFilterTraceErrorPtrOutput) Value() pulumi.Bool func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationInput)(nil)).Elem(), DatasetConfigurationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationPtrInput)(nil)).Elem(), DatasetConfigurationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationLogDatasetInput)(nil)).Elem(), DatasetConfigurationLogDatasetArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationLogDatasetPtrInput)(nil)).Elem(), DatasetConfigurationLogDatasetArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationLogDatasetMatchCriteriaInput)(nil)).Elem(), DatasetConfigurationLogDatasetMatchCriteriaArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationLogDatasetMatchCriteriaPtrInput)(nil)).Elem(), DatasetConfigurationLogDatasetMatchCriteriaArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationTraceDatasetInput)(nil)).Elem(), DatasetConfigurationTraceDatasetArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationTraceDatasetPtrInput)(nil)).Elem(), DatasetConfigurationTraceDatasetArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatasetConfigurationTraceDatasetMatchCriteriaInput)(nil)).Elem(), DatasetConfigurationTraceDatasetMatchCriteriaArgs{}) @@ -14245,6 +17214,43 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GcpMetricsIntegrationMetricGroupArrayInput)(nil)).Elem(), GcpMetricsIntegrationMetricGroupArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GcpMetricsIntegrationServiceAccountInput)(nil)).Elem(), GcpMetricsIntegrationServiceAccountArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GcpMetricsIntegrationServiceAccountPtrInput)(nil)).Elem(), GcpMetricsIntegrationServiceAccountArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationArrayInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationAllocationInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationAllocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationPrioritiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesPtrInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationPrioritiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayInput)(nil)).Elem(), LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetPtrInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetAllocationInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetAllocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetAllocationPtrInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetAllocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetPrioritiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesPtrInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetPrioritiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayInput)(nil)).Elem(), LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionEmailActionInput)(nil)).Elem(), LogscaleActionEmailActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionEmailActionPtrInput)(nil)).Elem(), LogscaleActionEmailActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionHumioActionInput)(nil)).Elem(), LogscaleActionHumioActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionHumioActionPtrInput)(nil)).Elem(), LogscaleActionHumioActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionOpsGenieActionInput)(nil)).Elem(), LogscaleActionOpsGenieActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionOpsGenieActionPtrInput)(nil)).Elem(), LogscaleActionOpsGenieActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionPagerDutyActionInput)(nil)).Elem(), LogscaleActionPagerDutyActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionPagerDutyActionPtrInput)(nil)).Elem(), LogscaleActionPagerDutyActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionSlackActionInput)(nil)).Elem(), LogscaleActionSlackActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionSlackActionPtrInput)(nil)).Elem(), LogscaleActionSlackActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionSlackPostMessageActionInput)(nil)).Elem(), LogscaleActionSlackPostMessageActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionSlackPostMessageActionPtrInput)(nil)).Elem(), LogscaleActionSlackPostMessageActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionUploadFileActionInput)(nil)).Elem(), LogscaleActionUploadFileActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionUploadFileActionPtrInput)(nil)).Elem(), LogscaleActionUploadFileActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionVictorOpsActionInput)(nil)).Elem(), LogscaleActionVictorOpsActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionVictorOpsActionPtrInput)(nil)).Elem(), LogscaleActionVictorOpsActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionWebhookActionInput)(nil)).Elem(), LogscaleActionWebhookActionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LogscaleActionWebhookActionPtrInput)(nil)).Elem(), LogscaleActionWebhookActionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MappingRuleStoragePolicyInput)(nil)).Elem(), MappingRuleStoragePolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MappingRuleStoragePolicyPtrInput)(nil)).Elem(), MappingRuleStoragePolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*MonitorQueryInput)(nil)).Elem(), MonitorQueryArgs{}) @@ -14289,11 +17295,16 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigDefaultPoolPtrInput)(nil)).Elem(), ResourcePoolsConfigDefaultPoolArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigDefaultPoolAllocationInput)(nil)).Elem(), ResourcePoolsConfigDefaultPoolAllocationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigDefaultPoolAllocationPtrInput)(nil)).Elem(), ResourcePoolsConfigDefaultPoolAllocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigDefaultPoolAllocationFixedValueInput)(nil)).Elem(), ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayInput)(nil)).Elem(), ResourcePoolsConfigDefaultPoolAllocationFixedValueArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigDefaultPoolPrioritiesInput)(nil)).Elem(), ResourcePoolsConfigDefaultPoolPrioritiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigDefaultPoolPrioritiesPtrInput)(nil)).Elem(), ResourcePoolsConfigDefaultPoolPrioritiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolInput)(nil)).Elem(), ResourcePoolsConfigPoolArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolArrayInput)(nil)).Elem(), ResourcePoolsConfigPoolArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolAllocationInput)(nil)).Elem(), ResourcePoolsConfigPoolAllocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolAllocationPtrInput)(nil)).Elem(), ResourcePoolsConfigPoolAllocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolAllocationFixedValueInput)(nil)).Elem(), ResourcePoolsConfigPoolAllocationFixedValueArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolAllocationFixedValueArrayInput)(nil)).Elem(), ResourcePoolsConfigPoolAllocationFixedValueArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolPrioritiesInput)(nil)).Elem(), ResourcePoolsConfigPoolPrioritiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ResourcePoolsConfigPoolPrioritiesPtrInput)(nil)).Elem(), ResourcePoolsConfigPoolPrioritiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RollupRuleGraphiteLabelPolicyInput)(nil)).Elem(), RollupRuleGraphiteLabelPolicyArgs{}) @@ -14387,6 +17398,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*TraceTailSamplingRulesRuleFilterTraceErrorPtrInput)(nil)).Elem(), TraceTailSamplingRulesRuleFilterTraceErrorArgs{}) pulumi.RegisterOutputType(DatasetConfigurationOutput{}) pulumi.RegisterOutputType(DatasetConfigurationPtrOutput{}) + pulumi.RegisterOutputType(DatasetConfigurationLogDatasetOutput{}) + pulumi.RegisterOutputType(DatasetConfigurationLogDatasetPtrOutput{}) + pulumi.RegisterOutputType(DatasetConfigurationLogDatasetMatchCriteriaOutput{}) + pulumi.RegisterOutputType(DatasetConfigurationLogDatasetMatchCriteriaPtrOutput{}) pulumi.RegisterOutputType(DatasetConfigurationTraceDatasetOutput{}) pulumi.RegisterOutputType(DatasetConfigurationTraceDatasetPtrOutput{}) pulumi.RegisterOutputType(DatasetConfigurationTraceDatasetMatchCriteriaOutput{}) @@ -14450,6 +17465,43 @@ func init() { pulumi.RegisterOutputType(GcpMetricsIntegrationMetricGroupArrayOutput{}) pulumi.RegisterOutputType(GcpMetricsIntegrationServiceAccountOutput{}) pulumi.RegisterOutputType(GcpMetricsIntegrationServiceAccountPtrOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationArrayOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationAllocationOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationPrioritiesOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationPrioritiesPtrOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArrayOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArrayOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetPtrOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetAllocationOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetAllocationPtrOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetPrioritiesOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetPrioritiesPtrOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArrayOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterOutput{}) + pulumi.RegisterOutputType(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArrayOutput{}) + pulumi.RegisterOutputType(LogscaleActionEmailActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionEmailActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionHumioActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionHumioActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionOpsGenieActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionOpsGenieActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionPagerDutyActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionPagerDutyActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionSlackActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionSlackActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionSlackPostMessageActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionSlackPostMessageActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionUploadFileActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionUploadFileActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionVictorOpsActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionVictorOpsActionPtrOutput{}) + pulumi.RegisterOutputType(LogscaleActionWebhookActionOutput{}) + pulumi.RegisterOutputType(LogscaleActionWebhookActionPtrOutput{}) pulumi.RegisterOutputType(MappingRuleStoragePolicyOutput{}) pulumi.RegisterOutputType(MappingRuleStoragePolicyPtrOutput{}) pulumi.RegisterOutputType(MonitorQueryOutput{}) @@ -14494,11 +17546,16 @@ func init() { pulumi.RegisterOutputType(ResourcePoolsConfigDefaultPoolPtrOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigDefaultPoolAllocationOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigDefaultPoolAllocationPtrOutput{}) + pulumi.RegisterOutputType(ResourcePoolsConfigDefaultPoolAllocationFixedValueOutput{}) + pulumi.RegisterOutputType(ResourcePoolsConfigDefaultPoolAllocationFixedValueArrayOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigDefaultPoolPrioritiesOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigDefaultPoolPrioritiesPtrOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigPoolOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigPoolArrayOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigPoolAllocationOutput{}) + pulumi.RegisterOutputType(ResourcePoolsConfigPoolAllocationPtrOutput{}) + pulumi.RegisterOutputType(ResourcePoolsConfigPoolAllocationFixedValueOutput{}) + pulumi.RegisterOutputType(ResourcePoolsConfigPoolAllocationFixedValueArrayOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigPoolPrioritiesOutput{}) pulumi.RegisterOutputType(ResourcePoolsConfigPoolPrioritiesPtrOutput{}) pulumi.RegisterOutputType(RollupRuleGraphiteLabelPolicyOutput{}) diff --git a/sdk/go/chronosphere/resourcePoolsConfig.go b/sdk/go/chronosphere/resourcePoolsConfig.go index 96e73999..0eb06c29 100644 --- a/sdk/go/chronosphere/resourcePoolsConfig.go +++ b/sdk/go/chronosphere/resourcePoolsConfig.go @@ -7,7 +7,6 @@ import ( "context" "reflect" - "errors" "github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -15,8 +14,8 @@ import ( type ResourcePoolsConfig struct { pulumi.CustomResourceState - DefaultPool ResourcePoolsConfigDefaultPoolOutput `pulumi:"defaultPool"` - Pool ResourcePoolsConfigPoolArrayOutput `pulumi:"pool"` + DefaultPool ResourcePoolsConfigDefaultPoolPtrOutput `pulumi:"defaultPool"` + Pool ResourcePoolsConfigPoolArrayOutput `pulumi:"pool"` // Deprecated: Use pool instead of pools Pools ResourcePoolsConfigPoolArrayOutput `pulumi:"pools"` } @@ -25,12 +24,9 @@ type ResourcePoolsConfig struct { func NewResourcePoolsConfig(ctx *pulumi.Context, name string, args *ResourcePoolsConfigArgs, opts ...pulumi.ResourceOption) (*ResourcePoolsConfig, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &ResourcePoolsConfigArgs{} } - if args.DefaultPool == nil { - return nil, errors.New("invalid value for required argument 'DefaultPool'") - } opts = internal.PkgResourceDefaultOpts(opts) var resource ResourcePoolsConfig err := ctx.RegisterResource("chronosphere:index/resourcePoolsConfig:ResourcePoolsConfig", name, args, &resource, opts...) @@ -72,15 +68,15 @@ func (ResourcePoolsConfigState) ElementType() reflect.Type { } type resourcePoolsConfigArgs struct { - DefaultPool ResourcePoolsConfigDefaultPool `pulumi:"defaultPool"` - Pool []ResourcePoolsConfigPool `pulumi:"pool"` + DefaultPool *ResourcePoolsConfigDefaultPool `pulumi:"defaultPool"` + Pool []ResourcePoolsConfigPool `pulumi:"pool"` // Deprecated: Use pool instead of pools Pools []ResourcePoolsConfigPool `pulumi:"pools"` } // The set of arguments for constructing a ResourcePoolsConfig resource. type ResourcePoolsConfigArgs struct { - DefaultPool ResourcePoolsConfigDefaultPoolInput + DefaultPool ResourcePoolsConfigDefaultPoolPtrInput Pool ResourcePoolsConfigPoolArrayInput // Deprecated: Use pool instead of pools Pools ResourcePoolsConfigPoolArrayInput @@ -173,8 +169,8 @@ func (o ResourcePoolsConfigOutput) ToResourcePoolsConfigOutputWithContext(ctx co return o } -func (o ResourcePoolsConfigOutput) DefaultPool() ResourcePoolsConfigDefaultPoolOutput { - return o.ApplyT(func(v *ResourcePoolsConfig) ResourcePoolsConfigDefaultPoolOutput { return v.DefaultPool }).(ResourcePoolsConfigDefaultPoolOutput) +func (o ResourcePoolsConfigOutput) DefaultPool() ResourcePoolsConfigDefaultPoolPtrOutput { + return o.ApplyT(func(v *ResourcePoolsConfig) ResourcePoolsConfigDefaultPoolPtrOutput { return v.DefaultPool }).(ResourcePoolsConfigDefaultPoolPtrOutput) } func (o ResourcePoolsConfigOutput) Pool() ResourcePoolsConfigPoolArrayOutput { diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfig.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfig.java new file mode 100644 index 00000000..22f22cf2 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfig.java @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import io.chronosphere.chronosphere.LogAllocationConfigArgs; +import io.chronosphere.chronosphere.Utilities; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigState; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDatasetAllocation; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDefaultDataset; +import java.util.List; +import java.util.Optional; +import javax.annotation.Nullable; + +@ResourceType(type="chronosphere:index/logAllocationConfig:LogAllocationConfig") +public class LogAllocationConfig extends com.pulumi.resources.CustomResource { + @Export(name="datasetAllocations", refs={List.class,LogAllocationConfigDatasetAllocation.class}, tree="[0,1]") + private Output> datasetAllocations; + + public Output>> datasetAllocations() { + return Codegen.optional(this.datasetAllocations); + } + @Export(name="defaultDataset", refs={LogAllocationConfigDefaultDataset.class}, tree="[0]") + private Output defaultDataset; + + public Output defaultDataset() { + return this.defaultDataset; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public LogAllocationConfig(String name) { + this(name, LogAllocationConfigArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public LogAllocationConfig(String name, LogAllocationConfigArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public LogAllocationConfig(String name, LogAllocationConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("chronosphere:index/logAllocationConfig:LogAllocationConfig", name, args == null ? LogAllocationConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private LogAllocationConfig(String name, Output id, @Nullable LogAllocationConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("chronosphere:index/logAllocationConfig:LogAllocationConfig", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host 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 + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static LogAllocationConfig get(String name, Output id, @Nullable LogAllocationConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new LogAllocationConfig(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfigArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfigArgs.java new file mode 100644 index 00000000..4075503a --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogAllocationConfigArgs.java @@ -0,0 +1,87 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDatasetAllocationArgs; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDefaultDatasetArgs; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogAllocationConfigArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigArgs Empty = new LogAllocationConfigArgs(); + + @Import(name="datasetAllocations") + private @Nullable Output> datasetAllocations; + + public Optional>> datasetAllocations() { + return Optional.ofNullable(this.datasetAllocations); + } + + @Import(name="defaultDataset", required=true) + private Output defaultDataset; + + public Output defaultDataset() { + return this.defaultDataset; + } + + private LogAllocationConfigArgs() {} + + private LogAllocationConfigArgs(LogAllocationConfigArgs $) { + this.datasetAllocations = $.datasetAllocations; + this.defaultDataset = $.defaultDataset; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigArgs $; + + public Builder() { + $ = new LogAllocationConfigArgs(); + } + + public Builder(LogAllocationConfigArgs defaults) { + $ = new LogAllocationConfigArgs(Objects.requireNonNull(defaults)); + } + + public Builder datasetAllocations(@Nullable Output> datasetAllocations) { + $.datasetAllocations = datasetAllocations; + return this; + } + + public Builder datasetAllocations(List datasetAllocations) { + return datasetAllocations(Output.of(datasetAllocations)); + } + + public Builder datasetAllocations(LogAllocationConfigDatasetAllocationArgs... datasetAllocations) { + return datasetAllocations(List.of(datasetAllocations)); + } + + public Builder defaultDataset(Output defaultDataset) { + $.defaultDataset = defaultDataset; + return this; + } + + public Builder defaultDataset(LogAllocationConfigDefaultDatasetArgs defaultDataset) { + return defaultDataset(Output.of(defaultDataset)); + } + + public LogAllocationConfigArgs build() { + $.defaultDataset = Objects.requireNonNull($.defaultDataset, "expected parameter 'defaultDataset' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAction.java new file mode 100644 index 00000000..6b8e8b19 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAction.java @@ -0,0 +1,149 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import io.chronosphere.chronosphere.LogscaleActionArgs; +import io.chronosphere.chronosphere.Utilities; +import io.chronosphere.chronosphere.inputs.LogscaleActionState; +import io.chronosphere.chronosphere.outputs.LogscaleActionEmailAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionHumioAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionOpsGenieAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionPagerDutyAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionSlackAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionSlackPostMessageAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionUploadFileAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionVictorOpsAction; +import io.chronosphere.chronosphere.outputs.LogscaleActionWebhookAction; +import java.lang.String; +import java.util.Optional; +import javax.annotation.Nullable; + +@ResourceType(type="chronosphere:index/logscaleAction:LogscaleAction") +public class LogscaleAction extends com.pulumi.resources.CustomResource { + @Export(name="emailAction", refs={LogscaleActionEmailAction.class}, tree="[0]") + private Output emailAction; + + public Output> emailAction() { + return Codegen.optional(this.emailAction); + } + @Export(name="humioAction", refs={LogscaleActionHumioAction.class}, tree="[0]") + private Output humioAction; + + public Output> humioAction() { + return Codegen.optional(this.humioAction); + } + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + public Output name() { + return this.name; + } + @Export(name="opsGenieAction", refs={LogscaleActionOpsGenieAction.class}, tree="[0]") + private Output opsGenieAction; + + public Output> opsGenieAction() { + return Codegen.optional(this.opsGenieAction); + } + @Export(name="pagerDutyAction", refs={LogscaleActionPagerDutyAction.class}, tree="[0]") + private Output pagerDutyAction; + + public Output> pagerDutyAction() { + return Codegen.optional(this.pagerDutyAction); + } + @Export(name="repository", refs={String.class}, tree="[0]") + private Output repository; + + public Output repository() { + return this.repository; + } + @Export(name="slackAction", refs={LogscaleActionSlackAction.class}, tree="[0]") + private Output slackAction; + + public Output> slackAction() { + return Codegen.optional(this.slackAction); + } + @Export(name="slackPostMessageAction", refs={LogscaleActionSlackPostMessageAction.class}, tree="[0]") + private Output slackPostMessageAction; + + public Output> slackPostMessageAction() { + return Codegen.optional(this.slackPostMessageAction); + } + @Export(name="slug", refs={String.class}, tree="[0]") + private Output slug; + + public Output slug() { + return this.slug; + } + @Export(name="uploadFileAction", refs={LogscaleActionUploadFileAction.class}, tree="[0]") + private Output uploadFileAction; + + public Output> uploadFileAction() { + return Codegen.optional(this.uploadFileAction); + } + @Export(name="victorOpsAction", refs={LogscaleActionVictorOpsAction.class}, tree="[0]") + private Output victorOpsAction; + + public Output> victorOpsAction() { + return Codegen.optional(this.victorOpsAction); + } + @Export(name="webhookAction", refs={LogscaleActionWebhookAction.class}, tree="[0]") + private Output webhookAction; + + public Output> webhookAction() { + return Codegen.optional(this.webhookAction); + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public LogscaleAction(String name) { + this(name, LogscaleActionArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public LogscaleAction(String name, LogscaleActionArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public LogscaleAction(String name, LogscaleActionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("chronosphere:index/logscaleAction:LogscaleAction", name, args == null ? LogscaleActionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private LogscaleAction(String name, Output id, @Nullable LogscaleActionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("chronosphere:index/logscaleAction:LogscaleAction", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host 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 + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static LogscaleAction get(String name, Output id, @Nullable LogscaleActionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new LogscaleAction(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleActionArgs.java new file mode 100644 index 00000000..87e364df --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleActionArgs.java @@ -0,0 +1,261 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogscaleActionEmailActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionHumioActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionOpsGenieActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionPagerDutyActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionSlackActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionSlackPostMessageActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionUploadFileActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionVictorOpsActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionWebhookActionArgs; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionArgs Empty = new LogscaleActionArgs(); + + @Import(name="emailAction") + private @Nullable Output emailAction; + + public Optional> emailAction() { + return Optional.ofNullable(this.emailAction); + } + + @Import(name="humioAction") + private @Nullable Output humioAction; + + public Optional> humioAction() { + return Optional.ofNullable(this.humioAction); + } + + @Import(name="name", required=true) + private Output name; + + public Output name() { + return this.name; + } + + @Import(name="opsGenieAction") + private @Nullable Output opsGenieAction; + + public Optional> opsGenieAction() { + return Optional.ofNullable(this.opsGenieAction); + } + + @Import(name="pagerDutyAction") + private @Nullable Output pagerDutyAction; + + public Optional> pagerDutyAction() { + return Optional.ofNullable(this.pagerDutyAction); + } + + @Import(name="repository", required=true) + private Output repository; + + public Output repository() { + return this.repository; + } + + @Import(name="slackAction") + private @Nullable Output slackAction; + + public Optional> slackAction() { + return Optional.ofNullable(this.slackAction); + } + + @Import(name="slackPostMessageAction") + private @Nullable Output slackPostMessageAction; + + public Optional> slackPostMessageAction() { + return Optional.ofNullable(this.slackPostMessageAction); + } + + @Import(name="slug") + private @Nullable Output slug; + + public Optional> slug() { + return Optional.ofNullable(this.slug); + } + + @Import(name="uploadFileAction") + private @Nullable Output uploadFileAction; + + public Optional> uploadFileAction() { + return Optional.ofNullable(this.uploadFileAction); + } + + @Import(name="victorOpsAction") + private @Nullable Output victorOpsAction; + + public Optional> victorOpsAction() { + return Optional.ofNullable(this.victorOpsAction); + } + + @Import(name="webhookAction") + private @Nullable Output webhookAction; + + public Optional> webhookAction() { + return Optional.ofNullable(this.webhookAction); + } + + private LogscaleActionArgs() {} + + private LogscaleActionArgs(LogscaleActionArgs $) { + this.emailAction = $.emailAction; + this.humioAction = $.humioAction; + this.name = $.name; + this.opsGenieAction = $.opsGenieAction; + this.pagerDutyAction = $.pagerDutyAction; + this.repository = $.repository; + this.slackAction = $.slackAction; + this.slackPostMessageAction = $.slackPostMessageAction; + this.slug = $.slug; + this.uploadFileAction = $.uploadFileAction; + this.victorOpsAction = $.victorOpsAction; + this.webhookAction = $.webhookAction; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionArgs $; + + public Builder() { + $ = new LogscaleActionArgs(); + } + + public Builder(LogscaleActionArgs defaults) { + $ = new LogscaleActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder emailAction(@Nullable Output emailAction) { + $.emailAction = emailAction; + return this; + } + + public Builder emailAction(LogscaleActionEmailActionArgs emailAction) { + return emailAction(Output.of(emailAction)); + } + + public Builder humioAction(@Nullable Output humioAction) { + $.humioAction = humioAction; + return this; + } + + public Builder humioAction(LogscaleActionHumioActionArgs humioAction) { + return humioAction(Output.of(humioAction)); + } + + public Builder name(Output name) { + $.name = name; + return this; + } + + public Builder name(String name) { + return name(Output.of(name)); + } + + public Builder opsGenieAction(@Nullable Output opsGenieAction) { + $.opsGenieAction = opsGenieAction; + return this; + } + + public Builder opsGenieAction(LogscaleActionOpsGenieActionArgs opsGenieAction) { + return opsGenieAction(Output.of(opsGenieAction)); + } + + public Builder pagerDutyAction(@Nullable Output pagerDutyAction) { + $.pagerDutyAction = pagerDutyAction; + return this; + } + + public Builder pagerDutyAction(LogscaleActionPagerDutyActionArgs pagerDutyAction) { + return pagerDutyAction(Output.of(pagerDutyAction)); + } + + public Builder repository(Output repository) { + $.repository = repository; + return this; + } + + public Builder repository(String repository) { + return repository(Output.of(repository)); + } + + public Builder slackAction(@Nullable Output slackAction) { + $.slackAction = slackAction; + return this; + } + + public Builder slackAction(LogscaleActionSlackActionArgs slackAction) { + return slackAction(Output.of(slackAction)); + } + + public Builder slackPostMessageAction(@Nullable Output slackPostMessageAction) { + $.slackPostMessageAction = slackPostMessageAction; + return this; + } + + public Builder slackPostMessageAction(LogscaleActionSlackPostMessageActionArgs slackPostMessageAction) { + return slackPostMessageAction(Output.of(slackPostMessageAction)); + } + + public Builder slug(@Nullable Output slug) { + $.slug = slug; + return this; + } + + public Builder slug(String slug) { + return slug(Output.of(slug)); + } + + public Builder uploadFileAction(@Nullable Output uploadFileAction) { + $.uploadFileAction = uploadFileAction; + return this; + } + + public Builder uploadFileAction(LogscaleActionUploadFileActionArgs uploadFileAction) { + return uploadFileAction(Output.of(uploadFileAction)); + } + + public Builder victorOpsAction(@Nullable Output victorOpsAction) { + $.victorOpsAction = victorOpsAction; + return this; + } + + public Builder victorOpsAction(LogscaleActionVictorOpsActionArgs victorOpsAction) { + return victorOpsAction(Output.of(victorOpsAction)); + } + + public Builder webhookAction(@Nullable Output webhookAction) { + $.webhookAction = webhookAction; + return this; + } + + public Builder webhookAction(LogscaleActionWebhookActionArgs webhookAction) { + return webhookAction(Output.of(webhookAction)); + } + + public LogscaleActionArgs build() { + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.repository = Objects.requireNonNull($.repository, "expected parameter 'repository' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlert.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlert.java new file mode 100644 index 00000000..2c5779c3 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlert.java @@ -0,0 +1,172 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import io.chronosphere.chronosphere.LogscaleAlertArgs; +import io.chronosphere.chronosphere.Utilities; +import io.chronosphere.chronosphere.inputs.LogscaleAlertState; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Optional; +import javax.annotation.Nullable; + +@ResourceType(type="chronosphere:index/logscaleAlert:LogscaleAlert") +public class LogscaleAlert extends com.pulumi.resources.CustomResource { + @Export(name="actionIds", refs={List.class,String.class}, tree="[0,1]") + private Output> actionIds; + + public Output>> actionIds() { + return Codegen.optional(this.actionIds); + } + @Export(name="alertType", refs={String.class}, tree="[0]") + private Output alertType; + + public Output alertType() { + return this.alertType; + } + @Export(name="description", refs={String.class}, tree="[0]") + private Output description; + + public Output> description() { + return Codegen.optional(this.description); + } + @Export(name="disabled", refs={Boolean.class}, tree="[0]") + private Output disabled; + + public Output> disabled() { + return Codegen.optional(this.disabled); + } + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + public Output name() { + return this.name; + } + @Export(name="query", refs={String.class}, tree="[0]") + private Output query; + + public Output> query() { + return Codegen.optional(this.query); + } + @Export(name="repository", refs={String.class}, tree="[0]") + private Output repository; + + public Output repository() { + return this.repository; + } + /** + * Email of the user that the alert runs on behalf of + * + */ + @Export(name="runAsUser", refs={String.class}, tree="[0]") + private Output runAsUser; + + /** + * @return Email of the user that the alert runs on behalf of + * + */ + public Output runAsUser() { + return this.runAsUser; + } + @Export(name="slug", refs={String.class}, tree="[0]") + private Output slug; + + public Output slug() { + return this.slug; + } + @Export(name="tags", refs={List.class,String.class}, tree="[0,1]") + private Output> tags; + + public Output>> tags() { + return Codegen.optional(this.tags); + } + /** + * Required for STANDARD type alerts, optional for FILTER type alerts + * + */ + @Export(name="throttleDuration", refs={String.class}, tree="[0]") + private Output throttleDuration; + + /** + * @return Required for STANDARD type alerts, optional for FILTER type alerts + * + */ + public Output> throttleDuration() { + return Codegen.optional(this.throttleDuration); + } + @Export(name="throttleField", refs={String.class}, tree="[0]") + private Output throttleField; + + public Output> throttleField() { + return Codegen.optional(this.throttleField); + } + /** + * Required for STANDARD type alerts, ignored for FILTER type alerts + * + */ + @Export(name="timeWindow", refs={String.class}, tree="[0]") + private Output timeWindow; + + /** + * @return Required for STANDARD type alerts, ignored for FILTER type alerts + * + */ + public Output> timeWindow() { + return Codegen.optional(this.timeWindow); + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public LogscaleAlert(String name) { + this(name, LogscaleAlertArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public LogscaleAlert(String name, LogscaleAlertArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public LogscaleAlert(String name, LogscaleAlertArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("chronosphere:index/logscaleAlert:LogscaleAlert", name, args == null ? LogscaleAlertArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private LogscaleAlert(String name, Output id, @Nullable LogscaleAlertState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("chronosphere:index/logscaleAlert:LogscaleAlert", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host 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 + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static LogscaleAlert get(String name, Output id, @Nullable LogscaleAlertState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new LogscaleAlert(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlertArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlertArgs.java new file mode 100644 index 00000000..38e34cdd --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/LogscaleAlertArgs.java @@ -0,0 +1,341 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleAlertArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleAlertArgs Empty = new LogscaleAlertArgs(); + + @Import(name="actionIds") + private @Nullable Output> actionIds; + + public Optional>> actionIds() { + return Optional.ofNullable(this.actionIds); + } + + @Import(name="alertType", required=true) + private Output alertType; + + public Output alertType() { + return this.alertType; + } + + @Import(name="description") + private @Nullable Output description; + + public Optional> description() { + return Optional.ofNullable(this.description); + } + + @Import(name="disabled") + private @Nullable Output disabled; + + public Optional> disabled() { + return Optional.ofNullable(this.disabled); + } + + @Import(name="name", required=true) + private Output name; + + public Output name() { + return this.name; + } + + @Import(name="query") + private @Nullable Output query; + + public Optional> query() { + return Optional.ofNullable(this.query); + } + + @Import(name="repository", required=true) + private Output repository; + + public Output repository() { + return this.repository; + } + + /** + * Email of the user that the alert runs on behalf of + * + */ + @Import(name="runAsUser", required=true) + private Output runAsUser; + + /** + * @return Email of the user that the alert runs on behalf of + * + */ + public Output runAsUser() { + return this.runAsUser; + } + + @Import(name="slug") + private @Nullable Output slug; + + public Optional> slug() { + return Optional.ofNullable(this.slug); + } + + @Import(name="tags") + private @Nullable Output> tags; + + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * Required for STANDARD type alerts, optional for FILTER type alerts + * + */ + @Import(name="throttleDuration") + private @Nullable Output throttleDuration; + + /** + * @return Required for STANDARD type alerts, optional for FILTER type alerts + * + */ + public Optional> throttleDuration() { + return Optional.ofNullable(this.throttleDuration); + } + + @Import(name="throttleField") + private @Nullable Output throttleField; + + public Optional> throttleField() { + return Optional.ofNullable(this.throttleField); + } + + /** + * Required for STANDARD type alerts, ignored for FILTER type alerts + * + */ + @Import(name="timeWindow") + private @Nullable Output timeWindow; + + /** + * @return Required for STANDARD type alerts, ignored for FILTER type alerts + * + */ + public Optional> timeWindow() { + return Optional.ofNullable(this.timeWindow); + } + + private LogscaleAlertArgs() {} + + private LogscaleAlertArgs(LogscaleAlertArgs $) { + this.actionIds = $.actionIds; + this.alertType = $.alertType; + this.description = $.description; + this.disabled = $.disabled; + this.name = $.name; + this.query = $.query; + this.repository = $.repository; + this.runAsUser = $.runAsUser; + this.slug = $.slug; + this.tags = $.tags; + this.throttleDuration = $.throttleDuration; + this.throttleField = $.throttleField; + this.timeWindow = $.timeWindow; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleAlertArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleAlertArgs $; + + public Builder() { + $ = new LogscaleAlertArgs(); + } + + public Builder(LogscaleAlertArgs defaults) { + $ = new LogscaleAlertArgs(Objects.requireNonNull(defaults)); + } + + public Builder actionIds(@Nullable Output> actionIds) { + $.actionIds = actionIds; + return this; + } + + public Builder actionIds(List actionIds) { + return actionIds(Output.of(actionIds)); + } + + public Builder actionIds(String... actionIds) { + return actionIds(List.of(actionIds)); + } + + public Builder alertType(Output alertType) { + $.alertType = alertType; + return this; + } + + public Builder alertType(String alertType) { + return alertType(Output.of(alertType)); + } + + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + public Builder description(String description) { + return description(Output.of(description)); + } + + public Builder disabled(@Nullable Output disabled) { + $.disabled = disabled; + return this; + } + + public Builder disabled(Boolean disabled) { + return disabled(Output.of(disabled)); + } + + public Builder name(Output name) { + $.name = name; + return this; + } + + public Builder name(String name) { + return name(Output.of(name)); + } + + public Builder query(@Nullable Output query) { + $.query = query; + return this; + } + + public Builder query(String query) { + return query(Output.of(query)); + } + + public Builder repository(Output repository) { + $.repository = repository; + return this; + } + + public Builder repository(String repository) { + return repository(Output.of(repository)); + } + + /** + * @param runAsUser Email of the user that the alert runs on behalf of + * + * @return builder + * + */ + public Builder runAsUser(Output runAsUser) { + $.runAsUser = runAsUser; + return this; + } + + /** + * @param runAsUser Email of the user that the alert runs on behalf of + * + * @return builder + * + */ + public Builder runAsUser(String runAsUser) { + return runAsUser(Output.of(runAsUser)); + } + + public Builder slug(@Nullable Output slug) { + $.slug = slug; + return this; + } + + public Builder slug(String slug) { + return slug(Output.of(slug)); + } + + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + public Builder tags(List tags) { + return tags(Output.of(tags)); + } + + public Builder tags(String... tags) { + return tags(List.of(tags)); + } + + /** + * @param throttleDuration Required for STANDARD type alerts, optional for FILTER type alerts + * + * @return builder + * + */ + public Builder throttleDuration(@Nullable Output throttleDuration) { + $.throttleDuration = throttleDuration; + return this; + } + + /** + * @param throttleDuration Required for STANDARD type alerts, optional for FILTER type alerts + * + * @return builder + * + */ + public Builder throttleDuration(String throttleDuration) { + return throttleDuration(Output.of(throttleDuration)); + } + + public Builder throttleField(@Nullable Output throttleField) { + $.throttleField = throttleField; + return this; + } + + public Builder throttleField(String throttleField) { + return throttleField(Output.of(throttleField)); + } + + /** + * @param timeWindow Required for STANDARD type alerts, ignored for FILTER type alerts + * + * @return builder + * + */ + public Builder timeWindow(@Nullable Output timeWindow) { + $.timeWindow = timeWindow; + return this; + } + + /** + * @param timeWindow Required for STANDARD type alerts, ignored for FILTER type alerts + * + * @return builder + * + */ + public Builder timeWindow(String timeWindow) { + return timeWindow(Output.of(timeWindow)); + } + + public LogscaleAlertArgs build() { + $.alertType = Objects.requireNonNull($.alertType, "expected parameter 'alertType' to be non-null"); + $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + $.repository = Objects.requireNonNull($.repository, "expected parameter 'repository' to be non-null"); + $.runAsUser = Objects.requireNonNull($.runAsUser, "expected parameter 'runAsUser' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfig.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfig.java index 4e894e08..cafb60d1 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfig.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfig.java @@ -19,10 +19,10 @@ @ResourceType(type="chronosphere:index/resourcePoolsConfig:ResourcePoolsConfig") public class ResourcePoolsConfig extends com.pulumi.resources.CustomResource { @Export(name="defaultPool", refs={ResourcePoolsConfigDefaultPool.class}, tree="[0]") - private Output defaultPool; + private Output defaultPool; - public Output defaultPool() { - return this.defaultPool; + public Output> defaultPool() { + return Codegen.optional(this.defaultPool); } @Export(name="pool", refs={List.class,ResourcePoolsConfigPool.class}, tree="[0,1]") private Output> pool; @@ -55,7 +55,7 @@ public ResourcePoolsConfig(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ResourcePoolsConfig(String name, ResourcePoolsConfigArgs args) { + public ResourcePoolsConfig(String name, @Nullable ResourcePoolsConfigArgs args) { this(name, args, null); } /** @@ -64,7 +64,7 @@ public ResourcePoolsConfig(String name, ResourcePoolsConfigArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ResourcePoolsConfig(String name, ResourcePoolsConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public ResourcePoolsConfig(String name, @Nullable ResourcePoolsConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("chronosphere:index/resourcePoolsConfig:ResourcePoolsConfig", name, args == null ? ResourcePoolsConfigArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfigArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfigArgs.java index e58479f3..cf59204e 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfigArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/ResourcePoolsConfigArgs.java @@ -17,11 +17,11 @@ public final class ResourcePoolsConfigArgs extends com.pulumi.resources.Resource public static final ResourcePoolsConfigArgs Empty = new ResourcePoolsConfigArgs(); - @Import(name="defaultPool", required=true) - private Output defaultPool; + @Import(name="defaultPool") + private @Nullable Output defaultPool; - public Output defaultPool() { - return this.defaultPool; + public Optional> defaultPool() { + return Optional.ofNullable(this.defaultPool); } @Import(name="pool") @@ -76,7 +76,7 @@ public Builder(ResourcePoolsConfigArgs defaults) { $ = new ResourcePoolsConfigArgs(Objects.requireNonNull(defaults)); } - public Builder defaultPool(Output defaultPool) { + public Builder defaultPool(@Nullable Output defaultPool) { $.defaultPool = defaultPool; return this; } @@ -136,7 +136,6 @@ public Builder pools(ResourcePoolsConfigPoolArgs... pools) { } public ResourcePoolsConfigArgs build() { - $.defaultPool = Objects.requireNonNull($.defaultPool, "expected parameter 'defaultPool' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationArgs.java index 1a1925fe..67369506 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.DatasetConfigurationLogDatasetArgs; import io.chronosphere.chronosphere.inputs.DatasetConfigurationTraceDatasetArgs; import java.lang.String; import java.util.Objects; @@ -16,6 +17,13 @@ public final class DatasetConfigurationArgs extends com.pulumi.resources.Resourc public static final DatasetConfigurationArgs Empty = new DatasetConfigurationArgs(); + @Import(name="logDataset") + private @Nullable Output logDataset; + + public Optional> logDataset() { + return Optional.ofNullable(this.logDataset); + } + @Import(name="traceDataset") private @Nullable Output traceDataset; @@ -33,6 +41,7 @@ public Output type() { private DatasetConfigurationArgs() {} private DatasetConfigurationArgs(DatasetConfigurationArgs $) { + this.logDataset = $.logDataset; this.traceDataset = $.traceDataset; this.type = $.type; } @@ -55,6 +64,15 @@ public Builder(DatasetConfigurationArgs defaults) { $ = new DatasetConfigurationArgs(Objects.requireNonNull(defaults)); } + public Builder logDataset(@Nullable Output logDataset) { + $.logDataset = logDataset; + return this; + } + + public Builder logDataset(DatasetConfigurationLogDatasetArgs logDataset) { + return logDataset(Output.of(logDataset)); + } + public Builder traceDataset(@Nullable Output traceDataset) { $.traceDataset = traceDataset; return this; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetArgs.java new file mode 100644 index 00000000..2b4cda00 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetArgs.java @@ -0,0 +1,63 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.DatasetConfigurationLogDatasetMatchCriteriaArgs; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class DatasetConfigurationLogDatasetArgs extends com.pulumi.resources.ResourceArgs { + + public static final DatasetConfigurationLogDatasetArgs Empty = new DatasetConfigurationLogDatasetArgs(); + + @Import(name="matchCriteria") + private @Nullable Output matchCriteria; + + public Optional> matchCriteria() { + return Optional.ofNullable(this.matchCriteria); + } + + private DatasetConfigurationLogDatasetArgs() {} + + private DatasetConfigurationLogDatasetArgs(DatasetConfigurationLogDatasetArgs $) { + this.matchCriteria = $.matchCriteria; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(DatasetConfigurationLogDatasetArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private DatasetConfigurationLogDatasetArgs $; + + public Builder() { + $ = new DatasetConfigurationLogDatasetArgs(); + } + + public Builder(DatasetConfigurationLogDatasetArgs defaults) { + $ = new DatasetConfigurationLogDatasetArgs(Objects.requireNonNull(defaults)); + } + + public Builder matchCriteria(@Nullable Output matchCriteria) { + $.matchCriteria = matchCriteria; + return this; + } + + public Builder matchCriteria(DatasetConfigurationLogDatasetMatchCriteriaArgs matchCriteria) { + return matchCriteria(Output.of(matchCriteria)); + } + + public DatasetConfigurationLogDatasetArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.java new file mode 100644 index 00000000..1799ade3 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationLogDatasetMatchCriteriaArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class DatasetConfigurationLogDatasetMatchCriteriaArgs extends com.pulumi.resources.ResourceArgs { + + public static final DatasetConfigurationLogDatasetMatchCriteriaArgs Empty = new DatasetConfigurationLogDatasetMatchCriteriaArgs(); + + @Import(name="query", required=true) + private Output query; + + public Output query() { + return this.query; + } + + private DatasetConfigurationLogDatasetMatchCriteriaArgs() {} + + private DatasetConfigurationLogDatasetMatchCriteriaArgs(DatasetConfigurationLogDatasetMatchCriteriaArgs $) { + this.query = $.query; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(DatasetConfigurationLogDatasetMatchCriteriaArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private DatasetConfigurationLogDatasetMatchCriteriaArgs $; + + public Builder() { + $ = new DatasetConfigurationLogDatasetMatchCriteriaArgs(); + } + + public Builder(DatasetConfigurationLogDatasetMatchCriteriaArgs defaults) { + $ = new DatasetConfigurationLogDatasetMatchCriteriaArgs(Objects.requireNonNull(defaults)); + } + + public Builder query(Output query) { + $.query = query; + return this; + } + + public Builder query(String query) { + return query(Output.of(query)); + } + + public DatasetConfigurationLogDatasetMatchCriteriaArgs build() { + $.query = Objects.requireNonNull($.query, "expected parameter 'query' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.java index c4360cc1..b0f7eac4 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs.java @@ -80,28 +80,9 @@ public Optional> tag; - - public Optional>> tag() { - return Optional.ofNullable(this.tag); - } - - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ @Import(name="tags") private @Nullable Output> tags; - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Optional>> tags() { return Optional.ofNullable(this.tags); } @@ -117,7 +98,6 @@ private DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs(DatasetConfigurati this.parentService = $.parentService; this.service = $.service; this.spanCount = $.spanCount; - this.tag = $.tag; this.tags = $.tags; } @@ -211,52 +191,15 @@ public Builder spanCount(DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCo return spanCount(Output.of(spanCount)); } - public Builder tag(@Nullable Output> tag) { - $.tag = tag; - return this; - } - - public Builder tag(List tag) { - return tag(Output.of(tag)); - } - - public Builder tag(DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs... tag) { - return tag(List.of(tag)); - } - - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(@Nullable Output> tags) { $.tags = tags; return this; } - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(List tags) { return tags(Output.of(tags)); } - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs... tags) { return tags(List.of(tags)); } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.java index 64c8f084..07e36bbe 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs.java @@ -15,25 +15,6 @@ public final class DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs public static final DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs Empty = new DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs(); - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - @Import(name="maxSeconds") - private @Nullable Output maxSeconds; - - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional> maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } - @Import(name="maxSecs") private @Nullable Output maxSecs; @@ -41,25 +22,6 @@ public Optional> maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - @Import(name="minSeconds") - private @Nullable Output minSeconds; - - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional> minSeconds() { - return Optional.ofNullable(this.minSeconds); - } - @Import(name="minSecs") private @Nullable Output minSecs; @@ -70,9 +32,7 @@ public Optional> minSecs() { private DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs() {} private DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs(DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs $) { - this.maxSeconds = $.maxSeconds; this.maxSecs = $.maxSecs; - this.minSeconds = $.minSeconds; this.minSecs = $.minSecs; } @@ -94,31 +54,6 @@ public Builder(DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs def $ = new DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs(Objects.requireNonNull(defaults)); } - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(@Nullable Output maxSeconds) { - $.maxSeconds = maxSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(Double maxSeconds) { - return maxSeconds(Output.of(maxSeconds)); - } - public Builder maxSecs(@Nullable Output maxSecs) { $.maxSecs = maxSecs; return this; @@ -128,31 +63,6 @@ public Builder maxSecs(Double maxSecs) { return maxSecs(Output.of(maxSecs)); } - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(@Nullable Output minSeconds) { - $.minSeconds = minSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(Double minSeconds) { - return minSeconds(Output.of(minSeconds)); - } - public Builder minSecs(@Nullable Output minSecs) { $.minSecs = minSecs; return this; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.java index c4105788..cb86e979 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs.java @@ -15,25 +15,6 @@ public final class DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArg public static final DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs Empty = new DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs(); - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - @Import(name="maxSeconds") - private @Nullable Output maxSeconds; - - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional> maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } - @Import(name="maxSecs") private @Nullable Output maxSecs; @@ -41,25 +22,6 @@ public Optional> maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - @Import(name="minSeconds") - private @Nullable Output minSeconds; - - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional> minSeconds() { - return Optional.ofNullable(this.minSeconds); - } - @Import(name="minSecs") private @Nullable Output minSecs; @@ -70,9 +32,7 @@ public Optional> minSecs() { private DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs() {} private DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs(DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs $) { - this.maxSeconds = $.maxSeconds; this.maxSecs = $.maxSecs; - this.minSeconds = $.minSeconds; this.minSecs = $.minSecs; } @@ -94,31 +54,6 @@ public Builder(DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs de $ = new DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs(Objects.requireNonNull(defaults)); } - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(@Nullable Output maxSeconds) { - $.maxSeconds = maxSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(Double maxSeconds) { - return maxSeconds(Output.of(maxSeconds)); - } - public Builder maxSecs(@Nullable Output maxSecs) { $.maxSecs = maxSecs; return this; @@ -128,31 +63,6 @@ public Builder maxSecs(Double maxSecs) { return maxSecs(Output.of(maxSecs)); } - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(@Nullable Output minSeconds) { - $.minSeconds = minSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(Double minSeconds) { - return minSeconds(Output.of(minSeconds)); - } - public Builder minSecs(@Nullable Output minSecs) { $.minSecs = minSecs; return this; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationAllocationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationAllocationArgs.java new file mode 100644 index 00000000..f8fe3e48 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationAllocationArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Double; +import java.util.Objects; + + +public final class LogAllocationConfigDatasetAllocationAllocationArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDatasetAllocationAllocationArgs Empty = new LogAllocationConfigDatasetAllocationAllocationArgs(); + + @Import(name="percentOfLicense", required=true) + private Output percentOfLicense; + + public Output percentOfLicense() { + return this.percentOfLicense; + } + + private LogAllocationConfigDatasetAllocationAllocationArgs() {} + + private LogAllocationConfigDatasetAllocationAllocationArgs(LogAllocationConfigDatasetAllocationAllocationArgs $) { + this.percentOfLicense = $.percentOfLicense; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDatasetAllocationAllocationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDatasetAllocationAllocationArgs $; + + public Builder() { + $ = new LogAllocationConfigDatasetAllocationAllocationArgs(); + } + + public Builder(LogAllocationConfigDatasetAllocationAllocationArgs defaults) { + $ = new LogAllocationConfigDatasetAllocationAllocationArgs(Objects.requireNonNull(defaults)); + } + + public Builder percentOfLicense(Output percentOfLicense) { + $.percentOfLicense = percentOfLicense; + return this; + } + + public Builder percentOfLicense(Double percentOfLicense) { + return percentOfLicense(Output.of(percentOfLicense)); + } + + public LogAllocationConfigDatasetAllocationAllocationArgs build() { + $.percentOfLicense = Objects.requireNonNull($.percentOfLicense, "expected parameter 'percentOfLicense' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationArgs.java new file mode 100644 index 00000000..47f3f038 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationArgs.java @@ -0,0 +1,101 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDatasetAllocationAllocationArgs; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDatasetAllocationPrioritiesArgs; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogAllocationConfigDatasetAllocationArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDatasetAllocationArgs Empty = new LogAllocationConfigDatasetAllocationArgs(); + + @Import(name="allocation", required=true) + private Output allocation; + + public Output allocation() { + return this.allocation; + } + + @Import(name="datasetId", required=true) + private Output datasetId; + + public Output datasetId() { + return this.datasetId; + } + + @Import(name="priorities") + private @Nullable Output priorities; + + public Optional> priorities() { + return Optional.ofNullable(this.priorities); + } + + private LogAllocationConfigDatasetAllocationArgs() {} + + private LogAllocationConfigDatasetAllocationArgs(LogAllocationConfigDatasetAllocationArgs $) { + this.allocation = $.allocation; + this.datasetId = $.datasetId; + this.priorities = $.priorities; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDatasetAllocationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDatasetAllocationArgs $; + + public Builder() { + $ = new LogAllocationConfigDatasetAllocationArgs(); + } + + public Builder(LogAllocationConfigDatasetAllocationArgs defaults) { + $ = new LogAllocationConfigDatasetAllocationArgs(Objects.requireNonNull(defaults)); + } + + public Builder allocation(Output allocation) { + $.allocation = allocation; + return this; + } + + public Builder allocation(LogAllocationConfigDatasetAllocationAllocationArgs allocation) { + return allocation(Output.of(allocation)); + } + + public Builder datasetId(Output datasetId) { + $.datasetId = datasetId; + return this; + } + + public Builder datasetId(String datasetId) { + return datasetId(Output.of(datasetId)); + } + + public Builder priorities(@Nullable Output priorities) { + $.priorities = priorities; + return this; + } + + public Builder priorities(LogAllocationConfigDatasetAllocationPrioritiesArgs priorities) { + return priorities(Output.of(priorities)); + } + + public LogAllocationConfigDatasetAllocationArgs build() { + $.allocation = Objects.requireNonNull($.allocation, "expected parameter 'allocation' to be non-null"); + $.datasetId = Objects.requireNonNull($.datasetId, "expected parameter 'datasetId' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.java new file mode 100644 index 00000000..c51833e3 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesArgs.java @@ -0,0 +1,90 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogAllocationConfigDatasetAllocationPrioritiesArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDatasetAllocationPrioritiesArgs Empty = new LogAllocationConfigDatasetAllocationPrioritiesArgs(); + + @Import(name="highPriorityFilters") + private @Nullable Output> highPriorityFilters; + + public Optional>> highPriorityFilters() { + return Optional.ofNullable(this.highPriorityFilters); + } + + @Import(name="lowPriorityFilters") + private @Nullable Output> lowPriorityFilters; + + public Optional>> lowPriorityFilters() { + return Optional.ofNullable(this.lowPriorityFilters); + } + + private LogAllocationConfigDatasetAllocationPrioritiesArgs() {} + + private LogAllocationConfigDatasetAllocationPrioritiesArgs(LogAllocationConfigDatasetAllocationPrioritiesArgs $) { + this.highPriorityFilters = $.highPriorityFilters; + this.lowPriorityFilters = $.lowPriorityFilters; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDatasetAllocationPrioritiesArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDatasetAllocationPrioritiesArgs $; + + public Builder() { + $ = new LogAllocationConfigDatasetAllocationPrioritiesArgs(); + } + + public Builder(LogAllocationConfigDatasetAllocationPrioritiesArgs defaults) { + $ = new LogAllocationConfigDatasetAllocationPrioritiesArgs(Objects.requireNonNull(defaults)); + } + + public Builder highPriorityFilters(@Nullable Output> highPriorityFilters) { + $.highPriorityFilters = highPriorityFilters; + return this; + } + + public Builder highPriorityFilters(List highPriorityFilters) { + return highPriorityFilters(Output.of(highPriorityFilters)); + } + + public Builder highPriorityFilters(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs... highPriorityFilters) { + return highPriorityFilters(List.of(highPriorityFilters)); + } + + public Builder lowPriorityFilters(@Nullable Output> lowPriorityFilters) { + $.lowPriorityFilters = lowPriorityFilters; + return this; + } + + public Builder lowPriorityFilters(List lowPriorityFilters) { + return lowPriorityFilters(Output.of(lowPriorityFilters)); + } + + public Builder lowPriorityFilters(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs... lowPriorityFilters) { + return lowPriorityFilters(List.of(lowPriorityFilters)); + } + + public LogAllocationConfigDatasetAllocationPrioritiesArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.java new file mode 100644 index 00000000..49b15dba --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs Empty = new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs(); + + @Import(name="query", required=true) + private Output query; + + public Output query() { + return this.query; + } + + private LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs() {} + + private LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs $) { + this.query = $.query; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs $; + + public Builder() { + $ = new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs(); + } + + public Builder(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs defaults) { + $ = new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs(Objects.requireNonNull(defaults)); + } + + public Builder query(Output query) { + $.query = query; + return this; + } + + public Builder query(String query) { + return query(Output.of(query)); + } + + public LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs build() { + $.query = Objects.requireNonNull($.query, "expected parameter 'query' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.java new file mode 100644 index 00000000..2a9a4bd6 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs Empty = new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs(); + + @Import(name="query", required=true) + private Output query; + + public Output query() { + return this.query; + } + + private LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs() {} + + private LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs $) { + this.query = $.query; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs $; + + public Builder() { + $ = new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs(); + } + + public Builder(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs defaults) { + $ = new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs(Objects.requireNonNull(defaults)); + } + + public Builder query(Output query) { + $.query = query; + return this; + } + + public Builder query(String query) { + return query(Output.of(query)); + } + + public LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs build() { + $.query = Objects.requireNonNull($.query, "expected parameter 'query' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetAllocationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetAllocationArgs.java new file mode 100644 index 00000000..20a39dbd --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetAllocationArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Double; +import java.util.Objects; + + +public final class LogAllocationConfigDefaultDatasetAllocationArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDefaultDatasetAllocationArgs Empty = new LogAllocationConfigDefaultDatasetAllocationArgs(); + + @Import(name="percentOfLicense", required=true) + private Output percentOfLicense; + + public Output percentOfLicense() { + return this.percentOfLicense; + } + + private LogAllocationConfigDefaultDatasetAllocationArgs() {} + + private LogAllocationConfigDefaultDatasetAllocationArgs(LogAllocationConfigDefaultDatasetAllocationArgs $) { + this.percentOfLicense = $.percentOfLicense; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDefaultDatasetAllocationArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDefaultDatasetAllocationArgs $; + + public Builder() { + $ = new LogAllocationConfigDefaultDatasetAllocationArgs(); + } + + public Builder(LogAllocationConfigDefaultDatasetAllocationArgs defaults) { + $ = new LogAllocationConfigDefaultDatasetAllocationArgs(Objects.requireNonNull(defaults)); + } + + public Builder percentOfLicense(Output percentOfLicense) { + $.percentOfLicense = percentOfLicense; + return this; + } + + public Builder percentOfLicense(Double percentOfLicense) { + return percentOfLicense(Output.of(percentOfLicense)); + } + + public LogAllocationConfigDefaultDatasetAllocationArgs build() { + $.percentOfLicense = Objects.requireNonNull($.percentOfLicense, "expected parameter 'percentOfLicense' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetArgs.java new file mode 100644 index 00000000..69287fd8 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetArgs.java @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDefaultDatasetAllocationArgs; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDefaultDatasetPrioritiesArgs; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogAllocationConfigDefaultDatasetArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDefaultDatasetArgs Empty = new LogAllocationConfigDefaultDatasetArgs(); + + @Import(name="allocation", required=true) + private Output allocation; + + public Output allocation() { + return this.allocation; + } + + @Import(name="priorities") + private @Nullable Output priorities; + + public Optional> priorities() { + return Optional.ofNullable(this.priorities); + } + + private LogAllocationConfigDefaultDatasetArgs() {} + + private LogAllocationConfigDefaultDatasetArgs(LogAllocationConfigDefaultDatasetArgs $) { + this.allocation = $.allocation; + this.priorities = $.priorities; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDefaultDatasetArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDefaultDatasetArgs $; + + public Builder() { + $ = new LogAllocationConfigDefaultDatasetArgs(); + } + + public Builder(LogAllocationConfigDefaultDatasetArgs defaults) { + $ = new LogAllocationConfigDefaultDatasetArgs(Objects.requireNonNull(defaults)); + } + + public Builder allocation(Output allocation) { + $.allocation = allocation; + return this; + } + + public Builder allocation(LogAllocationConfigDefaultDatasetAllocationArgs allocation) { + return allocation(Output.of(allocation)); + } + + public Builder priorities(@Nullable Output priorities) { + $.priorities = priorities; + return this; + } + + public Builder priorities(LogAllocationConfigDefaultDatasetPrioritiesArgs priorities) { + return priorities(Output.of(priorities)); + } + + public LogAllocationConfigDefaultDatasetArgs build() { + $.allocation = Objects.requireNonNull($.allocation, "expected parameter 'allocation' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.java new file mode 100644 index 00000000..d841a960 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesArgs.java @@ -0,0 +1,90 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogAllocationConfigDefaultDatasetPrioritiesArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDefaultDatasetPrioritiesArgs Empty = new LogAllocationConfigDefaultDatasetPrioritiesArgs(); + + @Import(name="highPriorityFilters") + private @Nullable Output> highPriorityFilters; + + public Optional>> highPriorityFilters() { + return Optional.ofNullable(this.highPriorityFilters); + } + + @Import(name="lowPriorityFilters") + private @Nullable Output> lowPriorityFilters; + + public Optional>> lowPriorityFilters() { + return Optional.ofNullable(this.lowPriorityFilters); + } + + private LogAllocationConfigDefaultDatasetPrioritiesArgs() {} + + private LogAllocationConfigDefaultDatasetPrioritiesArgs(LogAllocationConfigDefaultDatasetPrioritiesArgs $) { + this.highPriorityFilters = $.highPriorityFilters; + this.lowPriorityFilters = $.lowPriorityFilters; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDefaultDatasetPrioritiesArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDefaultDatasetPrioritiesArgs $; + + public Builder() { + $ = new LogAllocationConfigDefaultDatasetPrioritiesArgs(); + } + + public Builder(LogAllocationConfigDefaultDatasetPrioritiesArgs defaults) { + $ = new LogAllocationConfigDefaultDatasetPrioritiesArgs(Objects.requireNonNull(defaults)); + } + + public Builder highPriorityFilters(@Nullable Output> highPriorityFilters) { + $.highPriorityFilters = highPriorityFilters; + return this; + } + + public Builder highPriorityFilters(List highPriorityFilters) { + return highPriorityFilters(Output.of(highPriorityFilters)); + } + + public Builder highPriorityFilters(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs... highPriorityFilters) { + return highPriorityFilters(List.of(highPriorityFilters)); + } + + public Builder lowPriorityFilters(@Nullable Output> lowPriorityFilters) { + $.lowPriorityFilters = lowPriorityFilters; + return this; + } + + public Builder lowPriorityFilters(List lowPriorityFilters) { + return lowPriorityFilters(Output.of(lowPriorityFilters)); + } + + public Builder lowPriorityFilters(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs... lowPriorityFilters) { + return lowPriorityFilters(List.of(lowPriorityFilters)); + } + + public LogAllocationConfigDefaultDatasetPrioritiesArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.java new file mode 100644 index 00000000..0e947c0f --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs Empty = new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs(); + + @Import(name="query", required=true) + private Output query; + + public Output query() { + return this.query; + } + + private LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs() {} + + private LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs $) { + this.query = $.query; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs $; + + public Builder() { + $ = new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs(); + } + + public Builder(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs defaults) { + $ = new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs(Objects.requireNonNull(defaults)); + } + + public Builder query(Output query) { + $.query = query; + return this; + } + + public Builder query(String query) { + return query(Output.of(query)); + } + + public LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs build() { + $.query = Objects.requireNonNull($.query, "expected parameter 'query' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.java new file mode 100644 index 00000000..3df2e6f5 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs Empty = new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs(); + + @Import(name="query", required=true) + private Output query; + + public Output query() { + return this.query; + } + + private LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs() {} + + private LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs $) { + this.query = $.query; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs $; + + public Builder() { + $ = new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs(); + } + + public Builder(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs defaults) { + $ = new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs(Objects.requireNonNull(defaults)); + } + + public Builder query(Output query) { + $.query = query; + return this; + } + + public Builder query(String query) { + return query(Output.of(query)); + } + + public LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs build() { + $.query = Objects.requireNonNull($.query, "expected parameter 'query' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigState.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigState.java new file mode 100644 index 00000000..e7d53233 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogAllocationConfigState.java @@ -0,0 +1,86 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDatasetAllocationArgs; +import io.chronosphere.chronosphere.inputs.LogAllocationConfigDefaultDatasetArgs; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogAllocationConfigState extends com.pulumi.resources.ResourceArgs { + + public static final LogAllocationConfigState Empty = new LogAllocationConfigState(); + + @Import(name="datasetAllocations") + private @Nullable Output> datasetAllocations; + + public Optional>> datasetAllocations() { + return Optional.ofNullable(this.datasetAllocations); + } + + @Import(name="defaultDataset") + private @Nullable Output defaultDataset; + + public Optional> defaultDataset() { + return Optional.ofNullable(this.defaultDataset); + } + + private LogAllocationConfigState() {} + + private LogAllocationConfigState(LogAllocationConfigState $) { + this.datasetAllocations = $.datasetAllocations; + this.defaultDataset = $.defaultDataset; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogAllocationConfigState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogAllocationConfigState $; + + public Builder() { + $ = new LogAllocationConfigState(); + } + + public Builder(LogAllocationConfigState defaults) { + $ = new LogAllocationConfigState(Objects.requireNonNull(defaults)); + } + + public Builder datasetAllocations(@Nullable Output> datasetAllocations) { + $.datasetAllocations = datasetAllocations; + return this; + } + + public Builder datasetAllocations(List datasetAllocations) { + return datasetAllocations(Output.of(datasetAllocations)); + } + + public Builder datasetAllocations(LogAllocationConfigDatasetAllocationArgs... datasetAllocations) { + return datasetAllocations(List.of(datasetAllocations)); + } + + public Builder defaultDataset(@Nullable Output defaultDataset) { + $.defaultDataset = defaultDataset; + return this; + } + + public Builder defaultDataset(LogAllocationConfigDefaultDatasetArgs defaultDataset) { + return defaultDataset(Output.of(defaultDataset)); + } + + public LogAllocationConfigState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionEmailActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionEmailActionArgs.java new file mode 100644 index 00000000..aacad990 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionEmailActionArgs.java @@ -0,0 +1,138 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionEmailActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionEmailActionArgs Empty = new LogscaleActionEmailActionArgs(); + + @Import(name="attachCsv") + private @Nullable Output attachCsv; + + public Optional> attachCsv() { + return Optional.ofNullable(this.attachCsv); + } + + @Import(name="bodyTemplate") + private @Nullable Output bodyTemplate; + + public Optional> bodyTemplate() { + return Optional.ofNullable(this.bodyTemplate); + } + + @Import(name="recipients", required=true) + private Output> recipients; + + public Output> recipients() { + return this.recipients; + } + + @Import(name="subjectTemplate") + private @Nullable Output subjectTemplate; + + public Optional> subjectTemplate() { + return Optional.ofNullable(this.subjectTemplate); + } + + @Import(name="useProxy") + private @Nullable Output useProxy; + + public Optional> useProxy() { + return Optional.ofNullable(this.useProxy); + } + + private LogscaleActionEmailActionArgs() {} + + private LogscaleActionEmailActionArgs(LogscaleActionEmailActionArgs $) { + this.attachCsv = $.attachCsv; + this.bodyTemplate = $.bodyTemplate; + this.recipients = $.recipients; + this.subjectTemplate = $.subjectTemplate; + this.useProxy = $.useProxy; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionEmailActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionEmailActionArgs $; + + public Builder() { + $ = new LogscaleActionEmailActionArgs(); + } + + public Builder(LogscaleActionEmailActionArgs defaults) { + $ = new LogscaleActionEmailActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder attachCsv(@Nullable Output attachCsv) { + $.attachCsv = attachCsv; + return this; + } + + public Builder attachCsv(Boolean attachCsv) { + return attachCsv(Output.of(attachCsv)); + } + + public Builder bodyTemplate(@Nullable Output bodyTemplate) { + $.bodyTemplate = bodyTemplate; + return this; + } + + public Builder bodyTemplate(String bodyTemplate) { + return bodyTemplate(Output.of(bodyTemplate)); + } + + public Builder recipients(Output> recipients) { + $.recipients = recipients; + return this; + } + + public Builder recipients(List recipients) { + return recipients(Output.of(recipients)); + } + + public Builder recipients(String... recipients) { + return recipients(List.of(recipients)); + } + + public Builder subjectTemplate(@Nullable Output subjectTemplate) { + $.subjectTemplate = subjectTemplate; + return this; + } + + public Builder subjectTemplate(String subjectTemplate) { + return subjectTemplate(Output.of(subjectTemplate)); + } + + public Builder useProxy(@Nullable Output useProxy) { + $.useProxy = useProxy; + return this; + } + + public Builder useProxy(Boolean useProxy) { + return useProxy(Output.of(useProxy)); + } + + public LogscaleActionEmailActionArgs build() { + $.recipients = Objects.requireNonNull($.recipients, "expected parameter 'recipients' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionHumioActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionHumioActionArgs.java new file mode 100644 index 00000000..61185c65 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionHumioActionArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class LogscaleActionHumioActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionHumioActionArgs Empty = new LogscaleActionHumioActionArgs(); + + @Import(name="ingestToken", required=true) + private Output ingestToken; + + public Output ingestToken() { + return this.ingestToken; + } + + private LogscaleActionHumioActionArgs() {} + + private LogscaleActionHumioActionArgs(LogscaleActionHumioActionArgs $) { + this.ingestToken = $.ingestToken; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionHumioActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionHumioActionArgs $; + + public Builder() { + $ = new LogscaleActionHumioActionArgs(); + } + + public Builder(LogscaleActionHumioActionArgs defaults) { + $ = new LogscaleActionHumioActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder ingestToken(Output ingestToken) { + $.ingestToken = ingestToken; + return this; + } + + public Builder ingestToken(String ingestToken) { + return ingestToken(Output.of(ingestToken)); + } + + public LogscaleActionHumioActionArgs build() { + $.ingestToken = Objects.requireNonNull($.ingestToken, "expected parameter 'ingestToken' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionOpsGenieActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionOpsGenieActionArgs.java new file mode 100644 index 00000000..833901c7 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionOpsGenieActionArgs.java @@ -0,0 +1,100 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionOpsGenieActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionOpsGenieActionArgs Empty = new LogscaleActionOpsGenieActionArgs(); + + @Import(name="apiUrl", required=true) + private Output apiUrl; + + public Output apiUrl() { + return this.apiUrl; + } + + @Import(name="opsGenieKey", required=true) + private Output opsGenieKey; + + public Output opsGenieKey() { + return this.opsGenieKey; + } + + @Import(name="useProxy") + private @Nullable Output useProxy; + + public Optional> useProxy() { + return Optional.ofNullable(this.useProxy); + } + + private LogscaleActionOpsGenieActionArgs() {} + + private LogscaleActionOpsGenieActionArgs(LogscaleActionOpsGenieActionArgs $) { + this.apiUrl = $.apiUrl; + this.opsGenieKey = $.opsGenieKey; + this.useProxy = $.useProxy; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionOpsGenieActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionOpsGenieActionArgs $; + + public Builder() { + $ = new LogscaleActionOpsGenieActionArgs(); + } + + public Builder(LogscaleActionOpsGenieActionArgs defaults) { + $ = new LogscaleActionOpsGenieActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder apiUrl(Output apiUrl) { + $.apiUrl = apiUrl; + return this; + } + + public Builder apiUrl(String apiUrl) { + return apiUrl(Output.of(apiUrl)); + } + + public Builder opsGenieKey(Output opsGenieKey) { + $.opsGenieKey = opsGenieKey; + return this; + } + + public Builder opsGenieKey(String opsGenieKey) { + return opsGenieKey(Output.of(opsGenieKey)); + } + + public Builder useProxy(@Nullable Output useProxy) { + $.useProxy = useProxy; + return this; + } + + public Builder useProxy(Boolean useProxy) { + return useProxy(Output.of(useProxy)); + } + + public LogscaleActionOpsGenieActionArgs build() { + $.apiUrl = Objects.requireNonNull($.apiUrl, "expected parameter 'apiUrl' to be non-null"); + $.opsGenieKey = Objects.requireNonNull($.opsGenieKey, "expected parameter 'opsGenieKey' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionPagerDutyActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionPagerDutyActionArgs.java new file mode 100644 index 00000000..a5c0c02f --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionPagerDutyActionArgs.java @@ -0,0 +1,100 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionPagerDutyActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionPagerDutyActionArgs Empty = new LogscaleActionPagerDutyActionArgs(); + + @Import(name="routingKey", required=true) + private Output routingKey; + + public Output routingKey() { + return this.routingKey; + } + + @Import(name="severity", required=true) + private Output severity; + + public Output severity() { + return this.severity; + } + + @Import(name="useProxy") + private @Nullable Output useProxy; + + public Optional> useProxy() { + return Optional.ofNullable(this.useProxy); + } + + private LogscaleActionPagerDutyActionArgs() {} + + private LogscaleActionPagerDutyActionArgs(LogscaleActionPagerDutyActionArgs $) { + this.routingKey = $.routingKey; + this.severity = $.severity; + this.useProxy = $.useProxy; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionPagerDutyActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionPagerDutyActionArgs $; + + public Builder() { + $ = new LogscaleActionPagerDutyActionArgs(); + } + + public Builder(LogscaleActionPagerDutyActionArgs defaults) { + $ = new LogscaleActionPagerDutyActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder routingKey(Output routingKey) { + $.routingKey = routingKey; + return this; + } + + public Builder routingKey(String routingKey) { + return routingKey(Output.of(routingKey)); + } + + public Builder severity(Output severity) { + $.severity = severity; + return this; + } + + public Builder severity(String severity) { + return severity(Output.of(severity)); + } + + public Builder useProxy(@Nullable Output useProxy) { + $.useProxy = useProxy; + return this; + } + + public Builder useProxy(Boolean useProxy) { + return useProxy(Output.of(useProxy)); + } + + public LogscaleActionPagerDutyActionArgs build() { + $.routingKey = Objects.requireNonNull($.routingKey, "expected parameter 'routingKey' to be non-null"); + $.severity = Objects.requireNonNull($.severity, "expected parameter 'severity' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackActionArgs.java new file mode 100644 index 00000000..eba6999e --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackActionArgs.java @@ -0,0 +1,100 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionSlackActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionSlackActionArgs Empty = new LogscaleActionSlackActionArgs(); + + @Import(name="fields") + private @Nullable Output> fields; + + public Optional>> fields() { + return Optional.ofNullable(this.fields); + } + + @Import(name="url", required=true) + private Output url; + + public Output url() { + return this.url; + } + + @Import(name="useProxy") + private @Nullable Output useProxy; + + public Optional> useProxy() { + return Optional.ofNullable(this.useProxy); + } + + private LogscaleActionSlackActionArgs() {} + + private LogscaleActionSlackActionArgs(LogscaleActionSlackActionArgs $) { + this.fields = $.fields; + this.url = $.url; + this.useProxy = $.useProxy; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionSlackActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionSlackActionArgs $; + + public Builder() { + $ = new LogscaleActionSlackActionArgs(); + } + + public Builder(LogscaleActionSlackActionArgs defaults) { + $ = new LogscaleActionSlackActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder fields(@Nullable Output> fields) { + $.fields = fields; + return this; + } + + public Builder fields(Map fields) { + return fields(Output.of(fields)); + } + + public Builder url(Output url) { + $.url = url; + return this; + } + + public Builder url(String url) { + return url(Output.of(url)); + } + + public Builder useProxy(@Nullable Output useProxy) { + $.useProxy = useProxy; + return this; + } + + public Builder useProxy(Boolean useProxy) { + return useProxy(Output.of(useProxy)); + } + + public LogscaleActionSlackActionArgs build() { + $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackPostMessageActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackPostMessageActionArgs.java new file mode 100644 index 00000000..20284992 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionSlackPostMessageActionArgs.java @@ -0,0 +1,123 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionSlackPostMessageActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionSlackPostMessageActionArgs Empty = new LogscaleActionSlackPostMessageActionArgs(); + + @Import(name="apiToken", required=true) + private Output apiToken; + + public Output apiToken() { + return this.apiToken; + } + + @Import(name="channels", required=true) + private Output> channels; + + public Output> channels() { + return this.channels; + } + + @Import(name="fields") + private @Nullable Output> fields; + + public Optional>> fields() { + return Optional.ofNullable(this.fields); + } + + @Import(name="useProxy") + private @Nullable Output useProxy; + + public Optional> useProxy() { + return Optional.ofNullable(this.useProxy); + } + + private LogscaleActionSlackPostMessageActionArgs() {} + + private LogscaleActionSlackPostMessageActionArgs(LogscaleActionSlackPostMessageActionArgs $) { + this.apiToken = $.apiToken; + this.channels = $.channels; + this.fields = $.fields; + this.useProxy = $.useProxy; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionSlackPostMessageActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionSlackPostMessageActionArgs $; + + public Builder() { + $ = new LogscaleActionSlackPostMessageActionArgs(); + } + + public Builder(LogscaleActionSlackPostMessageActionArgs defaults) { + $ = new LogscaleActionSlackPostMessageActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder apiToken(Output apiToken) { + $.apiToken = apiToken; + return this; + } + + public Builder apiToken(String apiToken) { + return apiToken(Output.of(apiToken)); + } + + public Builder channels(Output> channels) { + $.channels = channels; + return this; + } + + public Builder channels(List channels) { + return channels(Output.of(channels)); + } + + public Builder channels(String... channels) { + return channels(List.of(channels)); + } + + public Builder fields(@Nullable Output> fields) { + $.fields = fields; + return this; + } + + public Builder fields(Map fields) { + return fields(Output.of(fields)); + } + + public Builder useProxy(@Nullable Output useProxy) { + $.useProxy = useProxy; + return this; + } + + public Builder useProxy(Boolean useProxy) { + return useProxy(Output.of(useProxy)); + } + + public LogscaleActionSlackPostMessageActionArgs build() { + $.apiToken = Objects.requireNonNull($.apiToken, "expected parameter 'apiToken' to be non-null"); + $.channels = Objects.requireNonNull($.channels, "expected parameter 'channels' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionState.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionState.java new file mode 100644 index 00000000..c341824f --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionState.java @@ -0,0 +1,259 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.LogscaleActionEmailActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionHumioActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionOpsGenieActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionPagerDutyActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionSlackActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionSlackPostMessageActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionUploadFileActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionVictorOpsActionArgs; +import io.chronosphere.chronosphere.inputs.LogscaleActionWebhookActionArgs; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionState extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionState Empty = new LogscaleActionState(); + + @Import(name="emailAction") + private @Nullable Output emailAction; + + public Optional> emailAction() { + return Optional.ofNullable(this.emailAction); + } + + @Import(name="humioAction") + private @Nullable Output humioAction; + + public Optional> humioAction() { + return Optional.ofNullable(this.humioAction); + } + + @Import(name="name") + private @Nullable Output name; + + public Optional> name() { + return Optional.ofNullable(this.name); + } + + @Import(name="opsGenieAction") + private @Nullable Output opsGenieAction; + + public Optional> opsGenieAction() { + return Optional.ofNullable(this.opsGenieAction); + } + + @Import(name="pagerDutyAction") + private @Nullable Output pagerDutyAction; + + public Optional> pagerDutyAction() { + return Optional.ofNullable(this.pagerDutyAction); + } + + @Import(name="repository") + private @Nullable Output repository; + + public Optional> repository() { + return Optional.ofNullable(this.repository); + } + + @Import(name="slackAction") + private @Nullable Output slackAction; + + public Optional> slackAction() { + return Optional.ofNullable(this.slackAction); + } + + @Import(name="slackPostMessageAction") + private @Nullable Output slackPostMessageAction; + + public Optional> slackPostMessageAction() { + return Optional.ofNullable(this.slackPostMessageAction); + } + + @Import(name="slug") + private @Nullable Output slug; + + public Optional> slug() { + return Optional.ofNullable(this.slug); + } + + @Import(name="uploadFileAction") + private @Nullable Output uploadFileAction; + + public Optional> uploadFileAction() { + return Optional.ofNullable(this.uploadFileAction); + } + + @Import(name="victorOpsAction") + private @Nullable Output victorOpsAction; + + public Optional> victorOpsAction() { + return Optional.ofNullable(this.victorOpsAction); + } + + @Import(name="webhookAction") + private @Nullable Output webhookAction; + + public Optional> webhookAction() { + return Optional.ofNullable(this.webhookAction); + } + + private LogscaleActionState() {} + + private LogscaleActionState(LogscaleActionState $) { + this.emailAction = $.emailAction; + this.humioAction = $.humioAction; + this.name = $.name; + this.opsGenieAction = $.opsGenieAction; + this.pagerDutyAction = $.pagerDutyAction; + this.repository = $.repository; + this.slackAction = $.slackAction; + this.slackPostMessageAction = $.slackPostMessageAction; + this.slug = $.slug; + this.uploadFileAction = $.uploadFileAction; + this.victorOpsAction = $.victorOpsAction; + this.webhookAction = $.webhookAction; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionState $; + + public Builder() { + $ = new LogscaleActionState(); + } + + public Builder(LogscaleActionState defaults) { + $ = new LogscaleActionState(Objects.requireNonNull(defaults)); + } + + public Builder emailAction(@Nullable Output emailAction) { + $.emailAction = emailAction; + return this; + } + + public Builder emailAction(LogscaleActionEmailActionArgs emailAction) { + return emailAction(Output.of(emailAction)); + } + + public Builder humioAction(@Nullable Output humioAction) { + $.humioAction = humioAction; + return this; + } + + public Builder humioAction(LogscaleActionHumioActionArgs humioAction) { + return humioAction(Output.of(humioAction)); + } + + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + public Builder name(String name) { + return name(Output.of(name)); + } + + public Builder opsGenieAction(@Nullable Output opsGenieAction) { + $.opsGenieAction = opsGenieAction; + return this; + } + + public Builder opsGenieAction(LogscaleActionOpsGenieActionArgs opsGenieAction) { + return opsGenieAction(Output.of(opsGenieAction)); + } + + public Builder pagerDutyAction(@Nullable Output pagerDutyAction) { + $.pagerDutyAction = pagerDutyAction; + return this; + } + + public Builder pagerDutyAction(LogscaleActionPagerDutyActionArgs pagerDutyAction) { + return pagerDutyAction(Output.of(pagerDutyAction)); + } + + public Builder repository(@Nullable Output repository) { + $.repository = repository; + return this; + } + + public Builder repository(String repository) { + return repository(Output.of(repository)); + } + + public Builder slackAction(@Nullable Output slackAction) { + $.slackAction = slackAction; + return this; + } + + public Builder slackAction(LogscaleActionSlackActionArgs slackAction) { + return slackAction(Output.of(slackAction)); + } + + public Builder slackPostMessageAction(@Nullable Output slackPostMessageAction) { + $.slackPostMessageAction = slackPostMessageAction; + return this; + } + + public Builder slackPostMessageAction(LogscaleActionSlackPostMessageActionArgs slackPostMessageAction) { + return slackPostMessageAction(Output.of(slackPostMessageAction)); + } + + public Builder slug(@Nullable Output slug) { + $.slug = slug; + return this; + } + + public Builder slug(String slug) { + return slug(Output.of(slug)); + } + + public Builder uploadFileAction(@Nullable Output uploadFileAction) { + $.uploadFileAction = uploadFileAction; + return this; + } + + public Builder uploadFileAction(LogscaleActionUploadFileActionArgs uploadFileAction) { + return uploadFileAction(Output.of(uploadFileAction)); + } + + public Builder victorOpsAction(@Nullable Output victorOpsAction) { + $.victorOpsAction = victorOpsAction; + return this; + } + + public Builder victorOpsAction(LogscaleActionVictorOpsActionArgs victorOpsAction) { + return victorOpsAction(Output.of(victorOpsAction)); + } + + public Builder webhookAction(@Nullable Output webhookAction) { + $.webhookAction = webhookAction; + return this; + } + + public Builder webhookAction(LogscaleActionWebhookActionArgs webhookAction) { + return webhookAction(Output.of(webhookAction)); + } + + public LogscaleActionState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionUploadFileActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionUploadFileActionArgs.java new file mode 100644 index 00000000..53f8d443 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionUploadFileActionArgs.java @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; + + +public final class LogscaleActionUploadFileActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionUploadFileActionArgs Empty = new LogscaleActionUploadFileActionArgs(); + + @Import(name="fileName", required=true) + private Output fileName; + + public Output fileName() { + return this.fileName; + } + + private LogscaleActionUploadFileActionArgs() {} + + private LogscaleActionUploadFileActionArgs(LogscaleActionUploadFileActionArgs $) { + this.fileName = $.fileName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionUploadFileActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionUploadFileActionArgs $; + + public Builder() { + $ = new LogscaleActionUploadFileActionArgs(); + } + + public Builder(LogscaleActionUploadFileActionArgs defaults) { + $ = new LogscaleActionUploadFileActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder fileName(Output fileName) { + $.fileName = fileName; + return this; + } + + public Builder fileName(String fileName) { + return fileName(Output.of(fileName)); + } + + public LogscaleActionUploadFileActionArgs build() { + $.fileName = Objects.requireNonNull($.fileName, "expected parameter 'fileName' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionVictorOpsActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionVictorOpsActionArgs.java new file mode 100644 index 00000000..6e160bb5 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionVictorOpsActionArgs.java @@ -0,0 +1,100 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionVictorOpsActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionVictorOpsActionArgs Empty = new LogscaleActionVictorOpsActionArgs(); + + @Import(name="messageType", required=true) + private Output messageType; + + public Output messageType() { + return this.messageType; + } + + @Import(name="notifyUrl", required=true) + private Output notifyUrl; + + public Output notifyUrl() { + return this.notifyUrl; + } + + @Import(name="useProxy") + private @Nullable Output useProxy; + + public Optional> useProxy() { + return Optional.ofNullable(this.useProxy); + } + + private LogscaleActionVictorOpsActionArgs() {} + + private LogscaleActionVictorOpsActionArgs(LogscaleActionVictorOpsActionArgs $) { + this.messageType = $.messageType; + this.notifyUrl = $.notifyUrl; + this.useProxy = $.useProxy; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionVictorOpsActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionVictorOpsActionArgs $; + + public Builder() { + $ = new LogscaleActionVictorOpsActionArgs(); + } + + public Builder(LogscaleActionVictorOpsActionArgs defaults) { + $ = new LogscaleActionVictorOpsActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder messageType(Output messageType) { + $.messageType = messageType; + return this; + } + + public Builder messageType(String messageType) { + return messageType(Output.of(messageType)); + } + + public Builder notifyUrl(Output notifyUrl) { + $.notifyUrl = notifyUrl; + return this; + } + + public Builder notifyUrl(String notifyUrl) { + return notifyUrl(Output.of(notifyUrl)); + } + + public Builder useProxy(@Nullable Output useProxy) { + $.useProxy = useProxy; + return this; + } + + public Builder useProxy(Boolean useProxy) { + return useProxy(Output.of(useProxy)); + } + + public LogscaleActionVictorOpsActionArgs build() { + $.messageType = Objects.requireNonNull($.messageType, "expected parameter 'messageType' to be non-null"); + $.notifyUrl = Objects.requireNonNull($.notifyUrl, "expected parameter 'notifyUrl' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionWebhookActionArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionWebhookActionArgs.java new file mode 100644 index 00000000..e095cc6c --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleActionWebhookActionArgs.java @@ -0,0 +1,152 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleActionWebhookActionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleActionWebhookActionArgs Empty = new LogscaleActionWebhookActionArgs(); + + @Import(name="bodyTemplate") + private @Nullable Output bodyTemplate; + + public Optional> bodyTemplate() { + return Optional.ofNullable(this.bodyTemplate); + } + + @Import(name="headers") + private @Nullable Output> headers; + + public Optional>> headers() { + return Optional.ofNullable(this.headers); + } + + @Import(name="ignoreSsl") + private @Nullable Output ignoreSsl; + + public Optional> ignoreSsl() { + return Optional.ofNullable(this.ignoreSsl); + } + + @Import(name="method", required=true) + private Output method; + + public Output method() { + return this.method; + } + + @Import(name="url", required=true) + private Output url; + + public Output url() { + return this.url; + } + + @Import(name="useProxy") + private @Nullable Output useProxy; + + public Optional> useProxy() { + return Optional.ofNullable(this.useProxy); + } + + private LogscaleActionWebhookActionArgs() {} + + private LogscaleActionWebhookActionArgs(LogscaleActionWebhookActionArgs $) { + this.bodyTemplate = $.bodyTemplate; + this.headers = $.headers; + this.ignoreSsl = $.ignoreSsl; + this.method = $.method; + this.url = $.url; + this.useProxy = $.useProxy; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleActionWebhookActionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleActionWebhookActionArgs $; + + public Builder() { + $ = new LogscaleActionWebhookActionArgs(); + } + + public Builder(LogscaleActionWebhookActionArgs defaults) { + $ = new LogscaleActionWebhookActionArgs(Objects.requireNonNull(defaults)); + } + + public Builder bodyTemplate(@Nullable Output bodyTemplate) { + $.bodyTemplate = bodyTemplate; + return this; + } + + public Builder bodyTemplate(String bodyTemplate) { + return bodyTemplate(Output.of(bodyTemplate)); + } + + public Builder headers(@Nullable Output> headers) { + $.headers = headers; + return this; + } + + public Builder headers(Map headers) { + return headers(Output.of(headers)); + } + + public Builder ignoreSsl(@Nullable Output ignoreSsl) { + $.ignoreSsl = ignoreSsl; + return this; + } + + public Builder ignoreSsl(Boolean ignoreSsl) { + return ignoreSsl(Output.of(ignoreSsl)); + } + + public Builder method(Output method) { + $.method = method; + return this; + } + + public Builder method(String method) { + return method(Output.of(method)); + } + + public Builder url(Output url) { + $.url = url; + return this; + } + + public Builder url(String url) { + return url(Output.of(url)); + } + + public Builder useProxy(@Nullable Output useProxy) { + $.useProxy = useProxy; + return this; + } + + public Builder useProxy(Boolean useProxy) { + return useProxy(Output.of(useProxy)); + } + + public LogscaleActionWebhookActionArgs build() { + $.method = Objects.requireNonNull($.method, "expected parameter 'method' to be non-null"); + $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleAlertState.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleAlertState.java new file mode 100644 index 00000000..39d0fecb --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/LogscaleAlertState.java @@ -0,0 +1,337 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LogscaleAlertState extends com.pulumi.resources.ResourceArgs { + + public static final LogscaleAlertState Empty = new LogscaleAlertState(); + + @Import(name="actionIds") + private @Nullable Output> actionIds; + + public Optional>> actionIds() { + return Optional.ofNullable(this.actionIds); + } + + @Import(name="alertType") + private @Nullable Output alertType; + + public Optional> alertType() { + return Optional.ofNullable(this.alertType); + } + + @Import(name="description") + private @Nullable Output description; + + public Optional> description() { + return Optional.ofNullable(this.description); + } + + @Import(name="disabled") + private @Nullable Output disabled; + + public Optional> disabled() { + return Optional.ofNullable(this.disabled); + } + + @Import(name="name") + private @Nullable Output name; + + public Optional> name() { + return Optional.ofNullable(this.name); + } + + @Import(name="query") + private @Nullable Output query; + + public Optional> query() { + return Optional.ofNullable(this.query); + } + + @Import(name="repository") + private @Nullable Output repository; + + public Optional> repository() { + return Optional.ofNullable(this.repository); + } + + /** + * Email of the user that the alert runs on behalf of + * + */ + @Import(name="runAsUser") + private @Nullable Output runAsUser; + + /** + * @return Email of the user that the alert runs on behalf of + * + */ + public Optional> runAsUser() { + return Optional.ofNullable(this.runAsUser); + } + + @Import(name="slug") + private @Nullable Output slug; + + public Optional> slug() { + return Optional.ofNullable(this.slug); + } + + @Import(name="tags") + private @Nullable Output> tags; + + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * Required for STANDARD type alerts, optional for FILTER type alerts + * + */ + @Import(name="throttleDuration") + private @Nullable Output throttleDuration; + + /** + * @return Required for STANDARD type alerts, optional for FILTER type alerts + * + */ + public Optional> throttleDuration() { + return Optional.ofNullable(this.throttleDuration); + } + + @Import(name="throttleField") + private @Nullable Output throttleField; + + public Optional> throttleField() { + return Optional.ofNullable(this.throttleField); + } + + /** + * Required for STANDARD type alerts, ignored for FILTER type alerts + * + */ + @Import(name="timeWindow") + private @Nullable Output timeWindow; + + /** + * @return Required for STANDARD type alerts, ignored for FILTER type alerts + * + */ + public Optional> timeWindow() { + return Optional.ofNullable(this.timeWindow); + } + + private LogscaleAlertState() {} + + private LogscaleAlertState(LogscaleAlertState $) { + this.actionIds = $.actionIds; + this.alertType = $.alertType; + this.description = $.description; + this.disabled = $.disabled; + this.name = $.name; + this.query = $.query; + this.repository = $.repository; + this.runAsUser = $.runAsUser; + this.slug = $.slug; + this.tags = $.tags; + this.throttleDuration = $.throttleDuration; + this.throttleField = $.throttleField; + this.timeWindow = $.timeWindow; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LogscaleAlertState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LogscaleAlertState $; + + public Builder() { + $ = new LogscaleAlertState(); + } + + public Builder(LogscaleAlertState defaults) { + $ = new LogscaleAlertState(Objects.requireNonNull(defaults)); + } + + public Builder actionIds(@Nullable Output> actionIds) { + $.actionIds = actionIds; + return this; + } + + public Builder actionIds(List actionIds) { + return actionIds(Output.of(actionIds)); + } + + public Builder actionIds(String... actionIds) { + return actionIds(List.of(actionIds)); + } + + public Builder alertType(@Nullable Output alertType) { + $.alertType = alertType; + return this; + } + + public Builder alertType(String alertType) { + return alertType(Output.of(alertType)); + } + + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + public Builder description(String description) { + return description(Output.of(description)); + } + + public Builder disabled(@Nullable Output disabled) { + $.disabled = disabled; + return this; + } + + public Builder disabled(Boolean disabled) { + return disabled(Output.of(disabled)); + } + + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + public Builder name(String name) { + return name(Output.of(name)); + } + + public Builder query(@Nullable Output query) { + $.query = query; + return this; + } + + public Builder query(String query) { + return query(Output.of(query)); + } + + public Builder repository(@Nullable Output repository) { + $.repository = repository; + return this; + } + + public Builder repository(String repository) { + return repository(Output.of(repository)); + } + + /** + * @param runAsUser Email of the user that the alert runs on behalf of + * + * @return builder + * + */ + public Builder runAsUser(@Nullable Output runAsUser) { + $.runAsUser = runAsUser; + return this; + } + + /** + * @param runAsUser Email of the user that the alert runs on behalf of + * + * @return builder + * + */ + public Builder runAsUser(String runAsUser) { + return runAsUser(Output.of(runAsUser)); + } + + public Builder slug(@Nullable Output slug) { + $.slug = slug; + return this; + } + + public Builder slug(String slug) { + return slug(Output.of(slug)); + } + + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + public Builder tags(List tags) { + return tags(Output.of(tags)); + } + + public Builder tags(String... tags) { + return tags(List.of(tags)); + } + + /** + * @param throttleDuration Required for STANDARD type alerts, optional for FILTER type alerts + * + * @return builder + * + */ + public Builder throttleDuration(@Nullable Output throttleDuration) { + $.throttleDuration = throttleDuration; + return this; + } + + /** + * @param throttleDuration Required for STANDARD type alerts, optional for FILTER type alerts + * + * @return builder + * + */ + public Builder throttleDuration(String throttleDuration) { + return throttleDuration(Output.of(throttleDuration)); + } + + public Builder throttleField(@Nullable Output throttleField) { + $.throttleField = throttleField; + return this; + } + + public Builder throttleField(String throttleField) { + return throttleField(Output.of(throttleField)); + } + + /** + * @param timeWindow Required for STANDARD type alerts, ignored for FILTER type alerts + * + * @return builder + * + */ + public Builder timeWindow(@Nullable Output timeWindow) { + $.timeWindow = timeWindow; + return this; + } + + /** + * @param timeWindow Required for STANDARD type alerts, ignored for FILTER type alerts + * + * @return builder + * + */ + public Builder timeWindow(String timeWindow) { + return timeWindow(Output.of(timeWindow)); + } + + public LogscaleAlertState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.java index 67b25945..09a5fda7 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationArgs.java @@ -5,24 +5,36 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs; import java.lang.Double; +import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class ResourcePoolsConfigDefaultPoolAllocationArgs extends com.pulumi.resources.ResourceArgs { public static final ResourcePoolsConfigDefaultPoolAllocationArgs Empty = new ResourcePoolsConfigDefaultPoolAllocationArgs(); - @Import(name="percentOfLicense", required=true) - private Output percentOfLicense; + @Import(name="fixedValues") + private @Nullable Output> fixedValues; - public Output percentOfLicense() { - return this.percentOfLicense; + public Optional>> fixedValues() { + return Optional.ofNullable(this.fixedValues); + } + + @Import(name="percentOfLicense") + private @Nullable Output percentOfLicense; + + public Optional> percentOfLicense() { + return Optional.ofNullable(this.percentOfLicense); } private ResourcePoolsConfigDefaultPoolAllocationArgs() {} private ResourcePoolsConfigDefaultPoolAllocationArgs(ResourcePoolsConfigDefaultPoolAllocationArgs $) { + this.fixedValues = $.fixedValues; this.percentOfLicense = $.percentOfLicense; } @@ -44,7 +56,20 @@ public Builder(ResourcePoolsConfigDefaultPoolAllocationArgs defaults) { $ = new ResourcePoolsConfigDefaultPoolAllocationArgs(Objects.requireNonNull(defaults)); } - public Builder percentOfLicense(Output percentOfLicense) { + public Builder fixedValues(@Nullable Output> fixedValues) { + $.fixedValues = fixedValues; + return this; + } + + public Builder fixedValues(List fixedValues) { + return fixedValues(Output.of(fixedValues)); + } + + public Builder fixedValues(ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs... fixedValues) { + return fixedValues(List.of(fixedValues)); + } + + public Builder percentOfLicense(@Nullable Output percentOfLicense) { $.percentOfLicense = percentOfLicense; return this; } @@ -54,7 +79,6 @@ public Builder percentOfLicense(Double percentOfLicense) { } public ResourcePoolsConfigDefaultPoolAllocationArgs build() { - $.percentOfLicense = Objects.requireNonNull($.percentOfLicense, "expected parameter 'percentOfLicense' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.java new file mode 100644 index 00000000..15d61564 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.java @@ -0,0 +1,81 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs extends com.pulumi.resources.ResourceArgs { + + public static final ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs Empty = new ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs(); + + @Import(name="license", required=true) + private Output license; + + public Output license() { + return this.license; + } + + @Import(name="value", required=true) + private Output value; + + public Output value() { + return this.value; + } + + private ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs() {} + + private ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs(ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs $) { + this.license = $.license; + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs $; + + public Builder() { + $ = new ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs(); + } + + public Builder(ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs defaults) { + $ = new ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs(Objects.requireNonNull(defaults)); + } + + public Builder license(Output license) { + $.license = license; + return this; + } + + public Builder license(String license) { + return license(Output.of(license)); + } + + public Builder value(Output value) { + $.value = value; + return this; + } + + public Builder value(Integer value) { + return value(Output.of(value)); + } + + public ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs build() { + $.license = Objects.requireNonNull($.license, "expected parameter 'license' to be non-null"); + $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolArgs.java index b7433aeb..34d8f19c 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigDefaultPoolArgs.java @@ -16,11 +16,11 @@ public final class ResourcePoolsConfigDefaultPoolArgs extends com.pulumi.resourc public static final ResourcePoolsConfigDefaultPoolArgs Empty = new ResourcePoolsConfigDefaultPoolArgs(); - @Import(name="allocation", required=true) - private Output allocation; + @Import(name="allocation") + private @Nullable Output allocation; - public Output allocation() { - return this.allocation; + public Optional> allocation() { + return Optional.ofNullable(this.allocation); } @Import(name="priorities") @@ -55,7 +55,7 @@ public Builder(ResourcePoolsConfigDefaultPoolArgs defaults) { $ = new ResourcePoolsConfigDefaultPoolArgs(Objects.requireNonNull(defaults)); } - public Builder allocation(Output allocation) { + public Builder allocation(@Nullable Output allocation) { $.allocation = allocation; return this; } @@ -74,7 +74,6 @@ public Builder priorities(ResourcePoolsConfigDefaultPoolPrioritiesArgs prioritie } public ResourcePoolsConfigDefaultPoolArgs build() { - $.allocation = Objects.requireNonNull($.allocation, "expected parameter 'allocation' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationArgs.java index eb141d9a..c8c3f70f 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationArgs.java @@ -5,24 +5,36 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import io.chronosphere.chronosphere.inputs.ResourcePoolsConfigPoolAllocationFixedValueArgs; import java.lang.Double; +import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class ResourcePoolsConfigPoolAllocationArgs extends com.pulumi.resources.ResourceArgs { public static final ResourcePoolsConfigPoolAllocationArgs Empty = new ResourcePoolsConfigPoolAllocationArgs(); - @Import(name="percentOfLicense", required=true) - private Output percentOfLicense; + @Import(name="fixedValues") + private @Nullable Output> fixedValues; - public Output percentOfLicense() { - return this.percentOfLicense; + public Optional>> fixedValues() { + return Optional.ofNullable(this.fixedValues); + } + + @Import(name="percentOfLicense") + private @Nullable Output percentOfLicense; + + public Optional> percentOfLicense() { + return Optional.ofNullable(this.percentOfLicense); } private ResourcePoolsConfigPoolAllocationArgs() {} private ResourcePoolsConfigPoolAllocationArgs(ResourcePoolsConfigPoolAllocationArgs $) { + this.fixedValues = $.fixedValues; this.percentOfLicense = $.percentOfLicense; } @@ -44,7 +56,20 @@ public Builder(ResourcePoolsConfigPoolAllocationArgs defaults) { $ = new ResourcePoolsConfigPoolAllocationArgs(Objects.requireNonNull(defaults)); } - public Builder percentOfLicense(Output percentOfLicense) { + public Builder fixedValues(@Nullable Output> fixedValues) { + $.fixedValues = fixedValues; + return this; + } + + public Builder fixedValues(List fixedValues) { + return fixedValues(Output.of(fixedValues)); + } + + public Builder fixedValues(ResourcePoolsConfigPoolAllocationFixedValueArgs... fixedValues) { + return fixedValues(List.of(fixedValues)); + } + + public Builder percentOfLicense(@Nullable Output percentOfLicense) { $.percentOfLicense = percentOfLicense; return this; } @@ -54,7 +79,6 @@ public Builder percentOfLicense(Double percentOfLicense) { } public ResourcePoolsConfigPoolAllocationArgs build() { - $.percentOfLicense = Objects.requireNonNull($.percentOfLicense, "expected parameter 'percentOfLicense' to be non-null"); return $; } } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.java new file mode 100644 index 00000000..45628105 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolAllocationFixedValueArgs.java @@ -0,0 +1,81 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class ResourcePoolsConfigPoolAllocationFixedValueArgs extends com.pulumi.resources.ResourceArgs { + + public static final ResourcePoolsConfigPoolAllocationFixedValueArgs Empty = new ResourcePoolsConfigPoolAllocationFixedValueArgs(); + + @Import(name="license", required=true) + private Output license; + + public Output license() { + return this.license; + } + + @Import(name="value", required=true) + private Output value; + + public Output value() { + return this.value; + } + + private ResourcePoolsConfigPoolAllocationFixedValueArgs() {} + + private ResourcePoolsConfigPoolAllocationFixedValueArgs(ResourcePoolsConfigPoolAllocationFixedValueArgs $) { + this.license = $.license; + this.value = $.value; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ResourcePoolsConfigPoolAllocationFixedValueArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ResourcePoolsConfigPoolAllocationFixedValueArgs $; + + public Builder() { + $ = new ResourcePoolsConfigPoolAllocationFixedValueArgs(); + } + + public Builder(ResourcePoolsConfigPoolAllocationFixedValueArgs defaults) { + $ = new ResourcePoolsConfigPoolAllocationFixedValueArgs(Objects.requireNonNull(defaults)); + } + + public Builder license(Output license) { + $.license = license; + return this; + } + + public Builder license(String license) { + return license(Output.of(license)); + } + + public Builder value(Output value) { + $.value = value; + return this; + } + + public Builder value(Integer value) { + return value(Output.of(value)); + } + + public ResourcePoolsConfigPoolAllocationFixedValueArgs build() { + $.license = Objects.requireNonNull($.license, "expected parameter 'license' to be non-null"); + $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolArgs.java index cb02db18..3aa25768 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/ResourcePoolsConfigPoolArgs.java @@ -18,11 +18,11 @@ public final class ResourcePoolsConfigPoolArgs extends com.pulumi.resources.Reso public static final ResourcePoolsConfigPoolArgs Empty = new ResourcePoolsConfigPoolArgs(); - @Import(name="allocation", required=true) - private Output allocation; + @Import(name="allocation") + private @Nullable Output allocation; - public Output allocation() { - return this.allocation; + public Optional> allocation() { + return Optional.ofNullable(this.allocation); } /** @@ -93,7 +93,7 @@ public Builder(ResourcePoolsConfigPoolArgs defaults) { $ = new ResourcePoolsConfigPoolArgs(Objects.requireNonNull(defaults)); } - public Builder allocation(Output allocation) { + public Builder allocation(@Nullable Output allocation) { $.allocation = allocation; return this; } @@ -159,7 +159,6 @@ public Builder priorities(ResourcePoolsConfigPoolPrioritiesArgs priorities) { } public ResourcePoolsConfigPoolArgs build() { - $.allocation = Objects.requireNonNull($.allocation, "expected parameter 'allocation' to be non-null"); $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); return $; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanArgs.java index 834f9e64..513d5ca4 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanArgs.java @@ -80,28 +80,9 @@ public Optional> spanCount( return Optional.ofNullable(this.spanCount); } - @Import(name="tag") - private @Nullable Output> tag; - - public Optional>> tag() { - return Optional.ofNullable(this.tag); - } - - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ @Import(name="tags") private @Nullable Output> tags; - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Optional>> tags() { return Optional.ofNullable(this.tags); } @@ -117,7 +98,6 @@ private TraceMetricsRuleTraceFilterSpanArgs(TraceMetricsRuleTraceFilterSpanArgs this.parentService = $.parentService; this.service = $.service; this.spanCount = $.spanCount; - this.tag = $.tag; this.tags = $.tags; } @@ -211,52 +191,15 @@ public Builder spanCount(TraceMetricsRuleTraceFilterSpanSpanCountArgs spanCount) return spanCount(Output.of(spanCount)); } - public Builder tag(@Nullable Output> tag) { - $.tag = tag; - return this; - } - - public Builder tag(List tag) { - return tag(Output.of(tag)); - } - - public Builder tag(TraceMetricsRuleTraceFilterSpanTagArgs... tag) { - return tag(List.of(tag)); - } - - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(@Nullable Output> tags) { $.tags = tags; return this; } - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(List tags) { return tags(Output.of(tags)); } - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(TraceMetricsRuleTraceFilterSpanTagArgs... tags) { return tags(List.of(tags)); } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.java index 3b698acb..ac2ae287 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterSpanDurationArgs.java @@ -15,25 +15,6 @@ public final class TraceMetricsRuleTraceFilterSpanDurationArgs extends com.pulum public static final TraceMetricsRuleTraceFilterSpanDurationArgs Empty = new TraceMetricsRuleTraceFilterSpanDurationArgs(); - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - @Import(name="maxSeconds") - private @Nullable Output maxSeconds; - - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional> maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } - @Import(name="maxSecs") private @Nullable Output maxSecs; @@ -41,25 +22,6 @@ public Optional> maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - @Import(name="minSeconds") - private @Nullable Output minSeconds; - - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional> minSeconds() { - return Optional.ofNullable(this.minSeconds); - } - @Import(name="minSecs") private @Nullable Output minSecs; @@ -70,9 +32,7 @@ public Optional> minSecs() { private TraceMetricsRuleTraceFilterSpanDurationArgs() {} private TraceMetricsRuleTraceFilterSpanDurationArgs(TraceMetricsRuleTraceFilterSpanDurationArgs $) { - this.maxSeconds = $.maxSeconds; this.maxSecs = $.maxSecs; - this.minSeconds = $.minSeconds; this.minSecs = $.minSecs; } @@ -94,31 +54,6 @@ public Builder(TraceMetricsRuleTraceFilterSpanDurationArgs defaults) { $ = new TraceMetricsRuleTraceFilterSpanDurationArgs(Objects.requireNonNull(defaults)); } - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(@Nullable Output maxSeconds) { - $.maxSeconds = maxSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(Double maxSeconds) { - return maxSeconds(Output.of(maxSeconds)); - } - public Builder maxSecs(@Nullable Output maxSecs) { $.maxSecs = maxSecs; return this; @@ -128,31 +63,6 @@ public Builder maxSecs(Double maxSecs) { return maxSecs(Output.of(maxSecs)); } - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(@Nullable Output minSeconds) { - $.minSeconds = minSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(Double minSeconds) { - return minSeconds(Output.of(minSeconds)); - } - public Builder minSecs(@Nullable Output minSecs) { $.minSecs = minSecs; return this; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.java index aaa392d5..eedfe275 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceMetricsRuleTraceFilterTraceDurationArgs.java @@ -15,25 +15,6 @@ public final class TraceMetricsRuleTraceFilterTraceDurationArgs extends com.pulu public static final TraceMetricsRuleTraceFilterTraceDurationArgs Empty = new TraceMetricsRuleTraceFilterTraceDurationArgs(); - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - @Import(name="maxSeconds") - private @Nullable Output maxSeconds; - - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional> maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } - @Import(name="maxSecs") private @Nullable Output maxSecs; @@ -41,25 +22,6 @@ public Optional> maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - @Import(name="minSeconds") - private @Nullable Output minSeconds; - - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional> minSeconds() { - return Optional.ofNullable(this.minSeconds); - } - @Import(name="minSecs") private @Nullable Output minSecs; @@ -70,9 +32,7 @@ public Optional> minSecs() { private TraceMetricsRuleTraceFilterTraceDurationArgs() {} private TraceMetricsRuleTraceFilterTraceDurationArgs(TraceMetricsRuleTraceFilterTraceDurationArgs $) { - this.maxSeconds = $.maxSeconds; this.maxSecs = $.maxSecs; - this.minSeconds = $.minSeconds; this.minSecs = $.minSecs; } @@ -94,31 +54,6 @@ public Builder(TraceMetricsRuleTraceFilterTraceDurationArgs defaults) { $ = new TraceMetricsRuleTraceFilterTraceDurationArgs(Objects.requireNonNull(defaults)); } - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(@Nullable Output maxSeconds) { - $.maxSeconds = maxSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(Double maxSeconds) { - return maxSeconds(Output.of(maxSeconds)); - } - public Builder maxSecs(@Nullable Output maxSecs) { $.maxSecs = maxSecs; return this; @@ -128,31 +63,6 @@ public Builder maxSecs(Double maxSecs) { return maxSecs(Output.of(maxSecs)); } - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(@Nullable Output minSeconds) { - $.minSeconds = minSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(Double minSeconds) { - return minSeconds(Output.of(minSeconds)); - } - public Builder minSecs(@Nullable Output minSecs) { $.minSecs = minSecs; return this; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanArgs.java index 42c6986f..2f2cfb22 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanArgs.java @@ -80,28 +80,9 @@ public Optional> spanC return Optional.ofNullable(this.spanCount); } - @Import(name="tag") - private @Nullable Output> tag; - - public Optional>> tag() { - return Optional.ofNullable(this.tag); - } - - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ @Import(name="tags") private @Nullable Output> tags; - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Optional>> tags() { return Optional.ofNullable(this.tags); } @@ -117,7 +98,6 @@ private TraceTailSamplingRulesRuleFilterSpanArgs(TraceTailSamplingRulesRuleFilte this.parentService = $.parentService; this.service = $.service; this.spanCount = $.spanCount; - this.tag = $.tag; this.tags = $.tags; } @@ -211,52 +191,15 @@ public Builder spanCount(TraceTailSamplingRulesRuleFilterSpanSpanCountArgs spanC return spanCount(Output.of(spanCount)); } - public Builder tag(@Nullable Output> tag) { - $.tag = tag; - return this; - } - - public Builder tag(List tag) { - return tag(Output.of(tag)); - } - - public Builder tag(TraceTailSamplingRulesRuleFilterSpanTagArgs... tag) { - return tag(List.of(tag)); - } - - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(@Nullable Output> tags) { $.tags = tags; return this; } - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(List tags) { return tags(Output.of(tags)); } - /** - * @return builder - * - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public Builder tags(TraceTailSamplingRulesRuleFilterSpanTagArgs... tags) { return tags(List.of(tags)); } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.java index cbfa4ad2..4c033ff7 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterSpanDurationArgs.java @@ -15,25 +15,6 @@ public final class TraceTailSamplingRulesRuleFilterSpanDurationArgs extends com. public static final TraceTailSamplingRulesRuleFilterSpanDurationArgs Empty = new TraceTailSamplingRulesRuleFilterSpanDurationArgs(); - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - @Import(name="maxSeconds") - private @Nullable Output maxSeconds; - - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional> maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } - @Import(name="maxSecs") private @Nullable Output maxSecs; @@ -41,25 +22,6 @@ public Optional> maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - @Import(name="minSeconds") - private @Nullable Output minSeconds; - - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional> minSeconds() { - return Optional.ofNullable(this.minSeconds); - } - @Import(name="minSecs") private @Nullable Output minSecs; @@ -70,9 +32,7 @@ public Optional> minSecs() { private TraceTailSamplingRulesRuleFilterSpanDurationArgs() {} private TraceTailSamplingRulesRuleFilterSpanDurationArgs(TraceTailSamplingRulesRuleFilterSpanDurationArgs $) { - this.maxSeconds = $.maxSeconds; this.maxSecs = $.maxSecs; - this.minSeconds = $.minSeconds; this.minSecs = $.minSecs; } @@ -94,31 +54,6 @@ public Builder(TraceTailSamplingRulesRuleFilterSpanDurationArgs defaults) { $ = new TraceTailSamplingRulesRuleFilterSpanDurationArgs(Objects.requireNonNull(defaults)); } - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(@Nullable Output maxSeconds) { - $.maxSeconds = maxSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(Double maxSeconds) { - return maxSeconds(Output.of(maxSeconds)); - } - public Builder maxSecs(@Nullable Output maxSecs) { $.maxSecs = maxSecs; return this; @@ -128,31 +63,6 @@ public Builder maxSecs(Double maxSecs) { return maxSecs(Output.of(maxSecs)); } - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(@Nullable Output minSeconds) { - $.minSeconds = minSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(Double minSeconds) { - return minSeconds(Output.of(minSeconds)); - } - public Builder minSecs(@Nullable Output minSecs) { $.minSecs = minSecs; return this; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.java index beeee072..7b927d1c 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/inputs/TraceTailSamplingRulesRuleFilterTraceDurationArgs.java @@ -15,25 +15,6 @@ public final class TraceTailSamplingRulesRuleFilterTraceDurationArgs extends com public static final TraceTailSamplingRulesRuleFilterTraceDurationArgs Empty = new TraceTailSamplingRulesRuleFilterTraceDurationArgs(); - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - @Import(name="maxSeconds") - private @Nullable Output maxSeconds; - - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional> maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } - @Import(name="maxSecs") private @Nullable Output maxSecs; @@ -41,25 +22,6 @@ public Optional> maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - @Import(name="minSeconds") - private @Nullable Output minSeconds; - - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional> minSeconds() { - return Optional.ofNullable(this.minSeconds); - } - @Import(name="minSecs") private @Nullable Output minSecs; @@ -70,9 +32,7 @@ public Optional> minSecs() { private TraceTailSamplingRulesRuleFilterTraceDurationArgs() {} private TraceTailSamplingRulesRuleFilterTraceDurationArgs(TraceTailSamplingRulesRuleFilterTraceDurationArgs $) { - this.maxSeconds = $.maxSeconds; this.maxSecs = $.maxSecs; - this.minSeconds = $.minSeconds; this.minSecs = $.minSecs; } @@ -94,31 +54,6 @@ public Builder(TraceTailSamplingRulesRuleFilterTraceDurationArgs defaults) { $ = new TraceTailSamplingRulesRuleFilterTraceDurationArgs(Objects.requireNonNull(defaults)); } - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(@Nullable Output maxSeconds) { - $.maxSeconds = maxSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Builder maxSeconds(Double maxSeconds) { - return maxSeconds(Output.of(maxSeconds)); - } - public Builder maxSecs(@Nullable Output maxSecs) { $.maxSecs = maxSecs; return this; @@ -128,31 +63,6 @@ public Builder maxSecs(Double maxSecs) { return maxSecs(Output.of(maxSecs)); } - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(@Nullable Output minSeconds) { - $.minSeconds = minSeconds; - return this; - } - - /** - * @return builder - * - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Builder minSeconds(Double minSeconds) { - return minSeconds(Output.of(minSeconds)); - } - public Builder minSecs(@Nullable Output minSecs) { $.minSecs = minSecs; return this; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfiguration.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfiguration.java index fa16f847..4fd11993 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfiguration.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfiguration.java @@ -4,6 +4,7 @@ package io.chronosphere.chronosphere.outputs; import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.DatasetConfigurationLogDataset; import io.chronosphere.chronosphere.outputs.DatasetConfigurationTraceDataset; import java.lang.String; import java.util.Objects; @@ -12,10 +13,14 @@ @CustomType public final class DatasetConfiguration { + private @Nullable DatasetConfigurationLogDataset logDataset; private @Nullable DatasetConfigurationTraceDataset traceDataset; private String type; private DatasetConfiguration() {} + public Optional logDataset() { + return Optional.ofNullable(this.logDataset); + } public Optional traceDataset() { return Optional.ofNullable(this.traceDataset); } @@ -32,15 +37,22 @@ public static Builder builder(DatasetConfiguration defaults) { } @CustomType.Builder public static final class Builder { + private @Nullable DatasetConfigurationLogDataset logDataset; private @Nullable DatasetConfigurationTraceDataset traceDataset; private String type; public Builder() {} public Builder(DatasetConfiguration defaults) { Objects.requireNonNull(defaults); + this.logDataset = defaults.logDataset; this.traceDataset = defaults.traceDataset; this.type = defaults.type; } + @CustomType.Setter + public Builder logDataset(@Nullable DatasetConfigurationLogDataset logDataset) { + this.logDataset = logDataset; + return this; + } @CustomType.Setter public Builder traceDataset(@Nullable DatasetConfigurationTraceDataset traceDataset) { this.traceDataset = traceDataset; @@ -53,6 +65,7 @@ public Builder type(String type) { } public DatasetConfiguration build() { final var o = new DatasetConfiguration(); + o.logDataset = logDataset; o.traceDataset = traceDataset; o.type = type; return o; diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDataset.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDataset.java new file mode 100644 index 00000000..b3d74854 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDataset.java @@ -0,0 +1,48 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.DatasetConfigurationLogDatasetMatchCriteria; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class DatasetConfigurationLogDataset { + private @Nullable DatasetConfigurationLogDatasetMatchCriteria matchCriteria; + + private DatasetConfigurationLogDataset() {} + public Optional matchCriteria() { + return Optional.ofNullable(this.matchCriteria); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(DatasetConfigurationLogDataset defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable DatasetConfigurationLogDatasetMatchCriteria matchCriteria; + public Builder() {} + public Builder(DatasetConfigurationLogDataset defaults) { + Objects.requireNonNull(defaults); + this.matchCriteria = defaults.matchCriteria; + } + + @CustomType.Setter + public Builder matchCriteria(@Nullable DatasetConfigurationLogDatasetMatchCriteria matchCriteria) { + this.matchCriteria = matchCriteria; + return this; + } + public DatasetConfigurationLogDataset build() { + final var o = new DatasetConfigurationLogDataset(); + o.matchCriteria = matchCriteria; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDatasetMatchCriteria.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDatasetMatchCriteria.java new file mode 100644 index 00000000..33df1e24 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationLogDatasetMatchCriteria.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class DatasetConfigurationLogDatasetMatchCriteria { + private String query; + + private DatasetConfigurationLogDatasetMatchCriteria() {} + public String query() { + return this.query; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(DatasetConfigurationLogDatasetMatchCriteria defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String query; + public Builder() {} + public Builder(DatasetConfigurationLogDatasetMatchCriteria defaults) { + Objects.requireNonNull(defaults); + this.query = defaults.query; + } + + @CustomType.Setter + public Builder query(String query) { + this.query = Objects.requireNonNull(query); + return this; + } + public DatasetConfigurationLogDatasetMatchCriteria build() { + final var o = new DatasetConfigurationLogDatasetMatchCriteria(); + o.query = query; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.java index c4473fed..b89c1e01 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpan.java @@ -28,13 +28,6 @@ public final class DatasetConfigurationTraceDatasetMatchCriteriaSpan { private @Nullable DatasetConfigurationTraceDatasetMatchCriteriaSpanParentService parentService; private @Nullable DatasetConfigurationTraceDatasetMatchCriteriaSpanService service; private @Nullable DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount spanCount; - private @Nullable List tag; - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ private @Nullable List tags; private DatasetConfigurationTraceDatasetMatchCriteriaSpan() {} @@ -62,15 +55,6 @@ public Optional servic public Optional spanCount() { return Optional.ofNullable(this.spanCount); } - public List tag() { - return this.tag == null ? List.of() : this.tag; - } - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public List tags() { return this.tags == null ? List.of() : this.tags; } @@ -92,7 +76,6 @@ public static final class Builder { private @Nullable DatasetConfigurationTraceDatasetMatchCriteriaSpanParentService parentService; private @Nullable DatasetConfigurationTraceDatasetMatchCriteriaSpanService service; private @Nullable DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount spanCount; - private @Nullable List tag; private @Nullable List tags; public Builder() {} public Builder(DatasetConfigurationTraceDatasetMatchCriteriaSpan defaults) { @@ -105,7 +88,6 @@ public Builder(DatasetConfigurationTraceDatasetMatchCriteriaSpan defaults) { this.parentService = defaults.parentService; this.service = defaults.service; this.spanCount = defaults.spanCount; - this.tag = defaults.tag; this.tags = defaults.tags; } @@ -150,14 +132,6 @@ public Builder spanCount(@Nullable DatasetConfigurationTraceDatasetMatchCriteria return this; } @CustomType.Setter - public Builder tag(@Nullable List tag) { - this.tag = tag; - return this; - } - public Builder tag(DatasetConfigurationTraceDatasetMatchCriteriaSpanTag... tag) { - return tag(List.of(tag)); - } - @CustomType.Setter public Builder tags(@Nullable List tags) { this.tags = tags; return this; @@ -175,7 +149,6 @@ public DatasetConfigurationTraceDatasetMatchCriteriaSpan build() { o.parentService = parentService; o.service = service; o.spanCount = spanCount; - o.tag = tag; o.tags = tags; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.java index 2a8bc4ad..cbaccdb2 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration.java @@ -11,45 +11,13 @@ @CustomType public final class DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration { - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - private @Nullable Double minSeconds; private @Nullable Double minSecs; private DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration() {} - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } public Optional maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional minSeconds() { - return Optional.ofNullable(this.minSeconds); - } public Optional minSecs() { return Optional.ofNullable(this.minSecs); } @@ -63,44 +31,28 @@ public static Builder builder(DatasetConfigurationTraceDatasetMatchCriteriaSpanD } @CustomType.Builder public static final class Builder { - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - private @Nullable Double minSeconds; private @Nullable Double minSecs; public Builder() {} public Builder(DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration defaults) { Objects.requireNonNull(defaults); - this.maxSeconds = defaults.maxSeconds; this.maxSecs = defaults.maxSecs; - this.minSeconds = defaults.minSeconds; this.minSecs = defaults.minSecs; } - @CustomType.Setter - public Builder maxSeconds(@Nullable Double maxSeconds) { - this.maxSeconds = maxSeconds; - return this; - } @CustomType.Setter public Builder maxSecs(@Nullable Double maxSecs) { this.maxSecs = maxSecs; return this; } @CustomType.Setter - public Builder minSeconds(@Nullable Double minSeconds) { - this.minSeconds = minSeconds; - return this; - } - @CustomType.Setter public Builder minSecs(@Nullable Double minSecs) { this.minSecs = minSecs; return this; } public DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration build() { final var o = new DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration(); - o.maxSeconds = maxSeconds; o.maxSecs = maxSecs; - o.minSeconds = minSeconds; o.minSecs = minSecs; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.java index 87a0a6f5..89eb6c20 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration.java @@ -11,45 +11,13 @@ @CustomType public final class DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration { - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - private @Nullable Double minSeconds; private @Nullable Double minSecs; private DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration() {} - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } public Optional maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional minSeconds() { - return Optional.ofNullable(this.minSeconds); - } public Optional minSecs() { return Optional.ofNullable(this.minSecs); } @@ -63,44 +31,28 @@ public static Builder builder(DatasetConfigurationTraceDatasetMatchCriteriaTrace } @CustomType.Builder public static final class Builder { - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - private @Nullable Double minSeconds; private @Nullable Double minSecs; public Builder() {} public Builder(DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration defaults) { Objects.requireNonNull(defaults); - this.maxSeconds = defaults.maxSeconds; this.maxSecs = defaults.maxSecs; - this.minSeconds = defaults.minSeconds; this.minSecs = defaults.minSecs; } - @CustomType.Setter - public Builder maxSeconds(@Nullable Double maxSeconds) { - this.maxSeconds = maxSeconds; - return this; - } @CustomType.Setter public Builder maxSecs(@Nullable Double maxSecs) { this.maxSecs = maxSecs; return this; } @CustomType.Setter - public Builder minSeconds(@Nullable Double minSeconds) { - this.minSeconds = minSeconds; - return this; - } - @CustomType.Setter public Builder minSecs(@Nullable Double minSecs) { this.minSecs = minSecs; return this; } public DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration build() { final var o = new DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration(); - o.maxSeconds = maxSeconds; o.maxSecs = maxSecs; - o.minSeconds = minSeconds; o.minSecs = minSecs; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocation.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocation.java new file mode 100644 index 00000000..647d13fc --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocation.java @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDatasetAllocationAllocation; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDatasetAllocationPriorities; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogAllocationConfigDatasetAllocation { + private LogAllocationConfigDatasetAllocationAllocation allocation; + private String datasetId; + private @Nullable LogAllocationConfigDatasetAllocationPriorities priorities; + + private LogAllocationConfigDatasetAllocation() {} + public LogAllocationConfigDatasetAllocationAllocation allocation() { + return this.allocation; + } + public String datasetId() { + return this.datasetId; + } + public Optional priorities() { + return Optional.ofNullable(this.priorities); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDatasetAllocation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private LogAllocationConfigDatasetAllocationAllocation allocation; + private String datasetId; + private @Nullable LogAllocationConfigDatasetAllocationPriorities priorities; + public Builder() {} + public Builder(LogAllocationConfigDatasetAllocation defaults) { + Objects.requireNonNull(defaults); + this.allocation = defaults.allocation; + this.datasetId = defaults.datasetId; + this.priorities = defaults.priorities; + } + + @CustomType.Setter + public Builder allocation(LogAllocationConfigDatasetAllocationAllocation allocation) { + this.allocation = Objects.requireNonNull(allocation); + return this; + } + @CustomType.Setter + public Builder datasetId(String datasetId) { + this.datasetId = Objects.requireNonNull(datasetId); + return this; + } + @CustomType.Setter + public Builder priorities(@Nullable LogAllocationConfigDatasetAllocationPriorities priorities) { + this.priorities = priorities; + return this; + } + public LogAllocationConfigDatasetAllocation build() { + final var o = new LogAllocationConfigDatasetAllocation(); + o.allocation = allocation; + o.datasetId = datasetId; + o.priorities = priorities; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationAllocation.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationAllocation.java new file mode 100644 index 00000000..4c94e276 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationAllocation.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Double; +import java.util.Objects; + +@CustomType +public final class LogAllocationConfigDatasetAllocationAllocation { + private Double percentOfLicense; + + private LogAllocationConfigDatasetAllocationAllocation() {} + public Double percentOfLicense() { + return this.percentOfLicense; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDatasetAllocationAllocation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Double percentOfLicense; + public Builder() {} + public Builder(LogAllocationConfigDatasetAllocationAllocation defaults) { + Objects.requireNonNull(defaults); + this.percentOfLicense = defaults.percentOfLicense; + } + + @CustomType.Setter + public Builder percentOfLicense(Double percentOfLicense) { + this.percentOfLicense = Objects.requireNonNull(percentOfLicense); + return this; + } + public LogAllocationConfigDatasetAllocationAllocation build() { + final var o = new LogAllocationConfigDatasetAllocationAllocation(); + o.percentOfLicense = percentOfLicense; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPriorities.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPriorities.java new file mode 100644 index 00000000..f1112152 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPriorities.java @@ -0,0 +1,67 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter; +import java.util.List; +import java.util.Objects; +import javax.annotation.Nullable; + +@CustomType +public final class LogAllocationConfigDatasetAllocationPriorities { + private @Nullable List highPriorityFilters; + private @Nullable List lowPriorityFilters; + + private LogAllocationConfigDatasetAllocationPriorities() {} + public List highPriorityFilters() { + return this.highPriorityFilters == null ? List.of() : this.highPriorityFilters; + } + public List lowPriorityFilters() { + return this.lowPriorityFilters == null ? List.of() : this.lowPriorityFilters; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDatasetAllocationPriorities defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable List highPriorityFilters; + private @Nullable List lowPriorityFilters; + public Builder() {} + public Builder(LogAllocationConfigDatasetAllocationPriorities defaults) { + Objects.requireNonNull(defaults); + this.highPriorityFilters = defaults.highPriorityFilters; + this.lowPriorityFilters = defaults.lowPriorityFilters; + } + + @CustomType.Setter + public Builder highPriorityFilters(@Nullable List highPriorityFilters) { + this.highPriorityFilters = highPriorityFilters; + return this; + } + public Builder highPriorityFilters(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter... highPriorityFilters) { + return highPriorityFilters(List.of(highPriorityFilters)); + } + @CustomType.Setter + public Builder lowPriorityFilters(@Nullable List lowPriorityFilters) { + this.lowPriorityFilters = lowPriorityFilters; + return this; + } + public Builder lowPriorityFilters(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter... lowPriorityFilters) { + return lowPriorityFilters(List.of(lowPriorityFilters)); + } + public LogAllocationConfigDatasetAllocationPriorities build() { + final var o = new LogAllocationConfigDatasetAllocationPriorities(); + o.highPriorityFilters = highPriorityFilters; + o.lowPriorityFilters = lowPriorityFilters; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.java new file mode 100644 index 00000000..68b02575 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter { + private String query; + + private LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter() {} + public String query() { + return this.query; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String query; + public Builder() {} + public Builder(LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter defaults) { + Objects.requireNonNull(defaults); + this.query = defaults.query; + } + + @CustomType.Setter + public Builder query(String query) { + this.query = Objects.requireNonNull(query); + return this; + } + public LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter build() { + final var o = new LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter(); + o.query = query; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.java new file mode 100644 index 00000000..51e6ff90 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter { + private String query; + + private LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter() {} + public String query() { + return this.query; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String query; + public Builder() {} + public Builder(LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter defaults) { + Objects.requireNonNull(defaults); + this.query = defaults.query; + } + + @CustomType.Setter + public Builder query(String query) { + this.query = Objects.requireNonNull(query); + return this; + } + public LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter build() { + final var o = new LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter(); + o.query = query; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDataset.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDataset.java new file mode 100644 index 00000000..9224ee1f --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDataset.java @@ -0,0 +1,61 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDefaultDatasetAllocation; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDefaultDatasetPriorities; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogAllocationConfigDefaultDataset { + private LogAllocationConfigDefaultDatasetAllocation allocation; + private @Nullable LogAllocationConfigDefaultDatasetPriorities priorities; + + private LogAllocationConfigDefaultDataset() {} + public LogAllocationConfigDefaultDatasetAllocation allocation() { + return this.allocation; + } + public Optional priorities() { + return Optional.ofNullable(this.priorities); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDefaultDataset defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private LogAllocationConfigDefaultDatasetAllocation allocation; + private @Nullable LogAllocationConfigDefaultDatasetPriorities priorities; + public Builder() {} + public Builder(LogAllocationConfigDefaultDataset defaults) { + Objects.requireNonNull(defaults); + this.allocation = defaults.allocation; + this.priorities = defaults.priorities; + } + + @CustomType.Setter + public Builder allocation(LogAllocationConfigDefaultDatasetAllocation allocation) { + this.allocation = Objects.requireNonNull(allocation); + return this; + } + @CustomType.Setter + public Builder priorities(@Nullable LogAllocationConfigDefaultDatasetPriorities priorities) { + this.priorities = priorities; + return this; + } + public LogAllocationConfigDefaultDataset build() { + final var o = new LogAllocationConfigDefaultDataset(); + o.allocation = allocation; + o.priorities = priorities; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetAllocation.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetAllocation.java new file mode 100644 index 00000000..03387205 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetAllocation.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Double; +import java.util.Objects; + +@CustomType +public final class LogAllocationConfigDefaultDatasetAllocation { + private Double percentOfLicense; + + private LogAllocationConfigDefaultDatasetAllocation() {} + public Double percentOfLicense() { + return this.percentOfLicense; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDefaultDatasetAllocation defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Double percentOfLicense; + public Builder() {} + public Builder(LogAllocationConfigDefaultDatasetAllocation defaults) { + Objects.requireNonNull(defaults); + this.percentOfLicense = defaults.percentOfLicense; + } + + @CustomType.Setter + public Builder percentOfLicense(Double percentOfLicense) { + this.percentOfLicense = Objects.requireNonNull(percentOfLicense); + return this; + } + public LogAllocationConfigDefaultDatasetAllocation build() { + final var o = new LogAllocationConfigDefaultDatasetAllocation(); + o.percentOfLicense = percentOfLicense; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPriorities.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPriorities.java new file mode 100644 index 00000000..c979295e --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPriorities.java @@ -0,0 +1,67 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter; +import io.chronosphere.chronosphere.outputs.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter; +import java.util.List; +import java.util.Objects; +import javax.annotation.Nullable; + +@CustomType +public final class LogAllocationConfigDefaultDatasetPriorities { + private @Nullable List highPriorityFilters; + private @Nullable List lowPriorityFilters; + + private LogAllocationConfigDefaultDatasetPriorities() {} + public List highPriorityFilters() { + return this.highPriorityFilters == null ? List.of() : this.highPriorityFilters; + } + public List lowPriorityFilters() { + return this.lowPriorityFilters == null ? List.of() : this.lowPriorityFilters; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDefaultDatasetPriorities defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable List highPriorityFilters; + private @Nullable List lowPriorityFilters; + public Builder() {} + public Builder(LogAllocationConfigDefaultDatasetPriorities defaults) { + Objects.requireNonNull(defaults); + this.highPriorityFilters = defaults.highPriorityFilters; + this.lowPriorityFilters = defaults.lowPriorityFilters; + } + + @CustomType.Setter + public Builder highPriorityFilters(@Nullable List highPriorityFilters) { + this.highPriorityFilters = highPriorityFilters; + return this; + } + public Builder highPriorityFilters(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter... highPriorityFilters) { + return highPriorityFilters(List.of(highPriorityFilters)); + } + @CustomType.Setter + public Builder lowPriorityFilters(@Nullable List lowPriorityFilters) { + this.lowPriorityFilters = lowPriorityFilters; + return this; + } + public Builder lowPriorityFilters(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter... lowPriorityFilters) { + return lowPriorityFilters(List.of(lowPriorityFilters)); + } + public LogAllocationConfigDefaultDatasetPriorities build() { + final var o = new LogAllocationConfigDefaultDatasetPriorities(); + o.highPriorityFilters = highPriorityFilters; + o.lowPriorityFilters = lowPriorityFilters; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.java new file mode 100644 index 00000000..af22bf1c --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter { + private String query; + + private LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter() {} + public String query() { + return this.query; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String query; + public Builder() {} + public Builder(LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter defaults) { + Objects.requireNonNull(defaults); + this.query = defaults.query; + } + + @CustomType.Setter + public Builder query(String query) { + this.query = Objects.requireNonNull(query); + return this; + } + public LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter build() { + final var o = new LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter(); + o.query = query; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.java new file mode 100644 index 00000000..b05fe32b --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter { + private String query; + + private LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter() {} + public String query() { + return this.query; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String query; + public Builder() {} + public Builder(LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter defaults) { + Objects.requireNonNull(defaults); + this.query = defaults.query; + } + + @CustomType.Setter + public Builder query(String query) { + this.query = Objects.requireNonNull(query); + return this; + } + public LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter build() { + final var o = new LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter(); + o.query = query; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionEmailAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionEmailAction.java new file mode 100644 index 00000000..7efad5cc --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionEmailAction.java @@ -0,0 +1,101 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogscaleActionEmailAction { + private @Nullable Boolean attachCsv; + private @Nullable String bodyTemplate; + private List recipients; + private @Nullable String subjectTemplate; + private @Nullable Boolean useProxy; + + private LogscaleActionEmailAction() {} + public Optional attachCsv() { + return Optional.ofNullable(this.attachCsv); + } + public Optional bodyTemplate() { + return Optional.ofNullable(this.bodyTemplate); + } + public List recipients() { + return this.recipients; + } + public Optional subjectTemplate() { + return Optional.ofNullable(this.subjectTemplate); + } + public Optional useProxy() { + return Optional.ofNullable(this.useProxy); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionEmailAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean attachCsv; + private @Nullable String bodyTemplate; + private List recipients; + private @Nullable String subjectTemplate; + private @Nullable Boolean useProxy; + public Builder() {} + public Builder(LogscaleActionEmailAction defaults) { + Objects.requireNonNull(defaults); + this.attachCsv = defaults.attachCsv; + this.bodyTemplate = defaults.bodyTemplate; + this.recipients = defaults.recipients; + this.subjectTemplate = defaults.subjectTemplate; + this.useProxy = defaults.useProxy; + } + + @CustomType.Setter + public Builder attachCsv(@Nullable Boolean attachCsv) { + this.attachCsv = attachCsv; + return this; + } + @CustomType.Setter + public Builder bodyTemplate(@Nullable String bodyTemplate) { + this.bodyTemplate = bodyTemplate; + return this; + } + @CustomType.Setter + public Builder recipients(List recipients) { + this.recipients = Objects.requireNonNull(recipients); + return this; + } + public Builder recipients(String... recipients) { + return recipients(List.of(recipients)); + } + @CustomType.Setter + public Builder subjectTemplate(@Nullable String subjectTemplate) { + this.subjectTemplate = subjectTemplate; + return this; + } + @CustomType.Setter + public Builder useProxy(@Nullable Boolean useProxy) { + this.useProxy = useProxy; + return this; + } + public LogscaleActionEmailAction build() { + final var o = new LogscaleActionEmailAction(); + o.attachCsv = attachCsv; + o.bodyTemplate = bodyTemplate; + o.recipients = recipients; + o.subjectTemplate = subjectTemplate; + o.useProxy = useProxy; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionHumioAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionHumioAction.java new file mode 100644 index 00000000..70f35e9a --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionHumioAction.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class LogscaleActionHumioAction { + private String ingestToken; + + private LogscaleActionHumioAction() {} + public String ingestToken() { + return this.ingestToken; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionHumioAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String ingestToken; + public Builder() {} + public Builder(LogscaleActionHumioAction defaults) { + Objects.requireNonNull(defaults); + this.ingestToken = defaults.ingestToken; + } + + @CustomType.Setter + public Builder ingestToken(String ingestToken) { + this.ingestToken = Objects.requireNonNull(ingestToken); + return this; + } + public LogscaleActionHumioAction build() { + final var o = new LogscaleActionHumioAction(); + o.ingestToken = ingestToken; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionOpsGenieAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionOpsGenieAction.java new file mode 100644 index 00000000..893efcba --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionOpsGenieAction.java @@ -0,0 +1,73 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogscaleActionOpsGenieAction { + private String apiUrl; + private String opsGenieKey; + private @Nullable Boolean useProxy; + + private LogscaleActionOpsGenieAction() {} + public String apiUrl() { + return this.apiUrl; + } + public String opsGenieKey() { + return this.opsGenieKey; + } + public Optional useProxy() { + return Optional.ofNullable(this.useProxy); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionOpsGenieAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String apiUrl; + private String opsGenieKey; + private @Nullable Boolean useProxy; + public Builder() {} + public Builder(LogscaleActionOpsGenieAction defaults) { + Objects.requireNonNull(defaults); + this.apiUrl = defaults.apiUrl; + this.opsGenieKey = defaults.opsGenieKey; + this.useProxy = defaults.useProxy; + } + + @CustomType.Setter + public Builder apiUrl(String apiUrl) { + this.apiUrl = Objects.requireNonNull(apiUrl); + return this; + } + @CustomType.Setter + public Builder opsGenieKey(String opsGenieKey) { + this.opsGenieKey = Objects.requireNonNull(opsGenieKey); + return this; + } + @CustomType.Setter + public Builder useProxy(@Nullable Boolean useProxy) { + this.useProxy = useProxy; + return this; + } + public LogscaleActionOpsGenieAction build() { + final var o = new LogscaleActionOpsGenieAction(); + o.apiUrl = apiUrl; + o.opsGenieKey = opsGenieKey; + o.useProxy = useProxy; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionPagerDutyAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionPagerDutyAction.java new file mode 100644 index 00000000..b22597a2 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionPagerDutyAction.java @@ -0,0 +1,73 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogscaleActionPagerDutyAction { + private String routingKey; + private String severity; + private @Nullable Boolean useProxy; + + private LogscaleActionPagerDutyAction() {} + public String routingKey() { + return this.routingKey; + } + public String severity() { + return this.severity; + } + public Optional useProxy() { + return Optional.ofNullable(this.useProxy); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionPagerDutyAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String routingKey; + private String severity; + private @Nullable Boolean useProxy; + public Builder() {} + public Builder(LogscaleActionPagerDutyAction defaults) { + Objects.requireNonNull(defaults); + this.routingKey = defaults.routingKey; + this.severity = defaults.severity; + this.useProxy = defaults.useProxy; + } + + @CustomType.Setter + public Builder routingKey(String routingKey) { + this.routingKey = Objects.requireNonNull(routingKey); + return this; + } + @CustomType.Setter + public Builder severity(String severity) { + this.severity = Objects.requireNonNull(severity); + return this; + } + @CustomType.Setter + public Builder useProxy(@Nullable Boolean useProxy) { + this.useProxy = useProxy; + return this; + } + public LogscaleActionPagerDutyAction build() { + final var o = new LogscaleActionPagerDutyAction(); + o.routingKey = routingKey; + o.severity = severity; + o.useProxy = useProxy; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackAction.java new file mode 100644 index 00000000..54090b22 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackAction.java @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogscaleActionSlackAction { + private @Nullable Map fields; + private String url; + private @Nullable Boolean useProxy; + + private LogscaleActionSlackAction() {} + public Map fields() { + return this.fields == null ? Map.of() : this.fields; + } + public String url() { + return this.url; + } + public Optional useProxy() { + return Optional.ofNullable(this.useProxy); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionSlackAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Map fields; + private String url; + private @Nullable Boolean useProxy; + public Builder() {} + public Builder(LogscaleActionSlackAction defaults) { + Objects.requireNonNull(defaults); + this.fields = defaults.fields; + this.url = defaults.url; + this.useProxy = defaults.useProxy; + } + + @CustomType.Setter + public Builder fields(@Nullable Map fields) { + this.fields = fields; + return this; + } + @CustomType.Setter + public Builder url(String url) { + this.url = Objects.requireNonNull(url); + return this; + } + @CustomType.Setter + public Builder useProxy(@Nullable Boolean useProxy) { + this.useProxy = useProxy; + return this; + } + public LogscaleActionSlackAction build() { + final var o = new LogscaleActionSlackAction(); + o.fields = fields; + o.url = url; + o.useProxy = useProxy; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackPostMessageAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackPostMessageAction.java new file mode 100644 index 00000000..1ee4ebb6 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionSlackPostMessageAction.java @@ -0,0 +1,90 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogscaleActionSlackPostMessageAction { + private String apiToken; + private List channels; + private @Nullable Map fields; + private @Nullable Boolean useProxy; + + private LogscaleActionSlackPostMessageAction() {} + public String apiToken() { + return this.apiToken; + } + public List channels() { + return this.channels; + } + public Map fields() { + return this.fields == null ? Map.of() : this.fields; + } + public Optional useProxy() { + return Optional.ofNullable(this.useProxy); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionSlackPostMessageAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String apiToken; + private List channels; + private @Nullable Map fields; + private @Nullable Boolean useProxy; + public Builder() {} + public Builder(LogscaleActionSlackPostMessageAction defaults) { + Objects.requireNonNull(defaults); + this.apiToken = defaults.apiToken; + this.channels = defaults.channels; + this.fields = defaults.fields; + this.useProxy = defaults.useProxy; + } + + @CustomType.Setter + public Builder apiToken(String apiToken) { + this.apiToken = Objects.requireNonNull(apiToken); + return this; + } + @CustomType.Setter + public Builder channels(List channels) { + this.channels = Objects.requireNonNull(channels); + return this; + } + public Builder channels(String... channels) { + return channels(List.of(channels)); + } + @CustomType.Setter + public Builder fields(@Nullable Map fields) { + this.fields = fields; + return this; + } + @CustomType.Setter + public Builder useProxy(@Nullable Boolean useProxy) { + this.useProxy = useProxy; + return this; + } + public LogscaleActionSlackPostMessageAction build() { + final var o = new LogscaleActionSlackPostMessageAction(); + o.apiToken = apiToken; + o.channels = channels; + o.fields = fields; + o.useProxy = useProxy; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionUploadFileAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionUploadFileAction.java new file mode 100644 index 00000000..1f5544af --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionUploadFileAction.java @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class LogscaleActionUploadFileAction { + private String fileName; + + private LogscaleActionUploadFileAction() {} + public String fileName() { + return this.fileName; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionUploadFileAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String fileName; + public Builder() {} + public Builder(LogscaleActionUploadFileAction defaults) { + Objects.requireNonNull(defaults); + this.fileName = defaults.fileName; + } + + @CustomType.Setter + public Builder fileName(String fileName) { + this.fileName = Objects.requireNonNull(fileName); + return this; + } + public LogscaleActionUploadFileAction build() { + final var o = new LogscaleActionUploadFileAction(); + o.fileName = fileName; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionVictorOpsAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionVictorOpsAction.java new file mode 100644 index 00000000..93d90187 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionVictorOpsAction.java @@ -0,0 +1,73 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogscaleActionVictorOpsAction { + private String messageType; + private String notifyUrl; + private @Nullable Boolean useProxy; + + private LogscaleActionVictorOpsAction() {} + public String messageType() { + return this.messageType; + } + public String notifyUrl() { + return this.notifyUrl; + } + public Optional useProxy() { + return Optional.ofNullable(this.useProxy); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionVictorOpsAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String messageType; + private String notifyUrl; + private @Nullable Boolean useProxy; + public Builder() {} + public Builder(LogscaleActionVictorOpsAction defaults) { + Objects.requireNonNull(defaults); + this.messageType = defaults.messageType; + this.notifyUrl = defaults.notifyUrl; + this.useProxy = defaults.useProxy; + } + + @CustomType.Setter + public Builder messageType(String messageType) { + this.messageType = Objects.requireNonNull(messageType); + return this; + } + @CustomType.Setter + public Builder notifyUrl(String notifyUrl) { + this.notifyUrl = Objects.requireNonNull(notifyUrl); + return this; + } + @CustomType.Setter + public Builder useProxy(@Nullable Boolean useProxy) { + this.useProxy = useProxy; + return this; + } + public LogscaleActionVictorOpsAction build() { + final var o = new LogscaleActionVictorOpsAction(); + o.messageType = messageType; + o.notifyUrl = notifyUrl; + o.useProxy = useProxy; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionWebhookAction.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionWebhookAction.java new file mode 100644 index 00000000..51185dbe --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/LogscaleActionWebhookAction.java @@ -0,0 +1,110 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LogscaleActionWebhookAction { + private @Nullable String bodyTemplate; + private @Nullable Map headers; + private @Nullable Boolean ignoreSsl; + private String method; + private String url; + private @Nullable Boolean useProxy; + + private LogscaleActionWebhookAction() {} + public Optional bodyTemplate() { + return Optional.ofNullable(this.bodyTemplate); + } + public Map headers() { + return this.headers == null ? Map.of() : this.headers; + } + public Optional ignoreSsl() { + return Optional.ofNullable(this.ignoreSsl); + } + public String method() { + return this.method; + } + public String url() { + return this.url; + } + public Optional useProxy() { + return Optional.ofNullable(this.useProxy); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LogscaleActionWebhookAction defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String bodyTemplate; + private @Nullable Map headers; + private @Nullable Boolean ignoreSsl; + private String method; + private String url; + private @Nullable Boolean useProxy; + public Builder() {} + public Builder(LogscaleActionWebhookAction defaults) { + Objects.requireNonNull(defaults); + this.bodyTemplate = defaults.bodyTemplate; + this.headers = defaults.headers; + this.ignoreSsl = defaults.ignoreSsl; + this.method = defaults.method; + this.url = defaults.url; + this.useProxy = defaults.useProxy; + } + + @CustomType.Setter + public Builder bodyTemplate(@Nullable String bodyTemplate) { + this.bodyTemplate = bodyTemplate; + return this; + } + @CustomType.Setter + public Builder headers(@Nullable Map headers) { + this.headers = headers; + return this; + } + @CustomType.Setter + public Builder ignoreSsl(@Nullable Boolean ignoreSsl) { + this.ignoreSsl = ignoreSsl; + return this; + } + @CustomType.Setter + public Builder method(String method) { + this.method = Objects.requireNonNull(method); + return this; + } + @CustomType.Setter + public Builder url(String url) { + this.url = Objects.requireNonNull(url); + return this; + } + @CustomType.Setter + public Builder useProxy(@Nullable Boolean useProxy) { + this.useProxy = useProxy; + return this; + } + public LogscaleActionWebhookAction build() { + final var o = new LogscaleActionWebhookAction(); + o.bodyTemplate = bodyTemplate; + o.headers = headers; + o.ignoreSsl = ignoreSsl; + o.method = method; + o.url = url; + o.useProxy = useProxy; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPool.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPool.java index ee5c1415..bfde8eb2 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPool.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPool.java @@ -12,12 +12,12 @@ @CustomType public final class ResourcePoolsConfigDefaultPool { - private ResourcePoolsConfigDefaultPoolAllocation allocation; + private @Nullable ResourcePoolsConfigDefaultPoolAllocation allocation; private @Nullable ResourcePoolsConfigDefaultPoolPriorities priorities; private ResourcePoolsConfigDefaultPool() {} - public ResourcePoolsConfigDefaultPoolAllocation allocation() { - return this.allocation; + public Optional allocation() { + return Optional.ofNullable(this.allocation); } public Optional priorities() { return Optional.ofNullable(this.priorities); @@ -32,7 +32,7 @@ public static Builder builder(ResourcePoolsConfigDefaultPool defaults) { } @CustomType.Builder public static final class Builder { - private ResourcePoolsConfigDefaultPoolAllocation allocation; + private @Nullable ResourcePoolsConfigDefaultPoolAllocation allocation; private @Nullable ResourcePoolsConfigDefaultPoolPriorities priorities; public Builder() {} public Builder(ResourcePoolsConfigDefaultPool defaults) { @@ -42,8 +42,8 @@ public Builder(ResourcePoolsConfigDefaultPool defaults) { } @CustomType.Setter - public Builder allocation(ResourcePoolsConfigDefaultPoolAllocation allocation) { - this.allocation = Objects.requireNonNull(allocation); + public Builder allocation(@Nullable ResourcePoolsConfigDefaultPoolAllocation allocation) { + this.allocation = allocation; return this; } @CustomType.Setter diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocation.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocation.java index 73a913b1..c0668046 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocation.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocation.java @@ -4,16 +4,24 @@ package io.chronosphere.chronosphere.outputs; import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.ResourcePoolsConfigDefaultPoolAllocationFixedValue; import java.lang.Double; +import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class ResourcePoolsConfigDefaultPoolAllocation { - private Double percentOfLicense; + private @Nullable List fixedValues; + private @Nullable Double percentOfLicense; private ResourcePoolsConfigDefaultPoolAllocation() {} - public Double percentOfLicense() { - return this.percentOfLicense; + public List fixedValues() { + return this.fixedValues == null ? List.of() : this.fixedValues; + } + public Optional percentOfLicense() { + return Optional.ofNullable(this.percentOfLicense); } public static Builder builder() { @@ -25,20 +33,31 @@ public static Builder builder(ResourcePoolsConfigDefaultPoolAllocation defaults) } @CustomType.Builder public static final class Builder { - private Double percentOfLicense; + private @Nullable List fixedValues; + private @Nullable Double percentOfLicense; public Builder() {} public Builder(ResourcePoolsConfigDefaultPoolAllocation defaults) { Objects.requireNonNull(defaults); + this.fixedValues = defaults.fixedValues; this.percentOfLicense = defaults.percentOfLicense; } @CustomType.Setter - public Builder percentOfLicense(Double percentOfLicense) { - this.percentOfLicense = Objects.requireNonNull(percentOfLicense); + public Builder fixedValues(@Nullable List fixedValues) { + this.fixedValues = fixedValues; + return this; + } + public Builder fixedValues(ResourcePoolsConfigDefaultPoolAllocationFixedValue... fixedValues) { + return fixedValues(List.of(fixedValues)); + } + @CustomType.Setter + public Builder percentOfLicense(@Nullable Double percentOfLicense) { + this.percentOfLicense = percentOfLicense; return this; } public ResourcePoolsConfigDefaultPoolAllocation build() { final var o = new ResourcePoolsConfigDefaultPoolAllocation(); + o.fixedValues = fixedValues; o.percentOfLicense = percentOfLicense; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.java new file mode 100644 index 00000000..c00540d9 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigDefaultPoolAllocationFixedValue.java @@ -0,0 +1,59 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class ResourcePoolsConfigDefaultPoolAllocationFixedValue { + private String license; + private Integer value; + + private ResourcePoolsConfigDefaultPoolAllocationFixedValue() {} + public String license() { + return this.license; + } + public Integer value() { + return this.value; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ResourcePoolsConfigDefaultPoolAllocationFixedValue defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String license; + private Integer value; + public Builder() {} + public Builder(ResourcePoolsConfigDefaultPoolAllocationFixedValue defaults) { + Objects.requireNonNull(defaults); + this.license = defaults.license; + this.value = defaults.value; + } + + @CustomType.Setter + public Builder license(String license) { + this.license = Objects.requireNonNull(license); + return this; + } + @CustomType.Setter + public Builder value(Integer value) { + this.value = Objects.requireNonNull(value); + return this; + } + public ResourcePoolsConfigDefaultPoolAllocationFixedValue build() { + final var o = new ResourcePoolsConfigDefaultPoolAllocationFixedValue(); + o.license = license; + o.value = value; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPool.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPool.java index bf6a134c..4a5f46a6 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPool.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPool.java @@ -14,7 +14,7 @@ @CustomType public final class ResourcePoolsConfigPool { - private ResourcePoolsConfigPoolAllocation allocation; + private @Nullable ResourcePoolsConfigPoolAllocation allocation; /** * @deprecated * use match_rules @@ -27,8 +27,8 @@ public final class ResourcePoolsConfigPool { private @Nullable ResourcePoolsConfigPoolPriorities priorities; private ResourcePoolsConfigPool() {} - public ResourcePoolsConfigPoolAllocation allocation() { - return this.allocation; + public Optional allocation() { + return Optional.ofNullable(this.allocation); } /** * @deprecated @@ -58,7 +58,7 @@ public static Builder builder(ResourcePoolsConfigPool defaults) { } @CustomType.Builder public static final class Builder { - private ResourcePoolsConfigPoolAllocation allocation; + private @Nullable ResourcePoolsConfigPoolAllocation allocation; private @Nullable String matchRule; private @Nullable List matchRules; private String name; @@ -74,8 +74,8 @@ public Builder(ResourcePoolsConfigPool defaults) { } @CustomType.Setter - public Builder allocation(ResourcePoolsConfigPoolAllocation allocation) { - this.allocation = Objects.requireNonNull(allocation); + public Builder allocation(@Nullable ResourcePoolsConfigPoolAllocation allocation) { + this.allocation = allocation; return this; } @CustomType.Setter diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocation.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocation.java index fb04a6ec..427b8406 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocation.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocation.java @@ -4,16 +4,24 @@ package io.chronosphere.chronosphere.outputs; import com.pulumi.core.annotations.CustomType; +import io.chronosphere.chronosphere.outputs.ResourcePoolsConfigPoolAllocationFixedValue; import java.lang.Double; +import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class ResourcePoolsConfigPoolAllocation { - private Double percentOfLicense; + private @Nullable List fixedValues; + private @Nullable Double percentOfLicense; private ResourcePoolsConfigPoolAllocation() {} - public Double percentOfLicense() { - return this.percentOfLicense; + public List fixedValues() { + return this.fixedValues == null ? List.of() : this.fixedValues; + } + public Optional percentOfLicense() { + return Optional.ofNullable(this.percentOfLicense); } public static Builder builder() { @@ -25,20 +33,31 @@ public static Builder builder(ResourcePoolsConfigPoolAllocation defaults) { } @CustomType.Builder public static final class Builder { - private Double percentOfLicense; + private @Nullable List fixedValues; + private @Nullable Double percentOfLicense; public Builder() {} public Builder(ResourcePoolsConfigPoolAllocation defaults) { Objects.requireNonNull(defaults); + this.fixedValues = defaults.fixedValues; this.percentOfLicense = defaults.percentOfLicense; } @CustomType.Setter - public Builder percentOfLicense(Double percentOfLicense) { - this.percentOfLicense = Objects.requireNonNull(percentOfLicense); + public Builder fixedValues(@Nullable List fixedValues) { + this.fixedValues = fixedValues; + return this; + } + public Builder fixedValues(ResourcePoolsConfigPoolAllocationFixedValue... fixedValues) { + return fixedValues(List.of(fixedValues)); + } + @CustomType.Setter + public Builder percentOfLicense(@Nullable Double percentOfLicense) { + this.percentOfLicense = percentOfLicense; return this; } public ResourcePoolsConfigPoolAllocation build() { final var o = new ResourcePoolsConfigPoolAllocation(); + o.fixedValues = fixedValues; o.percentOfLicense = percentOfLicense; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocationFixedValue.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocationFixedValue.java new file mode 100644 index 00000000..a44d7e13 --- /dev/null +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/ResourcePoolsConfigPoolAllocationFixedValue.java @@ -0,0 +1,59 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package io.chronosphere.chronosphere.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class ResourcePoolsConfigPoolAllocationFixedValue { + private String license; + private Integer value; + + private ResourcePoolsConfigPoolAllocationFixedValue() {} + public String license() { + return this.license; + } + public Integer value() { + return this.value; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ResourcePoolsConfigPoolAllocationFixedValue defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String license; + private Integer value; + public Builder() {} + public Builder(ResourcePoolsConfigPoolAllocationFixedValue defaults) { + Objects.requireNonNull(defaults); + this.license = defaults.license; + this.value = defaults.value; + } + + @CustomType.Setter + public Builder license(String license) { + this.license = Objects.requireNonNull(license); + return this; + } + @CustomType.Setter + public Builder value(Integer value) { + this.value = Objects.requireNonNull(value); + return this; + } + public ResourcePoolsConfigPoolAllocationFixedValue build() { + final var o = new ResourcePoolsConfigPoolAllocationFixedValue(); + o.license = license; + o.value = value; + return o; + } + } +} diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpan.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpan.java index 7adcdcae..f035985e 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpan.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpan.java @@ -28,13 +28,6 @@ public final class TraceMetricsRuleTraceFilterSpan { private @Nullable TraceMetricsRuleTraceFilterSpanParentService parentService; private @Nullable TraceMetricsRuleTraceFilterSpanService service; private @Nullable TraceMetricsRuleTraceFilterSpanSpanCount spanCount; - private @Nullable List tag; - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ private @Nullable List tags; private TraceMetricsRuleTraceFilterSpan() {} @@ -62,15 +55,6 @@ public Optional service() { public Optional spanCount() { return Optional.ofNullable(this.spanCount); } - public List tag() { - return this.tag == null ? List.of() : this.tag; - } - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public List tags() { return this.tags == null ? List.of() : this.tags; } @@ -92,7 +76,6 @@ public static final class Builder { private @Nullable TraceMetricsRuleTraceFilterSpanParentService parentService; private @Nullable TraceMetricsRuleTraceFilterSpanService service; private @Nullable TraceMetricsRuleTraceFilterSpanSpanCount spanCount; - private @Nullable List tag; private @Nullable List tags; public Builder() {} public Builder(TraceMetricsRuleTraceFilterSpan defaults) { @@ -105,7 +88,6 @@ public Builder(TraceMetricsRuleTraceFilterSpan defaults) { this.parentService = defaults.parentService; this.service = defaults.service; this.spanCount = defaults.spanCount; - this.tag = defaults.tag; this.tags = defaults.tags; } @@ -150,14 +132,6 @@ public Builder spanCount(@Nullable TraceMetricsRuleTraceFilterSpanSpanCount span return this; } @CustomType.Setter - public Builder tag(@Nullable List tag) { - this.tag = tag; - return this; - } - public Builder tag(TraceMetricsRuleTraceFilterSpanTag... tag) { - return tag(List.of(tag)); - } - @CustomType.Setter public Builder tags(@Nullable List tags) { this.tags = tags; return this; @@ -175,7 +149,6 @@ public TraceMetricsRuleTraceFilterSpan build() { o.parentService = parentService; o.service = service; o.spanCount = spanCount; - o.tag = tag; o.tags = tags; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpanDuration.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpanDuration.java index cc6c26b5..11445a86 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpanDuration.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterSpanDuration.java @@ -11,45 +11,13 @@ @CustomType public final class TraceMetricsRuleTraceFilterSpanDuration { - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - private @Nullable Double minSeconds; private @Nullable Double minSecs; private TraceMetricsRuleTraceFilterSpanDuration() {} - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } public Optional maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional minSeconds() { - return Optional.ofNullable(this.minSeconds); - } public Optional minSecs() { return Optional.ofNullable(this.minSecs); } @@ -63,44 +31,28 @@ public static Builder builder(TraceMetricsRuleTraceFilterSpanDuration defaults) } @CustomType.Builder public static final class Builder { - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - private @Nullable Double minSeconds; private @Nullable Double minSecs; public Builder() {} public Builder(TraceMetricsRuleTraceFilterSpanDuration defaults) { Objects.requireNonNull(defaults); - this.maxSeconds = defaults.maxSeconds; this.maxSecs = defaults.maxSecs; - this.minSeconds = defaults.minSeconds; this.minSecs = defaults.minSecs; } - @CustomType.Setter - public Builder maxSeconds(@Nullable Double maxSeconds) { - this.maxSeconds = maxSeconds; - return this; - } @CustomType.Setter public Builder maxSecs(@Nullable Double maxSecs) { this.maxSecs = maxSecs; return this; } @CustomType.Setter - public Builder minSeconds(@Nullable Double minSeconds) { - this.minSeconds = minSeconds; - return this; - } - @CustomType.Setter public Builder minSecs(@Nullable Double minSecs) { this.minSecs = minSecs; return this; } public TraceMetricsRuleTraceFilterSpanDuration build() { final var o = new TraceMetricsRuleTraceFilterSpanDuration(); - o.maxSeconds = maxSeconds; o.maxSecs = maxSecs; - o.minSeconds = minSeconds; o.minSecs = minSecs; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterTraceDuration.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterTraceDuration.java index f5286bc4..7a8a497a 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterTraceDuration.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceMetricsRuleTraceFilterTraceDuration.java @@ -11,45 +11,13 @@ @CustomType public final class TraceMetricsRuleTraceFilterTraceDuration { - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - private @Nullable Double minSeconds; private @Nullable Double minSecs; private TraceMetricsRuleTraceFilterTraceDuration() {} - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } public Optional maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional minSeconds() { - return Optional.ofNullable(this.minSeconds); - } public Optional minSecs() { return Optional.ofNullable(this.minSecs); } @@ -63,44 +31,28 @@ public static Builder builder(TraceMetricsRuleTraceFilterTraceDuration defaults) } @CustomType.Builder public static final class Builder { - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - private @Nullable Double minSeconds; private @Nullable Double minSecs; public Builder() {} public Builder(TraceMetricsRuleTraceFilterTraceDuration defaults) { Objects.requireNonNull(defaults); - this.maxSeconds = defaults.maxSeconds; this.maxSecs = defaults.maxSecs; - this.minSeconds = defaults.minSeconds; this.minSecs = defaults.minSecs; } - @CustomType.Setter - public Builder maxSeconds(@Nullable Double maxSeconds) { - this.maxSeconds = maxSeconds; - return this; - } @CustomType.Setter public Builder maxSecs(@Nullable Double maxSecs) { this.maxSecs = maxSecs; return this; } @CustomType.Setter - public Builder minSeconds(@Nullable Double minSeconds) { - this.minSeconds = minSeconds; - return this; - } - @CustomType.Setter public Builder minSecs(@Nullable Double minSecs) { this.minSecs = minSecs; return this; } public TraceMetricsRuleTraceFilterTraceDuration build() { final var o = new TraceMetricsRuleTraceFilterTraceDuration(); - o.maxSeconds = maxSeconds; o.maxSecs = maxSecs; - o.minSeconds = minSeconds; o.minSecs = minSecs; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpan.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpan.java index 4f8e82e0..0b6729b2 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpan.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpan.java @@ -28,13 +28,6 @@ public final class TraceTailSamplingRulesRuleFilterSpan { private @Nullable TraceTailSamplingRulesRuleFilterSpanParentService parentService; private @Nullable TraceTailSamplingRulesRuleFilterSpanService service; private @Nullable TraceTailSamplingRulesRuleFilterSpanSpanCount spanCount; - private @Nullable List tag; - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ private @Nullable List tags; private TraceTailSamplingRulesRuleFilterSpan() {} @@ -62,15 +55,6 @@ public Optional service() { public Optional spanCount() { return Optional.ofNullable(this.spanCount); } - public List tag() { - return this.tag == null ? List.of() : this.tag; - } - /** - * @deprecated - * `tags` is deprecated, use `tag` instead. - * - */ - @Deprecated /* `tags` is deprecated, use `tag` instead. */ public List tags() { return this.tags == null ? List.of() : this.tags; } @@ -92,7 +76,6 @@ public static final class Builder { private @Nullable TraceTailSamplingRulesRuleFilterSpanParentService parentService; private @Nullable TraceTailSamplingRulesRuleFilterSpanService service; private @Nullable TraceTailSamplingRulesRuleFilterSpanSpanCount spanCount; - private @Nullable List tag; private @Nullable List tags; public Builder() {} public Builder(TraceTailSamplingRulesRuleFilterSpan defaults) { @@ -105,7 +88,6 @@ public Builder(TraceTailSamplingRulesRuleFilterSpan defaults) { this.parentService = defaults.parentService; this.service = defaults.service; this.spanCount = defaults.spanCount; - this.tag = defaults.tag; this.tags = defaults.tags; } @@ -150,14 +132,6 @@ public Builder spanCount(@Nullable TraceTailSamplingRulesRuleFilterSpanSpanCount return this; } @CustomType.Setter - public Builder tag(@Nullable List tag) { - this.tag = tag; - return this; - } - public Builder tag(TraceTailSamplingRulesRuleFilterSpanTag... tag) { - return tag(List.of(tag)); - } - @CustomType.Setter public Builder tags(@Nullable List tags) { this.tags = tags; return this; @@ -175,7 +149,6 @@ public TraceTailSamplingRulesRuleFilterSpan build() { o.parentService = parentService; o.service = service; o.spanCount = spanCount; - o.tag = tag; o.tags = tags; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpanDuration.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpanDuration.java index baabddbc..323aa22b 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpanDuration.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterSpanDuration.java @@ -11,45 +11,13 @@ @CustomType public final class TraceTailSamplingRulesRuleFilterSpanDuration { - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - private @Nullable Double minSeconds; private @Nullable Double minSecs; private TraceTailSamplingRulesRuleFilterSpanDuration() {} - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } public Optional maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional minSeconds() { - return Optional.ofNullable(this.minSeconds); - } public Optional minSecs() { return Optional.ofNullable(this.minSecs); } @@ -63,44 +31,28 @@ public static Builder builder(TraceTailSamplingRulesRuleFilterSpanDuration defau } @CustomType.Builder public static final class Builder { - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - private @Nullable Double minSeconds; private @Nullable Double minSecs; public Builder() {} public Builder(TraceTailSamplingRulesRuleFilterSpanDuration defaults) { Objects.requireNonNull(defaults); - this.maxSeconds = defaults.maxSeconds; this.maxSecs = defaults.maxSecs; - this.minSeconds = defaults.minSeconds; this.minSecs = defaults.minSecs; } - @CustomType.Setter - public Builder maxSeconds(@Nullable Double maxSeconds) { - this.maxSeconds = maxSeconds; - return this; - } @CustomType.Setter public Builder maxSecs(@Nullable Double maxSecs) { this.maxSecs = maxSecs; return this; } @CustomType.Setter - public Builder minSeconds(@Nullable Double minSeconds) { - this.minSeconds = minSeconds; - return this; - } - @CustomType.Setter public Builder minSecs(@Nullable Double minSecs) { this.minSecs = minSecs; return this; } public TraceTailSamplingRulesRuleFilterSpanDuration build() { final var o = new TraceTailSamplingRulesRuleFilterSpanDuration(); - o.maxSeconds = maxSeconds; o.maxSecs = maxSecs; - o.minSeconds = minSeconds; o.minSecs = minSecs; return o; } diff --git a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterTraceDuration.java b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterTraceDuration.java index 732dced6..a354f7e4 100644 --- a/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterTraceDuration.java +++ b/sdk/java/src/main/java/io/chronosphere/chronosphere/outputs/TraceTailSamplingRulesRuleFilterTraceDuration.java @@ -11,45 +11,13 @@ @CustomType public final class TraceTailSamplingRulesRuleFilterTraceDuration { - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - private @Nullable Double minSeconds; private @Nullable Double minSecs; private TraceTailSamplingRulesRuleFilterTraceDuration() {} - /** - * @deprecated - * use max_secs instead - * - */ - @Deprecated /* use max_secs instead */ - public Optional maxSeconds() { - return Optional.ofNullable(this.maxSeconds); - } public Optional maxSecs() { return Optional.ofNullable(this.maxSecs); } - /** - * @deprecated - * use min_secs instead - * - */ - @Deprecated /* use min_secs instead */ - public Optional minSeconds() { - return Optional.ofNullable(this.minSeconds); - } public Optional minSecs() { return Optional.ofNullable(this.minSecs); } @@ -63,44 +31,28 @@ public static Builder builder(TraceTailSamplingRulesRuleFilterTraceDuration defa } @CustomType.Builder public static final class Builder { - private @Nullable Double maxSeconds; private @Nullable Double maxSecs; - private @Nullable Double minSeconds; private @Nullable Double minSecs; public Builder() {} public Builder(TraceTailSamplingRulesRuleFilterTraceDuration defaults) { Objects.requireNonNull(defaults); - this.maxSeconds = defaults.maxSeconds; this.maxSecs = defaults.maxSecs; - this.minSeconds = defaults.minSeconds; this.minSecs = defaults.minSecs; } - @CustomType.Setter - public Builder maxSeconds(@Nullable Double maxSeconds) { - this.maxSeconds = maxSeconds; - return this; - } @CustomType.Setter public Builder maxSecs(@Nullable Double maxSecs) { this.maxSecs = maxSecs; return this; } @CustomType.Setter - public Builder minSeconds(@Nullable Double minSeconds) { - this.minSeconds = minSeconds; - return this; - } - @CustomType.Setter public Builder minSecs(@Nullable Double minSecs) { this.minSecs = minSecs; return this; } public TraceTailSamplingRulesRuleFilterTraceDuration build() { final var o = new TraceTailSamplingRulesRuleFilterTraceDuration(); - o.maxSeconds = maxSeconds; o.maxSecs = maxSecs; - o.minSeconds = minSeconds; o.minSecs = minSecs; return o; } diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index fe91af2b..ac8215fa 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -70,6 +70,21 @@ export type GcpMetricsIntegration = import("./gcpMetricsIntegration").GcpMetrics export const GcpMetricsIntegration: typeof import("./gcpMetricsIntegration").GcpMetricsIntegration = null as any; utilities.lazyLoad(exports, ["GcpMetricsIntegration"], () => require("./gcpMetricsIntegration")); +export { LogAllocationConfigArgs, LogAllocationConfigState } from "./logAllocationConfig"; +export type LogAllocationConfig = import("./logAllocationConfig").LogAllocationConfig; +export const LogAllocationConfig: typeof import("./logAllocationConfig").LogAllocationConfig = null as any; +utilities.lazyLoad(exports, ["LogAllocationConfig"], () => require("./logAllocationConfig")); + +export { LogscaleActionArgs, LogscaleActionState } from "./logscaleAction"; +export type LogscaleAction = import("./logscaleAction").LogscaleAction; +export const LogscaleAction: typeof import("./logscaleAction").LogscaleAction = null as any; +utilities.lazyLoad(exports, ["LogscaleAction"], () => require("./logscaleAction")); + +export { LogscaleAlertArgs, LogscaleAlertState } from "./logscaleAlert"; +export type LogscaleAlert = import("./logscaleAlert").LogscaleAlert; +export const LogscaleAlert: typeof import("./logscaleAlert").LogscaleAlert = null as any; +utilities.lazyLoad(exports, ["LogscaleAlert"], () => require("./logscaleAlert")); + export { MappingRuleArgs, MappingRuleState } from "./mappingRule"; export type MappingRule = import("./mappingRule").MappingRule; export const MappingRule: typeof import("./mappingRule").MappingRule = null as any; @@ -201,6 +216,12 @@ const _module = { return new EmailAlertNotifier(name, undefined, { urn }) case "chronosphere:index/gcpMetricsIntegration:GcpMetricsIntegration": return new GcpMetricsIntegration(name, undefined, { urn }) + case "chronosphere:index/logAllocationConfig:LogAllocationConfig": + return new LogAllocationConfig(name, undefined, { urn }) + case "chronosphere:index/logscaleAction:LogscaleAction": + return new LogscaleAction(name, undefined, { urn }) + case "chronosphere:index/logscaleAlert:LogscaleAlert": + return new LogscaleAlert(name, undefined, { urn }) case "chronosphere:index/mappingRule:MappingRule": return new MappingRule(name, undefined, { urn }) case "chronosphere:index/monitor:Monitor": @@ -251,6 +272,9 @@ pulumi.runtime.registerResourceModule("chronosphere", "index/derivedMetric", _mo pulumi.runtime.registerResourceModule("chronosphere", "index/dropRule", _module) pulumi.runtime.registerResourceModule("chronosphere", "index/emailAlertNotifier", _module) pulumi.runtime.registerResourceModule("chronosphere", "index/gcpMetricsIntegration", _module) +pulumi.runtime.registerResourceModule("chronosphere", "index/logAllocationConfig", _module) +pulumi.runtime.registerResourceModule("chronosphere", "index/logscaleAction", _module) +pulumi.runtime.registerResourceModule("chronosphere", "index/logscaleAlert", _module) pulumi.runtime.registerResourceModule("chronosphere", "index/mappingRule", _module) pulumi.runtime.registerResourceModule("chronosphere", "index/monitor", _module) pulumi.runtime.registerResourceModule("chronosphere", "index/notificationPolicy", _module) diff --git a/sdk/nodejs/logAllocationConfig.ts b/sdk/nodejs/logAllocationConfig.ts new file mode 100644 index 00000000..f384d045 --- /dev/null +++ b/sdk/nodejs/logAllocationConfig.ts @@ -0,0 +1,82 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +export class LogAllocationConfig extends pulumi.CustomResource { + /** + * Get an existing LogAllocationConfig 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. + */ + public static get(name: string, id: pulumi.Input, state?: LogAllocationConfigState, opts?: pulumi.CustomResourceOptions): LogAllocationConfig { + return new LogAllocationConfig(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'chronosphere:index/logAllocationConfig:LogAllocationConfig'; + + /** + * Returns true if the given object is an instance of LogAllocationConfig. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is LogAllocationConfig { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === LogAllocationConfig.__pulumiType; + } + + public readonly datasetAllocations!: pulumi.Output; + public readonly defaultDataset!: pulumi.Output; + + /** + * Create a LogAllocationConfig 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: LogAllocationConfigArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: LogAllocationConfigArgs | LogAllocationConfigState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as LogAllocationConfigState | undefined; + resourceInputs["datasetAllocations"] = state ? state.datasetAllocations : undefined; + resourceInputs["defaultDataset"] = state ? state.defaultDataset : undefined; + } else { + const args = argsOrState as LogAllocationConfigArgs | undefined; + if ((!args || args.defaultDataset === undefined) && !opts.urn) { + throw new Error("Missing required property 'defaultDataset'"); + } + resourceInputs["datasetAllocations"] = args ? args.datasetAllocations : undefined; + resourceInputs["defaultDataset"] = args ? args.defaultDataset : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(LogAllocationConfig.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering LogAllocationConfig resources. + */ +export interface LogAllocationConfigState { + datasetAllocations?: pulumi.Input[]>; + defaultDataset?: pulumi.Input; +} + +/** + * The set of arguments for constructing a LogAllocationConfig resource. + */ +export interface LogAllocationConfigArgs { + datasetAllocations?: pulumi.Input[]>; + defaultDataset: pulumi.Input; +} diff --git a/sdk/nodejs/logscaleAction.ts b/sdk/nodejs/logscaleAction.ts new file mode 100644 index 00000000..694134ed --- /dev/null +++ b/sdk/nodejs/logscaleAction.ts @@ -0,0 +1,135 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +export class LogscaleAction extends pulumi.CustomResource { + /** + * Get an existing LogscaleAction 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. + */ + public static get(name: string, id: pulumi.Input, state?: LogscaleActionState, opts?: pulumi.CustomResourceOptions): LogscaleAction { + return new LogscaleAction(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'chronosphere:index/logscaleAction:LogscaleAction'; + + /** + * Returns true if the given object is an instance of LogscaleAction. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is LogscaleAction { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === LogscaleAction.__pulumiType; + } + + public readonly emailAction!: pulumi.Output; + public readonly humioAction!: pulumi.Output; + public readonly name!: pulumi.Output; + public readonly opsGenieAction!: pulumi.Output; + public readonly pagerDutyAction!: pulumi.Output; + public readonly repository!: pulumi.Output; + public readonly slackAction!: pulumi.Output; + public readonly slackPostMessageAction!: pulumi.Output; + public readonly slug!: pulumi.Output; + public readonly uploadFileAction!: pulumi.Output; + public readonly victorOpsAction!: pulumi.Output; + public readonly webhookAction!: pulumi.Output; + + /** + * Create a LogscaleAction 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: LogscaleActionArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: LogscaleActionArgs | LogscaleActionState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as LogscaleActionState | undefined; + resourceInputs["emailAction"] = state ? state.emailAction : undefined; + resourceInputs["humioAction"] = state ? state.humioAction : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["opsGenieAction"] = state ? state.opsGenieAction : undefined; + resourceInputs["pagerDutyAction"] = state ? state.pagerDutyAction : undefined; + resourceInputs["repository"] = state ? state.repository : undefined; + resourceInputs["slackAction"] = state ? state.slackAction : undefined; + resourceInputs["slackPostMessageAction"] = state ? state.slackPostMessageAction : undefined; + resourceInputs["slug"] = state ? state.slug : undefined; + resourceInputs["uploadFileAction"] = state ? state.uploadFileAction : undefined; + resourceInputs["victorOpsAction"] = state ? state.victorOpsAction : undefined; + resourceInputs["webhookAction"] = state ? state.webhookAction : undefined; + } else { + const args = argsOrState as LogscaleActionArgs | undefined; + if ((!args || args.name === undefined) && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if ((!args || args.repository === undefined) && !opts.urn) { + throw new Error("Missing required property 'repository'"); + } + resourceInputs["emailAction"] = args ? args.emailAction : undefined; + resourceInputs["humioAction"] = args ? args.humioAction : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["opsGenieAction"] = args ? args.opsGenieAction : undefined; + resourceInputs["pagerDutyAction"] = args ? args.pagerDutyAction : undefined; + resourceInputs["repository"] = args ? args.repository : undefined; + resourceInputs["slackAction"] = args ? args.slackAction : undefined; + resourceInputs["slackPostMessageAction"] = args ? args.slackPostMessageAction : undefined; + resourceInputs["slug"] = args ? args.slug : undefined; + resourceInputs["uploadFileAction"] = args ? args.uploadFileAction : undefined; + resourceInputs["victorOpsAction"] = args ? args.victorOpsAction : undefined; + resourceInputs["webhookAction"] = args ? args.webhookAction : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(LogscaleAction.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering LogscaleAction resources. + */ +export interface LogscaleActionState { + emailAction?: pulumi.Input; + humioAction?: pulumi.Input; + name?: pulumi.Input; + opsGenieAction?: pulumi.Input; + pagerDutyAction?: pulumi.Input; + repository?: pulumi.Input; + slackAction?: pulumi.Input; + slackPostMessageAction?: pulumi.Input; + slug?: pulumi.Input; + uploadFileAction?: pulumi.Input; + victorOpsAction?: pulumi.Input; + webhookAction?: pulumi.Input; +} + +/** + * The set of arguments for constructing a LogscaleAction resource. + */ +export interface LogscaleActionArgs { + emailAction?: pulumi.Input; + humioAction?: pulumi.Input; + name: pulumi.Input; + opsGenieAction?: pulumi.Input; + pagerDutyAction?: pulumi.Input; + repository: pulumi.Input; + slackAction?: pulumi.Input; + slackPostMessageAction?: pulumi.Input; + slug?: pulumi.Input; + uploadFileAction?: pulumi.Input; + victorOpsAction?: pulumi.Input; + webhookAction?: pulumi.Input; +} diff --git a/sdk/nodejs/logscaleAlert.ts b/sdk/nodejs/logscaleAlert.ts new file mode 100644 index 00000000..f820301a --- /dev/null +++ b/sdk/nodejs/logscaleAlert.ts @@ -0,0 +1,171 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +export class LogscaleAlert extends pulumi.CustomResource { + /** + * Get an existing LogscaleAlert 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. + */ + public static get(name: string, id: pulumi.Input, state?: LogscaleAlertState, opts?: pulumi.CustomResourceOptions): LogscaleAlert { + return new LogscaleAlert(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'chronosphere:index/logscaleAlert:LogscaleAlert'; + + /** + * Returns true if the given object is an instance of LogscaleAlert. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is LogscaleAlert { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === LogscaleAlert.__pulumiType; + } + + public readonly actionIds!: pulumi.Output; + public readonly alertType!: pulumi.Output; + public readonly description!: pulumi.Output; + public readonly disabled!: pulumi.Output; + public readonly name!: pulumi.Output; + public readonly query!: pulumi.Output; + public readonly repository!: pulumi.Output; + /** + * Email of the user that the alert runs on behalf of + */ + public readonly runAsUser!: pulumi.Output; + public readonly slug!: pulumi.Output; + public readonly tags!: pulumi.Output; + /** + * Required for STANDARD type alerts, optional for FILTER type alerts + */ + public readonly throttleDuration!: pulumi.Output; + public readonly throttleField!: pulumi.Output; + /** + * Required for STANDARD type alerts, ignored for FILTER type alerts + */ + public readonly timeWindow!: pulumi.Output; + + /** + * Create a LogscaleAlert 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: LogscaleAlertArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: LogscaleAlertArgs | LogscaleAlertState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as LogscaleAlertState | undefined; + resourceInputs["actionIds"] = state ? state.actionIds : undefined; + resourceInputs["alertType"] = state ? state.alertType : undefined; + resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["disabled"] = state ? state.disabled : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["query"] = state ? state.query : undefined; + resourceInputs["repository"] = state ? state.repository : undefined; + resourceInputs["runAsUser"] = state ? state.runAsUser : undefined; + resourceInputs["slug"] = state ? state.slug : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["throttleDuration"] = state ? state.throttleDuration : undefined; + resourceInputs["throttleField"] = state ? state.throttleField : undefined; + resourceInputs["timeWindow"] = state ? state.timeWindow : undefined; + } else { + const args = argsOrState as LogscaleAlertArgs | undefined; + if ((!args || args.alertType === undefined) && !opts.urn) { + throw new Error("Missing required property 'alertType'"); + } + if ((!args || args.name === undefined) && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if ((!args || args.repository === undefined) && !opts.urn) { + throw new Error("Missing required property 'repository'"); + } + if ((!args || args.runAsUser === undefined) && !opts.urn) { + throw new Error("Missing required property 'runAsUser'"); + } + resourceInputs["actionIds"] = args ? args.actionIds : undefined; + resourceInputs["alertType"] = args ? args.alertType : undefined; + resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["disabled"] = args ? args.disabled : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["query"] = args ? args.query : undefined; + resourceInputs["repository"] = args ? args.repository : undefined; + resourceInputs["runAsUser"] = args ? args.runAsUser : undefined; + resourceInputs["slug"] = args ? args.slug : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["throttleDuration"] = args ? args.throttleDuration : undefined; + resourceInputs["throttleField"] = args ? args.throttleField : undefined; + resourceInputs["timeWindow"] = args ? args.timeWindow : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(LogscaleAlert.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering LogscaleAlert resources. + */ +export interface LogscaleAlertState { + actionIds?: pulumi.Input[]>; + alertType?: pulumi.Input; + description?: pulumi.Input; + disabled?: pulumi.Input; + name?: pulumi.Input; + query?: pulumi.Input; + repository?: pulumi.Input; + /** + * Email of the user that the alert runs on behalf of + */ + runAsUser?: pulumi.Input; + slug?: pulumi.Input; + tags?: pulumi.Input[]>; + /** + * Required for STANDARD type alerts, optional for FILTER type alerts + */ + throttleDuration?: pulumi.Input; + throttleField?: pulumi.Input; + /** + * Required for STANDARD type alerts, ignored for FILTER type alerts + */ + timeWindow?: pulumi.Input; +} + +/** + * The set of arguments for constructing a LogscaleAlert resource. + */ +export interface LogscaleAlertArgs { + actionIds?: pulumi.Input[]>; + alertType: pulumi.Input; + description?: pulumi.Input; + disabled?: pulumi.Input; + name: pulumi.Input; + query?: pulumi.Input; + repository: pulumi.Input; + /** + * Email of the user that the alert runs on behalf of + */ + runAsUser: pulumi.Input; + slug?: pulumi.Input; + tags?: pulumi.Input[]>; + /** + * Required for STANDARD type alerts, optional for FILTER type alerts + */ + throttleDuration?: pulumi.Input; + throttleField?: pulumi.Input; + /** + * Required for STANDARD type alerts, ignored for FILTER type alerts + */ + timeWindow?: pulumi.Input; +} diff --git a/sdk/nodejs/resourcePoolsConfig.ts b/sdk/nodejs/resourcePoolsConfig.ts index 019b8c2c..866f99c3 100644 --- a/sdk/nodejs/resourcePoolsConfig.ts +++ b/sdk/nodejs/resourcePoolsConfig.ts @@ -34,7 +34,7 @@ export class ResourcePoolsConfig extends pulumi.CustomResource { return obj['__pulumiType'] === ResourcePoolsConfig.__pulumiType; } - public readonly defaultPool!: pulumi.Output; + public readonly defaultPool!: pulumi.Output; public readonly pool!: pulumi.Output; /** * @deprecated Use pool instead of pools @@ -48,7 +48,7 @@ export class ResourcePoolsConfig extends pulumi.CustomResource { * @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: ResourcePoolsConfigArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args?: ResourcePoolsConfigArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: ResourcePoolsConfigArgs | ResourcePoolsConfigState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -59,9 +59,6 @@ export class ResourcePoolsConfig extends pulumi.CustomResource { resourceInputs["pools"] = state ? state.pools : undefined; } else { const args = argsOrState as ResourcePoolsConfigArgs | undefined; - if ((!args || args.defaultPool === undefined) && !opts.urn) { - throw new Error("Missing required property 'defaultPool'"); - } resourceInputs["defaultPool"] = args ? args.defaultPool : undefined; resourceInputs["pool"] = args ? args.pool : undefined; resourceInputs["pools"] = args ? args.pools : undefined; @@ -87,7 +84,7 @@ export interface ResourcePoolsConfigState { * The set of arguments for constructing a ResourcePoolsConfig resource. */ export interface ResourcePoolsConfigArgs { - defaultPool: pulumi.Input; + defaultPool?: pulumi.Input; pool?: pulumi.Input[]>; /** * @deprecated Use pool instead of pools diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 6e67ac0c..58fe2c22 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -29,6 +29,9 @@ "emailAlertNotifier.ts", "gcpMetricsIntegration.ts", "index.ts", + "logAllocationConfig.ts", + "logscaleAction.ts", + "logscaleAlert.ts", "mappingRule.ts", "monitor.ts", "notificationPolicy.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 59282a55..49739057 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -6,10 +6,19 @@ import * as inputs from "../types/input"; import * as outputs from "../types/output"; export interface DatasetConfiguration { + logDataset?: pulumi.Input; traceDataset?: pulumi.Input; type: pulumi.Input; } +export interface DatasetConfigurationLogDataset { + matchCriteria?: pulumi.Input; +} + +export interface DatasetConfigurationLogDatasetMatchCriteria { + query: pulumi.Input; +} + export interface DatasetConfigurationTraceDataset { matchCriteria: pulumi.Input; } @@ -28,23 +37,11 @@ export interface DatasetConfigurationTraceDatasetMatchCriteriaSpan { parentService?: pulumi.Input; service?: pulumi.Input; spanCount?: pulumi.Input; - tag?: pulumi.Input[]>; - /** - * @deprecated `tags` is deprecated, use `tag` instead. - */ tags?: pulumi.Input[]>; } export interface DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: pulumi.Input; maxSecs?: pulumi.Input; - /** - * @deprecated use min_secs instead - */ - minSeconds?: pulumi.Input; minSecs?: pulumi.Input; } @@ -104,15 +101,7 @@ export interface DatasetConfigurationTraceDatasetMatchCriteriaTrace { } export interface DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: pulumi.Input; maxSecs?: pulumi.Input; - /** - * @deprecated use min_secs instead - */ - minSeconds?: pulumi.Input; minSecs?: pulumi.Input; } @@ -197,6 +186,107 @@ export interface GcpMetricsIntegrationServiceAccount { clientEmail: pulumi.Input; } +export interface LogAllocationConfigDatasetAllocation { + allocation: pulumi.Input; + datasetId: pulumi.Input; + priorities?: pulumi.Input; +} + +export interface LogAllocationConfigDatasetAllocationAllocation { + percentOfLicense: pulumi.Input; +} + +export interface LogAllocationConfigDatasetAllocationPriorities { + highPriorityFilters?: pulumi.Input[]>; + lowPriorityFilters?: pulumi.Input[]>; +} + +export interface LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter { + query: pulumi.Input; +} + +export interface LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter { + query: pulumi.Input; +} + +export interface LogAllocationConfigDefaultDataset { + allocation: pulumi.Input; + priorities?: pulumi.Input; +} + +export interface LogAllocationConfigDefaultDatasetAllocation { + percentOfLicense: pulumi.Input; +} + +export interface LogAllocationConfigDefaultDatasetPriorities { + highPriorityFilters?: pulumi.Input[]>; + lowPriorityFilters?: pulumi.Input[]>; +} + +export interface LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter { + query: pulumi.Input; +} + +export interface LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter { + query: pulumi.Input; +} + +export interface LogscaleActionEmailAction { + attachCsv?: pulumi.Input; + bodyTemplate?: pulumi.Input; + recipients: pulumi.Input[]>; + subjectTemplate?: pulumi.Input; + useProxy?: pulumi.Input; +} + +export interface LogscaleActionHumioAction { + ingestToken: pulumi.Input; +} + +export interface LogscaleActionOpsGenieAction { + apiUrl: pulumi.Input; + opsGenieKey: pulumi.Input; + useProxy?: pulumi.Input; +} + +export interface LogscaleActionPagerDutyAction { + routingKey: pulumi.Input; + severity: pulumi.Input; + useProxy?: pulumi.Input; +} + +export interface LogscaleActionSlackAction { + fields?: pulumi.Input<{[key: string]: pulumi.Input}>; + url: pulumi.Input; + useProxy?: pulumi.Input; +} + +export interface LogscaleActionSlackPostMessageAction { + apiToken: pulumi.Input; + channels: pulumi.Input[]>; + fields?: pulumi.Input<{[key: string]: pulumi.Input}>; + useProxy?: pulumi.Input; +} + +export interface LogscaleActionUploadFileAction { + fileName: pulumi.Input; +} + +export interface LogscaleActionVictorOpsAction { + messageType: pulumi.Input; + notifyUrl: pulumi.Input; + useProxy?: pulumi.Input; +} + +export interface LogscaleActionWebhookAction { + bodyTemplate?: pulumi.Input; + headers?: pulumi.Input<{[key: string]: pulumi.Input}>; + ignoreSsl?: pulumi.Input; + method: pulumi.Input; + url: pulumi.Input; + useProxy?: pulumi.Input; +} + export interface MappingRuleStoragePolicy { resolution: pulumi.Input; retention: pulumi.Input; @@ -314,12 +404,18 @@ export interface PagerdutyAlertNotifierLink { } export interface ResourcePoolsConfigDefaultPool { - allocation: pulumi.Input; + allocation?: pulumi.Input; priorities?: pulumi.Input; } export interface ResourcePoolsConfigDefaultPoolAllocation { - percentOfLicense: pulumi.Input; + fixedValues?: pulumi.Input[]>; + percentOfLicense?: pulumi.Input; +} + +export interface ResourcePoolsConfigDefaultPoolAllocationFixedValue { + license: pulumi.Input; + value: pulumi.Input; } export interface ResourcePoolsConfigDefaultPoolPriorities { @@ -328,7 +424,7 @@ export interface ResourcePoolsConfigDefaultPoolPriorities { } export interface ResourcePoolsConfigPool { - allocation: pulumi.Input; + allocation?: pulumi.Input; /** * @deprecated use match_rules */ @@ -339,7 +435,13 @@ export interface ResourcePoolsConfigPool { } export interface ResourcePoolsConfigPoolAllocation { - percentOfLicense: pulumi.Input; + fixedValues?: pulumi.Input[]>; + percentOfLicense?: pulumi.Input; +} + +export interface ResourcePoolsConfigPoolAllocationFixedValue { + license: pulumi.Input; + value: pulumi.Input; } export interface ResourcePoolsConfigPoolPriorities { @@ -439,23 +541,11 @@ export interface TraceMetricsRuleTraceFilterSpan { parentService?: pulumi.Input; service?: pulumi.Input; spanCount?: pulumi.Input; - tag?: pulumi.Input[]>; - /** - * @deprecated `tags` is deprecated, use `tag` instead. - */ tags?: pulumi.Input[]>; } export interface TraceMetricsRuleTraceFilterSpanDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: pulumi.Input; maxSecs?: pulumi.Input; - /** - * @deprecated use min_secs instead - */ - minSeconds?: pulumi.Input; minSecs?: pulumi.Input; } @@ -515,15 +605,7 @@ export interface TraceMetricsRuleTraceFilterTrace { } export interface TraceMetricsRuleTraceFilterTraceDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: pulumi.Input; maxSecs?: pulumi.Input; - /** - * @deprecated use min_secs instead - */ - minSeconds?: pulumi.Input; minSecs?: pulumi.Input; } @@ -557,23 +639,11 @@ export interface TraceTailSamplingRulesRuleFilterSpan { parentService?: pulumi.Input; service?: pulumi.Input; spanCount?: pulumi.Input; - tag?: pulumi.Input[]>; - /** - * @deprecated `tags` is deprecated, use `tag` instead. - */ tags?: pulumi.Input[]>; } export interface TraceTailSamplingRulesRuleFilterSpanDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: pulumi.Input; maxSecs?: pulumi.Input; - /** - * @deprecated use min_secs instead - */ - minSeconds?: pulumi.Input; minSecs?: pulumi.Input; } @@ -633,15 +703,7 @@ export interface TraceTailSamplingRulesRuleFilterTrace { } export interface TraceTailSamplingRulesRuleFilterTraceDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: pulumi.Input; maxSecs?: pulumi.Input; - /** - * @deprecated use min_secs instead - */ - minSeconds?: pulumi.Input; minSecs?: pulumi.Input; } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index aac985f5..d66cda06 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -6,10 +6,19 @@ import * as inputs from "../types/input"; import * as outputs from "../types/output"; export interface DatasetConfiguration { + logDataset?: outputs.DatasetConfigurationLogDataset; traceDataset?: outputs.DatasetConfigurationTraceDataset; type: string; } +export interface DatasetConfigurationLogDataset { + matchCriteria?: outputs.DatasetConfigurationLogDatasetMatchCriteria; +} + +export interface DatasetConfigurationLogDatasetMatchCriteria { + query: string; +} + export interface DatasetConfigurationTraceDataset { matchCriteria: outputs.DatasetConfigurationTraceDatasetMatchCriteria; } @@ -28,23 +37,11 @@ export interface DatasetConfigurationTraceDatasetMatchCriteriaSpan { parentService?: outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanParentService; service?: outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanService; spanCount?: outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount; - tag?: outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTag[]; - /** - * @deprecated `tags` is deprecated, use `tag` instead. - */ tags?: outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTag[]; } export interface DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: number; maxSecs?: number; - /** - * @deprecated use min_secs instead - */ - minSeconds?: number; minSecs?: number; } @@ -104,15 +101,7 @@ export interface DatasetConfigurationTraceDatasetMatchCriteriaTrace { } export interface DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: number; maxSecs?: number; - /** - * @deprecated use min_secs instead - */ - minSeconds?: number; minSecs?: number; } @@ -197,6 +186,107 @@ export interface GcpMetricsIntegrationServiceAccount { clientEmail: string; } +export interface LogAllocationConfigDatasetAllocation { + allocation: outputs.LogAllocationConfigDatasetAllocationAllocation; + datasetId: string; + priorities?: outputs.LogAllocationConfigDatasetAllocationPriorities; +} + +export interface LogAllocationConfigDatasetAllocationAllocation { + percentOfLicense: number; +} + +export interface LogAllocationConfigDatasetAllocationPriorities { + highPriorityFilters?: outputs.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter[]; + lowPriorityFilters?: outputs.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter[]; +} + +export interface LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter { + query: string; +} + +export interface LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter { + query: string; +} + +export interface LogAllocationConfigDefaultDataset { + allocation: outputs.LogAllocationConfigDefaultDatasetAllocation; + priorities?: outputs.LogAllocationConfigDefaultDatasetPriorities; +} + +export interface LogAllocationConfigDefaultDatasetAllocation { + percentOfLicense: number; +} + +export interface LogAllocationConfigDefaultDatasetPriorities { + highPriorityFilters?: outputs.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter[]; + lowPriorityFilters?: outputs.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter[]; +} + +export interface LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter { + query: string; +} + +export interface LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter { + query: string; +} + +export interface LogscaleActionEmailAction { + attachCsv?: boolean; + bodyTemplate?: string; + recipients: string[]; + subjectTemplate?: string; + useProxy?: boolean; +} + +export interface LogscaleActionHumioAction { + ingestToken: string; +} + +export interface LogscaleActionOpsGenieAction { + apiUrl: string; + opsGenieKey: string; + useProxy?: boolean; +} + +export interface LogscaleActionPagerDutyAction { + routingKey: string; + severity: string; + useProxy?: boolean; +} + +export interface LogscaleActionSlackAction { + fields?: {[key: string]: string}; + url: string; + useProxy?: boolean; +} + +export interface LogscaleActionSlackPostMessageAction { + apiToken: string; + channels: string[]; + fields?: {[key: string]: string}; + useProxy?: boolean; +} + +export interface LogscaleActionUploadFileAction { + fileName: string; +} + +export interface LogscaleActionVictorOpsAction { + messageType: string; + notifyUrl: string; + useProxy?: boolean; +} + +export interface LogscaleActionWebhookAction { + bodyTemplate?: string; + headers?: {[key: string]: string}; + ignoreSsl?: boolean; + method: string; + url: string; + useProxy?: boolean; +} + export interface MappingRuleStoragePolicy { resolution: string; retention: string; @@ -314,12 +404,18 @@ export interface PagerdutyAlertNotifierLink { } export interface ResourcePoolsConfigDefaultPool { - allocation: outputs.ResourcePoolsConfigDefaultPoolAllocation; + allocation?: outputs.ResourcePoolsConfigDefaultPoolAllocation; priorities?: outputs.ResourcePoolsConfigDefaultPoolPriorities; } export interface ResourcePoolsConfigDefaultPoolAllocation { - percentOfLicense: number; + fixedValues?: outputs.ResourcePoolsConfigDefaultPoolAllocationFixedValue[]; + percentOfLicense?: number; +} + +export interface ResourcePoolsConfigDefaultPoolAllocationFixedValue { + license: string; + value: number; } export interface ResourcePoolsConfigDefaultPoolPriorities { @@ -328,7 +424,7 @@ export interface ResourcePoolsConfigDefaultPoolPriorities { } export interface ResourcePoolsConfigPool { - allocation: outputs.ResourcePoolsConfigPoolAllocation; + allocation?: outputs.ResourcePoolsConfigPoolAllocation; /** * @deprecated use match_rules */ @@ -339,7 +435,13 @@ export interface ResourcePoolsConfigPool { } export interface ResourcePoolsConfigPoolAllocation { - percentOfLicense: number; + fixedValues?: outputs.ResourcePoolsConfigPoolAllocationFixedValue[]; + percentOfLicense?: number; +} + +export interface ResourcePoolsConfigPoolAllocationFixedValue { + license: string; + value: number; } export interface ResourcePoolsConfigPoolPriorities { @@ -439,23 +541,11 @@ export interface TraceMetricsRuleTraceFilterSpan { parentService?: outputs.TraceMetricsRuleTraceFilterSpanParentService; service?: outputs.TraceMetricsRuleTraceFilterSpanService; spanCount?: outputs.TraceMetricsRuleTraceFilterSpanSpanCount; - tag?: outputs.TraceMetricsRuleTraceFilterSpanTag[]; - /** - * @deprecated `tags` is deprecated, use `tag` instead. - */ tags?: outputs.TraceMetricsRuleTraceFilterSpanTag[]; } export interface TraceMetricsRuleTraceFilterSpanDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: number; maxSecs?: number; - /** - * @deprecated use min_secs instead - */ - minSeconds?: number; minSecs?: number; } @@ -515,15 +605,7 @@ export interface TraceMetricsRuleTraceFilterTrace { } export interface TraceMetricsRuleTraceFilterTraceDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: number; maxSecs?: number; - /** - * @deprecated use min_secs instead - */ - minSeconds?: number; minSecs?: number; } @@ -557,23 +639,11 @@ export interface TraceTailSamplingRulesRuleFilterSpan { parentService?: outputs.TraceTailSamplingRulesRuleFilterSpanParentService; service?: outputs.TraceTailSamplingRulesRuleFilterSpanService; spanCount?: outputs.TraceTailSamplingRulesRuleFilterSpanSpanCount; - tag?: outputs.TraceTailSamplingRulesRuleFilterSpanTag[]; - /** - * @deprecated `tags` is deprecated, use `tag` instead. - */ tags?: outputs.TraceTailSamplingRulesRuleFilterSpanTag[]; } export interface TraceTailSamplingRulesRuleFilterSpanDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: number; maxSecs?: number; - /** - * @deprecated use min_secs instead - */ - minSeconds?: number; minSecs?: number; } @@ -633,15 +703,7 @@ export interface TraceTailSamplingRulesRuleFilterTrace { } export interface TraceTailSamplingRulesRuleFilterTraceDuration { - /** - * @deprecated use max_secs instead - */ - maxSeconds?: number; maxSecs?: number; - /** - * @deprecated use min_secs instead - */ - minSeconds?: number; minSecs?: number; } diff --git a/sdk/python/chronosphereio_chronosphere/README.md b/sdk/python/pulumi_chronosphere/README.md similarity index 100% rename from sdk/python/chronosphereio_chronosphere/README.md rename to sdk/python/pulumi_chronosphere/README.md diff --git a/sdk/python/chronosphereio_chronosphere/__init__.py b/sdk/python/pulumi_chronosphere/__init__.py similarity index 78% rename from sdk/python/chronosphereio_chronosphere/__init__.py rename to sdk/python/pulumi_chronosphere/__init__.py index 249e5772..6719c298 100644 --- a/sdk/python/chronosphereio_chronosphere/__init__.py +++ b/sdk/python/pulumi_chronosphere/__init__.py @@ -18,6 +18,9 @@ from .drop_rule import * from .email_alert_notifier import * from .gcp_metrics_integration import * +from .log_allocation_config import * +from .logscale_action import * +from .logscale_alert import * from .mapping_rule import * from .monitor import * from .notification_policy import * @@ -42,10 +45,10 @@ # Make subpackages available: if typing.TYPE_CHECKING: - import chronosphereio_chronosphere.config as __config + import pulumi_chronosphere.config as __config config = __config else: - config = _utilities.lazy_import('chronosphereio_chronosphere.config') + config = _utilities.lazy_import('pulumi_chronosphere.config') _utilities.register( resource_modules=""" @@ -53,7 +56,7 @@ { "pkg": "chronosphere", "mod": "index/blackholeAlertNotifier", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/blackholeAlertNotifier:BlackholeAlertNotifier": "BlackholeAlertNotifier" } @@ -61,7 +64,7 @@ { "pkg": "chronosphere", "mod": "index/bucket", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/bucket:Bucket": "Bucket" } @@ -69,7 +72,7 @@ { "pkg": "chronosphere", "mod": "index/classicDashboard", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/classicDashboard:ClassicDashboard": "ClassicDashboard" } @@ -77,7 +80,7 @@ { "pkg": "chronosphere", "mod": "index/collection", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/collection:Collection": "Collection" } @@ -85,7 +88,7 @@ { "pkg": "chronosphere", "mod": "index/dashboard", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/dashboard:Dashboard": "Dashboard" } @@ -93,7 +96,7 @@ { "pkg": "chronosphere", "mod": "index/dataset", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/dataset:Dataset": "Dataset" } @@ -101,7 +104,7 @@ { "pkg": "chronosphere", "mod": "index/derivedLabel", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/derivedLabel:DerivedLabel": "DerivedLabel" } @@ -109,7 +112,7 @@ { "pkg": "chronosphere", "mod": "index/derivedMetric", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/derivedMetric:DerivedMetric": "DerivedMetric" } @@ -117,7 +120,7 @@ { "pkg": "chronosphere", "mod": "index/dropRule", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/dropRule:DropRule": "DropRule" } @@ -125,7 +128,7 @@ { "pkg": "chronosphere", "mod": "index/emailAlertNotifier", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/emailAlertNotifier:EmailAlertNotifier": "EmailAlertNotifier" } @@ -133,15 +136,39 @@ { "pkg": "chronosphere", "mod": "index/gcpMetricsIntegration", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/gcpMetricsIntegration:GcpMetricsIntegration": "GcpMetricsIntegration" } }, + { + "pkg": "chronosphere", + "mod": "index/logAllocationConfig", + "fqn": "pulumi_chronosphere", + "classes": { + "chronosphere:index/logAllocationConfig:LogAllocationConfig": "LogAllocationConfig" + } + }, + { + "pkg": "chronosphere", + "mod": "index/logscaleAction", + "fqn": "pulumi_chronosphere", + "classes": { + "chronosphere:index/logscaleAction:LogscaleAction": "LogscaleAction" + } + }, + { + "pkg": "chronosphere", + "mod": "index/logscaleAlert", + "fqn": "pulumi_chronosphere", + "classes": { + "chronosphere:index/logscaleAlert:LogscaleAlert": "LogscaleAlert" + } + }, { "pkg": "chronosphere", "mod": "index/mappingRule", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/mappingRule:MappingRule": "MappingRule" } @@ -149,7 +176,7 @@ { "pkg": "chronosphere", "mod": "index/monitor", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/monitor:Monitor": "Monitor" } @@ -157,7 +184,7 @@ { "pkg": "chronosphere", "mod": "index/notificationPolicy", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/notificationPolicy:NotificationPolicy": "NotificationPolicy" } @@ -165,7 +192,7 @@ { "pkg": "chronosphere", "mod": "index/opsgenieAlertNotifier", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/opsgenieAlertNotifier:OpsgenieAlertNotifier": "OpsgenieAlertNotifier" } @@ -173,7 +200,7 @@ { "pkg": "chronosphere", "mod": "index/otelMetricsIngestion", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/otelMetricsIngestion:OtelMetricsIngestion": "OtelMetricsIngestion" } @@ -181,7 +208,7 @@ { "pkg": "chronosphere", "mod": "index/pagerdutyAlertNotifier", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/pagerdutyAlertNotifier:PagerdutyAlertNotifier": "PagerdutyAlertNotifier" } @@ -189,7 +216,7 @@ { "pkg": "chronosphere", "mod": "index/recordingRule", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/recordingRule:RecordingRule": "RecordingRule" } @@ -197,7 +224,7 @@ { "pkg": "chronosphere", "mod": "index/resourcePoolsConfig", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/resourcePoolsConfig:ResourcePoolsConfig": "ResourcePoolsConfig" } @@ -205,7 +232,7 @@ { "pkg": "chronosphere", "mod": "index/rollupRule", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/rollupRule:RollupRule": "RollupRule" } @@ -213,7 +240,7 @@ { "pkg": "chronosphere", "mod": "index/serviceAccount", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/serviceAccount:ServiceAccount": "ServiceAccount" } @@ -221,7 +248,7 @@ { "pkg": "chronosphere", "mod": "index/slackAlertNotifier", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/slackAlertNotifier:SlackAlertNotifier": "SlackAlertNotifier" } @@ -229,7 +256,7 @@ { "pkg": "chronosphere", "mod": "index/team", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/team:Team": "Team" } @@ -237,7 +264,7 @@ { "pkg": "chronosphere", "mod": "index/traceJaegerRemoteSamplingStrategy", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/traceJaegerRemoteSamplingStrategy:TraceJaegerRemoteSamplingStrategy": "TraceJaegerRemoteSamplingStrategy" } @@ -245,7 +272,7 @@ { "pkg": "chronosphere", "mod": "index/traceMetricsRule", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/traceMetricsRule:TraceMetricsRule": "TraceMetricsRule" } @@ -253,7 +280,7 @@ { "pkg": "chronosphere", "mod": "index/traceTailSamplingRules", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/traceTailSamplingRules:TraceTailSamplingRules": "TraceTailSamplingRules" } @@ -261,7 +288,7 @@ { "pkg": "chronosphere", "mod": "index/victoropsAlertNotifier", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/victoropsAlertNotifier:VictoropsAlertNotifier": "VictoropsAlertNotifier" } @@ -269,7 +296,7 @@ { "pkg": "chronosphere", "mod": "index/webhookAlertNotifier", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "classes": { "chronosphere:index/webhookAlertNotifier:WebhookAlertNotifier": "WebhookAlertNotifier" } @@ -281,7 +308,7 @@ { "pkg": "chronosphere", "token": "pulumi:providers:chronosphere", - "fqn": "chronosphereio_chronosphere", + "fqn": "pulumi_chronosphere", "class": "Provider" } ] diff --git a/sdk/python/chronosphereio_chronosphere/_inputs.py b/sdk/python/pulumi_chronosphere/_inputs.py similarity index 83% rename from sdk/python/chronosphereio_chronosphere/_inputs.py rename to sdk/python/pulumi_chronosphere/_inputs.py index 9f66c62a..1e42e7f4 100644 --- a/sdk/python/chronosphereio_chronosphere/_inputs.py +++ b/sdk/python/pulumi_chronosphere/_inputs.py @@ -11,6 +11,8 @@ __all__ = [ 'DatasetConfigurationArgs', + 'DatasetConfigurationLogDatasetArgs', + 'DatasetConfigurationLogDatasetMatchCriteriaArgs', 'DatasetConfigurationTraceDatasetArgs', 'DatasetConfigurationTraceDatasetMatchCriteriaArgs', 'DatasetConfigurationTraceDatasetMatchCriteriaSpanArgs', @@ -43,6 +45,25 @@ 'DropRuleValueBasedDropArgs', 'GcpMetricsIntegrationMetricGroupArgs', 'GcpMetricsIntegrationServiceAccountArgs', + 'LogAllocationConfigDatasetAllocationArgs', + 'LogAllocationConfigDatasetAllocationAllocationArgs', + 'LogAllocationConfigDatasetAllocationPrioritiesArgs', + 'LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs', + 'LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs', + 'LogAllocationConfigDefaultDatasetArgs', + 'LogAllocationConfigDefaultDatasetAllocationArgs', + 'LogAllocationConfigDefaultDatasetPrioritiesArgs', + 'LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs', + 'LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs', + 'LogscaleActionEmailActionArgs', + 'LogscaleActionHumioActionArgs', + 'LogscaleActionOpsGenieActionArgs', + 'LogscaleActionPagerDutyActionArgs', + 'LogscaleActionSlackActionArgs', + 'LogscaleActionSlackPostMessageActionArgs', + 'LogscaleActionUploadFileActionArgs', + 'LogscaleActionVictorOpsActionArgs', + 'LogscaleActionWebhookActionArgs', 'MappingRuleStoragePolicyArgs', 'MonitorQueryArgs', 'MonitorScheduleArgs', @@ -65,9 +86,11 @@ 'PagerdutyAlertNotifierLinkArgs', 'ResourcePoolsConfigDefaultPoolArgs', 'ResourcePoolsConfigDefaultPoolAllocationArgs', + 'ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs', 'ResourcePoolsConfigDefaultPoolPrioritiesArgs', 'ResourcePoolsConfigPoolArgs', 'ResourcePoolsConfigPoolAllocationArgs', + 'ResourcePoolsConfigPoolAllocationFixedValueArgs', 'ResourcePoolsConfigPoolPrioritiesArgs', 'RollupRuleGraphiteLabelPolicyArgs', 'RollupRuleGraphiteLabelPolicyReplaceArgs', @@ -121,8 +144,11 @@ class DatasetConfigurationArgs: def __init__(__self__, *, type: pulumi.Input[str], + log_dataset: Optional[pulumi.Input['DatasetConfigurationLogDatasetArgs']] = None, trace_dataset: Optional[pulumi.Input['DatasetConfigurationTraceDatasetArgs']] = None): pulumi.set(__self__, "type", type) + if log_dataset is not None: + pulumi.set(__self__, "log_dataset", log_dataset) if trace_dataset is not None: pulumi.set(__self__, "trace_dataset", trace_dataset) @@ -135,6 +161,15 @@ def type(self) -> pulumi.Input[str]: def type(self, value: pulumi.Input[str]): pulumi.set(self, "type", value) + @property + @pulumi.getter(name="logDataset") + def log_dataset(self) -> Optional[pulumi.Input['DatasetConfigurationLogDatasetArgs']]: + return pulumi.get(self, "log_dataset") + + @log_dataset.setter + def log_dataset(self, value: Optional[pulumi.Input['DatasetConfigurationLogDatasetArgs']]): + pulumi.set(self, "log_dataset", value) + @property @pulumi.getter(name="traceDataset") def trace_dataset(self) -> Optional[pulumi.Input['DatasetConfigurationTraceDatasetArgs']]: @@ -145,6 +180,39 @@ def trace_dataset(self, value: Optional[pulumi.Input['DatasetConfigurationTraceD pulumi.set(self, "trace_dataset", value) +@pulumi.input_type +class DatasetConfigurationLogDatasetArgs: + def __init__(__self__, *, + match_criteria: Optional[pulumi.Input['DatasetConfigurationLogDatasetMatchCriteriaArgs']] = None): + if match_criteria is not None: + pulumi.set(__self__, "match_criteria", match_criteria) + + @property + @pulumi.getter(name="matchCriteria") + def match_criteria(self) -> Optional[pulumi.Input['DatasetConfigurationLogDatasetMatchCriteriaArgs']]: + return pulumi.get(self, "match_criteria") + + @match_criteria.setter + def match_criteria(self, value: Optional[pulumi.Input['DatasetConfigurationLogDatasetMatchCriteriaArgs']]): + pulumi.set(self, "match_criteria", value) + + +@pulumi.input_type +class DatasetConfigurationLogDatasetMatchCriteriaArgs: + def __init__(__self__, *, + query: pulumi.Input[str]): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> pulumi.Input[str]: + return pulumi.get(self, "query") + + @query.setter + def query(self, value: pulumi.Input[str]): + pulumi.set(self, "query", value) + + @pulumi.input_type class DatasetConfigurationTraceDatasetArgs: def __init__(__self__, *, @@ -201,7 +269,6 @@ def __init__(__self__, *, parent_service: Optional[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanParentServiceArgs']] = None, service: Optional[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanServiceArgs']] = None, span_count: Optional[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountArgs']] = None, - tag: Optional[pulumi.Input[Sequence[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs']]]] = None): if duration is not None: pulumi.set(__self__, "duration", duration) @@ -219,11 +286,6 @@ def __init__(__self__, *, pulumi.set(__self__, "service", service) if span_count is not None: pulumi.set(__self__, "span_count", span_count) - if tag is not None: - pulumi.set(__self__, "tag", tag) - if tags is not None: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") if tags is not None: pulumi.set(__self__, "tags", tags) @@ -299,21 +361,9 @@ def span_count(self) -> Optional[pulumi.Input['DatasetConfigurationTraceDatasetM def span_count(self, value: Optional[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCountArgs']]): pulumi.set(self, "span_count", value) - @property - @pulumi.getter - def tag(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs']]]]: - return pulumi.get(self, "tag") - - @tag.setter - def tag(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs']]]]): - pulumi.set(self, "tag", value) - @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DatasetConfigurationTraceDatasetMatchCriteriaSpanTagArgs']]]]: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") - return pulumi.get(self, "tags") @tags.setter @@ -324,37 +374,13 @@ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DatasetConfig @pulumi.input_type class DatasetConfigurationTraceDatasetMatchCriteriaSpanDurationArgs: def __init__(__self__, *, - max_seconds: Optional[pulumi.Input[float]] = None, max_secs: Optional[pulumi.Input[float]] = None, - min_seconds: Optional[pulumi.Input[float]] = None, min_secs: Optional[pulumi.Input[float]] = None): - if max_seconds is not None: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - - @max_seconds.setter - def max_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "max_seconds", value) - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[pulumi.Input[float]]: @@ -364,18 +390,6 @@ def max_secs(self) -> Optional[pulumi.Input[float]]: def max_secs(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "max_secs", value) - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - - @min_seconds.setter - def min_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "min_seconds", value) - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[pulumi.Input[float]]: @@ -736,37 +750,13 @@ def error(self, value: Optional[pulumi.Input['DatasetConfigurationTraceDatasetMa @pulumi.input_type class DatasetConfigurationTraceDatasetMatchCriteriaTraceDurationArgs: def __init__(__self__, *, - max_seconds: Optional[pulumi.Input[float]] = None, max_secs: Optional[pulumi.Input[float]] = None, - min_seconds: Optional[pulumi.Input[float]] = None, min_secs: Optional[pulumi.Input[float]] = None): - if max_seconds is not None: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - - @max_seconds.setter - def max_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "max_seconds", value) - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[pulumi.Input[float]]: @@ -776,18 +766,6 @@ def max_secs(self) -> Optional[pulumi.Input[float]]: def max_secs(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "max_secs", value) - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - - @min_seconds.setter - def min_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "min_seconds", value) - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[pulumi.Input[float]]: @@ -1222,6 +1200,606 @@ def client_email(self, value: pulumi.Input[str]): pulumi.set(self, "client_email", value) +@pulumi.input_type +class LogAllocationConfigDatasetAllocationArgs: + def __init__(__self__, *, + allocation: pulumi.Input['LogAllocationConfigDatasetAllocationAllocationArgs'], + dataset_id: pulumi.Input[str], + priorities: Optional[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesArgs']] = None): + pulumi.set(__self__, "allocation", allocation) + pulumi.set(__self__, "dataset_id", dataset_id) + if priorities is not None: + pulumi.set(__self__, "priorities", priorities) + + @property + @pulumi.getter + def allocation(self) -> pulumi.Input['LogAllocationConfigDatasetAllocationAllocationArgs']: + return pulumi.get(self, "allocation") + + @allocation.setter + def allocation(self, value: pulumi.Input['LogAllocationConfigDatasetAllocationAllocationArgs']): + pulumi.set(self, "allocation", value) + + @property + @pulumi.getter(name="datasetId") + def dataset_id(self) -> pulumi.Input[str]: + return pulumi.get(self, "dataset_id") + + @dataset_id.setter + def dataset_id(self, value: pulumi.Input[str]): + pulumi.set(self, "dataset_id", value) + + @property + @pulumi.getter + def priorities(self) -> Optional[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesArgs']]: + return pulumi.get(self, "priorities") + + @priorities.setter + def priorities(self, value: Optional[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesArgs']]): + pulumi.set(self, "priorities", value) + + +@pulumi.input_type +class LogAllocationConfigDatasetAllocationAllocationArgs: + def __init__(__self__, *, + percent_of_license: pulumi.Input[float]): + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="percentOfLicense") + def percent_of_license(self) -> pulumi.Input[float]: + return pulumi.get(self, "percent_of_license") + + @percent_of_license.setter + def percent_of_license(self, value: pulumi.Input[float]): + pulumi.set(self, "percent_of_license", value) + + +@pulumi.input_type +class LogAllocationConfigDatasetAllocationPrioritiesArgs: + def __init__(__self__, *, + high_priority_filters: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs']]]] = None, + low_priority_filters: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs']]]] = None): + if high_priority_filters is not None: + pulumi.set(__self__, "high_priority_filters", high_priority_filters) + if low_priority_filters is not None: + pulumi.set(__self__, "low_priority_filters", low_priority_filters) + + @property + @pulumi.getter(name="highPriorityFilters") + def high_priority_filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs']]]]: + return pulumi.get(self, "high_priority_filters") + + @high_priority_filters.setter + def high_priority_filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs']]]]): + pulumi.set(self, "high_priority_filters", value) + + @property + @pulumi.getter(name="lowPriorityFilters") + def low_priority_filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs']]]]: + return pulumi.get(self, "low_priority_filters") + + @low_priority_filters.setter + def low_priority_filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs']]]]): + pulumi.set(self, "low_priority_filters", value) + + +@pulumi.input_type +class LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilterArgs: + def __init__(__self__, *, + query: pulumi.Input[str]): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> pulumi.Input[str]: + return pulumi.get(self, "query") + + @query.setter + def query(self, value: pulumi.Input[str]): + pulumi.set(self, "query", value) + + +@pulumi.input_type +class LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilterArgs: + def __init__(__self__, *, + query: pulumi.Input[str]): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> pulumi.Input[str]: + return pulumi.get(self, "query") + + @query.setter + def query(self, value: pulumi.Input[str]): + pulumi.set(self, "query", value) + + +@pulumi.input_type +class LogAllocationConfigDefaultDatasetArgs: + def __init__(__self__, *, + allocation: pulumi.Input['LogAllocationConfigDefaultDatasetAllocationArgs'], + priorities: Optional[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesArgs']] = None): + pulumi.set(__self__, "allocation", allocation) + if priorities is not None: + pulumi.set(__self__, "priorities", priorities) + + @property + @pulumi.getter + def allocation(self) -> pulumi.Input['LogAllocationConfigDefaultDatasetAllocationArgs']: + return pulumi.get(self, "allocation") + + @allocation.setter + def allocation(self, value: pulumi.Input['LogAllocationConfigDefaultDatasetAllocationArgs']): + pulumi.set(self, "allocation", value) + + @property + @pulumi.getter + def priorities(self) -> Optional[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesArgs']]: + return pulumi.get(self, "priorities") + + @priorities.setter + def priorities(self, value: Optional[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesArgs']]): + pulumi.set(self, "priorities", value) + + +@pulumi.input_type +class LogAllocationConfigDefaultDatasetAllocationArgs: + def __init__(__self__, *, + percent_of_license: pulumi.Input[float]): + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="percentOfLicense") + def percent_of_license(self) -> pulumi.Input[float]: + return pulumi.get(self, "percent_of_license") + + @percent_of_license.setter + def percent_of_license(self, value: pulumi.Input[float]): + pulumi.set(self, "percent_of_license", value) + + +@pulumi.input_type +class LogAllocationConfigDefaultDatasetPrioritiesArgs: + def __init__(__self__, *, + high_priority_filters: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs']]]] = None, + low_priority_filters: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs']]]] = None): + if high_priority_filters is not None: + pulumi.set(__self__, "high_priority_filters", high_priority_filters) + if low_priority_filters is not None: + pulumi.set(__self__, "low_priority_filters", low_priority_filters) + + @property + @pulumi.getter(name="highPriorityFilters") + def high_priority_filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs']]]]: + return pulumi.get(self, "high_priority_filters") + + @high_priority_filters.setter + def high_priority_filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs']]]]): + pulumi.set(self, "high_priority_filters", value) + + @property + @pulumi.getter(name="lowPriorityFilters") + def low_priority_filters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs']]]]: + return pulumi.get(self, "low_priority_filters") + + @low_priority_filters.setter + def low_priority_filters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs']]]]): + pulumi.set(self, "low_priority_filters", value) + + +@pulumi.input_type +class LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilterArgs: + def __init__(__self__, *, + query: pulumi.Input[str]): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> pulumi.Input[str]: + return pulumi.get(self, "query") + + @query.setter + def query(self, value: pulumi.Input[str]): + pulumi.set(self, "query", value) + + +@pulumi.input_type +class LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilterArgs: + def __init__(__self__, *, + query: pulumi.Input[str]): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> pulumi.Input[str]: + return pulumi.get(self, "query") + + @query.setter + def query(self, value: pulumi.Input[str]): + pulumi.set(self, "query", value) + + +@pulumi.input_type +class LogscaleActionEmailActionArgs: + def __init__(__self__, *, + recipients: pulumi.Input[Sequence[pulumi.Input[str]]], + attach_csv: Optional[pulumi.Input[bool]] = None, + body_template: Optional[pulumi.Input[str]] = None, + subject_template: Optional[pulumi.Input[str]] = None, + use_proxy: Optional[pulumi.Input[bool]] = None): + pulumi.set(__self__, "recipients", recipients) + if attach_csv is not None: + pulumi.set(__self__, "attach_csv", attach_csv) + if body_template is not None: + pulumi.set(__self__, "body_template", body_template) + if subject_template is not None: + pulumi.set(__self__, "subject_template", subject_template) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter + def recipients(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + return pulumi.get(self, "recipients") + + @recipients.setter + def recipients(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "recipients", value) + + @property + @pulumi.getter(name="attachCsv") + def attach_csv(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "attach_csv") + + @attach_csv.setter + def attach_csv(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "attach_csv", value) + + @property + @pulumi.getter(name="bodyTemplate") + def body_template(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "body_template") + + @body_template.setter + def body_template(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "body_template", value) + + @property + @pulumi.getter(name="subjectTemplate") + def subject_template(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "subject_template") + + @subject_template.setter + def subject_template(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "subject_template", value) + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "use_proxy") + + @use_proxy.setter + def use_proxy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "use_proxy", value) + + +@pulumi.input_type +class LogscaleActionHumioActionArgs: + def __init__(__self__, *, + ingest_token: pulumi.Input[str]): + pulumi.set(__self__, "ingest_token", ingest_token) + + @property + @pulumi.getter(name="ingestToken") + def ingest_token(self) -> pulumi.Input[str]: + return pulumi.get(self, "ingest_token") + + @ingest_token.setter + def ingest_token(self, value: pulumi.Input[str]): + pulumi.set(self, "ingest_token", value) + + +@pulumi.input_type +class LogscaleActionOpsGenieActionArgs: + def __init__(__self__, *, + api_url: pulumi.Input[str], + ops_genie_key: pulumi.Input[str], + use_proxy: Optional[pulumi.Input[bool]] = None): + pulumi.set(__self__, "api_url", api_url) + pulumi.set(__self__, "ops_genie_key", ops_genie_key) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="apiUrl") + def api_url(self) -> pulumi.Input[str]: + return pulumi.get(self, "api_url") + + @api_url.setter + def api_url(self, value: pulumi.Input[str]): + pulumi.set(self, "api_url", value) + + @property + @pulumi.getter(name="opsGenieKey") + def ops_genie_key(self) -> pulumi.Input[str]: + return pulumi.get(self, "ops_genie_key") + + @ops_genie_key.setter + def ops_genie_key(self, value: pulumi.Input[str]): + pulumi.set(self, "ops_genie_key", value) + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "use_proxy") + + @use_proxy.setter + def use_proxy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "use_proxy", value) + + +@pulumi.input_type +class LogscaleActionPagerDutyActionArgs: + def __init__(__self__, *, + routing_key: pulumi.Input[str], + severity: pulumi.Input[str], + use_proxy: Optional[pulumi.Input[bool]] = None): + pulumi.set(__self__, "routing_key", routing_key) + pulumi.set(__self__, "severity", severity) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="routingKey") + def routing_key(self) -> pulumi.Input[str]: + return pulumi.get(self, "routing_key") + + @routing_key.setter + def routing_key(self, value: pulumi.Input[str]): + pulumi.set(self, "routing_key", value) + + @property + @pulumi.getter + def severity(self) -> pulumi.Input[str]: + return pulumi.get(self, "severity") + + @severity.setter + def severity(self, value: pulumi.Input[str]): + pulumi.set(self, "severity", value) + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "use_proxy") + + @use_proxy.setter + def use_proxy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "use_proxy", value) + + +@pulumi.input_type +class LogscaleActionSlackActionArgs: + def __init__(__self__, *, + url: pulumi.Input[str], + fields: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + use_proxy: Optional[pulumi.Input[bool]] = None): + pulumi.set(__self__, "url", url) + if fields is not None: + pulumi.set(__self__, "fields", fields) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter + def url(self) -> pulumi.Input[str]: + return pulumi.get(self, "url") + + @url.setter + def url(self, value: pulumi.Input[str]): + pulumi.set(self, "url", value) + + @property + @pulumi.getter + def fields(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + return pulumi.get(self, "fields") + + @fields.setter + def fields(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "fields", value) + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "use_proxy") + + @use_proxy.setter + def use_proxy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "use_proxy", value) + + +@pulumi.input_type +class LogscaleActionSlackPostMessageActionArgs: + def __init__(__self__, *, + api_token: pulumi.Input[str], + channels: pulumi.Input[Sequence[pulumi.Input[str]]], + fields: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + use_proxy: Optional[pulumi.Input[bool]] = None): + pulumi.set(__self__, "api_token", api_token) + pulumi.set(__self__, "channels", channels) + if fields is not None: + pulumi.set(__self__, "fields", fields) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="apiToken") + def api_token(self) -> pulumi.Input[str]: + return pulumi.get(self, "api_token") + + @api_token.setter + def api_token(self, value: pulumi.Input[str]): + pulumi.set(self, "api_token", value) + + @property + @pulumi.getter + def channels(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + return pulumi.get(self, "channels") + + @channels.setter + def channels(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + pulumi.set(self, "channels", value) + + @property + @pulumi.getter + def fields(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + return pulumi.get(self, "fields") + + @fields.setter + def fields(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "fields", value) + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "use_proxy") + + @use_proxy.setter + def use_proxy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "use_proxy", value) + + +@pulumi.input_type +class LogscaleActionUploadFileActionArgs: + def __init__(__self__, *, + file_name: pulumi.Input[str]): + pulumi.set(__self__, "file_name", file_name) + + @property + @pulumi.getter(name="fileName") + def file_name(self) -> pulumi.Input[str]: + return pulumi.get(self, "file_name") + + @file_name.setter + def file_name(self, value: pulumi.Input[str]): + pulumi.set(self, "file_name", value) + + +@pulumi.input_type +class LogscaleActionVictorOpsActionArgs: + def __init__(__self__, *, + message_type: pulumi.Input[str], + notify_url: pulumi.Input[str], + use_proxy: Optional[pulumi.Input[bool]] = None): + pulumi.set(__self__, "message_type", message_type) + pulumi.set(__self__, "notify_url", notify_url) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="messageType") + def message_type(self) -> pulumi.Input[str]: + return pulumi.get(self, "message_type") + + @message_type.setter + def message_type(self, value: pulumi.Input[str]): + pulumi.set(self, "message_type", value) + + @property + @pulumi.getter(name="notifyUrl") + def notify_url(self) -> pulumi.Input[str]: + return pulumi.get(self, "notify_url") + + @notify_url.setter + def notify_url(self, value: pulumi.Input[str]): + pulumi.set(self, "notify_url", value) + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "use_proxy") + + @use_proxy.setter + def use_proxy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "use_proxy", value) + + +@pulumi.input_type +class LogscaleActionWebhookActionArgs: + def __init__(__self__, *, + method: pulumi.Input[str], + url: pulumi.Input[str], + body_template: Optional[pulumi.Input[str]] = None, + headers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + ignore_ssl: Optional[pulumi.Input[bool]] = None, + use_proxy: Optional[pulumi.Input[bool]] = None): + pulumi.set(__self__, "method", method) + pulumi.set(__self__, "url", url) + if body_template is not None: + pulumi.set(__self__, "body_template", body_template) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if ignore_ssl is not None: + pulumi.set(__self__, "ignore_ssl", ignore_ssl) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter + def method(self) -> pulumi.Input[str]: + return pulumi.get(self, "method") + + @method.setter + def method(self, value: pulumi.Input[str]): + pulumi.set(self, "method", value) + + @property + @pulumi.getter + def url(self) -> pulumi.Input[str]: + return pulumi.get(self, "url") + + @url.setter + def url(self, value: pulumi.Input[str]): + pulumi.set(self, "url", value) + + @property + @pulumi.getter(name="bodyTemplate") + def body_template(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "body_template") + + @body_template.setter + def body_template(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "body_template", value) + + @property + @pulumi.getter + def headers(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + return pulumi.get(self, "headers") + + @headers.setter + def headers(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "headers", value) + + @property + @pulumi.getter(name="ignoreSsl") + def ignore_ssl(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "ignore_ssl") + + @ignore_ssl.setter + def ignore_ssl(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "ignore_ssl", value) + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "use_proxy") + + @use_proxy.setter + def use_proxy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "use_proxy", value) + + @pulumi.input_type class MappingRuleStoragePolicyArgs: def __init__(__self__, *, @@ -1972,19 +2550,20 @@ def text(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type class ResourcePoolsConfigDefaultPoolArgs: def __init__(__self__, *, - allocation: pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationArgs'], + allocation: Optional[pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationArgs']] = None, priorities: Optional[pulumi.Input['ResourcePoolsConfigDefaultPoolPrioritiesArgs']] = None): - pulumi.set(__self__, "allocation", allocation) + if allocation is not None: + pulumi.set(__self__, "allocation", allocation) if priorities is not None: pulumi.set(__self__, "priorities", priorities) @property @pulumi.getter - def allocation(self) -> pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationArgs']: + def allocation(self) -> Optional[pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationArgs']]: return pulumi.get(self, "allocation") @allocation.setter - def allocation(self, value: pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationArgs']): + def allocation(self, value: Optional[pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationArgs']]): pulumi.set(self, "allocation", value) @property @@ -2000,19 +2579,59 @@ def priorities(self, value: Optional[pulumi.Input['ResourcePoolsConfigDefaultPoo @pulumi.input_type class ResourcePoolsConfigDefaultPoolAllocationArgs: def __init__(__self__, *, - percent_of_license: pulumi.Input[float]): - pulumi.set(__self__, "percent_of_license", percent_of_license) + fixed_values: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs']]]] = None, + percent_of_license: Optional[pulumi.Input[float]] = None): + if fixed_values is not None: + pulumi.set(__self__, "fixed_values", fixed_values) + if percent_of_license is not None: + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="fixedValues") + def fixed_values(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs']]]]: + return pulumi.get(self, "fixed_values") + + @fixed_values.setter + def fixed_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs']]]]): + pulumi.set(self, "fixed_values", value) @property @pulumi.getter(name="percentOfLicense") - def percent_of_license(self) -> pulumi.Input[float]: + def percent_of_license(self) -> Optional[pulumi.Input[float]]: return pulumi.get(self, "percent_of_license") @percent_of_license.setter - def percent_of_license(self, value: pulumi.Input[float]): + def percent_of_license(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "percent_of_license", value) +@pulumi.input_type +class ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs: + def __init__(__self__, *, + license: pulumi.Input[str], + value: pulumi.Input[int]): + pulumi.set(__self__, "license", license) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def license(self) -> pulumi.Input[str]: + return pulumi.get(self, "license") + + @license.setter + def license(self, value: pulumi.Input[str]): + pulumi.set(self, "license", value) + + @property + @pulumi.getter + def value(self) -> pulumi.Input[int]: + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[int]): + pulumi.set(self, "value", value) + + @pulumi.input_type class ResourcePoolsConfigDefaultPoolPrioritiesArgs: def __init__(__self__, *, @@ -2045,13 +2664,14 @@ def low_priority_match_rules(self, value: Optional[pulumi.Input[Sequence[pulumi. @pulumi.input_type class ResourcePoolsConfigPoolArgs: def __init__(__self__, *, - allocation: pulumi.Input['ResourcePoolsConfigPoolAllocationArgs'], name: pulumi.Input[str], + allocation: Optional[pulumi.Input['ResourcePoolsConfigPoolAllocationArgs']] = None, match_rule: Optional[pulumi.Input[str]] = None, match_rules: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, priorities: Optional[pulumi.Input['ResourcePoolsConfigPoolPrioritiesArgs']] = None): - pulumi.set(__self__, "allocation", allocation) pulumi.set(__self__, "name", name) + if allocation is not None: + pulumi.set(__self__, "allocation", allocation) if match_rule is not None: warnings.warn("""use match_rules""", DeprecationWarning) pulumi.log.warn("""match_rule is deprecated: use match_rules""") @@ -2062,15 +2682,6 @@ def __init__(__self__, *, if priorities is not None: pulumi.set(__self__, "priorities", priorities) - @property - @pulumi.getter - def allocation(self) -> pulumi.Input['ResourcePoolsConfigPoolAllocationArgs']: - return pulumi.get(self, "allocation") - - @allocation.setter - def allocation(self, value: pulumi.Input['ResourcePoolsConfigPoolAllocationArgs']): - pulumi.set(self, "allocation", value) - @property @pulumi.getter def name(self) -> pulumi.Input[str]: @@ -2080,6 +2691,15 @@ def name(self) -> pulumi.Input[str]: def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) + @property + @pulumi.getter + def allocation(self) -> Optional[pulumi.Input['ResourcePoolsConfigPoolAllocationArgs']]: + return pulumi.get(self, "allocation") + + @allocation.setter + def allocation(self, value: Optional[pulumi.Input['ResourcePoolsConfigPoolAllocationArgs']]): + pulumi.set(self, "allocation", value) + @property @pulumi.getter(name="matchRule") def match_rule(self) -> Optional[pulumi.Input[str]]: @@ -2114,19 +2734,59 @@ def priorities(self, value: Optional[pulumi.Input['ResourcePoolsConfigPoolPriori @pulumi.input_type class ResourcePoolsConfigPoolAllocationArgs: def __init__(__self__, *, - percent_of_license: pulumi.Input[float]): - pulumi.set(__self__, "percent_of_license", percent_of_license) + fixed_values: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigPoolAllocationFixedValueArgs']]]] = None, + percent_of_license: Optional[pulumi.Input[float]] = None): + if fixed_values is not None: + pulumi.set(__self__, "fixed_values", fixed_values) + if percent_of_license is not None: + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="fixedValues") + def fixed_values(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigPoolAllocationFixedValueArgs']]]]: + return pulumi.get(self, "fixed_values") + + @fixed_values.setter + def fixed_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigPoolAllocationFixedValueArgs']]]]): + pulumi.set(self, "fixed_values", value) @property @pulumi.getter(name="percentOfLicense") - def percent_of_license(self) -> pulumi.Input[float]: + def percent_of_license(self) -> Optional[pulumi.Input[float]]: return pulumi.get(self, "percent_of_license") @percent_of_license.setter - def percent_of_license(self, value: pulumi.Input[float]): + def percent_of_license(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "percent_of_license", value) +@pulumi.input_type +class ResourcePoolsConfigPoolAllocationFixedValueArgs: + def __init__(__self__, *, + license: pulumi.Input[str], + value: pulumi.Input[int]): + pulumi.set(__self__, "license", license) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def license(self) -> pulumi.Input[str]: + return pulumi.get(self, "license") + + @license.setter + def license(self, value: pulumi.Input[str]): + pulumi.set(self, "license", value) + + @property + @pulumi.getter + def value(self) -> pulumi.Input[int]: + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[int]): + pulumi.set(self, "value", value) + + @pulumi.input_type class ResourcePoolsConfigPoolPrioritiesArgs: def __init__(__self__, *, @@ -2684,7 +3344,6 @@ def __init__(__self__, *, parent_service: Optional[pulumi.Input['TraceMetricsRuleTraceFilterSpanParentServiceArgs']] = None, service: Optional[pulumi.Input['TraceMetricsRuleTraceFilterSpanServiceArgs']] = None, span_count: Optional[pulumi.Input['TraceMetricsRuleTraceFilterSpanSpanCountArgs']] = None, - tag: Optional[pulumi.Input[Sequence[pulumi.Input['TraceMetricsRuleTraceFilterSpanTagArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['TraceMetricsRuleTraceFilterSpanTagArgs']]]] = None): if duration is not None: pulumi.set(__self__, "duration", duration) @@ -2702,11 +3361,6 @@ def __init__(__self__, *, pulumi.set(__self__, "service", service) if span_count is not None: pulumi.set(__self__, "span_count", span_count) - if tag is not None: - pulumi.set(__self__, "tag", tag) - if tags is not None: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") if tags is not None: pulumi.set(__self__, "tags", tags) @@ -2782,21 +3436,9 @@ def span_count(self) -> Optional[pulumi.Input['TraceMetricsRuleTraceFilterSpanSp def span_count(self, value: Optional[pulumi.Input['TraceMetricsRuleTraceFilterSpanSpanCountArgs']]): pulumi.set(self, "span_count", value) - @property - @pulumi.getter - def tag(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TraceMetricsRuleTraceFilterSpanTagArgs']]]]: - return pulumi.get(self, "tag") - - @tag.setter - def tag(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TraceMetricsRuleTraceFilterSpanTagArgs']]]]): - pulumi.set(self, "tag", value) - @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TraceMetricsRuleTraceFilterSpanTagArgs']]]]: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") - return pulumi.get(self, "tags") @tags.setter @@ -2807,37 +3449,13 @@ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TraceMetricsR @pulumi.input_type class TraceMetricsRuleTraceFilterSpanDurationArgs: def __init__(__self__, *, - max_seconds: Optional[pulumi.Input[float]] = None, max_secs: Optional[pulumi.Input[float]] = None, - min_seconds: Optional[pulumi.Input[float]] = None, min_secs: Optional[pulumi.Input[float]] = None): - if max_seconds is not None: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - - @max_seconds.setter - def max_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "max_seconds", value) - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[pulumi.Input[float]]: @@ -2847,18 +3465,6 @@ def max_secs(self) -> Optional[pulumi.Input[float]]: def max_secs(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "max_secs", value) - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - - @min_seconds.setter - def min_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "min_seconds", value) - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[pulumi.Input[float]]: @@ -3219,37 +3825,13 @@ def error(self, value: Optional[pulumi.Input['TraceMetricsRuleTraceFilterTraceEr @pulumi.input_type class TraceMetricsRuleTraceFilterTraceDurationArgs: def __init__(__self__, *, - max_seconds: Optional[pulumi.Input[float]] = None, max_secs: Optional[pulumi.Input[float]] = None, - min_seconds: Optional[pulumi.Input[float]] = None, min_secs: Optional[pulumi.Input[float]] = None): - if max_seconds is not None: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - - @max_seconds.setter - def max_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "max_seconds", value) - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[pulumi.Input[float]]: @@ -3259,18 +3841,6 @@ def max_secs(self) -> Optional[pulumi.Input[float]]: def max_secs(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "max_secs", value) - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - - @min_seconds.setter - def min_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "min_seconds", value) - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[pulumi.Input[float]]: @@ -3416,7 +3986,6 @@ def __init__(__self__, *, parent_service: Optional[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanParentServiceArgs']] = None, service: Optional[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanServiceArgs']] = None, span_count: Optional[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanSpanCountArgs']] = None, - tag: Optional[pulumi.Input[Sequence[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanTagArgs']]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanTagArgs']]]] = None): if duration is not None: pulumi.set(__self__, "duration", duration) @@ -3434,11 +4003,6 @@ def __init__(__self__, *, pulumi.set(__self__, "service", service) if span_count is not None: pulumi.set(__self__, "span_count", span_count) - if tag is not None: - pulumi.set(__self__, "tag", tag) - if tags is not None: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") if tags is not None: pulumi.set(__self__, "tags", tags) @@ -3514,21 +4078,9 @@ def span_count(self) -> Optional[pulumi.Input['TraceTailSamplingRulesRuleFilterS def span_count(self, value: Optional[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanSpanCountArgs']]): pulumi.set(self, "span_count", value) - @property - @pulumi.getter - def tag(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanTagArgs']]]]: - return pulumi.get(self, "tag") - - @tag.setter - def tag(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanTagArgs']]]]): - pulumi.set(self, "tag", value) - @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TraceTailSamplingRulesRuleFilterSpanTagArgs']]]]: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") - return pulumi.get(self, "tags") @tags.setter @@ -3539,37 +4091,13 @@ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TraceTailSamp @pulumi.input_type class TraceTailSamplingRulesRuleFilterSpanDurationArgs: def __init__(__self__, *, - max_seconds: Optional[pulumi.Input[float]] = None, max_secs: Optional[pulumi.Input[float]] = None, - min_seconds: Optional[pulumi.Input[float]] = None, min_secs: Optional[pulumi.Input[float]] = None): - if max_seconds is not None: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - - @max_seconds.setter - def max_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "max_seconds", value) - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[pulumi.Input[float]]: @@ -3579,18 +4107,6 @@ def max_secs(self) -> Optional[pulumi.Input[float]]: def max_secs(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "max_secs", value) - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - - @min_seconds.setter - def min_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "min_seconds", value) - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[pulumi.Input[float]]: @@ -3951,37 +4467,13 @@ def error(self, value: Optional[pulumi.Input['TraceTailSamplingRulesRuleFilterTr @pulumi.input_type class TraceTailSamplingRulesRuleFilterTraceDurationArgs: def __init__(__self__, *, - max_seconds: Optional[pulumi.Input[float]] = None, max_secs: Optional[pulumi.Input[float]] = None, - min_seconds: Optional[pulumi.Input[float]] = None, min_secs: Optional[pulumi.Input[float]] = None): - if max_seconds is not None: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - - @max_seconds.setter - def max_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "max_seconds", value) - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[pulumi.Input[float]]: @@ -3991,18 +4483,6 @@ def max_secs(self) -> Optional[pulumi.Input[float]]: def max_secs(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "max_secs", value) - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[pulumi.Input[float]]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - - @min_seconds.setter - def min_seconds(self, value: Optional[pulumi.Input[float]]): - pulumi.set(self, "min_seconds", value) - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[pulumi.Input[float]]: diff --git a/sdk/python/chronosphereio_chronosphere/_utilities.py b/sdk/python/pulumi_chronosphere/_utilities.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/_utilities.py rename to sdk/python/pulumi_chronosphere/_utilities.py diff --git a/sdk/python/chronosphereio_chronosphere/blackhole_alert_notifier.py b/sdk/python/pulumi_chronosphere/blackhole_alert_notifier.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/blackhole_alert_notifier.py rename to sdk/python/pulumi_chronosphere/blackhole_alert_notifier.py diff --git a/sdk/python/chronosphereio_chronosphere/bucket.py b/sdk/python/pulumi_chronosphere/bucket.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/bucket.py rename to sdk/python/pulumi_chronosphere/bucket.py diff --git a/sdk/python/chronosphereio_chronosphere/bucket_data_source.py b/sdk/python/pulumi_chronosphere/bucket_data_source.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/bucket_data_source.py rename to sdk/python/pulumi_chronosphere/bucket_data_source.py diff --git a/sdk/python/chronosphereio_chronosphere/classic_dashboard.py b/sdk/python/pulumi_chronosphere/classic_dashboard.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/classic_dashboard.py rename to sdk/python/pulumi_chronosphere/classic_dashboard.py diff --git a/sdk/python/chronosphereio_chronosphere/collection.py b/sdk/python/pulumi_chronosphere/collection.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/collection.py rename to sdk/python/pulumi_chronosphere/collection.py diff --git a/sdk/python/chronosphereio_chronosphere/collection_data_source.py b/sdk/python/pulumi_chronosphere/collection_data_source.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/collection_data_source.py rename to sdk/python/pulumi_chronosphere/collection_data_source.py diff --git a/sdk/python/chronosphereio_chronosphere/config/__init__.py b/sdk/python/pulumi_chronosphere/config/__init__.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/config/__init__.py rename to sdk/python/pulumi_chronosphere/config/__init__.py diff --git a/sdk/python/chronosphereio_chronosphere/config/__init__.pyi b/sdk/python/pulumi_chronosphere/config/__init__.pyi similarity index 100% rename from sdk/python/chronosphereio_chronosphere/config/__init__.pyi rename to sdk/python/pulumi_chronosphere/config/__init__.pyi diff --git a/sdk/python/chronosphereio_chronosphere/config/vars.py b/sdk/python/pulumi_chronosphere/config/vars.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/config/vars.py rename to sdk/python/pulumi_chronosphere/config/vars.py diff --git a/sdk/python/chronosphereio_chronosphere/dashboard.py b/sdk/python/pulumi_chronosphere/dashboard.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/dashboard.py rename to sdk/python/pulumi_chronosphere/dashboard.py diff --git a/sdk/python/chronosphereio_chronosphere/dataset.py b/sdk/python/pulumi_chronosphere/dataset.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/dataset.py rename to sdk/python/pulumi_chronosphere/dataset.py diff --git a/sdk/python/chronosphereio_chronosphere/derived_label.py b/sdk/python/pulumi_chronosphere/derived_label.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/derived_label.py rename to sdk/python/pulumi_chronosphere/derived_label.py diff --git a/sdk/python/chronosphereio_chronosphere/derived_metric.py b/sdk/python/pulumi_chronosphere/derived_metric.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/derived_metric.py rename to sdk/python/pulumi_chronosphere/derived_metric.py diff --git a/sdk/python/chronosphereio_chronosphere/drop_rule.py b/sdk/python/pulumi_chronosphere/drop_rule.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/drop_rule.py rename to sdk/python/pulumi_chronosphere/drop_rule.py diff --git a/sdk/python/chronosphereio_chronosphere/email_alert_notifier.py b/sdk/python/pulumi_chronosphere/email_alert_notifier.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/email_alert_notifier.py rename to sdk/python/pulumi_chronosphere/email_alert_notifier.py diff --git a/sdk/python/chronosphereio_chronosphere/gcp_metrics_integration.py b/sdk/python/pulumi_chronosphere/gcp_metrics_integration.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/gcp_metrics_integration.py rename to sdk/python/pulumi_chronosphere/gcp_metrics_integration.py diff --git a/sdk/python/pulumi_chronosphere/log_allocation_config.py b/sdk/python/pulumi_chronosphere/log_allocation_config.py new file mode 100644 index 00000000..64cb268c --- /dev/null +++ b/sdk/python/pulumi_chronosphere/log_allocation_config.py @@ -0,0 +1,167 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['LogAllocationConfigArgs', 'LogAllocationConfig'] + +@pulumi.input_type +class LogAllocationConfigArgs: + def __init__(__self__, *, + default_dataset: pulumi.Input['LogAllocationConfigDefaultDatasetArgs'], + dataset_allocations: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationArgs']]]] = None): + """ + The set of arguments for constructing a LogAllocationConfig resource. + """ + pulumi.set(__self__, "default_dataset", default_dataset) + if dataset_allocations is not None: + pulumi.set(__self__, "dataset_allocations", dataset_allocations) + + @property + @pulumi.getter(name="defaultDataset") + def default_dataset(self) -> pulumi.Input['LogAllocationConfigDefaultDatasetArgs']: + return pulumi.get(self, "default_dataset") + + @default_dataset.setter + def default_dataset(self, value: pulumi.Input['LogAllocationConfigDefaultDatasetArgs']): + pulumi.set(self, "default_dataset", value) + + @property + @pulumi.getter(name="datasetAllocations") + def dataset_allocations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationArgs']]]]: + return pulumi.get(self, "dataset_allocations") + + @dataset_allocations.setter + def dataset_allocations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationArgs']]]]): + pulumi.set(self, "dataset_allocations", value) + + +@pulumi.input_type +class _LogAllocationConfigState: + def __init__(__self__, *, + dataset_allocations: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationArgs']]]] = None, + default_dataset: Optional[pulumi.Input['LogAllocationConfigDefaultDatasetArgs']] = None): + """ + Input properties used for looking up and filtering LogAllocationConfig resources. + """ + if dataset_allocations is not None: + pulumi.set(__self__, "dataset_allocations", dataset_allocations) + if default_dataset is not None: + pulumi.set(__self__, "default_dataset", default_dataset) + + @property + @pulumi.getter(name="datasetAllocations") + def dataset_allocations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationArgs']]]]: + return pulumi.get(self, "dataset_allocations") + + @dataset_allocations.setter + def dataset_allocations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LogAllocationConfigDatasetAllocationArgs']]]]): + pulumi.set(self, "dataset_allocations", value) + + @property + @pulumi.getter(name="defaultDataset") + def default_dataset(self) -> Optional[pulumi.Input['LogAllocationConfigDefaultDatasetArgs']]: + return pulumi.get(self, "default_dataset") + + @default_dataset.setter + def default_dataset(self, value: Optional[pulumi.Input['LogAllocationConfigDefaultDatasetArgs']]): + pulumi.set(self, "default_dataset", value) + + +class LogAllocationConfig(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + dataset_allocations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LogAllocationConfigDatasetAllocationArgs']]]]] = None, + default_dataset: Optional[pulumi.Input[pulumi.InputType['LogAllocationConfigDefaultDatasetArgs']]] = None, + __props__=None): + """ + Create a LogAllocationConfig resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LogAllocationConfigArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a LogAllocationConfig resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param LogAllocationConfigArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LogAllocationConfigArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + dataset_allocations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LogAllocationConfigDatasetAllocationArgs']]]]] = None, + default_dataset: Optional[pulumi.Input[pulumi.InputType['LogAllocationConfigDefaultDatasetArgs']]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = LogAllocationConfigArgs.__new__(LogAllocationConfigArgs) + + __props__.__dict__["dataset_allocations"] = dataset_allocations + if default_dataset is None and not opts.urn: + raise TypeError("Missing required property 'default_dataset'") + __props__.__dict__["default_dataset"] = default_dataset + super(LogAllocationConfig, __self__).__init__( + 'chronosphere:index/logAllocationConfig:LogAllocationConfig', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + dataset_allocations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LogAllocationConfigDatasetAllocationArgs']]]]] = None, + default_dataset: Optional[pulumi.Input[pulumi.InputType['LogAllocationConfigDefaultDatasetArgs']]] = None) -> 'LogAllocationConfig': + """ + Get an existing LogAllocationConfig resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _LogAllocationConfigState.__new__(_LogAllocationConfigState) + + __props__.__dict__["dataset_allocations"] = dataset_allocations + __props__.__dict__["default_dataset"] = default_dataset + return LogAllocationConfig(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="datasetAllocations") + def dataset_allocations(self) -> pulumi.Output[Optional[Sequence['outputs.LogAllocationConfigDatasetAllocation']]]: + return pulumi.get(self, "dataset_allocations") + + @property + @pulumi.getter(name="defaultDataset") + def default_dataset(self) -> pulumi.Output['outputs.LogAllocationConfigDefaultDataset']: + return pulumi.get(self, "default_dataset") + diff --git a/sdk/python/pulumi_chronosphere/logscale_action.py b/sdk/python/pulumi_chronosphere/logscale_action.py new file mode 100644 index 00000000..4e6fd991 --- /dev/null +++ b/sdk/python/pulumi_chronosphere/logscale_action.py @@ -0,0 +1,508 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['LogscaleActionArgs', 'LogscaleAction'] + +@pulumi.input_type +class LogscaleActionArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + repository: pulumi.Input[str], + email_action: Optional[pulumi.Input['LogscaleActionEmailActionArgs']] = None, + humio_action: Optional[pulumi.Input['LogscaleActionHumioActionArgs']] = None, + ops_genie_action: Optional[pulumi.Input['LogscaleActionOpsGenieActionArgs']] = None, + pager_duty_action: Optional[pulumi.Input['LogscaleActionPagerDutyActionArgs']] = None, + slack_action: Optional[pulumi.Input['LogscaleActionSlackActionArgs']] = None, + slack_post_message_action: Optional[pulumi.Input['LogscaleActionSlackPostMessageActionArgs']] = None, + slug: Optional[pulumi.Input[str]] = None, + upload_file_action: Optional[pulumi.Input['LogscaleActionUploadFileActionArgs']] = None, + victor_ops_action: Optional[pulumi.Input['LogscaleActionVictorOpsActionArgs']] = None, + webhook_action: Optional[pulumi.Input['LogscaleActionWebhookActionArgs']] = None): + """ + The set of arguments for constructing a LogscaleAction resource. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "repository", repository) + if email_action is not None: + pulumi.set(__self__, "email_action", email_action) + if humio_action is not None: + pulumi.set(__self__, "humio_action", humio_action) + if ops_genie_action is not None: + pulumi.set(__self__, "ops_genie_action", ops_genie_action) + if pager_duty_action is not None: + pulumi.set(__self__, "pager_duty_action", pager_duty_action) + if slack_action is not None: + pulumi.set(__self__, "slack_action", slack_action) + if slack_post_message_action is not None: + pulumi.set(__self__, "slack_post_message_action", slack_post_message_action) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if upload_file_action is not None: + pulumi.set(__self__, "upload_file_action", upload_file_action) + if victor_ops_action is not None: + pulumi.set(__self__, "victor_ops_action", victor_ops_action) + if webhook_action is not None: + pulumi.set(__self__, "webhook_action", webhook_action) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def repository(self) -> pulumi.Input[str]: + return pulumi.get(self, "repository") + + @repository.setter + def repository(self, value: pulumi.Input[str]): + pulumi.set(self, "repository", value) + + @property + @pulumi.getter(name="emailAction") + def email_action(self) -> Optional[pulumi.Input['LogscaleActionEmailActionArgs']]: + return pulumi.get(self, "email_action") + + @email_action.setter + def email_action(self, value: Optional[pulumi.Input['LogscaleActionEmailActionArgs']]): + pulumi.set(self, "email_action", value) + + @property + @pulumi.getter(name="humioAction") + def humio_action(self) -> Optional[pulumi.Input['LogscaleActionHumioActionArgs']]: + return pulumi.get(self, "humio_action") + + @humio_action.setter + def humio_action(self, value: Optional[pulumi.Input['LogscaleActionHumioActionArgs']]): + pulumi.set(self, "humio_action", value) + + @property + @pulumi.getter(name="opsGenieAction") + def ops_genie_action(self) -> Optional[pulumi.Input['LogscaleActionOpsGenieActionArgs']]: + return pulumi.get(self, "ops_genie_action") + + @ops_genie_action.setter + def ops_genie_action(self, value: Optional[pulumi.Input['LogscaleActionOpsGenieActionArgs']]): + pulumi.set(self, "ops_genie_action", value) + + @property + @pulumi.getter(name="pagerDutyAction") + def pager_duty_action(self) -> Optional[pulumi.Input['LogscaleActionPagerDutyActionArgs']]: + return pulumi.get(self, "pager_duty_action") + + @pager_duty_action.setter + def pager_duty_action(self, value: Optional[pulumi.Input['LogscaleActionPagerDutyActionArgs']]): + pulumi.set(self, "pager_duty_action", value) + + @property + @pulumi.getter(name="slackAction") + def slack_action(self) -> Optional[pulumi.Input['LogscaleActionSlackActionArgs']]: + return pulumi.get(self, "slack_action") + + @slack_action.setter + def slack_action(self, value: Optional[pulumi.Input['LogscaleActionSlackActionArgs']]): + pulumi.set(self, "slack_action", value) + + @property + @pulumi.getter(name="slackPostMessageAction") + def slack_post_message_action(self) -> Optional[pulumi.Input['LogscaleActionSlackPostMessageActionArgs']]: + return pulumi.get(self, "slack_post_message_action") + + @slack_post_message_action.setter + def slack_post_message_action(self, value: Optional[pulumi.Input['LogscaleActionSlackPostMessageActionArgs']]): + pulumi.set(self, "slack_post_message_action", value) + + @property + @pulumi.getter + def slug(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "slug", value) + + @property + @pulumi.getter(name="uploadFileAction") + def upload_file_action(self) -> Optional[pulumi.Input['LogscaleActionUploadFileActionArgs']]: + return pulumi.get(self, "upload_file_action") + + @upload_file_action.setter + def upload_file_action(self, value: Optional[pulumi.Input['LogscaleActionUploadFileActionArgs']]): + pulumi.set(self, "upload_file_action", value) + + @property + @pulumi.getter(name="victorOpsAction") + def victor_ops_action(self) -> Optional[pulumi.Input['LogscaleActionVictorOpsActionArgs']]: + return pulumi.get(self, "victor_ops_action") + + @victor_ops_action.setter + def victor_ops_action(self, value: Optional[pulumi.Input['LogscaleActionVictorOpsActionArgs']]): + pulumi.set(self, "victor_ops_action", value) + + @property + @pulumi.getter(name="webhookAction") + def webhook_action(self) -> Optional[pulumi.Input['LogscaleActionWebhookActionArgs']]: + return pulumi.get(self, "webhook_action") + + @webhook_action.setter + def webhook_action(self, value: Optional[pulumi.Input['LogscaleActionWebhookActionArgs']]): + pulumi.set(self, "webhook_action", value) + + +@pulumi.input_type +class _LogscaleActionState: + def __init__(__self__, *, + email_action: Optional[pulumi.Input['LogscaleActionEmailActionArgs']] = None, + humio_action: Optional[pulumi.Input['LogscaleActionHumioActionArgs']] = None, + name: Optional[pulumi.Input[str]] = None, + ops_genie_action: Optional[pulumi.Input['LogscaleActionOpsGenieActionArgs']] = None, + pager_duty_action: Optional[pulumi.Input['LogscaleActionPagerDutyActionArgs']] = None, + repository: Optional[pulumi.Input[str]] = None, + slack_action: Optional[pulumi.Input['LogscaleActionSlackActionArgs']] = None, + slack_post_message_action: Optional[pulumi.Input['LogscaleActionSlackPostMessageActionArgs']] = None, + slug: Optional[pulumi.Input[str]] = None, + upload_file_action: Optional[pulumi.Input['LogscaleActionUploadFileActionArgs']] = None, + victor_ops_action: Optional[pulumi.Input['LogscaleActionVictorOpsActionArgs']] = None, + webhook_action: Optional[pulumi.Input['LogscaleActionWebhookActionArgs']] = None): + """ + Input properties used for looking up and filtering LogscaleAction resources. + """ + if email_action is not None: + pulumi.set(__self__, "email_action", email_action) + if humio_action is not None: + pulumi.set(__self__, "humio_action", humio_action) + if name is not None: + pulumi.set(__self__, "name", name) + if ops_genie_action is not None: + pulumi.set(__self__, "ops_genie_action", ops_genie_action) + if pager_duty_action is not None: + pulumi.set(__self__, "pager_duty_action", pager_duty_action) + if repository is not None: + pulumi.set(__self__, "repository", repository) + if slack_action is not None: + pulumi.set(__self__, "slack_action", slack_action) + if slack_post_message_action is not None: + pulumi.set(__self__, "slack_post_message_action", slack_post_message_action) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if upload_file_action is not None: + pulumi.set(__self__, "upload_file_action", upload_file_action) + if victor_ops_action is not None: + pulumi.set(__self__, "victor_ops_action", victor_ops_action) + if webhook_action is not None: + pulumi.set(__self__, "webhook_action", webhook_action) + + @property + @pulumi.getter(name="emailAction") + def email_action(self) -> Optional[pulumi.Input['LogscaleActionEmailActionArgs']]: + return pulumi.get(self, "email_action") + + @email_action.setter + def email_action(self, value: Optional[pulumi.Input['LogscaleActionEmailActionArgs']]): + pulumi.set(self, "email_action", value) + + @property + @pulumi.getter(name="humioAction") + def humio_action(self) -> Optional[pulumi.Input['LogscaleActionHumioActionArgs']]: + return pulumi.get(self, "humio_action") + + @humio_action.setter + def humio_action(self, value: Optional[pulumi.Input['LogscaleActionHumioActionArgs']]): + pulumi.set(self, "humio_action", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="opsGenieAction") + def ops_genie_action(self) -> Optional[pulumi.Input['LogscaleActionOpsGenieActionArgs']]: + return pulumi.get(self, "ops_genie_action") + + @ops_genie_action.setter + def ops_genie_action(self, value: Optional[pulumi.Input['LogscaleActionOpsGenieActionArgs']]): + pulumi.set(self, "ops_genie_action", value) + + @property + @pulumi.getter(name="pagerDutyAction") + def pager_duty_action(self) -> Optional[pulumi.Input['LogscaleActionPagerDutyActionArgs']]: + return pulumi.get(self, "pager_duty_action") + + @pager_duty_action.setter + def pager_duty_action(self, value: Optional[pulumi.Input['LogscaleActionPagerDutyActionArgs']]): + pulumi.set(self, "pager_duty_action", value) + + @property + @pulumi.getter + def repository(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "repository") + + @repository.setter + def repository(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "repository", value) + + @property + @pulumi.getter(name="slackAction") + def slack_action(self) -> Optional[pulumi.Input['LogscaleActionSlackActionArgs']]: + return pulumi.get(self, "slack_action") + + @slack_action.setter + def slack_action(self, value: Optional[pulumi.Input['LogscaleActionSlackActionArgs']]): + pulumi.set(self, "slack_action", value) + + @property + @pulumi.getter(name="slackPostMessageAction") + def slack_post_message_action(self) -> Optional[pulumi.Input['LogscaleActionSlackPostMessageActionArgs']]: + return pulumi.get(self, "slack_post_message_action") + + @slack_post_message_action.setter + def slack_post_message_action(self, value: Optional[pulumi.Input['LogscaleActionSlackPostMessageActionArgs']]): + pulumi.set(self, "slack_post_message_action", value) + + @property + @pulumi.getter + def slug(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "slug", value) + + @property + @pulumi.getter(name="uploadFileAction") + def upload_file_action(self) -> Optional[pulumi.Input['LogscaleActionUploadFileActionArgs']]: + return pulumi.get(self, "upload_file_action") + + @upload_file_action.setter + def upload_file_action(self, value: Optional[pulumi.Input['LogscaleActionUploadFileActionArgs']]): + pulumi.set(self, "upload_file_action", value) + + @property + @pulumi.getter(name="victorOpsAction") + def victor_ops_action(self) -> Optional[pulumi.Input['LogscaleActionVictorOpsActionArgs']]: + return pulumi.get(self, "victor_ops_action") + + @victor_ops_action.setter + def victor_ops_action(self, value: Optional[pulumi.Input['LogscaleActionVictorOpsActionArgs']]): + pulumi.set(self, "victor_ops_action", value) + + @property + @pulumi.getter(name="webhookAction") + def webhook_action(self) -> Optional[pulumi.Input['LogscaleActionWebhookActionArgs']]: + return pulumi.get(self, "webhook_action") + + @webhook_action.setter + def webhook_action(self, value: Optional[pulumi.Input['LogscaleActionWebhookActionArgs']]): + pulumi.set(self, "webhook_action", value) + + +class LogscaleAction(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + email_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionEmailActionArgs']]] = None, + humio_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionHumioActionArgs']]] = None, + name: Optional[pulumi.Input[str]] = None, + ops_genie_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionOpsGenieActionArgs']]] = None, + pager_duty_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionPagerDutyActionArgs']]] = None, + repository: Optional[pulumi.Input[str]] = None, + slack_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionSlackActionArgs']]] = None, + slack_post_message_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionSlackPostMessageActionArgs']]] = None, + slug: Optional[pulumi.Input[str]] = None, + upload_file_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionUploadFileActionArgs']]] = None, + victor_ops_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionVictorOpsActionArgs']]] = None, + webhook_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionWebhookActionArgs']]] = None, + __props__=None): + """ + Create a LogscaleAction resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LogscaleActionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a LogscaleAction resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param LogscaleActionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LogscaleActionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + email_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionEmailActionArgs']]] = None, + humio_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionHumioActionArgs']]] = None, + name: Optional[pulumi.Input[str]] = None, + ops_genie_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionOpsGenieActionArgs']]] = None, + pager_duty_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionPagerDutyActionArgs']]] = None, + repository: Optional[pulumi.Input[str]] = None, + slack_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionSlackActionArgs']]] = None, + slack_post_message_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionSlackPostMessageActionArgs']]] = None, + slug: Optional[pulumi.Input[str]] = None, + upload_file_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionUploadFileActionArgs']]] = None, + victor_ops_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionVictorOpsActionArgs']]] = None, + webhook_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionWebhookActionArgs']]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = LogscaleActionArgs.__new__(LogscaleActionArgs) + + __props__.__dict__["email_action"] = email_action + __props__.__dict__["humio_action"] = humio_action + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["ops_genie_action"] = ops_genie_action + __props__.__dict__["pager_duty_action"] = pager_duty_action + if repository is None and not opts.urn: + raise TypeError("Missing required property 'repository'") + __props__.__dict__["repository"] = repository + __props__.__dict__["slack_action"] = slack_action + __props__.__dict__["slack_post_message_action"] = slack_post_message_action + __props__.__dict__["slug"] = slug + __props__.__dict__["upload_file_action"] = upload_file_action + __props__.__dict__["victor_ops_action"] = victor_ops_action + __props__.__dict__["webhook_action"] = webhook_action + super(LogscaleAction, __self__).__init__( + 'chronosphere:index/logscaleAction:LogscaleAction', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + email_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionEmailActionArgs']]] = None, + humio_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionHumioActionArgs']]] = None, + name: Optional[pulumi.Input[str]] = None, + ops_genie_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionOpsGenieActionArgs']]] = None, + pager_duty_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionPagerDutyActionArgs']]] = None, + repository: Optional[pulumi.Input[str]] = None, + slack_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionSlackActionArgs']]] = None, + slack_post_message_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionSlackPostMessageActionArgs']]] = None, + slug: Optional[pulumi.Input[str]] = None, + upload_file_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionUploadFileActionArgs']]] = None, + victor_ops_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionVictorOpsActionArgs']]] = None, + webhook_action: Optional[pulumi.Input[pulumi.InputType['LogscaleActionWebhookActionArgs']]] = None) -> 'LogscaleAction': + """ + Get an existing LogscaleAction resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _LogscaleActionState.__new__(_LogscaleActionState) + + __props__.__dict__["email_action"] = email_action + __props__.__dict__["humio_action"] = humio_action + __props__.__dict__["name"] = name + __props__.__dict__["ops_genie_action"] = ops_genie_action + __props__.__dict__["pager_duty_action"] = pager_duty_action + __props__.__dict__["repository"] = repository + __props__.__dict__["slack_action"] = slack_action + __props__.__dict__["slack_post_message_action"] = slack_post_message_action + __props__.__dict__["slug"] = slug + __props__.__dict__["upload_file_action"] = upload_file_action + __props__.__dict__["victor_ops_action"] = victor_ops_action + __props__.__dict__["webhook_action"] = webhook_action + return LogscaleAction(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="emailAction") + def email_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionEmailAction']]: + return pulumi.get(self, "email_action") + + @property + @pulumi.getter(name="humioAction") + def humio_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionHumioAction']]: + return pulumi.get(self, "humio_action") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="opsGenieAction") + def ops_genie_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionOpsGenieAction']]: + return pulumi.get(self, "ops_genie_action") + + @property + @pulumi.getter(name="pagerDutyAction") + def pager_duty_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionPagerDutyAction']]: + return pulumi.get(self, "pager_duty_action") + + @property + @pulumi.getter + def repository(self) -> pulumi.Output[str]: + return pulumi.get(self, "repository") + + @property + @pulumi.getter(name="slackAction") + def slack_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionSlackAction']]: + return pulumi.get(self, "slack_action") + + @property + @pulumi.getter(name="slackPostMessageAction") + def slack_post_message_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionSlackPostMessageAction']]: + return pulumi.get(self, "slack_post_message_action") + + @property + @pulumi.getter + def slug(self) -> pulumi.Output[str]: + return pulumi.get(self, "slug") + + @property + @pulumi.getter(name="uploadFileAction") + def upload_file_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionUploadFileAction']]: + return pulumi.get(self, "upload_file_action") + + @property + @pulumi.getter(name="victorOpsAction") + def victor_ops_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionVictorOpsAction']]: + return pulumi.get(self, "victor_ops_action") + + @property + @pulumi.getter(name="webhookAction") + def webhook_action(self) -> pulumi.Output[Optional['outputs.LogscaleActionWebhookAction']]: + return pulumi.get(self, "webhook_action") + diff --git a/sdk/python/pulumi_chronosphere/logscale_alert.py b/sdk/python/pulumi_chronosphere/logscale_alert.py new file mode 100644 index 00000000..a0b74c2f --- /dev/null +++ b/sdk/python/pulumi_chronosphere/logscale_alert.py @@ -0,0 +1,581 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities + +__all__ = ['LogscaleAlertArgs', 'LogscaleAlert'] + +@pulumi.input_type +class LogscaleAlertArgs: + def __init__(__self__, *, + alert_type: pulumi.Input[str], + name: pulumi.Input[str], + repository: pulumi.Input[str], + run_as_user: pulumi.Input[str], + action_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + description: Optional[pulumi.Input[str]] = None, + disabled: Optional[pulumi.Input[bool]] = None, + query: Optional[pulumi.Input[str]] = None, + slug: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + throttle_duration: Optional[pulumi.Input[str]] = None, + throttle_field: Optional[pulumi.Input[str]] = None, + time_window: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a LogscaleAlert resource. + :param pulumi.Input[str] run_as_user: Email of the user that the alert runs on behalf of + :param pulumi.Input[str] throttle_duration: Required for STANDARD type alerts, optional for FILTER type alerts + :param pulumi.Input[str] time_window: Required for STANDARD type alerts, ignored for FILTER type alerts + """ + pulumi.set(__self__, "alert_type", alert_type) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "repository", repository) + pulumi.set(__self__, "run_as_user", run_as_user) + if action_ids is not None: + pulumi.set(__self__, "action_ids", action_ids) + if description is not None: + pulumi.set(__self__, "description", description) + if disabled is not None: + pulumi.set(__self__, "disabled", disabled) + if query is not None: + pulumi.set(__self__, "query", query) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if throttle_duration is not None: + pulumi.set(__self__, "throttle_duration", throttle_duration) + if throttle_field is not None: + pulumi.set(__self__, "throttle_field", throttle_field) + if time_window is not None: + pulumi.set(__self__, "time_window", time_window) + + @property + @pulumi.getter(name="alertType") + def alert_type(self) -> pulumi.Input[str]: + return pulumi.get(self, "alert_type") + + @alert_type.setter + def alert_type(self, value: pulumi.Input[str]): + pulumi.set(self, "alert_type", value) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def repository(self) -> pulumi.Input[str]: + return pulumi.get(self, "repository") + + @repository.setter + def repository(self, value: pulumi.Input[str]): + pulumi.set(self, "repository", value) + + @property + @pulumi.getter(name="runAsUser") + def run_as_user(self) -> pulumi.Input[str]: + """ + Email of the user that the alert runs on behalf of + """ + return pulumi.get(self, "run_as_user") + + @run_as_user.setter + def run_as_user(self, value: pulumi.Input[str]): + pulumi.set(self, "run_as_user", value) + + @property + @pulumi.getter(name="actionIds") + def action_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "action_ids") + + @action_ids.setter + def action_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "action_ids", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter + def disabled(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "disabled") + + @disabled.setter + def disabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "disabled", value) + + @property + @pulumi.getter + def query(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "query") + + @query.setter + def query(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "query", value) + + @property + @pulumi.getter + def slug(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "slug", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="throttleDuration") + def throttle_duration(self) -> Optional[pulumi.Input[str]]: + """ + Required for STANDARD type alerts, optional for FILTER type alerts + """ + return pulumi.get(self, "throttle_duration") + + @throttle_duration.setter + def throttle_duration(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "throttle_duration", value) + + @property + @pulumi.getter(name="throttleField") + def throttle_field(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "throttle_field") + + @throttle_field.setter + def throttle_field(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "throttle_field", value) + + @property + @pulumi.getter(name="timeWindow") + def time_window(self) -> Optional[pulumi.Input[str]]: + """ + Required for STANDARD type alerts, ignored for FILTER type alerts + """ + return pulumi.get(self, "time_window") + + @time_window.setter + def time_window(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "time_window", value) + + +@pulumi.input_type +class _LogscaleAlertState: + def __init__(__self__, *, + action_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + alert_type: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + disabled: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None, + query: Optional[pulumi.Input[str]] = None, + repository: Optional[pulumi.Input[str]] = None, + run_as_user: Optional[pulumi.Input[str]] = None, + slug: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + throttle_duration: Optional[pulumi.Input[str]] = None, + throttle_field: Optional[pulumi.Input[str]] = None, + time_window: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering LogscaleAlert resources. + :param pulumi.Input[str] run_as_user: Email of the user that the alert runs on behalf of + :param pulumi.Input[str] throttle_duration: Required for STANDARD type alerts, optional for FILTER type alerts + :param pulumi.Input[str] time_window: Required for STANDARD type alerts, ignored for FILTER type alerts + """ + if action_ids is not None: + pulumi.set(__self__, "action_ids", action_ids) + if alert_type is not None: + pulumi.set(__self__, "alert_type", alert_type) + if description is not None: + pulumi.set(__self__, "description", description) + if disabled is not None: + pulumi.set(__self__, "disabled", disabled) + if name is not None: + pulumi.set(__self__, "name", name) + if query is not None: + pulumi.set(__self__, "query", query) + if repository is not None: + pulumi.set(__self__, "repository", repository) + if run_as_user is not None: + pulumi.set(__self__, "run_as_user", run_as_user) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if throttle_duration is not None: + pulumi.set(__self__, "throttle_duration", throttle_duration) + if throttle_field is not None: + pulumi.set(__self__, "throttle_field", throttle_field) + if time_window is not None: + pulumi.set(__self__, "time_window", time_window) + + @property + @pulumi.getter(name="actionIds") + def action_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "action_ids") + + @action_ids.setter + def action_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "action_ids", value) + + @property + @pulumi.getter(name="alertType") + def alert_type(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "alert_type") + + @alert_type.setter + def alert_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "alert_type", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter + def disabled(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "disabled") + + @disabled.setter + def disabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "disabled", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def query(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "query") + + @query.setter + def query(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "query", value) + + @property + @pulumi.getter + def repository(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "repository") + + @repository.setter + def repository(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "repository", value) + + @property + @pulumi.getter(name="runAsUser") + def run_as_user(self) -> Optional[pulumi.Input[str]]: + """ + Email of the user that the alert runs on behalf of + """ + return pulumi.get(self, "run_as_user") + + @run_as_user.setter + def run_as_user(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "run_as_user", value) + + @property + @pulumi.getter + def slug(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "slug", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="throttleDuration") + def throttle_duration(self) -> Optional[pulumi.Input[str]]: + """ + Required for STANDARD type alerts, optional for FILTER type alerts + """ + return pulumi.get(self, "throttle_duration") + + @throttle_duration.setter + def throttle_duration(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "throttle_duration", value) + + @property + @pulumi.getter(name="throttleField") + def throttle_field(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "throttle_field") + + @throttle_field.setter + def throttle_field(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "throttle_field", value) + + @property + @pulumi.getter(name="timeWindow") + def time_window(self) -> Optional[pulumi.Input[str]]: + """ + Required for STANDARD type alerts, ignored for FILTER type alerts + """ + return pulumi.get(self, "time_window") + + @time_window.setter + def time_window(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "time_window", value) + + +class LogscaleAlert(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + action_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + alert_type: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + disabled: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None, + query: Optional[pulumi.Input[str]] = None, + repository: Optional[pulumi.Input[str]] = None, + run_as_user: Optional[pulumi.Input[str]] = None, + slug: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + throttle_duration: Optional[pulumi.Input[str]] = None, + throttle_field: Optional[pulumi.Input[str]] = None, + time_window: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Create a LogscaleAlert resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] run_as_user: Email of the user that the alert runs on behalf of + :param pulumi.Input[str] throttle_duration: Required for STANDARD type alerts, optional for FILTER type alerts + :param pulumi.Input[str] time_window: Required for STANDARD type alerts, ignored for FILTER type alerts + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LogscaleAlertArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a LogscaleAlert resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param LogscaleAlertArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LogscaleAlertArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + action_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + alert_type: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + disabled: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None, + query: Optional[pulumi.Input[str]] = None, + repository: Optional[pulumi.Input[str]] = None, + run_as_user: Optional[pulumi.Input[str]] = None, + slug: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + throttle_duration: Optional[pulumi.Input[str]] = None, + throttle_field: Optional[pulumi.Input[str]] = None, + time_window: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = LogscaleAlertArgs.__new__(LogscaleAlertArgs) + + __props__.__dict__["action_ids"] = action_ids + if alert_type is None and not opts.urn: + raise TypeError("Missing required property 'alert_type'") + __props__.__dict__["alert_type"] = alert_type + __props__.__dict__["description"] = description + __props__.__dict__["disabled"] = disabled + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["query"] = query + if repository is None and not opts.urn: + raise TypeError("Missing required property 'repository'") + __props__.__dict__["repository"] = repository + if run_as_user is None and not opts.urn: + raise TypeError("Missing required property 'run_as_user'") + __props__.__dict__["run_as_user"] = run_as_user + __props__.__dict__["slug"] = slug + __props__.__dict__["tags"] = tags + __props__.__dict__["throttle_duration"] = throttle_duration + __props__.__dict__["throttle_field"] = throttle_field + __props__.__dict__["time_window"] = time_window + super(LogscaleAlert, __self__).__init__( + 'chronosphere:index/logscaleAlert:LogscaleAlert', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + action_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + alert_type: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + disabled: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None, + query: Optional[pulumi.Input[str]] = None, + repository: Optional[pulumi.Input[str]] = None, + run_as_user: Optional[pulumi.Input[str]] = None, + slug: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + throttle_duration: Optional[pulumi.Input[str]] = None, + throttle_field: Optional[pulumi.Input[str]] = None, + time_window: Optional[pulumi.Input[str]] = None) -> 'LogscaleAlert': + """ + Get an existing LogscaleAlert resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] run_as_user: Email of the user that the alert runs on behalf of + :param pulumi.Input[str] throttle_duration: Required for STANDARD type alerts, optional for FILTER type alerts + :param pulumi.Input[str] time_window: Required for STANDARD type alerts, ignored for FILTER type alerts + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _LogscaleAlertState.__new__(_LogscaleAlertState) + + __props__.__dict__["action_ids"] = action_ids + __props__.__dict__["alert_type"] = alert_type + __props__.__dict__["description"] = description + __props__.__dict__["disabled"] = disabled + __props__.__dict__["name"] = name + __props__.__dict__["query"] = query + __props__.__dict__["repository"] = repository + __props__.__dict__["run_as_user"] = run_as_user + __props__.__dict__["slug"] = slug + __props__.__dict__["tags"] = tags + __props__.__dict__["throttle_duration"] = throttle_duration + __props__.__dict__["throttle_field"] = throttle_field + __props__.__dict__["time_window"] = time_window + return LogscaleAlert(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="actionIds") + def action_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: + return pulumi.get(self, "action_ids") + + @property + @pulumi.getter(name="alertType") + def alert_type(self) -> pulumi.Output[str]: + return pulumi.get(self, "alert_type") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "description") + + @property + @pulumi.getter + def disabled(self) -> pulumi.Output[Optional[bool]]: + return pulumi.get(self, "disabled") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + return pulumi.get(self, "name") + + @property + @pulumi.getter + def query(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "query") + + @property + @pulumi.getter + def repository(self) -> pulumi.Output[str]: + return pulumi.get(self, "repository") + + @property + @pulumi.getter(name="runAsUser") + def run_as_user(self) -> pulumi.Output[str]: + """ + Email of the user that the alert runs on behalf of + """ + return pulumi.get(self, "run_as_user") + + @property + @pulumi.getter + def slug(self) -> pulumi.Output[str]: + return pulumi.get(self, "slug") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Sequence[str]]]: + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="throttleDuration") + def throttle_duration(self) -> pulumi.Output[Optional[str]]: + """ + Required for STANDARD type alerts, optional for FILTER type alerts + """ + return pulumi.get(self, "throttle_duration") + + @property + @pulumi.getter(name="throttleField") + def throttle_field(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "throttle_field") + + @property + @pulumi.getter(name="timeWindow") + def time_window(self) -> pulumi.Output[Optional[str]]: + """ + Required for STANDARD type alerts, ignored for FILTER type alerts + """ + return pulumi.get(self, "time_window") + diff --git a/sdk/python/chronosphereio_chronosphere/mapping_rule.py b/sdk/python/pulumi_chronosphere/mapping_rule.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/mapping_rule.py rename to sdk/python/pulumi_chronosphere/mapping_rule.py diff --git a/sdk/python/chronosphereio_chronosphere/monitor.py b/sdk/python/pulumi_chronosphere/monitor.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/monitor.py rename to sdk/python/pulumi_chronosphere/monitor.py diff --git a/sdk/python/chronosphereio_chronosphere/notification_policy.py b/sdk/python/pulumi_chronosphere/notification_policy.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/notification_policy.py rename to sdk/python/pulumi_chronosphere/notification_policy.py diff --git a/sdk/python/chronosphereio_chronosphere/opsgenie_alert_notifier.py b/sdk/python/pulumi_chronosphere/opsgenie_alert_notifier.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/opsgenie_alert_notifier.py rename to sdk/python/pulumi_chronosphere/opsgenie_alert_notifier.py diff --git a/sdk/python/chronosphereio_chronosphere/otel_metrics_ingestion.py b/sdk/python/pulumi_chronosphere/otel_metrics_ingestion.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/otel_metrics_ingestion.py rename to sdk/python/pulumi_chronosphere/otel_metrics_ingestion.py diff --git a/sdk/python/chronosphereio_chronosphere/outputs.py b/sdk/python/pulumi_chronosphere/outputs.py similarity index 82% rename from sdk/python/chronosphereio_chronosphere/outputs.py rename to sdk/python/pulumi_chronosphere/outputs.py index 8b651ff7..348b2cd3 100644 --- a/sdk/python/chronosphereio_chronosphere/outputs.py +++ b/sdk/python/pulumi_chronosphere/outputs.py @@ -12,6 +12,8 @@ __all__ = [ 'DatasetConfiguration', + 'DatasetConfigurationLogDataset', + 'DatasetConfigurationLogDatasetMatchCriteria', 'DatasetConfigurationTraceDataset', 'DatasetConfigurationTraceDatasetMatchCriteria', 'DatasetConfigurationTraceDatasetMatchCriteriaSpan', @@ -44,6 +46,25 @@ 'DropRuleValueBasedDrop', 'GcpMetricsIntegrationMetricGroup', 'GcpMetricsIntegrationServiceAccount', + 'LogAllocationConfigDatasetAllocation', + 'LogAllocationConfigDatasetAllocationAllocation', + 'LogAllocationConfigDatasetAllocationPriorities', + 'LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter', + 'LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter', + 'LogAllocationConfigDefaultDataset', + 'LogAllocationConfigDefaultDatasetAllocation', + 'LogAllocationConfigDefaultDatasetPriorities', + 'LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter', + 'LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter', + 'LogscaleActionEmailAction', + 'LogscaleActionHumioAction', + 'LogscaleActionOpsGenieAction', + 'LogscaleActionPagerDutyAction', + 'LogscaleActionSlackAction', + 'LogscaleActionSlackPostMessageAction', + 'LogscaleActionUploadFileAction', + 'LogscaleActionVictorOpsAction', + 'LogscaleActionWebhookAction', 'MappingRuleStoragePolicy', 'MonitorQuery', 'MonitorSchedule', @@ -66,9 +87,11 @@ 'PagerdutyAlertNotifierLink', 'ResourcePoolsConfigDefaultPool', 'ResourcePoolsConfigDefaultPoolAllocation', + 'ResourcePoolsConfigDefaultPoolAllocationFixedValue', 'ResourcePoolsConfigDefaultPoolPriorities', 'ResourcePoolsConfigPool', 'ResourcePoolsConfigPoolAllocation', + 'ResourcePoolsConfigPoolAllocationFixedValue', 'ResourcePoolsConfigPoolPriorities', 'RollupRuleGraphiteLabelPolicy', 'RollupRuleGraphiteLabelPolicyReplace', @@ -123,7 +146,9 @@ class DatasetConfiguration(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "traceDataset": + if key == "logDataset": + suggest = "log_dataset" + elif key == "traceDataset": suggest = "trace_dataset" if suggest: @@ -139,8 +164,11 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, type: str, + log_dataset: Optional['outputs.DatasetConfigurationLogDataset'] = None, trace_dataset: Optional['outputs.DatasetConfigurationTraceDataset'] = None): pulumi.set(__self__, "type", type) + if log_dataset is not None: + pulumi.set(__self__, "log_dataset", log_dataset) if trace_dataset is not None: pulumi.set(__self__, "trace_dataset", trace_dataset) @@ -149,12 +177,59 @@ def __init__(__self__, *, def type(self) -> str: return pulumi.get(self, "type") + @property + @pulumi.getter(name="logDataset") + def log_dataset(self) -> Optional['outputs.DatasetConfigurationLogDataset']: + return pulumi.get(self, "log_dataset") + @property @pulumi.getter(name="traceDataset") def trace_dataset(self) -> Optional['outputs.DatasetConfigurationTraceDataset']: return pulumi.get(self, "trace_dataset") +@pulumi.output_type +class DatasetConfigurationLogDataset(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchCriteria": + suggest = "match_criteria" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in DatasetConfigurationLogDataset. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + DatasetConfigurationLogDataset.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + DatasetConfigurationLogDataset.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + match_criteria: Optional['outputs.DatasetConfigurationLogDatasetMatchCriteria'] = None): + if match_criteria is not None: + pulumi.set(__self__, "match_criteria", match_criteria) + + @property + @pulumi.getter(name="matchCriteria") + def match_criteria(self) -> Optional['outputs.DatasetConfigurationLogDatasetMatchCriteria']: + return pulumi.get(self, "match_criteria") + + +@pulumi.output_type +class DatasetConfigurationLogDatasetMatchCriteria(dict): + def __init__(__self__, *, + query: str): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> str: + return pulumi.get(self, "query") + + @pulumi.output_type class DatasetConfigurationTraceDataset(dict): @staticmethod @@ -239,7 +314,6 @@ def __init__(__self__, *, parent_service: Optional['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanParentService'] = None, service: Optional['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanService'] = None, span_count: Optional['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount'] = None, - tag: Optional[Sequence['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTag']] = None, tags: Optional[Sequence['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTag']] = None): if duration is not None: pulumi.set(__self__, "duration", duration) @@ -257,8 +331,6 @@ def __init__(__self__, *, pulumi.set(__self__, "service", service) if span_count is not None: pulumi.set(__self__, "span_count", span_count) - if tag is not None: - pulumi.set(__self__, "tag", tag) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -302,17 +374,9 @@ def service(self) -> Optional['outputs.DatasetConfigurationTraceDatasetMatchCrit def span_count(self) -> Optional['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanSpanCount']: return pulumi.get(self, "span_count") - @property - @pulumi.getter - def tag(self) -> Optional[Sequence['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTag']]: - return pulumi.get(self, "tag") - @property @pulumi.getter def tags(self) -> Optional[Sequence['outputs.DatasetConfigurationTraceDatasetMatchCriteriaSpanTag']]: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") - return pulumi.get(self, "tags") @@ -321,12 +385,8 @@ class DatasetConfigurationTraceDatasetMatchCriteriaSpanDuration(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "maxSeconds": - suggest = "max_seconds" - elif key == "maxSecs": + if key == "maxSecs": suggest = "max_secs" - elif key == "minSeconds": - suggest = "min_seconds" elif key == "minSecs": suggest = "min_secs" @@ -342,40 +402,18 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - max_seconds: Optional[float] = None, max_secs: Optional[float] = None, - min_seconds: Optional[float] = None, min_secs: Optional[float] = None): - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[float]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[float]: return pulumi.get(self, "max_secs") - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[float]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[float]: @@ -736,12 +774,8 @@ class DatasetConfigurationTraceDatasetMatchCriteriaTraceDuration(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "maxSeconds": - suggest = "max_seconds" - elif key == "maxSecs": + if key == "maxSecs": suggest = "max_secs" - elif key == "minSeconds": - suggest = "min_seconds" elif key == "minSecs": suggest = "min_secs" @@ -757,40 +791,18 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - max_seconds: Optional[float] = None, max_secs: Optional[float] = None, - min_seconds: Optional[float] = None, min_secs: Optional[float] = None): - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[float]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[float]: return pulumi.get(self, "max_secs") - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[float]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[float]: @@ -1315,6 +1327,694 @@ def client_email(self) -> str: return pulumi.get(self, "client_email") +@pulumi.output_type +class LogAllocationConfigDatasetAllocation(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "datasetId": + suggest = "dataset_id" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogAllocationConfigDatasetAllocation. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogAllocationConfigDatasetAllocation.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogAllocationConfigDatasetAllocation.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + allocation: 'outputs.LogAllocationConfigDatasetAllocationAllocation', + dataset_id: str, + priorities: Optional['outputs.LogAllocationConfigDatasetAllocationPriorities'] = None): + pulumi.set(__self__, "allocation", allocation) + pulumi.set(__self__, "dataset_id", dataset_id) + if priorities is not None: + pulumi.set(__self__, "priorities", priorities) + + @property + @pulumi.getter + def allocation(self) -> 'outputs.LogAllocationConfigDatasetAllocationAllocation': + return pulumi.get(self, "allocation") + + @property + @pulumi.getter(name="datasetId") + def dataset_id(self) -> str: + return pulumi.get(self, "dataset_id") + + @property + @pulumi.getter + def priorities(self) -> Optional['outputs.LogAllocationConfigDatasetAllocationPriorities']: + return pulumi.get(self, "priorities") + + +@pulumi.output_type +class LogAllocationConfigDatasetAllocationAllocation(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "percentOfLicense": + suggest = "percent_of_license" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogAllocationConfigDatasetAllocationAllocation. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogAllocationConfigDatasetAllocationAllocation.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogAllocationConfigDatasetAllocationAllocation.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + percent_of_license: float): + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="percentOfLicense") + def percent_of_license(self) -> float: + return pulumi.get(self, "percent_of_license") + + +@pulumi.output_type +class LogAllocationConfigDatasetAllocationPriorities(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "highPriorityFilters": + suggest = "high_priority_filters" + elif key == "lowPriorityFilters": + suggest = "low_priority_filters" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogAllocationConfigDatasetAllocationPriorities. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogAllocationConfigDatasetAllocationPriorities.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogAllocationConfigDatasetAllocationPriorities.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + high_priority_filters: Optional[Sequence['outputs.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter']] = None, + low_priority_filters: Optional[Sequence['outputs.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter']] = None): + if high_priority_filters is not None: + pulumi.set(__self__, "high_priority_filters", high_priority_filters) + if low_priority_filters is not None: + pulumi.set(__self__, "low_priority_filters", low_priority_filters) + + @property + @pulumi.getter(name="highPriorityFilters") + def high_priority_filters(self) -> Optional[Sequence['outputs.LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter']]: + return pulumi.get(self, "high_priority_filters") + + @property + @pulumi.getter(name="lowPriorityFilters") + def low_priority_filters(self) -> Optional[Sequence['outputs.LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter']]: + return pulumi.get(self, "low_priority_filters") + + +@pulumi.output_type +class LogAllocationConfigDatasetAllocationPrioritiesHighPriorityFilter(dict): + def __init__(__self__, *, + query: str): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> str: + return pulumi.get(self, "query") + + +@pulumi.output_type +class LogAllocationConfigDatasetAllocationPrioritiesLowPriorityFilter(dict): + def __init__(__self__, *, + query: str): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> str: + return pulumi.get(self, "query") + + +@pulumi.output_type +class LogAllocationConfigDefaultDataset(dict): + def __init__(__self__, *, + allocation: 'outputs.LogAllocationConfigDefaultDatasetAllocation', + priorities: Optional['outputs.LogAllocationConfigDefaultDatasetPriorities'] = None): + pulumi.set(__self__, "allocation", allocation) + if priorities is not None: + pulumi.set(__self__, "priorities", priorities) + + @property + @pulumi.getter + def allocation(self) -> 'outputs.LogAllocationConfigDefaultDatasetAllocation': + return pulumi.get(self, "allocation") + + @property + @pulumi.getter + def priorities(self) -> Optional['outputs.LogAllocationConfigDefaultDatasetPriorities']: + return pulumi.get(self, "priorities") + + +@pulumi.output_type +class LogAllocationConfigDefaultDatasetAllocation(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "percentOfLicense": + suggest = "percent_of_license" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogAllocationConfigDefaultDatasetAllocation. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogAllocationConfigDefaultDatasetAllocation.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogAllocationConfigDefaultDatasetAllocation.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + percent_of_license: float): + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="percentOfLicense") + def percent_of_license(self) -> float: + return pulumi.get(self, "percent_of_license") + + +@pulumi.output_type +class LogAllocationConfigDefaultDatasetPriorities(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "highPriorityFilters": + suggest = "high_priority_filters" + elif key == "lowPriorityFilters": + suggest = "low_priority_filters" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogAllocationConfigDefaultDatasetPriorities. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogAllocationConfigDefaultDatasetPriorities.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogAllocationConfigDefaultDatasetPriorities.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + high_priority_filters: Optional[Sequence['outputs.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter']] = None, + low_priority_filters: Optional[Sequence['outputs.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter']] = None): + if high_priority_filters is not None: + pulumi.set(__self__, "high_priority_filters", high_priority_filters) + if low_priority_filters is not None: + pulumi.set(__self__, "low_priority_filters", low_priority_filters) + + @property + @pulumi.getter(name="highPriorityFilters") + def high_priority_filters(self) -> Optional[Sequence['outputs.LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter']]: + return pulumi.get(self, "high_priority_filters") + + @property + @pulumi.getter(name="lowPriorityFilters") + def low_priority_filters(self) -> Optional[Sequence['outputs.LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter']]: + return pulumi.get(self, "low_priority_filters") + + +@pulumi.output_type +class LogAllocationConfigDefaultDatasetPrioritiesHighPriorityFilter(dict): + def __init__(__self__, *, + query: str): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> str: + return pulumi.get(self, "query") + + +@pulumi.output_type +class LogAllocationConfigDefaultDatasetPrioritiesLowPriorityFilter(dict): + def __init__(__self__, *, + query: str): + pulumi.set(__self__, "query", query) + + @property + @pulumi.getter + def query(self) -> str: + return pulumi.get(self, "query") + + +@pulumi.output_type +class LogscaleActionEmailAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "attachCsv": + suggest = "attach_csv" + elif key == "bodyTemplate": + suggest = "body_template" + elif key == "subjectTemplate": + suggest = "subject_template" + elif key == "useProxy": + suggest = "use_proxy" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionEmailAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionEmailAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionEmailAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + recipients: Sequence[str], + attach_csv: Optional[bool] = None, + body_template: Optional[str] = None, + subject_template: Optional[str] = None, + use_proxy: Optional[bool] = None): + pulumi.set(__self__, "recipients", recipients) + if attach_csv is not None: + pulumi.set(__self__, "attach_csv", attach_csv) + if body_template is not None: + pulumi.set(__self__, "body_template", body_template) + if subject_template is not None: + pulumi.set(__self__, "subject_template", subject_template) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter + def recipients(self) -> Sequence[str]: + return pulumi.get(self, "recipients") + + @property + @pulumi.getter(name="attachCsv") + def attach_csv(self) -> Optional[bool]: + return pulumi.get(self, "attach_csv") + + @property + @pulumi.getter(name="bodyTemplate") + def body_template(self) -> Optional[str]: + return pulumi.get(self, "body_template") + + @property + @pulumi.getter(name="subjectTemplate") + def subject_template(self) -> Optional[str]: + return pulumi.get(self, "subject_template") + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[bool]: + return pulumi.get(self, "use_proxy") + + +@pulumi.output_type +class LogscaleActionHumioAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "ingestToken": + suggest = "ingest_token" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionHumioAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionHumioAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionHumioAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + ingest_token: str): + pulumi.set(__self__, "ingest_token", ingest_token) + + @property + @pulumi.getter(name="ingestToken") + def ingest_token(self) -> str: + return pulumi.get(self, "ingest_token") + + +@pulumi.output_type +class LogscaleActionOpsGenieAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "apiUrl": + suggest = "api_url" + elif key == "opsGenieKey": + suggest = "ops_genie_key" + elif key == "useProxy": + suggest = "use_proxy" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionOpsGenieAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionOpsGenieAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionOpsGenieAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + api_url: str, + ops_genie_key: str, + use_proxy: Optional[bool] = None): + pulumi.set(__self__, "api_url", api_url) + pulumi.set(__self__, "ops_genie_key", ops_genie_key) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="apiUrl") + def api_url(self) -> str: + return pulumi.get(self, "api_url") + + @property + @pulumi.getter(name="opsGenieKey") + def ops_genie_key(self) -> str: + return pulumi.get(self, "ops_genie_key") + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[bool]: + return pulumi.get(self, "use_proxy") + + +@pulumi.output_type +class LogscaleActionPagerDutyAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "routingKey": + suggest = "routing_key" + elif key == "useProxy": + suggest = "use_proxy" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionPagerDutyAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionPagerDutyAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionPagerDutyAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + routing_key: str, + severity: str, + use_proxy: Optional[bool] = None): + pulumi.set(__self__, "routing_key", routing_key) + pulumi.set(__self__, "severity", severity) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="routingKey") + def routing_key(self) -> str: + return pulumi.get(self, "routing_key") + + @property + @pulumi.getter + def severity(self) -> str: + return pulumi.get(self, "severity") + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[bool]: + return pulumi.get(self, "use_proxy") + + +@pulumi.output_type +class LogscaleActionSlackAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "useProxy": + suggest = "use_proxy" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionSlackAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionSlackAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionSlackAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + url: str, + fields: Optional[Mapping[str, str]] = None, + use_proxy: Optional[bool] = None): + pulumi.set(__self__, "url", url) + if fields is not None: + pulumi.set(__self__, "fields", fields) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter + def url(self) -> str: + return pulumi.get(self, "url") + + @property + @pulumi.getter + def fields(self) -> Optional[Mapping[str, str]]: + return pulumi.get(self, "fields") + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[bool]: + return pulumi.get(self, "use_proxy") + + +@pulumi.output_type +class LogscaleActionSlackPostMessageAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "apiToken": + suggest = "api_token" + elif key == "useProxy": + suggest = "use_proxy" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionSlackPostMessageAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionSlackPostMessageAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionSlackPostMessageAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + api_token: str, + channels: Sequence[str], + fields: Optional[Mapping[str, str]] = None, + use_proxy: Optional[bool] = None): + pulumi.set(__self__, "api_token", api_token) + pulumi.set(__self__, "channels", channels) + if fields is not None: + pulumi.set(__self__, "fields", fields) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="apiToken") + def api_token(self) -> str: + return pulumi.get(self, "api_token") + + @property + @pulumi.getter + def channels(self) -> Sequence[str]: + return pulumi.get(self, "channels") + + @property + @pulumi.getter + def fields(self) -> Optional[Mapping[str, str]]: + return pulumi.get(self, "fields") + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[bool]: + return pulumi.get(self, "use_proxy") + + +@pulumi.output_type +class LogscaleActionUploadFileAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "fileName": + suggest = "file_name" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionUploadFileAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionUploadFileAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionUploadFileAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + file_name: str): + pulumi.set(__self__, "file_name", file_name) + + @property + @pulumi.getter(name="fileName") + def file_name(self) -> str: + return pulumi.get(self, "file_name") + + +@pulumi.output_type +class LogscaleActionVictorOpsAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "messageType": + suggest = "message_type" + elif key == "notifyUrl": + suggest = "notify_url" + elif key == "useProxy": + suggest = "use_proxy" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionVictorOpsAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionVictorOpsAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionVictorOpsAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + message_type: str, + notify_url: str, + use_proxy: Optional[bool] = None): + pulumi.set(__self__, "message_type", message_type) + pulumi.set(__self__, "notify_url", notify_url) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter(name="messageType") + def message_type(self) -> str: + return pulumi.get(self, "message_type") + + @property + @pulumi.getter(name="notifyUrl") + def notify_url(self) -> str: + return pulumi.get(self, "notify_url") + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[bool]: + return pulumi.get(self, "use_proxy") + + +@pulumi.output_type +class LogscaleActionWebhookAction(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "bodyTemplate": + suggest = "body_template" + elif key == "ignoreSsl": + suggest = "ignore_ssl" + elif key == "useProxy": + suggest = "use_proxy" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LogscaleActionWebhookAction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LogscaleActionWebhookAction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LogscaleActionWebhookAction.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + method: str, + url: str, + body_template: Optional[str] = None, + headers: Optional[Mapping[str, str]] = None, + ignore_ssl: Optional[bool] = None, + use_proxy: Optional[bool] = None): + pulumi.set(__self__, "method", method) + pulumi.set(__self__, "url", url) + if body_template is not None: + pulumi.set(__self__, "body_template", body_template) + if headers is not None: + pulumi.set(__self__, "headers", headers) + if ignore_ssl is not None: + pulumi.set(__self__, "ignore_ssl", ignore_ssl) + if use_proxy is not None: + pulumi.set(__self__, "use_proxy", use_proxy) + + @property + @pulumi.getter + def method(self) -> str: + return pulumi.get(self, "method") + + @property + @pulumi.getter + def url(self) -> str: + return pulumi.get(self, "url") + + @property + @pulumi.getter(name="bodyTemplate") + def body_template(self) -> Optional[str]: + return pulumi.get(self, "body_template") + + @property + @pulumi.getter + def headers(self) -> Optional[Mapping[str, str]]: + return pulumi.get(self, "headers") + + @property + @pulumi.getter(name="ignoreSsl") + def ignore_ssl(self) -> Optional[bool]: + return pulumi.get(self, "ignore_ssl") + + @property + @pulumi.getter(name="useProxy") + def use_proxy(self) -> Optional[bool]: + return pulumi.get(self, "use_proxy") + + @pulumi.output_type class MappingRuleStoragePolicy(dict): def __init__(__self__, *, @@ -2042,15 +2742,16 @@ def text(self) -> Optional[str]: @pulumi.output_type class ResourcePoolsConfigDefaultPool(dict): def __init__(__self__, *, - allocation: 'outputs.ResourcePoolsConfigDefaultPoolAllocation', + allocation: Optional['outputs.ResourcePoolsConfigDefaultPoolAllocation'] = None, priorities: Optional['outputs.ResourcePoolsConfigDefaultPoolPriorities'] = None): - pulumi.set(__self__, "allocation", allocation) + if allocation is not None: + pulumi.set(__self__, "allocation", allocation) if priorities is not None: pulumi.set(__self__, "priorities", priorities) @property @pulumi.getter - def allocation(self) -> 'outputs.ResourcePoolsConfigDefaultPoolAllocation': + def allocation(self) -> Optional['outputs.ResourcePoolsConfigDefaultPoolAllocation']: return pulumi.get(self, "allocation") @property @@ -2064,7 +2765,9 @@ class ResourcePoolsConfigDefaultPoolAllocation(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "percentOfLicense": + if key == "fixedValues": + suggest = "fixed_values" + elif key == "percentOfLicense": suggest = "percent_of_license" if suggest: @@ -2079,15 +2782,43 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - percent_of_license: float): - pulumi.set(__self__, "percent_of_license", percent_of_license) + fixed_values: Optional[Sequence['outputs.ResourcePoolsConfigDefaultPoolAllocationFixedValue']] = None, + percent_of_license: Optional[float] = None): + if fixed_values is not None: + pulumi.set(__self__, "fixed_values", fixed_values) + if percent_of_license is not None: + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="fixedValues") + def fixed_values(self) -> Optional[Sequence['outputs.ResourcePoolsConfigDefaultPoolAllocationFixedValue']]: + return pulumi.get(self, "fixed_values") @property @pulumi.getter(name="percentOfLicense") - def percent_of_license(self) -> float: + def percent_of_license(self) -> Optional[float]: return pulumi.get(self, "percent_of_license") +@pulumi.output_type +class ResourcePoolsConfigDefaultPoolAllocationFixedValue(dict): + def __init__(__self__, *, + license: str, + value: int): + pulumi.set(__self__, "license", license) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def license(self) -> str: + return pulumi.get(self, "license") + + @property + @pulumi.getter + def value(self) -> int: + return pulumi.get(self, "value") + + @pulumi.output_type class ResourcePoolsConfigDefaultPoolPriorities(dict): @staticmethod @@ -2150,13 +2881,14 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - allocation: 'outputs.ResourcePoolsConfigPoolAllocation', name: str, + allocation: Optional['outputs.ResourcePoolsConfigPoolAllocation'] = None, match_rule: Optional[str] = None, match_rules: Optional[Sequence[str]] = None, priorities: Optional['outputs.ResourcePoolsConfigPoolPriorities'] = None): - pulumi.set(__self__, "allocation", allocation) pulumi.set(__self__, "name", name) + if allocation is not None: + pulumi.set(__self__, "allocation", allocation) if match_rule is not None: pulumi.set(__self__, "match_rule", match_rule) if match_rules is not None: @@ -2166,13 +2898,13 @@ def __init__(__self__, *, @property @pulumi.getter - def allocation(self) -> 'outputs.ResourcePoolsConfigPoolAllocation': - return pulumi.get(self, "allocation") + def name(self) -> str: + return pulumi.get(self, "name") @property @pulumi.getter - def name(self) -> str: - return pulumi.get(self, "name") + def allocation(self) -> Optional['outputs.ResourcePoolsConfigPoolAllocation']: + return pulumi.get(self, "allocation") @property @pulumi.getter(name="matchRule") @@ -2198,7 +2930,9 @@ class ResourcePoolsConfigPoolAllocation(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "percentOfLicense": + if key == "fixedValues": + suggest = "fixed_values" + elif key == "percentOfLicense": suggest = "percent_of_license" if suggest: @@ -2213,15 +2947,43 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - percent_of_license: float): - pulumi.set(__self__, "percent_of_license", percent_of_license) + fixed_values: Optional[Sequence['outputs.ResourcePoolsConfigPoolAllocationFixedValue']] = None, + percent_of_license: Optional[float] = None): + if fixed_values is not None: + pulumi.set(__self__, "fixed_values", fixed_values) + if percent_of_license is not None: + pulumi.set(__self__, "percent_of_license", percent_of_license) + + @property + @pulumi.getter(name="fixedValues") + def fixed_values(self) -> Optional[Sequence['outputs.ResourcePoolsConfigPoolAllocationFixedValue']]: + return pulumi.get(self, "fixed_values") @property @pulumi.getter(name="percentOfLicense") - def percent_of_license(self) -> float: + def percent_of_license(self) -> Optional[float]: return pulumi.get(self, "percent_of_license") +@pulumi.output_type +class ResourcePoolsConfigPoolAllocationFixedValue(dict): + def __init__(__self__, *, + license: str, + value: int): + pulumi.set(__self__, "license", license) + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter + def license(self) -> str: + return pulumi.get(self, "license") + + @property + @pulumi.getter + def value(self) -> int: + return pulumi.get(self, "value") + + @pulumi.output_type class ResourcePoolsConfigPoolPriorities(dict): @staticmethod @@ -2830,7 +3592,6 @@ def __init__(__self__, *, parent_service: Optional['outputs.TraceMetricsRuleTraceFilterSpanParentService'] = None, service: Optional['outputs.TraceMetricsRuleTraceFilterSpanService'] = None, span_count: Optional['outputs.TraceMetricsRuleTraceFilterSpanSpanCount'] = None, - tag: Optional[Sequence['outputs.TraceMetricsRuleTraceFilterSpanTag']] = None, tags: Optional[Sequence['outputs.TraceMetricsRuleTraceFilterSpanTag']] = None): if duration is not None: pulumi.set(__self__, "duration", duration) @@ -2848,8 +3609,6 @@ def __init__(__self__, *, pulumi.set(__self__, "service", service) if span_count is not None: pulumi.set(__self__, "span_count", span_count) - if tag is not None: - pulumi.set(__self__, "tag", tag) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -2893,17 +3652,9 @@ def service(self) -> Optional['outputs.TraceMetricsRuleTraceFilterSpanService']: def span_count(self) -> Optional['outputs.TraceMetricsRuleTraceFilterSpanSpanCount']: return pulumi.get(self, "span_count") - @property - @pulumi.getter - def tag(self) -> Optional[Sequence['outputs.TraceMetricsRuleTraceFilterSpanTag']]: - return pulumi.get(self, "tag") - @property @pulumi.getter def tags(self) -> Optional[Sequence['outputs.TraceMetricsRuleTraceFilterSpanTag']]: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") - return pulumi.get(self, "tags") @@ -2912,12 +3663,8 @@ class TraceMetricsRuleTraceFilterSpanDuration(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "maxSeconds": - suggest = "max_seconds" - elif key == "maxSecs": + if key == "maxSecs": suggest = "max_secs" - elif key == "minSeconds": - suggest = "min_seconds" elif key == "minSecs": suggest = "min_secs" @@ -2933,40 +3680,18 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - max_seconds: Optional[float] = None, max_secs: Optional[float] = None, - min_seconds: Optional[float] = None, min_secs: Optional[float] = None): - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[float]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[float]: return pulumi.get(self, "max_secs") - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[float]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[float]: @@ -3327,12 +4052,8 @@ class TraceMetricsRuleTraceFilterTraceDuration(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "maxSeconds": - suggest = "max_seconds" - elif key == "maxSecs": + if key == "maxSecs": suggest = "max_secs" - elif key == "minSeconds": - suggest = "min_seconds" elif key == "minSecs": suggest = "min_secs" @@ -3348,40 +4069,18 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - max_seconds: Optional[float] = None, max_secs: Optional[float] = None, - min_seconds: Optional[float] = None, min_secs: Optional[float] = None): - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[float]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[float]: return pulumi.get(self, "max_secs") - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[float]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[float]: @@ -3546,7 +4245,6 @@ def __init__(__self__, *, parent_service: Optional['outputs.TraceTailSamplingRulesRuleFilterSpanParentService'] = None, service: Optional['outputs.TraceTailSamplingRulesRuleFilterSpanService'] = None, span_count: Optional['outputs.TraceTailSamplingRulesRuleFilterSpanSpanCount'] = None, - tag: Optional[Sequence['outputs.TraceTailSamplingRulesRuleFilterSpanTag']] = None, tags: Optional[Sequence['outputs.TraceTailSamplingRulesRuleFilterSpanTag']] = None): if duration is not None: pulumi.set(__self__, "duration", duration) @@ -3564,8 +4262,6 @@ def __init__(__self__, *, pulumi.set(__self__, "service", service) if span_count is not None: pulumi.set(__self__, "span_count", span_count) - if tag is not None: - pulumi.set(__self__, "tag", tag) if tags is not None: pulumi.set(__self__, "tags", tags) @@ -3609,17 +4305,9 @@ def service(self) -> Optional['outputs.TraceTailSamplingRulesRuleFilterSpanServi def span_count(self) -> Optional['outputs.TraceTailSamplingRulesRuleFilterSpanSpanCount']: return pulumi.get(self, "span_count") - @property - @pulumi.getter - def tag(self) -> Optional[Sequence['outputs.TraceTailSamplingRulesRuleFilterSpanTag']]: - return pulumi.get(self, "tag") - @property @pulumi.getter def tags(self) -> Optional[Sequence['outputs.TraceTailSamplingRulesRuleFilterSpanTag']]: - warnings.warn("""`tags` is deprecated, use `tag` instead.""", DeprecationWarning) - pulumi.log.warn("""tags is deprecated: `tags` is deprecated, use `tag` instead.""") - return pulumi.get(self, "tags") @@ -3628,12 +4316,8 @@ class TraceTailSamplingRulesRuleFilterSpanDuration(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "maxSeconds": - suggest = "max_seconds" - elif key == "maxSecs": + if key == "maxSecs": suggest = "max_secs" - elif key == "minSeconds": - suggest = "min_seconds" elif key == "minSecs": suggest = "min_secs" @@ -3649,40 +4333,18 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - max_seconds: Optional[float] = None, max_secs: Optional[float] = None, - min_seconds: Optional[float] = None, min_secs: Optional[float] = None): - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[float]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[float]: return pulumi.get(self, "max_secs") - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[float]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[float]: @@ -4043,12 +4705,8 @@ class TraceTailSamplingRulesRuleFilterTraceDuration(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "maxSeconds": - suggest = "max_seconds" - elif key == "maxSecs": + if key == "maxSecs": suggest = "max_secs" - elif key == "minSeconds": - suggest = "min_seconds" elif key == "minSecs": suggest = "min_secs" @@ -4064,40 +4722,18 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - max_seconds: Optional[float] = None, max_secs: Optional[float] = None, - min_seconds: Optional[float] = None, min_secs: Optional[float] = None): - if max_seconds is not None: - pulumi.set(__self__, "max_seconds", max_seconds) if max_secs is not None: pulumi.set(__self__, "max_secs", max_secs) - if min_seconds is not None: - pulumi.set(__self__, "min_seconds", min_seconds) if min_secs is not None: pulumi.set(__self__, "min_secs", min_secs) - @property - @pulumi.getter(name="maxSeconds") - def max_seconds(self) -> Optional[float]: - warnings.warn("""use max_secs instead""", DeprecationWarning) - pulumi.log.warn("""max_seconds is deprecated: use max_secs instead""") - - return pulumi.get(self, "max_seconds") - @property @pulumi.getter(name="maxSecs") def max_secs(self) -> Optional[float]: return pulumi.get(self, "max_secs") - @property - @pulumi.getter(name="minSeconds") - def min_seconds(self) -> Optional[float]: - warnings.warn("""use min_secs instead""", DeprecationWarning) - pulumi.log.warn("""min_seconds is deprecated: use min_secs instead""") - - return pulumi.get(self, "min_seconds") - @property @pulumi.getter(name="minSecs") def min_secs(self) -> Optional[float]: diff --git a/sdk/python/chronosphereio_chronosphere/pagerduty_alert_notifier.py b/sdk/python/pulumi_chronosphere/pagerduty_alert_notifier.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/pagerduty_alert_notifier.py rename to sdk/python/pulumi_chronosphere/pagerduty_alert_notifier.py diff --git a/sdk/python/chronosphereio_chronosphere/provider.py b/sdk/python/pulumi_chronosphere/provider.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/provider.py rename to sdk/python/pulumi_chronosphere/provider.py diff --git a/sdk/python/chronosphereio_chronosphere/pulumi-plugin.json b/sdk/python/pulumi_chronosphere/pulumi-plugin.json similarity index 100% rename from sdk/python/chronosphereio_chronosphere/pulumi-plugin.json rename to sdk/python/pulumi_chronosphere/pulumi-plugin.json diff --git a/sdk/python/chronosphereio_chronosphere/py.typed b/sdk/python/pulumi_chronosphere/py.typed similarity index 100% rename from sdk/python/chronosphereio_chronosphere/py.typed rename to sdk/python/pulumi_chronosphere/py.typed diff --git a/sdk/python/chronosphereio_chronosphere/recording_rule.py b/sdk/python/pulumi_chronosphere/recording_rule.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/recording_rule.py rename to sdk/python/pulumi_chronosphere/recording_rule.py diff --git a/sdk/python/chronosphereio_chronosphere/resource_pools_config.py b/sdk/python/pulumi_chronosphere/resource_pools_config.py similarity index 94% rename from sdk/python/chronosphereio_chronosphere/resource_pools_config.py rename to sdk/python/pulumi_chronosphere/resource_pools_config.py index dd0d5f32..ebba0170 100644 --- a/sdk/python/chronosphereio_chronosphere/resource_pools_config.py +++ b/sdk/python/pulumi_chronosphere/resource_pools_config.py @@ -16,13 +16,14 @@ @pulumi.input_type class ResourcePoolsConfigArgs: def __init__(__self__, *, - default_pool: pulumi.Input['ResourcePoolsConfigDefaultPoolArgs'], + default_pool: Optional[pulumi.Input['ResourcePoolsConfigDefaultPoolArgs']] = None, pool: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigPoolArgs']]]] = None, pools: Optional[pulumi.Input[Sequence[pulumi.Input['ResourcePoolsConfigPoolArgs']]]] = None): """ The set of arguments for constructing a ResourcePoolsConfig resource. """ - pulumi.set(__self__, "default_pool", default_pool) + if default_pool is not None: + pulumi.set(__self__, "default_pool", default_pool) if pool is not None: pulumi.set(__self__, "pool", pool) if pools is not None: @@ -33,11 +34,11 @@ def __init__(__self__, *, @property @pulumi.getter(name="defaultPool") - def default_pool(self) -> pulumi.Input['ResourcePoolsConfigDefaultPoolArgs']: + def default_pool(self) -> Optional[pulumi.Input['ResourcePoolsConfigDefaultPoolArgs']]: return pulumi.get(self, "default_pool") @default_pool.setter - def default_pool(self, value: pulumi.Input['ResourcePoolsConfigDefaultPoolArgs']): + def default_pool(self, value: Optional[pulumi.Input['ResourcePoolsConfigDefaultPoolArgs']]): pulumi.set(self, "default_pool", value) @property @@ -130,7 +131,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: ResourcePoolsConfigArgs, + args: Optional[ResourcePoolsConfigArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Create a ResourcePoolsConfig resource with the given unique name, props, and options. @@ -161,8 +162,6 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = ResourcePoolsConfigArgs.__new__(ResourcePoolsConfigArgs) - if default_pool is None and not opts.urn: - raise TypeError("Missing required property 'default_pool'") __props__.__dict__["default_pool"] = default_pool __props__.__dict__["pool"] = pool __props__.__dict__["pools"] = pools @@ -198,7 +197,7 @@ def get(resource_name: str, @property @pulumi.getter(name="defaultPool") - def default_pool(self) -> pulumi.Output['outputs.ResourcePoolsConfigDefaultPool']: + def default_pool(self) -> pulumi.Output[Optional['outputs.ResourcePoolsConfigDefaultPool']]: return pulumi.get(self, "default_pool") @property diff --git a/sdk/python/chronosphereio_chronosphere/rollup_rule.py b/sdk/python/pulumi_chronosphere/rollup_rule.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/rollup_rule.py rename to sdk/python/pulumi_chronosphere/rollup_rule.py diff --git a/sdk/python/chronosphereio_chronosphere/service_account.py b/sdk/python/pulumi_chronosphere/service_account.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/service_account.py rename to sdk/python/pulumi_chronosphere/service_account.py diff --git a/sdk/python/chronosphereio_chronosphere/service_data_source.py b/sdk/python/pulumi_chronosphere/service_data_source.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/service_data_source.py rename to sdk/python/pulumi_chronosphere/service_data_source.py diff --git a/sdk/python/chronosphereio_chronosphere/slack_alert_notifier.py b/sdk/python/pulumi_chronosphere/slack_alert_notifier.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/slack_alert_notifier.py rename to sdk/python/pulumi_chronosphere/slack_alert_notifier.py diff --git a/sdk/python/chronosphereio_chronosphere/team.py b/sdk/python/pulumi_chronosphere/team.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/team.py rename to sdk/python/pulumi_chronosphere/team.py diff --git a/sdk/python/chronosphereio_chronosphere/trace_jaeger_remote_sampling_strategy.py b/sdk/python/pulumi_chronosphere/trace_jaeger_remote_sampling_strategy.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/trace_jaeger_remote_sampling_strategy.py rename to sdk/python/pulumi_chronosphere/trace_jaeger_remote_sampling_strategy.py diff --git a/sdk/python/chronosphereio_chronosphere/trace_metrics_rule.py b/sdk/python/pulumi_chronosphere/trace_metrics_rule.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/trace_metrics_rule.py rename to sdk/python/pulumi_chronosphere/trace_metrics_rule.py diff --git a/sdk/python/chronosphereio_chronosphere/trace_tail_sampling_rules.py b/sdk/python/pulumi_chronosphere/trace_tail_sampling_rules.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/trace_tail_sampling_rules.py rename to sdk/python/pulumi_chronosphere/trace_tail_sampling_rules.py diff --git a/sdk/python/chronosphereio_chronosphere/victorops_alert_notifier.py b/sdk/python/pulumi_chronosphere/victorops_alert_notifier.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/victorops_alert_notifier.py rename to sdk/python/pulumi_chronosphere/victorops_alert_notifier.py diff --git a/sdk/python/chronosphereio_chronosphere/webhook_alert_notifier.py b/sdk/python/pulumi_chronosphere/webhook_alert_notifier.py similarity index 100% rename from sdk/python/chronosphereio_chronosphere/webhook_alert_notifier.py rename to sdk/python/pulumi_chronosphere/webhook_alert_notifier.py diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 76357278..9dc04bfc 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -17,7 +17,7 @@ def readme(): return "chronosphere Pulumi Package - Development Version" -setup(name='chronosphereio_chronosphere', +setup(name='pulumi_chronosphere', python_requires='>=3.7', version=VERSION, description="Chronosphere Pulumi Provider", @@ -31,7 +31,7 @@ def readme(): license='Apache-2.0', packages=find_packages(), package_data={ - 'chronosphereio_chronosphere': [ + 'pulumi_chronosphere': [ 'py.typed', 'pulumi-plugin.json', ]