@pulumi/datadog 5.4.0 → 5.5.0-alpha.1780549102
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/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +7 -2
- package/index.js.map +1 -1
- package/onCallTeamRoutingRules.d.ts +46 -1
- package/onCallTeamRoutingRules.d.ts.map +1 -1
- package/onCallTeamRoutingRules.js +46 -1
- package/onCallTeamRoutingRules.js.map +1 -1
- package/package.json +2 -2
- package/serviceAccessToken.d.ts +158 -0
- package/serviceAccessToken.d.ts.map +1 -0
- package/serviceAccessToken.js +138 -0
- package/serviceAccessToken.js.map +1 -0
- package/types/input.d.ts +138 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +138 -0
- package/types/output.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/datadog",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0-alpha.1780549102",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Datadog resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"pulumi": {
|
|
23
23
|
"resource": true,
|
|
24
24
|
"name": "datadog",
|
|
25
|
-
"version": "5.
|
|
25
|
+
"version": "5.5.0-alpha.1780549102"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog `serviceAccessToken` resource. This can be used to create and manage Datadog service access tokens (SATs). A SAT is an access token scoped to a service account; this resource is intentionally limited to service-account-owned tokens.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* // Source the permissions for scoped tokens
|
|
12
|
+
* const ddPerms = datadog.getPermissions({});
|
|
13
|
+
* // Create a long-lived Service Access Token (SAT) for monitor management
|
|
14
|
+
* const monitorManagementToken = new datadog.ServiceAccessToken("monitor_management_token", {
|
|
15
|
+
* serviceAccountId: "00000000-0000-1234-0000-000000000000",
|
|
16
|
+
* name: "Monitor Management Service Access Token",
|
|
17
|
+
* scopes: [
|
|
18
|
+
* ddPerms.then(ddPerms => ddPerms.permissions?.monitorsRead),
|
|
19
|
+
* ddPerms.then(ddPerms => ddPerms.permissions?.monitorsWrite),
|
|
20
|
+
* ],
|
|
21
|
+
* });
|
|
22
|
+
* // Create a Service Access Token (SAT) with a fixed expiration date.
|
|
23
|
+
* // The Datadog API caps expirations at 365 days from creation. expires_at is
|
|
24
|
+
* // immutable after creation; to rotate it, destroy and re-create the resource.
|
|
25
|
+
* const expiringToken = new datadog.ServiceAccessToken("expiring_token", {
|
|
26
|
+
* serviceAccountId: "00000000-0000-1234-0000-000000000000",
|
|
27
|
+
* name: "Short-lived CI Service Access Token",
|
|
28
|
+
* scopes: [ddPerms.then(ddPerms => ddPerms.permissions?.dashboardsRead)],
|
|
29
|
+
* expiresAt: "2027-01-01T00:00:00Z",
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* The `pulumi import` command can be used, for example:
|
|
36
|
+
*
|
|
37
|
+
* Importing a service access token cannot import the value of the key.
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import datadog:index/serviceAccessToken:ServiceAccessToken this "<service_account_id>:<token_id>"
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare class ServiceAccessToken extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing ServiceAccessToken resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceAccessTokenState, opts?: pulumi.CustomResourceOptions): ServiceAccessToken;
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of ServiceAccessToken. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj: any): obj is ServiceAccessToken;
|
|
59
|
+
/**
|
|
60
|
+
* Creation date of the access token, in RFC3339 format.
|
|
61
|
+
*/
|
|
62
|
+
readonly createdAt: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Expiration date of the service access token, in RFC3339 format. Omit for a non-expiring token. The Datadog API caps expirations to within 365 days from creation. This attribute is immutable: it cannot be added, changed, or removed after creation. To rotate the expiration, destroy and re-create the resource.
|
|
65
|
+
*/
|
|
66
|
+
readonly expiresAt: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* The value of the service access token. This value is only available at creation time and cannot be imported.
|
|
69
|
+
*/
|
|
70
|
+
readonly key: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Date the access token was last used, in RFC3339 format. Empty if the token has never been used.
|
|
73
|
+
*/
|
|
74
|
+
readonly lastUsedAt: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Name of the service access token. Must be non-empty. String length must be at least 1.
|
|
77
|
+
*/
|
|
78
|
+
readonly name: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The public portion of the access token, used for identification.
|
|
81
|
+
*/
|
|
82
|
+
readonly publicPortion: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Authorization scopes granted to the service access token. At least one scope is required.
|
|
85
|
+
*/
|
|
86
|
+
readonly scopes: pulumi.Output<string[]>;
|
|
87
|
+
/**
|
|
88
|
+
* ID of the service account that owns this access token.
|
|
89
|
+
*/
|
|
90
|
+
readonly serviceAccountId: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a ServiceAccessToken resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: ServiceAccessTokenArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering ServiceAccessToken resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface ServiceAccessTokenState {
|
|
104
|
+
/**
|
|
105
|
+
* Creation date of the access token, in RFC3339 format.
|
|
106
|
+
*/
|
|
107
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Expiration date of the service access token, in RFC3339 format. Omit for a non-expiring token. The Datadog API caps expirations to within 365 days from creation. This attribute is immutable: it cannot be added, changed, or removed after creation. To rotate the expiration, destroy and re-create the resource.
|
|
110
|
+
*/
|
|
111
|
+
expiresAt?: pulumi.Input<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* The value of the service access token. This value is only available at creation time and cannot be imported.
|
|
114
|
+
*/
|
|
115
|
+
key?: pulumi.Input<string | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* Date the access token was last used, in RFC3339 format. Empty if the token has never been used.
|
|
118
|
+
*/
|
|
119
|
+
lastUsedAt?: pulumi.Input<string | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Name of the service access token. Must be non-empty. String length must be at least 1.
|
|
122
|
+
*/
|
|
123
|
+
name?: pulumi.Input<string | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* The public portion of the access token, used for identification.
|
|
126
|
+
*/
|
|
127
|
+
publicPortion?: pulumi.Input<string | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Authorization scopes granted to the service access token. At least one scope is required.
|
|
130
|
+
*/
|
|
131
|
+
scopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* ID of the service account that owns this access token.
|
|
134
|
+
*/
|
|
135
|
+
serviceAccountId?: pulumi.Input<string | undefined>;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The set of arguments for constructing a ServiceAccessToken resource.
|
|
139
|
+
*/
|
|
140
|
+
export interface ServiceAccessTokenArgs {
|
|
141
|
+
/**
|
|
142
|
+
* Expiration date of the service access token, in RFC3339 format. Omit for a non-expiring token. The Datadog API caps expirations to within 365 days from creation. This attribute is immutable: it cannot be added, changed, or removed after creation. To rotate the expiration, destroy and re-create the resource.
|
|
143
|
+
*/
|
|
144
|
+
expiresAt?: pulumi.Input<string | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Name of the service access token. Must be non-empty. String length must be at least 1.
|
|
147
|
+
*/
|
|
148
|
+
name: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Authorization scopes granted to the service access token. At least one scope is required.
|
|
151
|
+
*/
|
|
152
|
+
scopes: pulumi.Input<pulumi.Input<string>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* ID of the service account that owns this access token.
|
|
155
|
+
*/
|
|
156
|
+
serviceAccountId: pulumi.Input<string>;
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=serviceAccessToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceAccessToken.d.ts","sourceRoot":"","sources":["../serviceAccessToken.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;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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.ServiceAccessToken = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Datadog `serviceAccessToken` resource. This can be used to create and manage Datadog service access tokens (SATs). A SAT is an access token scoped to a service account; this resource is intentionally limited to service-account-owned tokens.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* // Source the permissions for scoped tokens
|
|
41
|
+
* const ddPerms = datadog.getPermissions({});
|
|
42
|
+
* // Create a long-lived Service Access Token (SAT) for monitor management
|
|
43
|
+
* const monitorManagementToken = new datadog.ServiceAccessToken("monitor_management_token", {
|
|
44
|
+
* serviceAccountId: "00000000-0000-1234-0000-000000000000",
|
|
45
|
+
* name: "Monitor Management Service Access Token",
|
|
46
|
+
* scopes: [
|
|
47
|
+
* ddPerms.then(ddPerms => ddPerms.permissions?.monitorsRead),
|
|
48
|
+
* ddPerms.then(ddPerms => ddPerms.permissions?.monitorsWrite),
|
|
49
|
+
* ],
|
|
50
|
+
* });
|
|
51
|
+
* // Create a Service Access Token (SAT) with a fixed expiration date.
|
|
52
|
+
* // The Datadog API caps expirations at 365 days from creation. expires_at is
|
|
53
|
+
* // immutable after creation; to rotate it, destroy and re-create the resource.
|
|
54
|
+
* const expiringToken = new datadog.ServiceAccessToken("expiring_token", {
|
|
55
|
+
* serviceAccountId: "00000000-0000-1234-0000-000000000000",
|
|
56
|
+
* name: "Short-lived CI Service Access Token",
|
|
57
|
+
* scopes: [ddPerms.then(ddPerms => ddPerms.permissions?.dashboardsRead)],
|
|
58
|
+
* expiresAt: "2027-01-01T00:00:00Z",
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* ## Import
|
|
63
|
+
*
|
|
64
|
+
* The `pulumi import` command can be used, for example:
|
|
65
|
+
*
|
|
66
|
+
* Importing a service access token cannot import the value of the key.
|
|
67
|
+
*
|
|
68
|
+
* ```sh
|
|
69
|
+
* $ pulumi import datadog:index/serviceAccessToken:ServiceAccessToken this "<service_account_id>:<token_id>"
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
class ServiceAccessToken extends pulumi.CustomResource {
|
|
73
|
+
/**
|
|
74
|
+
* Get an existing ServiceAccessToken resource's state with the given name, ID, and optional extra
|
|
75
|
+
* properties used to qualify the lookup.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resulting resource.
|
|
78
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
79
|
+
* @param state Any extra arguments used during the lookup.
|
|
80
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
81
|
+
*/
|
|
82
|
+
static get(name, id, state, opts) {
|
|
83
|
+
return new ServiceAccessToken(name, state, { ...opts, id: id });
|
|
84
|
+
}
|
|
85
|
+
/** @internal */
|
|
86
|
+
static __pulumiType = 'datadog:index/serviceAccessToken:ServiceAccessToken';
|
|
87
|
+
/**
|
|
88
|
+
* Returns true if the given object is an instance of ServiceAccessToken. This is designed to work even
|
|
89
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
90
|
+
*/
|
|
91
|
+
static isInstance(obj) {
|
|
92
|
+
if (obj === undefined || obj === null) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return obj['__pulumiType'] === ServiceAccessToken.__pulumiType;
|
|
96
|
+
}
|
|
97
|
+
constructor(name, argsOrState, opts) {
|
|
98
|
+
let resourceInputs = {};
|
|
99
|
+
opts = opts || {};
|
|
100
|
+
if (opts.id) {
|
|
101
|
+
const state = argsOrState;
|
|
102
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
103
|
+
resourceInputs["expiresAt"] = state?.expiresAt;
|
|
104
|
+
resourceInputs["key"] = state?.key;
|
|
105
|
+
resourceInputs["lastUsedAt"] = state?.lastUsedAt;
|
|
106
|
+
resourceInputs["name"] = state?.name;
|
|
107
|
+
resourceInputs["publicPortion"] = state?.publicPortion;
|
|
108
|
+
resourceInputs["scopes"] = state?.scopes;
|
|
109
|
+
resourceInputs["serviceAccountId"] = state?.serviceAccountId;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
const args = argsOrState;
|
|
113
|
+
if (args?.name === undefined && !opts.urn) {
|
|
114
|
+
throw new Error("Missing required property 'name'");
|
|
115
|
+
}
|
|
116
|
+
if (args?.scopes === undefined && !opts.urn) {
|
|
117
|
+
throw new Error("Missing required property 'scopes'");
|
|
118
|
+
}
|
|
119
|
+
if (args?.serviceAccountId === undefined && !opts.urn) {
|
|
120
|
+
throw new Error("Missing required property 'serviceAccountId'");
|
|
121
|
+
}
|
|
122
|
+
resourceInputs["expiresAt"] = args?.expiresAt;
|
|
123
|
+
resourceInputs["name"] = args?.name;
|
|
124
|
+
resourceInputs["scopes"] = args?.scopes;
|
|
125
|
+
resourceInputs["serviceAccountId"] = args?.serviceAccountId;
|
|
126
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
127
|
+
resourceInputs["key"] = undefined /*out*/;
|
|
128
|
+
resourceInputs["lastUsedAt"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["publicPortion"] = undefined /*out*/;
|
|
130
|
+
}
|
|
131
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
132
|
+
const secretOpts = { additionalSecretOutputs: ["key"] };
|
|
133
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
134
|
+
super(ServiceAccessToken.__pulumiType, name, resourceInputs, opts);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.ServiceAccessToken = ServiceAccessToken;
|
|
138
|
+
//# sourceMappingURL=serviceAccessToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceAccessToken.js","sourceRoot":"","sources":["../serviceAccessToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAA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ination {
|
|
|
66586
66586
|
* The `socket` destination sends logs over TCP or UDP to a remote server.
|
|
66587
66587
|
*/
|
|
66588
66588
|
sockets?: pulumi.Input<pulumi.Input<inputs.ObservabilityPipelineConfigDestinationSocket>[] | undefined>;
|
|
66589
|
+
/**
|
|
66590
|
+
* The `splunkHecMetrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC).
|
|
66591
|
+
*/
|
|
66592
|
+
splunkHecMetrics?: pulumi.Input<inputs.ObservabilityPipelineConfigDestinationSplunkHecMetrics | undefined>;
|
|
66589
66593
|
/**
|
|
66590
66594
|
* The `splunkHec` destination forwards logs to Splunk using the HTTP Event Collector (HEC).
|
|
66591
66595
|
*/
|
|
@@ -68328,6 +68332,96 @@ export interface ObservabilityPipelineConfigDestinationSplunkHecBufferMemory {
|
|
|
68328
68332
|
*/
|
|
68329
68333
|
whenFull?: pulumi.Input<string | undefined>;
|
|
68330
68334
|
}
|
|
68335
|
+
export interface ObservabilityPipelineConfigDestinationSplunkHecMetrics {
|
|
68336
|
+
/**
|
|
68337
|
+
* Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified.
|
|
68338
|
+
*/
|
|
68339
|
+
buffer?: pulumi.Input<inputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsBuffer | undefined>;
|
|
68340
|
+
/**
|
|
68341
|
+
* Compression algorithm applied when sending metrics to Splunk HEC. Valid values are `none`, `gzip`.
|
|
68342
|
+
*/
|
|
68343
|
+
compression?: pulumi.Input<string | undefined>;
|
|
68344
|
+
/**
|
|
68345
|
+
* Optional default namespace for metrics sent to Splunk HEC.
|
|
68346
|
+
*/
|
|
68347
|
+
defaultNamespace?: pulumi.Input<string | undefined>;
|
|
68348
|
+
/**
|
|
68349
|
+
* Name of the environment variable or secret that holds the Splunk HEC endpoint URL.
|
|
68350
|
+
*/
|
|
68351
|
+
endpointUrlKey?: pulumi.Input<string | undefined>;
|
|
68352
|
+
/**
|
|
68353
|
+
* Optional name of the Splunk index where metrics are written.
|
|
68354
|
+
*/
|
|
68355
|
+
index?: pulumi.Input<string | undefined>;
|
|
68356
|
+
/**
|
|
68357
|
+
* The Splunk source field value for metric events.
|
|
68358
|
+
*/
|
|
68359
|
+
source?: pulumi.Input<string | undefined>;
|
|
68360
|
+
/**
|
|
68361
|
+
* The Splunk sourcetype to assign to metric events.
|
|
68362
|
+
*/
|
|
68363
|
+
sourcetype?: pulumi.Input<string | undefined>;
|
|
68364
|
+
/**
|
|
68365
|
+
* Configuration for enabling TLS encryption between the pipeline component and external services.
|
|
68366
|
+
*/
|
|
68367
|
+
tls?: pulumi.Input<inputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsTls | undefined>;
|
|
68368
|
+
/**
|
|
68369
|
+
* Name of the environment variable or secret that holds the Splunk HEC token.
|
|
68370
|
+
*/
|
|
68371
|
+
tokenKey?: pulumi.Input<string | undefined>;
|
|
68372
|
+
}
|
|
68373
|
+
export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsBuffer {
|
|
68374
|
+
/**
|
|
68375
|
+
* Options for configuring a disk buffer. Cannot be used with `memory`.
|
|
68376
|
+
*/
|
|
68377
|
+
disk?: pulumi.Input<inputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferDisk | undefined>;
|
|
68378
|
+
/**
|
|
68379
|
+
* Options for configuring a memory buffer. Cannot be used with `disk`.
|
|
68380
|
+
*/
|
|
68381
|
+
memory?: pulumi.Input<inputs.ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferMemory | undefined>;
|
|
68382
|
+
}
|
|
68383
|
+
export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferDisk {
|
|
68384
|
+
/**
|
|
68385
|
+
* Maximum size of the disk buffer (in bytes).
|
|
68386
|
+
*/
|
|
68387
|
+
maxSize?: pulumi.Input<number | undefined>;
|
|
68388
|
+
/**
|
|
68389
|
+
* Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`.
|
|
68390
|
+
*/
|
|
68391
|
+
whenFull?: pulumi.Input<string | undefined>;
|
|
68392
|
+
}
|
|
68393
|
+
export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsBufferMemory {
|
|
68394
|
+
/**
|
|
68395
|
+
* Maximum events for the memory buffer.
|
|
68396
|
+
*/
|
|
68397
|
+
maxEvents?: pulumi.Input<number | undefined>;
|
|
68398
|
+
/**
|
|
68399
|
+
* Maximum size of the memory buffer (in bytes).
|
|
68400
|
+
*/
|
|
68401
|
+
maxSize?: pulumi.Input<number | undefined>;
|
|
68402
|
+
/**
|
|
68403
|
+
* Behavior when the buffer is full. Valid values are `block` or `dropNewest`. Defaults to `"block"`.
|
|
68404
|
+
*/
|
|
68405
|
+
whenFull?: pulumi.Input<string | undefined>;
|
|
68406
|
+
}
|
|
68407
|
+
export interface ObservabilityPipelineConfigDestinationSplunkHecMetricsTls {
|
|
68408
|
+
/**
|
|
68409
|
+
* Path to the Certificate Authority (CA) file used to validate the server's TLS certificate.
|
|
68410
|
+
*/
|
|
68411
|
+
caFile?: pulumi.Input<string | undefined>;
|
|
68412
|
+
/**
|
|
68413
|
+
* Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services.
|
|
68414
|
+
*/
|
|
68415
|
+
crtFile: pulumi.Input<string>;
|
|
68416
|
+
/**
|
|
68417
|
+
* Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication.
|
|
68418
|
+
*/
|
|
68419
|
+
keyFile?: pulumi.Input<string | undefined>;
|
|
68420
|
+
/**
|
|
68421
|
+
* Name of the environment variable or secret that holds the passphrase for the private key file.
|
|
68422
|
+
*/
|
|
68423
|
+
keyPassKey?: pulumi.Input<string | undefined>;
|
|
68424
|
+
}
|
|
68331
68425
|
export interface ObservabilityPipelineConfigDestinationSumoLogic {
|
|
68332
68426
|
/**
|
|
68333
68427
|
* Configuration for buffer settings on destination components. Exactly one of `disk` or `memory` must be specified.
|
|
@@ -70298,10 +70392,54 @@ export interface OnCallTeamRoutingRulesRule {
|
|
|
70298
70392
|
urgency?: pulumi.Input<string | undefined>;
|
|
70299
70393
|
}
|
|
70300
70394
|
export interface OnCallTeamRoutingRulesRuleAction {
|
|
70395
|
+
escalationPolicy?: pulumi.Input<inputs.OnCallTeamRoutingRulesRuleActionEscalationPolicy | undefined>;
|
|
70301
70396
|
sendSlackMessage?: pulumi.Input<inputs.OnCallTeamRoutingRulesRuleActionSendSlackMessage | undefined>;
|
|
70302
70397
|
sendTeamsMessage?: pulumi.Input<inputs.OnCallTeamRoutingRulesRuleActionSendTeamsMessage | undefined>;
|
|
70303
70398
|
triggerWorkflowAutomation?: pulumi.Input<inputs.OnCallTeamRoutingRulesRuleActionTriggerWorkflowAutomation | undefined>;
|
|
70304
70399
|
}
|
|
70400
|
+
export interface OnCallTeamRoutingRulesRuleActionEscalationPolicy {
|
|
70401
|
+
/**
|
|
70402
|
+
* Number of minutes before an acknowledged page is re-triggered. Value must be between 30 and 4320.
|
|
70403
|
+
*/
|
|
70404
|
+
ackTimeoutMinutes?: pulumi.Input<number | undefined>;
|
|
70405
|
+
/**
|
|
70406
|
+
* Escalation policy ID.
|
|
70407
|
+
*/
|
|
70408
|
+
policyId?: pulumi.Input<string | undefined>;
|
|
70409
|
+
/**
|
|
70410
|
+
* Support hours during which the escalation policy will execute.
|
|
70411
|
+
*/
|
|
70412
|
+
supportHours?: pulumi.Input<inputs.OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHours | undefined>;
|
|
70413
|
+
/**
|
|
70414
|
+
* Urgency for pages created via this action. Valid values are `high`, `low`, `dynamic`.
|
|
70415
|
+
*/
|
|
70416
|
+
urgency?: pulumi.Input<string | undefined>;
|
|
70417
|
+
}
|
|
70418
|
+
export interface OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHours {
|
|
70419
|
+
restrictions?: pulumi.Input<pulumi.Input<inputs.OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHoursRestriction>[] | undefined>;
|
|
70420
|
+
/**
|
|
70421
|
+
* Specifies the time zone applicable to the restrictions, e.g. `America/New_York`.
|
|
70422
|
+
*/
|
|
70423
|
+
timeZone?: pulumi.Input<string | undefined>;
|
|
70424
|
+
}
|
|
70425
|
+
export interface OnCallTeamRoutingRulesRuleActionEscalationPolicySupportHoursRestriction {
|
|
70426
|
+
/**
|
|
70427
|
+
* The weekday when the restriction period ends. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`.
|
|
70428
|
+
*/
|
|
70429
|
+
endDay?: pulumi.Input<string | undefined>;
|
|
70430
|
+
/**
|
|
70431
|
+
* The time of day when the restriction ends (hh:mm:ss).
|
|
70432
|
+
*/
|
|
70433
|
+
endTime?: pulumi.Input<string | undefined>;
|
|
70434
|
+
/**
|
|
70435
|
+
* The weekday when the restriction period starts. Valid values are `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`.
|
|
70436
|
+
*/
|
|
70437
|
+
startDay?: pulumi.Input<string | undefined>;
|
|
70438
|
+
/**
|
|
70439
|
+
* The time of day when the restriction begins (hh:mm:ss).
|
|
70440
|
+
*/
|
|
70441
|
+
startTime?: pulumi.Input<string | undefined>;
|
|
70442
|
+
}
|
|
70305
70443
|
export interface OnCallTeamRoutingRulesRuleActionSendSlackMessage {
|
|
70306
70444
|
/**
|
|
70307
70445
|
* Slack channel ID.
|