@pulumi/datadog 4.64.0-alpha.1769443125 → 4.64.0-alpha.1769659438
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/datastore.d.ts +170 -0
- package/datastore.js +107 -0
- package/datastore.js.map +1 -0
- package/datastoreItem.d.ts +126 -0
- package/datastoreItem.js +110 -0
- package/datastoreItem.js.map +1 -0
- package/getDatastore.d.ts +76 -0
- package/getDatastore.js +30 -0
- package/getDatastore.js.map +1 -0
- package/getDatastoreItem.d.ts +78 -0
- package/getDatastoreItem.js +30 -0
- package/getDatastoreItem.js.map +1 -0
- package/getSecurityMonitoringCriticalAsset.d.ts +78 -0
- package/getSecurityMonitoringCriticalAsset.js +50 -0
- package/getSecurityMonitoringCriticalAsset.js.map +1 -0
- package/getSecurityMonitoringCriticalAssets.d.ts +45 -0
- package/getSecurityMonitoringCriticalAssets.js +46 -0
- package/getSecurityMonitoringCriticalAssets.js.map +1 -0
- package/index.d.ts +24 -0
- package/index.js +38 -5
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/rumRetentionFilter.d.ts +3 -3
- package/securityMonitoringCriticalAsset.d.ts +125 -0
- package/securityMonitoringCriticalAsset.js +95 -0
- package/securityMonitoringCriticalAsset.js.map +1 -0
- package/syntheticsSuite.d.ts +101 -0
- package/syntheticsSuite.js +63 -0
- package/syntheticsSuite.js.map +1 -0
- package/types/input.d.ts +134 -32
- package/types/output.d.ts +142 -32
package/datastore.d.ts
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog Datastore resource. This can be used to create and manage Datadog datastore.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* // Create a new datastore resource
|
|
12
|
+
* const foo = new datadog.Datastore("foo", {
|
|
13
|
+
* name: "my-datastore",
|
|
14
|
+
* description: "My application datastore",
|
|
15
|
+
* primaryColumnName: "id",
|
|
16
|
+
* primaryKeyGenerationStrategy: "none",
|
|
17
|
+
* orgAccess: "contributor",
|
|
18
|
+
* });
|
|
19
|
+
* // Create a datastore with auto-generated UUIDs for primary keys
|
|
20
|
+
* const autoUuid = new datadog.Datastore("auto_uuid", {
|
|
21
|
+
* name: "my-uuid-datastore",
|
|
22
|
+
* description: "Datastore with auto-generated primary keys",
|
|
23
|
+
* primaryColumnName: "uuid",
|
|
24
|
+
* primaryKeyGenerationStrategy: "uuid",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* The `pulumi import` command can be used, for example:
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import datadog:index/datastore:Datastore foo "datastore-id"
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class Datastore extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing Datastore resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatastoreState, opts?: pulumi.CustomResourceOptions): Datastore;
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of Datastore. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj: any): obj is Datastore;
|
|
52
|
+
/**
|
|
53
|
+
* Timestamp when the datastore was created.
|
|
54
|
+
*/
|
|
55
|
+
readonly createdAt: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The numeric ID of the user who created the datastore.
|
|
58
|
+
*/
|
|
59
|
+
readonly creatorUserId: pulumi.Output<number>;
|
|
60
|
+
/**
|
|
61
|
+
* The UUID of the user who created the datastore.
|
|
62
|
+
*/
|
|
63
|
+
readonly creatorUserUuid: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* A human-readable description about the datastore.
|
|
66
|
+
*/
|
|
67
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Timestamp when the datastore was last modified.
|
|
70
|
+
*/
|
|
71
|
+
readonly modifiedAt: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* The display name for the new datastore.
|
|
74
|
+
*/
|
|
75
|
+
readonly name: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The organization access level for the datastore. For example, 'contributor'.
|
|
78
|
+
*/
|
|
79
|
+
readonly orgAccess: pulumi.Output<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* The ID of the organization that owns this datastore.
|
|
82
|
+
*/
|
|
83
|
+
readonly orgId: pulumi.Output<number>;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the primary key column for this datastore. Primary column names: - Must abide by both [PostgreSQL naming conventions](https://www.postgresql.org/docs/7.0/syntax525.htm) - Cannot exceed 63 characters
|
|
86
|
+
*/
|
|
87
|
+
readonly primaryColumnName: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Can be set to `uuid` to automatically generate primary keys when new items are added. Default value is `none`, which requires you to supply a primary key for each new item.
|
|
90
|
+
*/
|
|
91
|
+
readonly primaryKeyGenerationStrategy: pulumi.Output<string | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Create a Datastore resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name: string, args: DatastoreArgs, opts?: pulumi.CustomResourceOptions);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Input properties used for looking up and filtering Datastore resources.
|
|
103
|
+
*/
|
|
104
|
+
export interface DatastoreState {
|
|
105
|
+
/**
|
|
106
|
+
* Timestamp when the datastore was created.
|
|
107
|
+
*/
|
|
108
|
+
createdAt?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The numeric ID of the user who created the datastore.
|
|
111
|
+
*/
|
|
112
|
+
creatorUserId?: pulumi.Input<number>;
|
|
113
|
+
/**
|
|
114
|
+
* The UUID of the user who created the datastore.
|
|
115
|
+
*/
|
|
116
|
+
creatorUserUuid?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* A human-readable description about the datastore.
|
|
119
|
+
*/
|
|
120
|
+
description?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Timestamp when the datastore was last modified.
|
|
123
|
+
*/
|
|
124
|
+
modifiedAt?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The display name for the new datastore.
|
|
127
|
+
*/
|
|
128
|
+
name?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The organization access level for the datastore. For example, 'contributor'.
|
|
131
|
+
*/
|
|
132
|
+
orgAccess?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The ID of the organization that owns this datastore.
|
|
135
|
+
*/
|
|
136
|
+
orgId?: pulumi.Input<number>;
|
|
137
|
+
/**
|
|
138
|
+
* The name of the primary key column for this datastore. Primary column names: - Must abide by both [PostgreSQL naming conventions](https://www.postgresql.org/docs/7.0/syntax525.htm) - Cannot exceed 63 characters
|
|
139
|
+
*/
|
|
140
|
+
primaryColumnName?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Can be set to `uuid` to automatically generate primary keys when new items are added. Default value is `none`, which requires you to supply a primary key for each new item.
|
|
143
|
+
*/
|
|
144
|
+
primaryKeyGenerationStrategy?: pulumi.Input<string>;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The set of arguments for constructing a Datastore resource.
|
|
148
|
+
*/
|
|
149
|
+
export interface DatastoreArgs {
|
|
150
|
+
/**
|
|
151
|
+
* A human-readable description about the datastore.
|
|
152
|
+
*/
|
|
153
|
+
description?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* The display name for the new datastore.
|
|
156
|
+
*/
|
|
157
|
+
name: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The organization access level for the datastore. For example, 'contributor'.
|
|
160
|
+
*/
|
|
161
|
+
orgAccess?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The name of the primary key column for this datastore. Primary column names: - Must abide by both [PostgreSQL naming conventions](https://www.postgresql.org/docs/7.0/syntax525.htm) - Cannot exceed 63 characters
|
|
164
|
+
*/
|
|
165
|
+
primaryColumnName: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Can be set to `uuid` to automatically generate primary keys when new items are added. Default value is `none`, which requires you to supply a primary key for each new item.
|
|
168
|
+
*/
|
|
169
|
+
primaryKeyGenerationStrategy?: pulumi.Input<string>;
|
|
170
|
+
}
|
package/datastore.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Datastore = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Datadog Datastore resource. This can be used to create and manage Datadog datastore.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as datadog from "@pulumi/datadog";
|
|
16
|
+
*
|
|
17
|
+
* // Create a new datastore resource
|
|
18
|
+
* const foo = new datadog.Datastore("foo", {
|
|
19
|
+
* name: "my-datastore",
|
|
20
|
+
* description: "My application datastore",
|
|
21
|
+
* primaryColumnName: "id",
|
|
22
|
+
* primaryKeyGenerationStrategy: "none",
|
|
23
|
+
* orgAccess: "contributor",
|
|
24
|
+
* });
|
|
25
|
+
* // Create a datastore with auto-generated UUIDs for primary keys
|
|
26
|
+
* const autoUuid = new datadog.Datastore("auto_uuid", {
|
|
27
|
+
* name: "my-uuid-datastore",
|
|
28
|
+
* description: "Datastore with auto-generated primary keys",
|
|
29
|
+
* primaryColumnName: "uuid",
|
|
30
|
+
* primaryKeyGenerationStrategy: "uuid",
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* The `pulumi import` command can be used, for example:
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import datadog:index/datastore:Datastore foo "datastore-id"
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
class Datastore extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing Datastore resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new Datastore(name, state, { ...opts, id: id });
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of Datastore. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === Datastore.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
71
|
+
resourceInputs["creatorUserId"] = state?.creatorUserId;
|
|
72
|
+
resourceInputs["creatorUserUuid"] = state?.creatorUserUuid;
|
|
73
|
+
resourceInputs["description"] = state?.description;
|
|
74
|
+
resourceInputs["modifiedAt"] = state?.modifiedAt;
|
|
75
|
+
resourceInputs["name"] = state?.name;
|
|
76
|
+
resourceInputs["orgAccess"] = state?.orgAccess;
|
|
77
|
+
resourceInputs["orgId"] = state?.orgId;
|
|
78
|
+
resourceInputs["primaryColumnName"] = state?.primaryColumnName;
|
|
79
|
+
resourceInputs["primaryKeyGenerationStrategy"] = state?.primaryKeyGenerationStrategy;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if (args?.name === undefined && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'name'");
|
|
85
|
+
}
|
|
86
|
+
if (args?.primaryColumnName === undefined && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'primaryColumnName'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["description"] = args?.description;
|
|
90
|
+
resourceInputs["name"] = args?.name;
|
|
91
|
+
resourceInputs["orgAccess"] = args?.orgAccess;
|
|
92
|
+
resourceInputs["primaryColumnName"] = args?.primaryColumnName;
|
|
93
|
+
resourceInputs["primaryKeyGenerationStrategy"] = args?.primaryKeyGenerationStrategy;
|
|
94
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["creatorUserId"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["creatorUserUuid"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["modifiedAt"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["orgId"] = undefined /*out*/;
|
|
99
|
+
}
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
+
super(Datastore.__pulumiType, name, resourceInputs, opts);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.Datastore = Datastore;
|
|
105
|
+
/** @internal */
|
|
106
|
+
Datastore.__pulumiType = 'datadog:index/datastore:Datastore';
|
|
107
|
+
//# sourceMappingURL=datastore.js.map
|
package/datastore.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datastore.js","sourceRoot":"","sources":["../datastore.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1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C,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,8BAA8B,CAAC,GAAG,IAAI,EAAE,4BAA4B,CAAC;YACpF,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAjHL,8BAkHC;AApGG,gBAAgB;AACO,sBAAY,GAAG,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog Datastore Item resource. This can be used to create and manage items in a Datadog datastore.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* // Create a datastore and add items to it
|
|
12
|
+
* const example = new datadog.Datastore("example", {
|
|
13
|
+
* name: "users-datastore",
|
|
14
|
+
* description: "Datastore for user data",
|
|
15
|
+
* primaryColumnName: "id",
|
|
16
|
+
* primaryKeyGenerationStrategy: "none",
|
|
17
|
+
* });
|
|
18
|
+
* // Create a datastore item with the primary key specified in the value map
|
|
19
|
+
* const user1 = new datadog.DatastoreItem("user1", {
|
|
20
|
+
* datastoreId: example.id,
|
|
21
|
+
* itemKey: "user-123",
|
|
22
|
+
* value: {
|
|
23
|
+
* id: "user-123",
|
|
24
|
+
* username: "john_doe",
|
|
25
|
+
* email: "john@example.com",
|
|
26
|
+
* status: "active",
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* // Create another datastore item
|
|
30
|
+
* const user2 = new datadog.DatastoreItem("user2", {
|
|
31
|
+
* datastoreId: example.id,
|
|
32
|
+
* itemKey: "user-456",
|
|
33
|
+
* value: {
|
|
34
|
+
* id: "user-456",
|
|
35
|
+
* username: "jane_doe",
|
|
36
|
+
* email: "jane@example.com",
|
|
37
|
+
* status: "active",
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ## Import
|
|
43
|
+
*
|
|
44
|
+
* The `pulumi import` command can be used, for example:
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import datadog:index/datastoreItem:DatastoreItem foo "datastore-id:item-key"
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class DatastoreItem extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing DatastoreItem resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatastoreItemState, opts?: pulumi.CustomResourceOptions): DatastoreItem;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of DatastoreItem. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is DatastoreItem;
|
|
66
|
+
/**
|
|
67
|
+
* The unique identifier of the datastore containing this item.
|
|
68
|
+
*/
|
|
69
|
+
readonly datastoreId: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The primary key value that identifies this item. Cannot exceed 256 characters.
|
|
72
|
+
*/
|
|
73
|
+
readonly itemKey: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The data content (as key-value pairs) of the datastore item.
|
|
76
|
+
*/
|
|
77
|
+
readonly value: pulumi.Output<{
|
|
78
|
+
[key: string]: string;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* Create a DatastoreItem resource with the given unique name, arguments, and options.
|
|
82
|
+
*
|
|
83
|
+
* @param name The _unique_ name of the resource.
|
|
84
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
85
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
86
|
+
*/
|
|
87
|
+
constructor(name: string, args: DatastoreItemArgs, opts?: pulumi.CustomResourceOptions);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Input properties used for looking up and filtering DatastoreItem resources.
|
|
91
|
+
*/
|
|
92
|
+
export interface DatastoreItemState {
|
|
93
|
+
/**
|
|
94
|
+
* The unique identifier of the datastore containing this item.
|
|
95
|
+
*/
|
|
96
|
+
datastoreId?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The primary key value that identifies this item. Cannot exceed 256 characters.
|
|
99
|
+
*/
|
|
100
|
+
itemKey?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The data content (as key-value pairs) of the datastore item.
|
|
103
|
+
*/
|
|
104
|
+
value?: pulumi.Input<{
|
|
105
|
+
[key: string]: pulumi.Input<string>;
|
|
106
|
+
}>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The set of arguments for constructing a DatastoreItem resource.
|
|
110
|
+
*/
|
|
111
|
+
export interface DatastoreItemArgs {
|
|
112
|
+
/**
|
|
113
|
+
* The unique identifier of the datastore containing this item.
|
|
114
|
+
*/
|
|
115
|
+
datastoreId: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The primary key value that identifies this item. Cannot exceed 256 characters.
|
|
118
|
+
*/
|
|
119
|
+
itemKey: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The data content (as key-value pairs) of the datastore item.
|
|
122
|
+
*/
|
|
123
|
+
value: pulumi.Input<{
|
|
124
|
+
[key: string]: pulumi.Input<string>;
|
|
125
|
+
}>;
|
|
126
|
+
}
|
package/datastoreItem.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DatastoreItem = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Datadog Datastore Item resource. This can be used to create and manage items in a Datadog datastore.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as datadog from "@pulumi/datadog";
|
|
16
|
+
*
|
|
17
|
+
* // Create a datastore and add items to it
|
|
18
|
+
* const example = new datadog.Datastore("example", {
|
|
19
|
+
* name: "users-datastore",
|
|
20
|
+
* description: "Datastore for user data",
|
|
21
|
+
* primaryColumnName: "id",
|
|
22
|
+
* primaryKeyGenerationStrategy: "none",
|
|
23
|
+
* });
|
|
24
|
+
* // Create a datastore item with the primary key specified in the value map
|
|
25
|
+
* const user1 = new datadog.DatastoreItem("user1", {
|
|
26
|
+
* datastoreId: example.id,
|
|
27
|
+
* itemKey: "user-123",
|
|
28
|
+
* value: {
|
|
29
|
+
* id: "user-123",
|
|
30
|
+
* username: "john_doe",
|
|
31
|
+
* email: "john@example.com",
|
|
32
|
+
* status: "active",
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* // Create another datastore item
|
|
36
|
+
* const user2 = new datadog.DatastoreItem("user2", {
|
|
37
|
+
* datastoreId: example.id,
|
|
38
|
+
* itemKey: "user-456",
|
|
39
|
+
* value: {
|
|
40
|
+
* id: "user-456",
|
|
41
|
+
* username: "jane_doe",
|
|
42
|
+
* email: "jane@example.com",
|
|
43
|
+
* status: "active",
|
|
44
|
+
* },
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* The `pulumi import` command can be used, for example:
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import datadog:index/datastoreItem:DatastoreItem foo "datastore-id:item-key"
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
class DatastoreItem extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing DatastoreItem 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 DatastoreItem(name, state, { ...opts, id: id });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of DatastoreItem. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === DatastoreItem.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
constructor(name, argsOrState, opts) {
|
|
80
|
+
let resourceInputs = {};
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
if (opts.id) {
|
|
83
|
+
const state = argsOrState;
|
|
84
|
+
resourceInputs["datastoreId"] = state?.datastoreId;
|
|
85
|
+
resourceInputs["itemKey"] = state?.itemKey;
|
|
86
|
+
resourceInputs["value"] = state?.value;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const args = argsOrState;
|
|
90
|
+
if (args?.datastoreId === undefined && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'datastoreId'");
|
|
92
|
+
}
|
|
93
|
+
if (args?.itemKey === undefined && !opts.urn) {
|
|
94
|
+
throw new Error("Missing required property 'itemKey'");
|
|
95
|
+
}
|
|
96
|
+
if (args?.value === undefined && !opts.urn) {
|
|
97
|
+
throw new Error("Missing required property 'value'");
|
|
98
|
+
}
|
|
99
|
+
resourceInputs["datastoreId"] = args?.datastoreId;
|
|
100
|
+
resourceInputs["itemKey"] = args?.itemKey;
|
|
101
|
+
resourceInputs["value"] = args?.value;
|
|
102
|
+
}
|
|
103
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
104
|
+
super(DatastoreItem.__pulumiType, name, resourceInputs, opts);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.DatastoreItem = DatastoreItem;
|
|
108
|
+
/** @internal */
|
|
109
|
+
DatastoreItem.__pulumiType = 'datadog:index/datastoreItem:DatastoreItem';
|
|
110
|
+
//# sourceMappingURL=datastoreItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datastoreItem.js","source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AI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;SACzC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA1EL,sCA2EC;AA7DG,gBAAgB;AACO,0BAAY,GAAG,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve information about an existing Datadog datastore.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getDatastore(args?: GetDatastoreArgs, opts?: pulumi.InvokeOptions): Promise<GetDatastoreResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of arguments for invoking getDatastore.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetDatastoreArgs {
|
|
10
|
+
/**
|
|
11
|
+
* The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
|
|
12
|
+
*/
|
|
13
|
+
datastoreId?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A collection of values returned by getDatastore.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetDatastoreResult {
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp when the datastore was created.
|
|
21
|
+
*/
|
|
22
|
+
readonly createdAt: string;
|
|
23
|
+
/**
|
|
24
|
+
* The numeric ID of the user who created the datastore.
|
|
25
|
+
*/
|
|
26
|
+
readonly creatorUserId: number;
|
|
27
|
+
/**
|
|
28
|
+
* The UUID of the user who created the datastore.
|
|
29
|
+
*/
|
|
30
|
+
readonly creatorUserUuid: string;
|
|
31
|
+
/**
|
|
32
|
+
* The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
|
|
33
|
+
*/
|
|
34
|
+
readonly datastoreId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* A human-readable description about the datastore.
|
|
37
|
+
*/
|
|
38
|
+
readonly description: string;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of this resource.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Timestamp when the datastore was last modified.
|
|
45
|
+
*/
|
|
46
|
+
readonly modifiedAt: string;
|
|
47
|
+
/**
|
|
48
|
+
* The display name of the datastore.
|
|
49
|
+
*/
|
|
50
|
+
readonly name: string;
|
|
51
|
+
/**
|
|
52
|
+
* The ID of the organization that owns this datastore.
|
|
53
|
+
*/
|
|
54
|
+
readonly orgId: number;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the primary key column for this datastore. Primary column names: - Must abide by both [PostgreSQL naming conventions](https://www.postgresql.org/docs/7.0/syntax525.htm) - Cannot exceed 63 characters
|
|
57
|
+
*/
|
|
58
|
+
readonly primaryColumnName: string;
|
|
59
|
+
/**
|
|
60
|
+
* Can be set to `uuid` to automatically generate primary keys when new items are added. Default value is `none`, which requires you to supply a primary key for each new item.
|
|
61
|
+
*/
|
|
62
|
+
readonly primaryKeyGenerationStrategy: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Use this data source to retrieve information about an existing Datadog datastore.
|
|
66
|
+
*/
|
|
67
|
+
export declare function getDatastoreOutput(args?: GetDatastoreOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatastoreResult>;
|
|
68
|
+
/**
|
|
69
|
+
* A collection of arguments for invoking getDatastore.
|
|
70
|
+
*/
|
|
71
|
+
export interface GetDatastoreOutputArgs {
|
|
72
|
+
/**
|
|
73
|
+
* The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
|
|
74
|
+
*/
|
|
75
|
+
datastoreId?: pulumi.Input<string>;
|
|
76
|
+
}
|
package/getDatastore.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getDatastoreOutput = exports.getDatastore = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve information about an existing Datadog datastore.
|
|
10
|
+
*/
|
|
11
|
+
function getDatastore(args, opts) {
|
|
12
|
+
args = args || {};
|
|
13
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
14
|
+
return pulumi.runtime.invoke("datadog:index/getDatastore:getDatastore", {
|
|
15
|
+
"datastoreId": args.datastoreId,
|
|
16
|
+
}, opts);
|
|
17
|
+
}
|
|
18
|
+
exports.getDatastore = getDatastore;
|
|
19
|
+
/**
|
|
20
|
+
* Use this data source to retrieve information about an existing Datadog datastore.
|
|
21
|
+
*/
|
|
22
|
+
function getDatastoreOutput(args, opts) {
|
|
23
|
+
args = args || {};
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invokeOutput("datadog:index/getDatastore:getDatastore", {
|
|
26
|
+
"datastoreId": args.datastoreId,
|
|
27
|
+
}, opts);
|
|
28
|
+
}
|
|
29
|
+
exports.getDatastoreOutput = getDatastoreOutput;
|
|
30
|
+
//# sourceMappingURL=getDatastore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatastore.js","sourceRoot":"","sources":["../getDatastore.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AA6DD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAAiC;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yCAAyC,EAAE;QAC1E,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC"}
|