@pulumi/datadog 4.28.0-alpha.1713898724 → 4.28.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/authnMapping.d.ts +14 -2
- package/authnMapping.js +2 -3
- package/authnMapping.js.map +1 -1
- package/aws/integration.d.ts +21 -3
- package/aws/integration.js +2 -0
- package/aws/integration.js.map +1 -1
- package/cloudConfigurationRule.d.ts +6 -6
- package/cloudflare/integrationAccount.d.ts +1 -1
- package/cloudflare/integrationAccount.js +1 -1
- package/csmThreatsAgentRule.d.ts +109 -0
- package/csmThreatsAgentRule.js +89 -0
- package/csmThreatsAgentRule.js.map +1 -0
- package/dashboard.d.ts +0 -2
- package/dashboard.js +0 -2
- package/dashboard.js.map +1 -1
- package/getCsmThreatsAgentRules.d.ts +27 -0
- package/getCsmThreatsAgentRules.js +23 -0
- package/getCsmThreatsAgentRules.js.map +1 -0
- package/getRoleUsers.d.ts +69 -0
- package/getRoleUsers.js +27 -0
- package/getRoleUsers.js.map +1 -0
- package/index.d.ts +12 -0
- package/index.js +19 -3
- package/index.js.map +1 -1
- package/monitorJson.d.ts +0 -1
- package/monitorJson.js +0 -1
- package/monitorJson.js.map +1 -1
- package/openapiApi.d.ts +4 -4
- package/openapiApi.js +1 -1
- package/package.json +1 -1
- package/securityMonitoringRule.d.ts +3 -3
- package/securityMonitoringSuppression.d.ts +17 -5
- package/securityMonitoringSuppression.js +2 -3
- package/securityMonitoringSuppression.js.map +1 -1
- package/types/input.d.ts +16 -4
- package/types/output.d.ts +29 -5
- package/user.d.ts +1 -1
- package/userRole.d.ts +91 -0
- package/userRole.js +88 -0
- package/userRole.js.map +1 -0
package/types/output.d.ts
CHANGED
|
@@ -37928,6 +37928,13 @@ export interface GetCloudWorkloadSecurityAgentRulesAgentRule {
|
|
|
37928
37928
|
*/
|
|
37929
37929
|
name: string;
|
|
37930
37930
|
}
|
|
37931
|
+
export interface GetCsmThreatsAgentRulesAgentRule {
|
|
37932
|
+
description: string;
|
|
37933
|
+
enabled: boolean;
|
|
37934
|
+
expression: string;
|
|
37935
|
+
id: string;
|
|
37936
|
+
name: string;
|
|
37937
|
+
}
|
|
37931
37938
|
export interface GetHostsHostList {
|
|
37932
37939
|
aliases: string[];
|
|
37933
37940
|
apps: string[];
|
|
@@ -38156,6 +38163,10 @@ export interface GetMonitorsMonitor {
|
|
|
38156
38163
|
*/
|
|
38157
38164
|
type: string;
|
|
38158
38165
|
}
|
|
38166
|
+
export interface GetRoleUsersRoleUser {
|
|
38167
|
+
roleId: string;
|
|
38168
|
+
userId: string;
|
|
38169
|
+
}
|
|
38159
38170
|
export interface GetRolesRole {
|
|
38160
38171
|
/**
|
|
38161
38172
|
* ID of the Datadog role
|
|
@@ -38216,7 +38227,7 @@ export interface GetSecurityMonitoringRulesRule {
|
|
|
38216
38227
|
*/
|
|
38217
38228
|
enabled?: boolean;
|
|
38218
38229
|
/**
|
|
38219
|
-
* Additional queries to filter matched events before they are processed.
|
|
38230
|
+
* Additional queries to filter matched events before they are processed. **Note**: This field is deprecated for log detection, signal correlation, and workload security rules.
|
|
38220
38231
|
*/
|
|
38221
38232
|
filters?: outputs.GetSecurityMonitoringRulesRuleFilter[];
|
|
38222
38233
|
/**
|
|
@@ -38463,6 +38474,7 @@ export interface GetSecurityMonitoringRulesRuleThirdPartyCase {
|
|
|
38463
38474
|
status: string;
|
|
38464
38475
|
}
|
|
38465
38476
|
export interface GetSecurityMonitoringSuppressionsSuppression {
|
|
38477
|
+
dataExclusionQuery: string;
|
|
38466
38478
|
description: string;
|
|
38467
38479
|
enabled: boolean;
|
|
38468
38480
|
expirationDate: string;
|
|
@@ -50814,7 +50826,7 @@ export interface ServiceLevelObjectiveQuery {
|
|
|
50814
50826
|
}
|
|
50815
50827
|
export interface ServiceLevelObjectiveSliSpecification {
|
|
50816
50828
|
/**
|
|
50817
|
-
* The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold.
|
|
50829
|
+
* The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold. Optionally, a fourth part, the query interval, can be provided.
|
|
50818
50830
|
*/
|
|
50819
50831
|
timeSlice: outputs.ServiceLevelObjectiveSliSpecificationTimeSlice;
|
|
50820
50832
|
}
|
|
@@ -50827,6 +50839,10 @@ export interface ServiceLevelObjectiveSliSpecificationTimeSlice {
|
|
|
50827
50839
|
* A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
|
|
50828
50840
|
*/
|
|
50829
50841
|
query: outputs.ServiceLevelObjectiveSliSpecificationTimeSliceQuery;
|
|
50842
|
+
/**
|
|
50843
|
+
* The interval used when querying data, which defines the size of a time slice. Valid values are `60`, `300`. Defaults to `300`.
|
|
50844
|
+
*/
|
|
50845
|
+
queryIntervalSeconds?: number;
|
|
50830
50846
|
/**
|
|
50831
50847
|
* The threshold value to which each SLI value will be compared.
|
|
50832
50848
|
*/
|
|
@@ -51210,7 +51226,7 @@ export interface SyntheticsTestApiStepRequestDefinition {
|
|
|
51210
51226
|
*/
|
|
51211
51227
|
body?: string;
|
|
51212
51228
|
/**
|
|
51213
|
-
* Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`.
|
|
51229
|
+
* Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`, `application/octet-stream`, `multipart/form-data`.
|
|
51214
51230
|
*/
|
|
51215
51231
|
bodyType?: string;
|
|
51216
51232
|
/**
|
|
@@ -51237,6 +51253,10 @@ export interface SyntheticsTestApiStepRequestDefinition {
|
|
|
51237
51253
|
* Host name to perform the test with.
|
|
51238
51254
|
*/
|
|
51239
51255
|
host?: string;
|
|
51256
|
+
/**
|
|
51257
|
+
* HTTP version to use for an HTTP request in an API test or step. Valid values are `http1`, `http2`, `any`.
|
|
51258
|
+
*/
|
|
51259
|
+
httpVersion?: string;
|
|
51240
51260
|
/**
|
|
51241
51261
|
* For UDP and websocket tests, message to send with the request.
|
|
51242
51262
|
*/
|
|
@@ -51584,7 +51604,7 @@ export interface SyntheticsTestOptionsList {
|
|
|
51584
51604
|
*/
|
|
51585
51605
|
followRedirects?: boolean;
|
|
51586
51606
|
/**
|
|
51587
|
-
* HTTP version to use for
|
|
51607
|
+
* HTTP version to use for an HTTP request in an API test or step. Valid values are `http1`, `http2`, `any`.
|
|
51588
51608
|
*/
|
|
51589
51609
|
httpVersion?: string;
|
|
51590
51610
|
/**
|
|
@@ -51791,7 +51811,7 @@ export interface SyntheticsTestRequestDefinition {
|
|
|
51791
51811
|
*/
|
|
51792
51812
|
body?: string;
|
|
51793
51813
|
/**
|
|
51794
|
-
* Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`.
|
|
51814
|
+
* Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`, `application/octet-stream`, `multipart/form-data`.
|
|
51795
51815
|
*/
|
|
51796
51816
|
bodyType?: string;
|
|
51797
51817
|
/**
|
|
@@ -51814,6 +51834,10 @@ export interface SyntheticsTestRequestDefinition {
|
|
|
51814
51834
|
* Host name to perform the test with.
|
|
51815
51835
|
*/
|
|
51816
51836
|
host?: string;
|
|
51837
|
+
/**
|
|
51838
|
+
* HTTP version to use for an HTTP request in an API test or step. Valid values are `http1`, `http2`, `any`.
|
|
51839
|
+
*/
|
|
51840
|
+
httpVersion?: string;
|
|
51817
51841
|
/**
|
|
51818
51842
|
* For UDP and websocket tests, message to send with the request.
|
|
51819
51843
|
*/
|
package/user.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare class User extends pulumi.CustomResource {
|
|
|
56
56
|
/**
|
|
57
57
|
* A list a role IDs to assign to the user.
|
|
58
58
|
*/
|
|
59
|
-
readonly roles: pulumi.Output<string[]
|
|
59
|
+
readonly roles: pulumi.Output<string[]>;
|
|
60
60
|
/**
|
|
61
61
|
* Whether an invitation email should be sent when the user is created. Defaults to `true`.
|
|
62
62
|
*/
|
package/userRole.d.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog UserRole resource. This can be used to create and manage Datadog User Roles. Conflicts may occur if used together with the `datadog.User` resource's `roles` attribute. This resource is in beta and is subject to change.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* const monitorWriterRole = new datadog.Role("monitor_writer_role", {
|
|
12
|
+
* name: "Monitor Writer Role",
|
|
13
|
+
* permissions: [{
|
|
14
|
+
* id: bar.permissions.monitorsWrite,
|
|
15
|
+
* }],
|
|
16
|
+
* });
|
|
17
|
+
* const newUser = new datadog.User("new_user", {email: "new@example.com"});
|
|
18
|
+
* // Create new user_role resource
|
|
19
|
+
* const newUserWithMonitorWriterRole = new datadog.UserRole("new_user_with_monitor_writer_role", {
|
|
20
|
+
* roleId: monitorWriterRole.id,
|
|
21
|
+
* userId: newUser.id,
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* This resource is imported using user_id and role_id seperated by `:`.
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import datadog:index/userRole:UserRole user_with_admin_role "${role_id}:${user_id}"
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class UserRole extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing UserRole resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserRoleState, opts?: pulumi.CustomResourceOptions): UserRole;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of UserRole. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj: any): obj is UserRole;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the role that the user is assigned to.
|
|
51
|
+
*/
|
|
52
|
+
readonly roleId: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the user.
|
|
55
|
+
*/
|
|
56
|
+
readonly userId: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a UserRole resource with the given unique name, arguments, and options.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resource.
|
|
61
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
62
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
63
|
+
*/
|
|
64
|
+
constructor(name: string, args: UserRoleArgs, opts?: pulumi.CustomResourceOptions);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Input properties used for looking up and filtering UserRole resources.
|
|
68
|
+
*/
|
|
69
|
+
export interface UserRoleState {
|
|
70
|
+
/**
|
|
71
|
+
* ID of the role that the user is assigned to.
|
|
72
|
+
*/
|
|
73
|
+
roleId?: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The ID of the user.
|
|
76
|
+
*/
|
|
77
|
+
userId?: pulumi.Input<string>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The set of arguments for constructing a UserRole resource.
|
|
81
|
+
*/
|
|
82
|
+
export interface UserRoleArgs {
|
|
83
|
+
/**
|
|
84
|
+
* ID of the role that the user is assigned to.
|
|
85
|
+
*/
|
|
86
|
+
roleId: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The ID of the user.
|
|
89
|
+
*/
|
|
90
|
+
userId: pulumi.Input<string>;
|
|
91
|
+
}
|
package/userRole.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.UserRole = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Datadog UserRole resource. This can be used to create and manage Datadog User Roles. Conflicts may occur if used together with the `datadog.User` resource's `roles` attribute. This resource is in beta and is subject to change.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as datadog from "@pulumi/datadog";
|
|
16
|
+
*
|
|
17
|
+
* const monitorWriterRole = new datadog.Role("monitor_writer_role", {
|
|
18
|
+
* name: "Monitor Writer Role",
|
|
19
|
+
* permissions: [{
|
|
20
|
+
* id: bar.permissions.monitorsWrite,
|
|
21
|
+
* }],
|
|
22
|
+
* });
|
|
23
|
+
* const newUser = new datadog.User("new_user", {email: "new@example.com"});
|
|
24
|
+
* // Create new user_role resource
|
|
25
|
+
* const newUserWithMonitorWriterRole = new datadog.UserRole("new_user_with_monitor_writer_role", {
|
|
26
|
+
* roleId: monitorWriterRole.id,
|
|
27
|
+
* userId: newUser.id,
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* This resource is imported using user_id and role_id seperated by `:`.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import datadog:index/userRole:UserRole user_with_admin_role "${role_id}:${user_id}"
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class UserRole extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing UserRole resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name, id, state, opts) {
|
|
50
|
+
return new UserRole(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of UserRole. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj) {
|
|
57
|
+
if (obj === undefined || obj === null) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return obj['__pulumiType'] === UserRole.__pulumiType;
|
|
61
|
+
}
|
|
62
|
+
constructor(name, argsOrState, opts) {
|
|
63
|
+
let resourceInputs = {};
|
|
64
|
+
opts = opts || {};
|
|
65
|
+
if (opts.id) {
|
|
66
|
+
const state = argsOrState;
|
|
67
|
+
resourceInputs["roleId"] = state ? state.roleId : undefined;
|
|
68
|
+
resourceInputs["userId"] = state ? state.userId : undefined;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const args = argsOrState;
|
|
72
|
+
if ((!args || args.roleId === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'roleId'");
|
|
74
|
+
}
|
|
75
|
+
if ((!args || args.userId === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'userId'");
|
|
77
|
+
}
|
|
78
|
+
resourceInputs["roleId"] = args ? args.roleId : undefined;
|
|
79
|
+
resourceInputs["userId"] = args ? args.userId : undefined;
|
|
80
|
+
}
|
|
81
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
|
+
super(UserRole.__pulumiType, name, resourceInputs, opts);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.UserRole = UserRole;
|
|
86
|
+
/** @internal */
|
|
87
|
+
UserRole.__pulumiType = 'datadog:index/userRole:UserRole';
|
|
88
|
+
//# sourceMappingURL=userRole.js.map
|
package/userRole.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userRole.js","sourceRoot":"","sources":["../userRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjEL,4BAkEC;AApDG,gBAAgB;AACO,qBAAY,GAAG,iCAAiC,CAAC"}
|