@pulumi/datadog 5.7.0-alpha.1782975766 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/vars.d.ts +6 -2
- package/config/vars.d.ts.map +1 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/index.d.ts +18 -0
- package/index.d.ts.map +1 -1
- package/index.js +32 -2
- package/index.js.map +1 -1
- package/monitor.d.ts +12 -0
- package/monitor.d.ts.map +1 -1
- package/monitor.js +2 -0
- package/monitor.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +8 -4
- package/provider.d.ts.map +1 -1
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/securityFindingsDueDateRule.d.ts +132 -0
- package/securityFindingsDueDateRule.d.ts.map +1 -0
- package/securityFindingsDueDateRule.js +132 -0
- package/securityFindingsDueDateRule.js.map +1 -0
- package/securityFindingsDueDateRulesOrder.d.ts +86 -0
- package/securityFindingsDueDateRulesOrder.d.ts.map +1 -0
- package/securityFindingsDueDateRulesOrder.js +105 -0
- package/securityFindingsDueDateRulesOrder.js.map +1 -0
- package/securityFindingsMuteRule.d.ts +120 -0
- package/securityFindingsMuteRule.d.ts.map +1 -0
- package/securityFindingsMuteRule.js +120 -0
- package/securityFindingsMuteRule.js.map +1 -0
- package/securityFindingsMuteRulesOrder.d.ts +86 -0
- package/securityFindingsMuteRulesOrder.d.ts.map +1 -0
- package/securityFindingsMuteRulesOrder.js +105 -0
- package/securityFindingsMuteRulesOrder.js.map +1 -0
- package/securityFindingsTicketCreationRule.d.ts +124 -0
- package/securityFindingsTicketCreationRule.d.ts.map +1 -0
- package/securityFindingsTicketCreationRule.js +124 -0
- package/securityFindingsTicketCreationRule.js.map +1 -0
- package/securityFindingsTicketCreationRulesOrder.d.ts +86 -0
- package/securityFindingsTicketCreationRulesOrder.d.ts.map +1 -0
- package/securityFindingsTicketCreationRulesOrder.js +105 -0
- package/securityFindingsTicketCreationRulesOrder.js.map +1 -0
- package/sensitiveDataScannerRule.d.ts +4 -4
- package/sensitiveDataScannerRule.d.ts.map +1 -1
- package/serviceLevelObjective.d.ts +12 -0
- package/serviceLevelObjective.d.ts.map +1 -1
- package/serviceLevelObjective.js +2 -0
- package/serviceLevelObjective.js.map +1 -1
- package/types/input.d.ts +1352 -2
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1353 -3
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SecurityFindingsDueDateRulesOrder = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a resource that manages the evaluation order of due date rules for the security findings in an organization. The `ruleIds` list must contain every due date rule ID; due date rules created outside Terraform appear as drift. **Note:** the due date rule order is a single, organization-wide setting, so only one resource of this type should be declared per organization.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* // Manage the evaluation order of all due date rules for the organization.
|
|
41
|
+
* // rule_ids must list every due date rule ID; rules created outside Terraform appear as drift.
|
|
42
|
+
* const order = new datadog.SecurityFindingsDueDateRulesOrder("order", {
|
|
43
|
+
* name: "security_findings_due_date_rules_order",
|
|
44
|
+
* ruleIds: [prodSla.id],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* The `pulumi import` command can be used, for example:
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import datadog:index/securityFindingsDueDateRulesOrder:SecurityFindingsDueDateRulesOrder order "security_findings_due_date_rules_order"
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
class SecurityFindingsDueDateRulesOrder extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing SecurityFindingsDueDateRulesOrder resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new SecurityFindingsDueDateRulesOrder(name, state, { ...opts, id: id });
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
static __pulumiType = 'datadog:index/securityFindingsDueDateRulesOrder:SecurityFindingsDueDateRulesOrder';
|
|
71
|
+
/**
|
|
72
|
+
* Returns true if the given object is an instance of SecurityFindingsDueDateRulesOrder. This is designed to work even
|
|
73
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
+
*/
|
|
75
|
+
static isInstance(obj) {
|
|
76
|
+
if (obj === undefined || obj === null) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return obj['__pulumiType'] === SecurityFindingsDueDateRulesOrder.__pulumiType;
|
|
80
|
+
}
|
|
81
|
+
constructor(name, argsOrState, opts) {
|
|
82
|
+
let resourceInputs = {};
|
|
83
|
+
opts = opts || {};
|
|
84
|
+
if (opts.id) {
|
|
85
|
+
const state = argsOrState;
|
|
86
|
+
resourceInputs["name"] = state?.name;
|
|
87
|
+
resourceInputs["ruleIds"] = state?.ruleIds;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const args = argsOrState;
|
|
91
|
+
if (args?.name === undefined && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'name'");
|
|
93
|
+
}
|
|
94
|
+
if (args?.ruleIds === undefined && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'ruleIds'");
|
|
96
|
+
}
|
|
97
|
+
resourceInputs["name"] = args?.name;
|
|
98
|
+
resourceInputs["ruleIds"] = args?.ruleIds;
|
|
99
|
+
}
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
+
super(SecurityFindingsDueDateRulesOrder.__pulumiType, name, resourceInputs, opts);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.SecurityFindingsDueDateRulesOrder = SecurityFindingsDueDateRulesOrder;
|
|
105
|
+
//# sourceMappingURL=securityFindingsDueDateRulesOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityFindingsDueDateRulesOrder.js","sourceRoot":"","sources":["../securityFindingsDueDateRulesOrder.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,iCAAkC,SAAQ,MAAM,CAAC,cAAc;IACxE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8C,EAAE,IAAmC;QAC5I,OAAO,IAAI,iCAAiC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,mFAAmF,CAAC;IAE1H;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iCAAiC,CAAC,YAAY,CAAC;IAClF,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA4F,EAAE,IAAmC;QACvJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiE,CAAC;YAChF,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;SAC9C;aAAM;YACH,MAAM,IAAI,GAAG,WAAgE,CAAC;YAC9E,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iCAAiC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtF,CAAC;;AAjEL,8EAkEC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a Datadog security findings automation mute rule resource. This can be used to create and manage mute rules that automatically suppress matching security findings. Use the `datadog.SecurityFindingsMuteRulesOrder` resource to manage the evaluation order of mute rules.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as datadog from "@pulumi/datadog";
|
|
12
|
+
*
|
|
13
|
+
* // Create a new mute rule that suppresses accepted risks in dev environments.
|
|
14
|
+
* const acceptedRisksDev = new datadog.SecurityFindingsMuteRule("accepted_risks_dev", {
|
|
15
|
+
* name: "Mute accepted risks in dev",
|
|
16
|
+
* enabled: true,
|
|
17
|
+
* rule: {
|
|
18
|
+
* finding_types: ["misconfiguration"],
|
|
19
|
+
* query: "env:dev team:platform @severity:low",
|
|
20
|
+
* },
|
|
21
|
+
* action: {
|
|
22
|
+
* reason: "risk_accepted",
|
|
23
|
+
* reason_description: "Accepted for dev environments only",
|
|
24
|
+
* expire_at: 4070908800000,
|
|
25
|
+
* },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* The `pulumi import` command can be used, for example:
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import datadog:index/securityFindingsMuteRule:SecurityFindingsMuteRule accepted_risks_dev "00000000-0000-0000-0000-000000000000"
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class SecurityFindingsMuteRule extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing SecurityFindingsMuteRule resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecurityFindingsMuteRuleState, opts?: pulumi.CustomResourceOptions): SecurityFindingsMuteRule;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of SecurityFindingsMuteRule. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is SecurityFindingsMuteRule;
|
|
53
|
+
/**
|
|
54
|
+
* The action to take when the mute rule matches a finding.
|
|
55
|
+
*/
|
|
56
|
+
readonly action: pulumi.Output<outputs.SecurityFindingsMuteRuleAction>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the mute rule is enabled. Defaults to `true`.
|
|
59
|
+
*/
|
|
60
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* The name of the mute rule.
|
|
63
|
+
*/
|
|
64
|
+
readonly name: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Defines the scope of findings to which the automation rule applies.
|
|
67
|
+
*/
|
|
68
|
+
readonly rule: pulumi.Output<outputs.SecurityFindingsMuteRuleRule>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a SecurityFindingsMuteRule resource with the given unique name, arguments, and options.
|
|
71
|
+
*
|
|
72
|
+
* @param name The _unique_ name of the resource.
|
|
73
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
74
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
75
|
+
*/
|
|
76
|
+
constructor(name: string, args: SecurityFindingsMuteRuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Input properties used for looking up and filtering SecurityFindingsMuteRule resources.
|
|
80
|
+
*/
|
|
81
|
+
export interface SecurityFindingsMuteRuleState {
|
|
82
|
+
/**
|
|
83
|
+
* The action to take when the mute rule matches a finding.
|
|
84
|
+
*/
|
|
85
|
+
action?: pulumi.Input<inputs.SecurityFindingsMuteRuleAction | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the mute rule is enabled. Defaults to `true`.
|
|
88
|
+
*/
|
|
89
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* The name of the mute rule.
|
|
92
|
+
*/
|
|
93
|
+
name?: pulumi.Input<string | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Defines the scope of findings to which the automation rule applies.
|
|
96
|
+
*/
|
|
97
|
+
rule?: pulumi.Input<inputs.SecurityFindingsMuteRuleRule | undefined>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The set of arguments for constructing a SecurityFindingsMuteRule resource.
|
|
101
|
+
*/
|
|
102
|
+
export interface SecurityFindingsMuteRuleArgs {
|
|
103
|
+
/**
|
|
104
|
+
* The action to take when the mute rule matches a finding.
|
|
105
|
+
*/
|
|
106
|
+
action: pulumi.Input<inputs.SecurityFindingsMuteRuleAction>;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the mute rule is enabled. Defaults to `true`.
|
|
109
|
+
*/
|
|
110
|
+
enabled?: pulumi.Input<boolean | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* The name of the mute rule.
|
|
113
|
+
*/
|
|
114
|
+
name: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Defines the scope of findings to which the automation rule applies.
|
|
117
|
+
*/
|
|
118
|
+
rule: pulumi.Input<inputs.SecurityFindingsMuteRuleRule>;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=securityFindingsMuteRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityFindingsMuteRule.d.ts","sourceRoot":"","sources":["../securityFindingsMuteRule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,wBAAwB;IAOlK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,wBAAwB;IAOnE;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACtF;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxD;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAElF;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA6BpG;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAC;CACxE;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAC5D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;CAC3D"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SecurityFindingsMuteRule = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Datadog security findings automation mute rule resource. This can be used to create and manage mute rules that automatically suppress matching security findings. Use the `datadog.SecurityFindingsMuteRulesOrder` resource to manage the evaluation order of mute rules.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* // Create a new mute rule that suppresses accepted risks in dev environments.
|
|
41
|
+
* const acceptedRisksDev = new datadog.SecurityFindingsMuteRule("accepted_risks_dev", {
|
|
42
|
+
* name: "Mute accepted risks in dev",
|
|
43
|
+
* enabled: true,
|
|
44
|
+
* rule: {
|
|
45
|
+
* finding_types: ["misconfiguration"],
|
|
46
|
+
* query: "env:dev team:platform @severity:low",
|
|
47
|
+
* },
|
|
48
|
+
* action: {
|
|
49
|
+
* reason: "risk_accepted",
|
|
50
|
+
* reason_description: "Accepted for dev environments only",
|
|
51
|
+
* expire_at: 4070908800000,
|
|
52
|
+
* },
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ## Import
|
|
57
|
+
*
|
|
58
|
+
* The `pulumi import` command can be used, for example:
|
|
59
|
+
*
|
|
60
|
+
* ```sh
|
|
61
|
+
* $ pulumi import datadog:index/securityFindingsMuteRule:SecurityFindingsMuteRule accepted_risks_dev "00000000-0000-0000-0000-000000000000"
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
class SecurityFindingsMuteRule extends pulumi.CustomResource {
|
|
65
|
+
/**
|
|
66
|
+
* Get an existing SecurityFindingsMuteRule resource's state with the given name, ID, and optional extra
|
|
67
|
+
* properties used to qualify the lookup.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resulting resource.
|
|
70
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
71
|
+
* @param state Any extra arguments used during the lookup.
|
|
72
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
73
|
+
*/
|
|
74
|
+
static get(name, id, state, opts) {
|
|
75
|
+
return new SecurityFindingsMuteRule(name, state, { ...opts, id: id });
|
|
76
|
+
}
|
|
77
|
+
/** @internal */
|
|
78
|
+
static __pulumiType = 'datadog:index/securityFindingsMuteRule:SecurityFindingsMuteRule';
|
|
79
|
+
/**
|
|
80
|
+
* Returns true if the given object is an instance of SecurityFindingsMuteRule. This is designed to work even
|
|
81
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
82
|
+
*/
|
|
83
|
+
static isInstance(obj) {
|
|
84
|
+
if (obj === undefined || obj === null) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return obj['__pulumiType'] === SecurityFindingsMuteRule.__pulumiType;
|
|
88
|
+
}
|
|
89
|
+
constructor(name, argsOrState, opts) {
|
|
90
|
+
let resourceInputs = {};
|
|
91
|
+
opts = opts || {};
|
|
92
|
+
if (opts.id) {
|
|
93
|
+
const state = argsOrState;
|
|
94
|
+
resourceInputs["action"] = state?.action;
|
|
95
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
96
|
+
resourceInputs["name"] = state?.name;
|
|
97
|
+
resourceInputs["rule"] = state?.rule;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const args = argsOrState;
|
|
101
|
+
if (args?.action === undefined && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'action'");
|
|
103
|
+
}
|
|
104
|
+
if (args?.name === undefined && !opts.urn) {
|
|
105
|
+
throw new Error("Missing required property 'name'");
|
|
106
|
+
}
|
|
107
|
+
if (args?.rule === undefined && !opts.urn) {
|
|
108
|
+
throw new Error("Missing required property 'rule'");
|
|
109
|
+
}
|
|
110
|
+
resourceInputs["action"] = args?.action;
|
|
111
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
112
|
+
resourceInputs["name"] = args?.name;
|
|
113
|
+
resourceInputs["rule"] = args?.rule;
|
|
114
|
+
}
|
|
115
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
116
|
+
super(SecurityFindingsMuteRule.__pulumiType, name, resourceInputs, opts);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.SecurityFindingsMuteRule = SecurityFindingsMuteRule;
|
|
120
|
+
//# sourceMappingURL=securityFindingsMuteRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityFindingsMuteRule.js","sourceRoot":"","sources":["../securityFindingsMuteRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,iEAAiE,CAAC;IAExG;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwD,CAAC;YACvE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAAuD,CAAC;YACrE,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AAhFL,4DAiFC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource that manages the evaluation order of mute rules for the security findings in an organization. The `ruleIds` list must contain every mute rule ID; mute rules created outside Terraform appear as drift. **Note:** the mute rule order is a single, organization-wide setting, so only one resource of this type should be declared per organization.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* // Manage the evaluation order of all mute rules for the organization.
|
|
12
|
+
* // rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
|
|
13
|
+
* const order = new datadog.SecurityFindingsMuteRulesOrder("order", {
|
|
14
|
+
* name: "security_findings_mute_rules_order",
|
|
15
|
+
* ruleIds: [acceptedRisksDev.id],
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* The `pulumi import` command can be used, for example:
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import datadog:index/securityFindingsMuteRulesOrder:SecurityFindingsMuteRulesOrder order "security_findings_mute_rules_order"
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class SecurityFindingsMuteRulesOrder extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing SecurityFindingsMuteRulesOrder resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecurityFindingsMuteRulesOrderState, opts?: pulumi.CustomResourceOptions): SecurityFindingsMuteRulesOrder;
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if the given object is an instance of SecurityFindingsMuteRulesOrder. This is designed to work even
|
|
40
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
41
|
+
*/
|
|
42
|
+
static isInstance(obj: any): obj is SecurityFindingsMuteRulesOrder;
|
|
43
|
+
/**
|
|
44
|
+
* A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
|
|
45
|
+
*/
|
|
46
|
+
readonly name: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
|
|
49
|
+
*/
|
|
50
|
+
readonly ruleIds: pulumi.Output<string[]>;
|
|
51
|
+
/**
|
|
52
|
+
* Create a SecurityFindingsMuteRulesOrder resource with the given unique name, arguments, and options.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resource.
|
|
55
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
56
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
57
|
+
*/
|
|
58
|
+
constructor(name: string, args: SecurityFindingsMuteRulesOrderArgs, opts?: pulumi.CustomResourceOptions);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Input properties used for looking up and filtering SecurityFindingsMuteRulesOrder resources.
|
|
62
|
+
*/
|
|
63
|
+
export interface SecurityFindingsMuteRulesOrderState {
|
|
64
|
+
/**
|
|
65
|
+
* A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
|
|
66
|
+
*/
|
|
67
|
+
name?: pulumi.Input<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
|
|
70
|
+
*/
|
|
71
|
+
ruleIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The set of arguments for constructing a SecurityFindingsMuteRulesOrder resource.
|
|
75
|
+
*/
|
|
76
|
+
export interface SecurityFindingsMuteRulesOrderArgs {
|
|
77
|
+
/**
|
|
78
|
+
* A unique identifier for the order resource. This field has no server-side equivalent; Datadog recommends matching the resource name.
|
|
79
|
+
*/
|
|
80
|
+
name: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The ordered list of all mute rule IDs. The order of IDs in this attribute defines the evaluation order of the mute rules.
|
|
83
|
+
*/
|
|
84
|
+
ruleIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=securityFindingsMuteRulesOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityFindingsMuteRulesOrder.d.ts","sourceRoot":"","sources":["../securityFindingsMuteRulesOrder.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,mCAAmC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,8BAA8B;IAO9K;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,8BAA8B;IAOzE;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAEzD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAsB1G;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SecurityFindingsMuteRulesOrder = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a resource that manages the evaluation order of mute rules for the security findings in an organization. The `ruleIds` list must contain every mute rule ID; mute rules created outside Terraform appear as drift. **Note:** the mute rule order is a single, organization-wide setting, so only one resource of this type should be declared per organization.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* // Manage the evaluation order of all mute rules for the organization.
|
|
41
|
+
* // rule_ids must list every mute rule ID; rules created outside Terraform appear as drift.
|
|
42
|
+
* const order = new datadog.SecurityFindingsMuteRulesOrder("order", {
|
|
43
|
+
* name: "security_findings_mute_rules_order",
|
|
44
|
+
* ruleIds: [acceptedRisksDev.id],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* The `pulumi import` command can be used, for example:
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import datadog:index/securityFindingsMuteRulesOrder:SecurityFindingsMuteRulesOrder order "security_findings_mute_rules_order"
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
class SecurityFindingsMuteRulesOrder extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing SecurityFindingsMuteRulesOrder resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new SecurityFindingsMuteRulesOrder(name, state, { ...opts, id: id });
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
static __pulumiType = 'datadog:index/securityFindingsMuteRulesOrder:SecurityFindingsMuteRulesOrder';
|
|
71
|
+
/**
|
|
72
|
+
* Returns true if the given object is an instance of SecurityFindingsMuteRulesOrder. This is designed to work even
|
|
73
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
+
*/
|
|
75
|
+
static isInstance(obj) {
|
|
76
|
+
if (obj === undefined || obj === null) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return obj['__pulumiType'] === SecurityFindingsMuteRulesOrder.__pulumiType;
|
|
80
|
+
}
|
|
81
|
+
constructor(name, argsOrState, opts) {
|
|
82
|
+
let resourceInputs = {};
|
|
83
|
+
opts = opts || {};
|
|
84
|
+
if (opts.id) {
|
|
85
|
+
const state = argsOrState;
|
|
86
|
+
resourceInputs["name"] = state?.name;
|
|
87
|
+
resourceInputs["ruleIds"] = state?.ruleIds;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const args = argsOrState;
|
|
91
|
+
if (args?.name === undefined && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'name'");
|
|
93
|
+
}
|
|
94
|
+
if (args?.ruleIds === undefined && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'ruleIds'");
|
|
96
|
+
}
|
|
97
|
+
resourceInputs["name"] = args?.name;
|
|
98
|
+
resourceInputs["ruleIds"] = args?.ruleIds;
|
|
99
|
+
}
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
+
super(SecurityFindingsMuteRulesOrder.__pulumiType, name, resourceInputs, opts);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.SecurityFindingsMuteRulesOrder = SecurityFindingsMuteRulesOrder;
|
|
105
|
+
//# sourceMappingURL=securityFindingsMuteRulesOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityFindingsMuteRulesOrder.js","sourceRoot":"","sources":["../securityFindingsMuteRulesOrder.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6EAA6E,CAAC;IAEpH;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8D,CAAC;YAC7E,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;SAC9C;aAAM;YACH,MAAM,IAAI,GAAG,WAA6D,CAAC;YAC3E,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;;AAjEL,wEAkEC"}
|