@pulumi/gitlab 10.3.0-alpha.1789106308 → 10.3.0-alpha.1789788644
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/complianceFramework.d.ts +9 -3
- package/complianceFramework.d.ts.map +1 -1
- package/complianceFramework.js.map +1 -1
- package/complianceFrameworkFromTemplate.d.ts +159 -0
- package/complianceFrameworkFromTemplate.d.ts.map +1 -0
- package/complianceFrameworkFromTemplate.js +132 -0
- package/complianceFrameworkFromTemplate.js.map +1 -0
- package/getProjectApprovalRules.d.ts +2 -2
- package/getProjectApprovalRules.js +2 -2
- package/groupIntegrationDatadog.d.ts +202 -0
- package/groupIntegrationDatadog.d.ts.map +1 -0
- package/groupIntegrationDatadog.js +137 -0
- package/groupIntegrationDatadog.js.map +1 -0
- package/index.d.ts +9 -0
- package/index.d.ts.map +1 -1
- package/index.js +22 -6
- package/index.js.map +1 -1
- package/memberRole.d.ts +3 -3
- package/package.json +2 -2
- package/projectApprovalRule.d.ts +10 -10
- package/projectApprovalRule.d.ts.map +1 -1
- package/projectApprovalRule.js +2 -2
- package/projectApprovalRules.d.ts +146 -0
- package/projectApprovalRules.d.ts.map +1 -0
- package/projectApprovalRules.js +163 -0
- package/projectApprovalRules.js.map +1 -0
- package/types/input.d.ts +38 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +38 -0
- package/types/output.d.ts.map +1 -1
package/complianceFramework.d.ts
CHANGED
|
@@ -79,7 +79,9 @@ export declare class ComplianceFramework extends pulumi.CustomResource {
|
|
|
79
79
|
*/
|
|
80
80
|
readonly namespacePath: pulumi.Output<string>;
|
|
81
81
|
/**
|
|
82
|
-
* Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa`. Required format: `path/file.y[a]ml@group-name/project-name
|
|
82
|
+
* Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa`. Required format: `path/file.y[a]ml@group-name/project-name`. Deprecated in GitLab 17.4, to be removed in 20.0. Use pipeline execution policies instead. **Note**: Ultimate license required.
|
|
83
|
+
*
|
|
84
|
+
* @deprecated Deprecated in GitLab 17.4, to be removed in 20.0. Use pipeline execution policies instead.
|
|
83
85
|
*/
|
|
84
86
|
readonly pipelineConfigurationFullPath: pulumi.Output<string | undefined>;
|
|
85
87
|
/**
|
|
@@ -120,7 +122,9 @@ export interface ComplianceFrameworkState {
|
|
|
120
122
|
*/
|
|
121
123
|
namespacePath?: pulumi.Input<string | undefined>;
|
|
122
124
|
/**
|
|
123
|
-
* Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa`. Required format: `path/file.y[a]ml@group-name/project-name
|
|
125
|
+
* Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa`. Required format: `path/file.y[a]ml@group-name/project-name`. Deprecated in GitLab 17.4, to be removed in 20.0. Use pipeline execution policies instead. **Note**: Ultimate license required.
|
|
126
|
+
*
|
|
127
|
+
* @deprecated Deprecated in GitLab 17.4, to be removed in 20.0. Use pipeline execution policies instead.
|
|
124
128
|
*/
|
|
125
129
|
pipelineConfigurationFullPath?: pulumi.Input<string | undefined>;
|
|
126
130
|
}
|
|
@@ -149,7 +153,9 @@ export interface ComplianceFrameworkArgs {
|
|
|
149
153
|
*/
|
|
150
154
|
namespacePath: pulumi.Input<string>;
|
|
151
155
|
/**
|
|
152
|
-
* Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa`. Required format: `path/file.y[a]ml@group-name/project-name
|
|
156
|
+
* Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa`. Required format: `path/file.y[a]ml@group-name/project-name`. Deprecated in GitLab 17.4, to be removed in 20.0. Use pipeline execution policies instead. **Note**: Ultimate license required.
|
|
157
|
+
*
|
|
158
|
+
* @deprecated Deprecated in GitLab 17.4, to be removed in 20.0. Use pipeline execution policies instead.
|
|
153
159
|
*/
|
|
154
160
|
pipelineConfigurationFullPath?: pulumi.Input<string | undefined>;
|
|
155
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"complianceFramework.d.ts","sourceRoot":"","sources":["../complianceFramework.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,mBAAmB;IAOxJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,mBAAmB;IAO9D;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAgC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnE;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7D
|
|
1
|
+
{"version":3,"file":"complianceFramework.d.ts","sourceRoot":"","sources":["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../complianceFramework.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,sDAAsD,CAAC;IAE7F;;;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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;
|
|
1
|
+
{"version":3,"file":"complianceFramework.js","sourceRoot":"","sources":["../complianceFramework.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,g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IAAI,EAAE,aAAa,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,+BAA+B,CAAC,GAAG,IAAI,EAAE,6BAA6B,CAAC;YACtF,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AApGL,kDAqGC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `gitlab.ComplianceFrameworkFromTemplate` resource manages the lifecycle of a compliance framework created from a template on top-level groups.
|
|
4
|
+
*
|
|
5
|
+
* There can be only one `default` compliance framework. Of all the configured compliance frameworks marked as default, the last one applied will be the default compliance framework. This may be a different framework with every apply, so you should only use the default once per config.
|
|
6
|
+
*
|
|
7
|
+
* > This resource requires a GitLab Enterprise instance with an Ultimate license.
|
|
8
|
+
*
|
|
9
|
+
* **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#mutationcreatecomplianceframeworkfromtemplate)
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
16
|
+
*
|
|
17
|
+
* const sample = new gitlab.ComplianceFrameworkFromTemplate("sample", {
|
|
18
|
+
* namespacePath: "top-level-group",
|
|
19
|
+
* templateId: "gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2",
|
|
20
|
+
* });
|
|
21
|
+
* // Example: create from template and override template defaults
|
|
22
|
+
* const sampleWithOverrides = new gitlab.ComplianceFrameworkFromTemplate("sample_with_overrides", {
|
|
23
|
+
* namespacePath: "top-level-group",
|
|
24
|
+
* templateId: "gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/iso_27001-2022",
|
|
25
|
+
* name: "HIPAA",
|
|
26
|
+
* description: "A HIPAA Compliance Framework",
|
|
27
|
+
* color: "#87BEEF",
|
|
28
|
+
* "default": false,
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* Starting in Terraform v1.5.0, you can use an import block to import `gitlab.ComplianceFrameworkFromTemplate`. For example:
|
|
35
|
+
*
|
|
36
|
+
* Importing using the CLI is supported with the following syntax:
|
|
37
|
+
*
|
|
38
|
+
* Gitlab compliance frameworks created from templates can be imported with a key composed of `<namespace_path>|<framework_id>|<template_id>`, for example:
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import gitlab:index/complianceFrameworkFromTemplate:ComplianceFrameworkFromTemplate sample "top-level-group|gid://gitlab/ComplianceManagement::Framework/12345|gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2"
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare class ComplianceFrameworkFromTemplate extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ComplianceFrameworkFromTemplate resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ComplianceFrameworkFromTemplateState, opts?: pulumi.CustomResourceOptions): ComplianceFrameworkFromTemplate;
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of ComplianceFrameworkFromTemplate. 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: any): obj is ComplianceFrameworkFromTemplate;
|
|
60
|
+
/**
|
|
61
|
+
* Override the color of the compliance framework in hex format. e.g. #FCA121.
|
|
62
|
+
*/
|
|
63
|
+
readonly color: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Set this compliance framework as the default framework for the group. Default: `false`
|
|
66
|
+
*/
|
|
67
|
+
readonly default: pulumi.Output<boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* Override the description of the compliance framework.
|
|
70
|
+
*/
|
|
71
|
+
readonly description: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Globally unique ID of the compliance framework.
|
|
74
|
+
*/
|
|
75
|
+
readonly frameworkId: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Override the name of the compliance framework.
|
|
78
|
+
*/
|
|
79
|
+
readonly name: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Full path of the namespace to add the compliance framework to.
|
|
82
|
+
*/
|
|
83
|
+
readonly namespacePath: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Unique identifier of the template to create the framework from. In the format of: `gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>`
|
|
86
|
+
*/
|
|
87
|
+
readonly templateId: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Create a ComplianceFrameworkFromTemplate resource with the given unique name, arguments, and options.
|
|
90
|
+
*
|
|
91
|
+
* @param name The _unique_ name of the resource.
|
|
92
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
93
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
94
|
+
*/
|
|
95
|
+
constructor(name: string, args: ComplianceFrameworkFromTemplateArgs, opts?: pulumi.CustomResourceOptions);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Input properties used for looking up and filtering ComplianceFrameworkFromTemplate resources.
|
|
99
|
+
*/
|
|
100
|
+
export interface ComplianceFrameworkFromTemplateState {
|
|
101
|
+
/**
|
|
102
|
+
* Override the color of the compliance framework in hex format. e.g. #FCA121.
|
|
103
|
+
*/
|
|
104
|
+
color?: pulumi.Input<string | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* Set this compliance framework as the default framework for the group. Default: `false`
|
|
107
|
+
*/
|
|
108
|
+
default?: pulumi.Input<boolean | undefined>;
|
|
109
|
+
/**
|
|
110
|
+
* Override the description of the compliance framework.
|
|
111
|
+
*/
|
|
112
|
+
description?: pulumi.Input<string | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* Globally unique ID of the compliance framework.
|
|
115
|
+
*/
|
|
116
|
+
frameworkId?: pulumi.Input<string | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* Override the name of the compliance framework.
|
|
119
|
+
*/
|
|
120
|
+
name?: pulumi.Input<string | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* Full path of the namespace to add the compliance framework to.
|
|
123
|
+
*/
|
|
124
|
+
namespacePath?: pulumi.Input<string | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* Unique identifier of the template to create the framework from. In the format of: `gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>`
|
|
127
|
+
*/
|
|
128
|
+
templateId?: pulumi.Input<string | undefined>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The set of arguments for constructing a ComplianceFrameworkFromTemplate resource.
|
|
132
|
+
*/
|
|
133
|
+
export interface ComplianceFrameworkFromTemplateArgs {
|
|
134
|
+
/**
|
|
135
|
+
* Override the color of the compliance framework in hex format. e.g. #FCA121.
|
|
136
|
+
*/
|
|
137
|
+
color?: pulumi.Input<string | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* Set this compliance framework as the default framework for the group. Default: `false`
|
|
140
|
+
*/
|
|
141
|
+
default?: pulumi.Input<boolean | undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* Override the description of the compliance framework.
|
|
144
|
+
*/
|
|
145
|
+
description?: pulumi.Input<string | undefined>;
|
|
146
|
+
/**
|
|
147
|
+
* Override the name of the compliance framework.
|
|
148
|
+
*/
|
|
149
|
+
name?: pulumi.Input<string | undefined>;
|
|
150
|
+
/**
|
|
151
|
+
* Full path of the namespace to add the compliance framework to.
|
|
152
|
+
*/
|
|
153
|
+
namespacePath: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Unique identifier of the template to create the framework from. In the format of: `gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/<template id>`
|
|
156
|
+
*/
|
|
157
|
+
templateId: pulumi.Input<string>;
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=complianceFrameworkFromTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complianceFrameworkFromTemplate.d.ts","sourceRoot":"","sources":["../complianceFrameworkFromTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,M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AC/C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
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.ComplianceFrameworkFromTemplate = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* The `gitlab.ComplianceFrameworkFromTemplate` resource manages the lifecycle of a compliance framework created from a template on top-level groups.
|
|
33
|
+
*
|
|
34
|
+
* There can be only one `default` compliance framework. Of all the configured compliance frameworks marked as default, the last one applied will be the default compliance framework. This may be a different framework with every apply, so you should only use the default once per config.
|
|
35
|
+
*
|
|
36
|
+
* > This resource requires a GitLab Enterprise instance with an Ultimate license.
|
|
37
|
+
*
|
|
38
|
+
* **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#mutationcreatecomplianceframeworkfromtemplate)
|
|
39
|
+
*
|
|
40
|
+
* ## Example Usage
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
45
|
+
*
|
|
46
|
+
* const sample = new gitlab.ComplianceFrameworkFromTemplate("sample", {
|
|
47
|
+
* namespacePath: "top-level-group",
|
|
48
|
+
* templateId: "gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2",
|
|
49
|
+
* });
|
|
50
|
+
* // Example: create from template and override template defaults
|
|
51
|
+
* const sampleWithOverrides = new gitlab.ComplianceFrameworkFromTemplate("sample_with_overrides", {
|
|
52
|
+
* namespacePath: "top-level-group",
|
|
53
|
+
* templateId: "gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/iso_27001-2022",
|
|
54
|
+
* name: "HIPAA",
|
|
55
|
+
* description: "A HIPAA Compliance Framework",
|
|
56
|
+
* color: "#87BEEF",
|
|
57
|
+
* "default": false,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ## Import
|
|
62
|
+
*
|
|
63
|
+
* Starting in Terraform v1.5.0, you can use an import block to import `gitlab.ComplianceFrameworkFromTemplate`. For example:
|
|
64
|
+
*
|
|
65
|
+
* Importing using the CLI is supported with the following syntax:
|
|
66
|
+
*
|
|
67
|
+
* Gitlab compliance frameworks created from templates can be imported with a key composed of `<namespace_path>|<framework_id>|<template_id>`, for example:
|
|
68
|
+
*
|
|
69
|
+
* ```sh
|
|
70
|
+
* $ pulumi import gitlab:index/complianceFrameworkFromTemplate:ComplianceFrameworkFromTemplate sample "top-level-group|gid://gitlab/ComplianceManagement::Framework/12345|gid://gitlab/ComplianceManagement::Frameworks::TemplateRegistry::Template/soc2"
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
class ComplianceFrameworkFromTemplate extends pulumi.CustomResource {
|
|
74
|
+
/**
|
|
75
|
+
* Get an existing ComplianceFrameworkFromTemplate resource's state with the given name, ID, and optional extra
|
|
76
|
+
* properties used to qualify the lookup.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resulting resource.
|
|
79
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
80
|
+
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
82
|
+
*/
|
|
83
|
+
static get(name, id, state, opts) {
|
|
84
|
+
return new ComplianceFrameworkFromTemplate(name, state, { ...opts, id: id });
|
|
85
|
+
}
|
|
86
|
+
/** @internal */
|
|
87
|
+
static __pulumiType = 'gitlab:index/complianceFrameworkFromTemplate:ComplianceFrameworkFromTemplate';
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if the given object is an instance of ComplianceFrameworkFromTemplate. This is designed to work even
|
|
90
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
91
|
+
*/
|
|
92
|
+
static isInstance(obj) {
|
|
93
|
+
if (obj === undefined || obj === null) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
return obj['__pulumiType'] === ComplianceFrameworkFromTemplate.__pulumiType;
|
|
97
|
+
}
|
|
98
|
+
constructor(name, argsOrState, opts) {
|
|
99
|
+
let resourceInputs = {};
|
|
100
|
+
opts = opts || {};
|
|
101
|
+
if (opts.id) {
|
|
102
|
+
const state = argsOrState;
|
|
103
|
+
resourceInputs["color"] = state?.color;
|
|
104
|
+
resourceInputs["default"] = state?.default;
|
|
105
|
+
resourceInputs["description"] = state?.description;
|
|
106
|
+
resourceInputs["frameworkId"] = state?.frameworkId;
|
|
107
|
+
resourceInputs["name"] = state?.name;
|
|
108
|
+
resourceInputs["namespacePath"] = state?.namespacePath;
|
|
109
|
+
resourceInputs["templateId"] = state?.templateId;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
const args = argsOrState;
|
|
113
|
+
if (args?.namespacePath === undefined && !opts.urn) {
|
|
114
|
+
throw new Error("Missing required property 'namespacePath'");
|
|
115
|
+
}
|
|
116
|
+
if (args?.templateId === undefined && !opts.urn) {
|
|
117
|
+
throw new Error("Missing required property 'templateId'");
|
|
118
|
+
}
|
|
119
|
+
resourceInputs["color"] = args?.color;
|
|
120
|
+
resourceInputs["default"] = args?.default;
|
|
121
|
+
resourceInputs["description"] = args?.description;
|
|
122
|
+
resourceInputs["name"] = args?.name;
|
|
123
|
+
resourceInputs["namespacePath"] = args?.namespacePath;
|
|
124
|
+
resourceInputs["templateId"] = args?.templateId;
|
|
125
|
+
resourceInputs["frameworkId"] = undefined /*out*/;
|
|
126
|
+
}
|
|
127
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
128
|
+
super(ComplianceFrameworkFromTemplate.__pulumiType, name, resourceInputs, opts);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.ComplianceFrameworkFromTemplate = ComplianceFrameworkFromTemplate;
|
|
132
|
+
//# sourceMappingURL=complianceFrameworkFromTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complianceFrameworkFromTemplate.js","sourceRoot":"","sources":["../complianceFrameworkFromTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4C,EAAE,IAAmC;QAC1I,OAAO,IAAI,+BAA+B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8EAA8E,CAAC;IAErH;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,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C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,+BAA+B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;;AA/FL,0EAgGC"}
|
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* The `gitlab.
|
|
5
|
+
* The `gitlab.ProjectApprovalRules` data source retrieves all approval rules of a given project.
|
|
6
6
|
*
|
|
7
7
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/merge_request_approvals/#list-all-approval-rules-for-a-project)
|
|
8
8
|
*
|
|
@@ -52,7 +52,7 @@ export interface GetProjectApprovalRulesResult {
|
|
|
52
52
|
readonly project: string;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* The `gitlab.
|
|
55
|
+
* The `gitlab.ProjectApprovalRules` data source retrieves all approval rules of a given project.
|
|
56
56
|
*
|
|
57
57
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/merge_request_approvals/#list-all-approval-rules-for-a-project)
|
|
58
58
|
*
|
|
@@ -29,7 +29,7 @@ exports.getProjectApprovalRulesOutput = exports.getProjectApprovalRules = void 0
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* The `gitlab.
|
|
32
|
+
* The `gitlab.ProjectApprovalRules` data source retrieves all approval rules of a given project.
|
|
33
33
|
*
|
|
34
34
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/merge_request_approvals/#list-all-approval-rules-for-a-project)
|
|
35
35
|
*
|
|
@@ -56,7 +56,7 @@ function getProjectApprovalRules(args, opts) {
|
|
|
56
56
|
}
|
|
57
57
|
exports.getProjectApprovalRules = getProjectApprovalRules;
|
|
58
58
|
/**
|
|
59
|
-
* The `gitlab.
|
|
59
|
+
* The `gitlab.ProjectApprovalRules` data source retrieves all approval rules of a given project.
|
|
60
60
|
*
|
|
61
61
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/merge_request_approvals/#list-all-approval-rules-for-a-project)
|
|
62
62
|
*
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `gitlab.GroupIntegrationDatadog` resource manages the lifecycle of a group integration with Datadog.
|
|
4
|
+
*
|
|
5
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/group_integrations/#datadog)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
12
|
+
*
|
|
13
|
+
* const example = new gitlab.GroupIntegrationDatadog("example", {
|
|
14
|
+
* group: "my-group",
|
|
15
|
+
* apiKey: "secret-datadog-api-key",
|
|
16
|
+
* datadogSite: "datadoghq.com",
|
|
17
|
+
* datadogEnv: "production",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* Starting in Terraform v1.5.0, you can use an import block to import `gitlab.GroupIntegrationDatadog`. For example:
|
|
24
|
+
*
|
|
25
|
+
* Importing using the CLI is supported with the following syntax:
|
|
26
|
+
*
|
|
27
|
+
* GitLab group Datadog integrations can be imported using the group ID or full path, e.g.
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import gitlab:index/groupIntegrationDatadog:GroupIntegrationDatadog example 123
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* or by full path
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import gitlab:index/groupIntegrationDatadog:GroupIntegrationDatadog example "my-group"
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class GroupIntegrationDatadog extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing GroupIntegrationDatadog 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: string, id: pulumi.Input<pulumi.ID>, state?: GroupIntegrationDatadogState, opts?: pulumi.CustomResourceOptions): GroupIntegrationDatadog;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of GroupIntegrationDatadog. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj: any): obj is GroupIntegrationDatadog;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the integration is active.
|
|
57
|
+
*/
|
|
58
|
+
readonly active: pulumi.Output<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* API key used for authentication with Datadog.
|
|
61
|
+
*/
|
|
62
|
+
readonly apiKey: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Full URL of your Datadog site.
|
|
65
|
+
*/
|
|
66
|
+
readonly apiUrl: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* When enabled, job logs are collected by Datadog and displayed along with pipeline execution traces. Requires `datadogCiVisibility` to be enabled.
|
|
69
|
+
*/
|
|
70
|
+
readonly archiveTraceEvents: pulumi.Output<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Enables collection of pipeline and job events in Datadog to display pipeline execution traces.
|
|
73
|
+
*/
|
|
74
|
+
readonly datadogCiVisibility: pulumi.Output<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* For self-managed deployments, `env%` tag for all the data sent to Datadog.
|
|
77
|
+
*/
|
|
78
|
+
readonly datadogEnv: pulumi.Output<string | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* GitLab instance to tag all data from in Datadog. Can be used when managing several self-managed deployments.
|
|
81
|
+
*/
|
|
82
|
+
readonly datadogService: pulumi.Output<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Datadog site to send data to. To send data to the EU site, use `datadoghq.eu`.
|
|
85
|
+
*/
|
|
86
|
+
readonly datadogSite: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Custom tags in Datadog. Specify one tag per line in the format `key:value\nkey2:value2`.
|
|
89
|
+
*/
|
|
90
|
+
readonly datadogTags: pulumi.Output<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The ID or full path of the group to integrate with Datadog.
|
|
93
|
+
*/
|
|
94
|
+
readonly group: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Indicates whether to inherit the default settings. Defaults to `false`.
|
|
97
|
+
*/
|
|
98
|
+
readonly useInheritedSettings: pulumi.Output<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Create a GroupIntegrationDatadog resource with the given unique name, arguments, and options.
|
|
101
|
+
*
|
|
102
|
+
* @param name The _unique_ name of the resource.
|
|
103
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
104
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
105
|
+
*/
|
|
106
|
+
constructor(name: string, args: GroupIntegrationDatadogArgs, opts?: pulumi.CustomResourceOptions);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Input properties used for looking up and filtering GroupIntegrationDatadog resources.
|
|
110
|
+
*/
|
|
111
|
+
export interface GroupIntegrationDatadogState {
|
|
112
|
+
/**
|
|
113
|
+
* Whether the integration is active.
|
|
114
|
+
*/
|
|
115
|
+
active?: pulumi.Input<boolean | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* API key used for authentication with Datadog.
|
|
118
|
+
*/
|
|
119
|
+
apiKey?: pulumi.Input<string | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Full URL of your Datadog site.
|
|
122
|
+
*/
|
|
123
|
+
apiUrl?: pulumi.Input<string | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* When enabled, job logs are collected by Datadog and displayed along with pipeline execution traces. Requires `datadogCiVisibility` to be enabled.
|
|
126
|
+
*/
|
|
127
|
+
archiveTraceEvents?: pulumi.Input<boolean | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Enables collection of pipeline and job events in Datadog to display pipeline execution traces.
|
|
130
|
+
*/
|
|
131
|
+
datadogCiVisibility?: pulumi.Input<boolean | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* For self-managed deployments, `env%` tag for all the data sent to Datadog.
|
|
134
|
+
*/
|
|
135
|
+
datadogEnv?: pulumi.Input<string | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* GitLab instance to tag all data from in Datadog. Can be used when managing several self-managed deployments.
|
|
138
|
+
*/
|
|
139
|
+
datadogService?: pulumi.Input<string | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Datadog site to send data to. To send data to the EU site, use `datadoghq.eu`.
|
|
142
|
+
*/
|
|
143
|
+
datadogSite?: pulumi.Input<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Custom tags in Datadog. Specify one tag per line in the format `key:value\nkey2:value2`.
|
|
146
|
+
*/
|
|
147
|
+
datadogTags?: pulumi.Input<string | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* The ID or full path of the group to integrate with Datadog.
|
|
150
|
+
*/
|
|
151
|
+
group?: pulumi.Input<string | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* Indicates whether to inherit the default settings. Defaults to `false`.
|
|
154
|
+
*/
|
|
155
|
+
useInheritedSettings?: pulumi.Input<boolean | undefined>;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* The set of arguments for constructing a GroupIntegrationDatadog resource.
|
|
159
|
+
*/
|
|
160
|
+
export interface GroupIntegrationDatadogArgs {
|
|
161
|
+
/**
|
|
162
|
+
* API key used for authentication with Datadog.
|
|
163
|
+
*/
|
|
164
|
+
apiKey: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Full URL of your Datadog site.
|
|
167
|
+
*/
|
|
168
|
+
apiUrl?: pulumi.Input<string | undefined>;
|
|
169
|
+
/**
|
|
170
|
+
* When enabled, job logs are collected by Datadog and displayed along with pipeline execution traces. Requires `datadogCiVisibility` to be enabled.
|
|
171
|
+
*/
|
|
172
|
+
archiveTraceEvents?: pulumi.Input<boolean | undefined>;
|
|
173
|
+
/**
|
|
174
|
+
* Enables collection of pipeline and job events in Datadog to display pipeline execution traces.
|
|
175
|
+
*/
|
|
176
|
+
datadogCiVisibility?: pulumi.Input<boolean | undefined>;
|
|
177
|
+
/**
|
|
178
|
+
* For self-managed deployments, `env%` tag for all the data sent to Datadog.
|
|
179
|
+
*/
|
|
180
|
+
datadogEnv?: pulumi.Input<string | undefined>;
|
|
181
|
+
/**
|
|
182
|
+
* GitLab instance to tag all data from in Datadog. Can be used when managing several self-managed deployments.
|
|
183
|
+
*/
|
|
184
|
+
datadogService?: pulumi.Input<string | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* Datadog site to send data to. To send data to the EU site, use `datadoghq.eu`.
|
|
187
|
+
*/
|
|
188
|
+
datadogSite?: pulumi.Input<string | undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* Custom tags in Datadog. Specify one tag per line in the format `key:value\nkey2:value2`.
|
|
191
|
+
*/
|
|
192
|
+
datadogTags?: pulumi.Input<string | undefined>;
|
|
193
|
+
/**
|
|
194
|
+
* The ID or full path of the group to integrate with Datadog.
|
|
195
|
+
*/
|
|
196
|
+
group: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* Indicates whether to inherit the default settings. Defaults to `false`.
|
|
199
|
+
*/
|
|
200
|
+
useInheritedSettings?: pulumi.Input<boolean | undefined>;
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=groupIntegrationDatadog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupIntegrationDatadog.d.ts","sourceRoot":"","sources":["../groupIntegrationDatadog.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,uBAAuB;IAOhK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,uBAAuB;IAOlE;;OAEG;IACH,SAAgC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/D;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,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