@pulumi/datadog 5.18.0-alpha.1793426215 → 5.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aws/integrationAccount.d.ts +1 -0
- package/aws/integrationAccount.d.ts.map +1 -1
- package/aws/integrationAccount.js +1 -0
- package/aws/integrationAccount.js.map +1 -1
- package/gcp/integrationSts.d.ts +3 -3
- package/githubOidcIdentityMapping.d.ts +105 -0
- package/githubOidcIdentityMapping.d.ts.map +1 -0
- package/githubOidcIdentityMapping.js +116 -0
- package/githubOidcIdentityMapping.js.map +1 -0
- package/githubOidcIntakeMapping.d.ts +74 -0
- package/githubOidcIntakeMapping.d.ts.map +1 -0
- package/githubOidcIntakeMapping.js +98 -0
- package/githubOidcIntakeMapping.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +13 -3
- package/index.js.map +1 -1
- package/logsArchive.d.ts +3 -3
- package/package.json +2 -2
- package/types/input.d.ts +209 -25
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +209 -25
- package/types/output.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationAccount.d.ts","sourceRoot":"","sources":["../../aws/integrationAccount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C
|
|
1
|
+
{"version":3,"file":"integrationAccount.d.ts","sourceRoot":"","sources":["../../aws/integrationAccount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AA3GL,gDA4GC"}
|
package/gcp/integrationSts.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare class IntegrationSts extends pulumi.CustomResource {
|
|
|
57
57
|
*/
|
|
58
58
|
readonly hostFilters: pulumi.Output<string[]>;
|
|
59
59
|
/**
|
|
60
|
-
* Whether Datadog collects cloud security posture management resources from your GCP project. If enabled, requires `resourceCollectionEnabled` to also be enabled.
|
|
60
|
+
* Whether Datadog collects cloud security posture management resources from your GCP project. If enabled, requires `resourceCollectionEnabled` or `isOrgFolderResourceCollectionEnabled` to also be enabled.
|
|
61
61
|
*/
|
|
62
62
|
readonly isCspmEnabled: pulumi.Output<boolean>;
|
|
63
63
|
/**
|
|
@@ -138,7 +138,7 @@ export interface IntegrationStsState {
|
|
|
138
138
|
*/
|
|
139
139
|
hostFilters?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
140
140
|
/**
|
|
141
|
-
* Whether Datadog collects cloud security posture management resources from your GCP project. If enabled, requires `resourceCollectionEnabled` to also be enabled.
|
|
141
|
+
* Whether Datadog collects cloud security posture management resources from your GCP project. If enabled, requires `resourceCollectionEnabled` or `isOrgFolderResourceCollectionEnabled` to also be enabled.
|
|
142
142
|
*/
|
|
143
143
|
isCspmEnabled?: pulumi.Input<boolean | undefined>;
|
|
144
144
|
/**
|
|
@@ -207,7 +207,7 @@ export interface IntegrationStsArgs {
|
|
|
207
207
|
*/
|
|
208
208
|
hostFilters?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
209
209
|
/**
|
|
210
|
-
* Whether Datadog collects cloud security posture management resources from your GCP project. If enabled, requires `resourceCollectionEnabled` to also be enabled.
|
|
210
|
+
* Whether Datadog collects cloud security posture management resources from your GCP project. If enabled, requires `resourceCollectionEnabled` or `isOrgFolderResourceCollectionEnabled` to also be enabled.
|
|
211
211
|
*/
|
|
212
212
|
isCspmEnabled?: pulumi.Input<boolean | undefined>;
|
|
213
213
|
/**
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a GitHub Actions OIDC identity mapping (called a persona mapping in the Datadog API) for Datadog workload identity federation. The mapping allows a GitHub Actions workload whose OIDC token matches the `claimMatchers` patterns to authenticate as the Datadog user or service account identified by `accountIdentifier`. The identity creating the mapping must have every permission assigned to the target identity. Creating the initial mapping requires API and application credentials with the Workload Identity Federation write permission; a provider already using federation cannot bootstrap its own mapping. Mappings cannot be updated; changing any attribute replaces the mapping. This resource uses a public beta API and is subject to change.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as datadog from "@pulumi/datadog";
|
|
12
|
+
*
|
|
13
|
+
* const readOnly = datadog.getRole({
|
|
14
|
+
* filter: "Datadog Read Only Role",
|
|
15
|
+
* });
|
|
16
|
+
* const terraform = new datadog.ServiceAccount("terraform", {
|
|
17
|
+
* email: "terraform-service-account@example.com",
|
|
18
|
+
* name: "Terraform service account",
|
|
19
|
+
* roles: [readOnly.then(readOnly => readOnly.id)],
|
|
20
|
+
* });
|
|
21
|
+
* const terraformGithubOidcIdentityMapping = new datadog.GithubOidcIdentityMapping("terraform", {
|
|
22
|
+
* accountIdentifier: terraform.id,
|
|
23
|
+
* claimMatchers: [{
|
|
24
|
+
* sub: "repo:my-org/terraform:ref:refs/heads/main",
|
|
25
|
+
* repository: "^my-org/terraform$",
|
|
26
|
+
* }],
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* The `pulumi import` command can be used, for example:
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import datadog:index/githubOidcIdentityMapping:GithubOidcIdentityMapping terraform "00000000-0000-0000-0000-000000000000"
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class GithubOidcIdentityMapping extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing GithubOidcIdentityMapping resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GithubOidcIdentityMappingState, opts?: pulumi.CustomResourceOptions): GithubOidcIdentityMapping;
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of GithubOidcIdentityMapping. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj: any): obj is GithubOidcIdentityMapping;
|
|
54
|
+
/**
|
|
55
|
+
* The email or handle of the Datadog user or service account that the GitHub workload authenticates as. For a Terraform-managed service account, prefer the stable UUID exported by `datadog_service_account.id`; Datadog accepts it as the service account identifier. Datadog normalizes an email to the account's handle, so the handle form is the only value that survives `pulumi import` unchanged — importing a mapping configured by email produces a diff on this attribute, which forces replacement. String length must be at least 1.
|
|
56
|
+
*/
|
|
57
|
+
readonly accountIdentifier: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The UUID of the Datadog user or service account resolved from `accountIdentifier`.
|
|
60
|
+
*/
|
|
61
|
+
readonly accountUuid: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* GitHub Actions OIDC claims to match against. Each argument is a regular expression; `sub` is required and all other claims are optional. A token matches only when all provided patterns match simultaneously (AND semantics).
|
|
64
|
+
*/
|
|
65
|
+
readonly claimMatchers: pulumi.Output<outputs.GithubOidcIdentityMappingClaimMatchers>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a GithubOidcIdentityMapping resource with the given unique name, arguments, and options.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resource.
|
|
70
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
71
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
72
|
+
*/
|
|
73
|
+
constructor(name: string, args: GithubOidcIdentityMappingArgs, opts?: pulumi.CustomResourceOptions);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Input properties used for looking up and filtering GithubOidcIdentityMapping resources.
|
|
77
|
+
*/
|
|
78
|
+
export interface GithubOidcIdentityMappingState {
|
|
79
|
+
/**
|
|
80
|
+
* The email or handle of the Datadog user or service account that the GitHub workload authenticates as. For a Terraform-managed service account, prefer the stable UUID exported by `datadog_service_account.id`; Datadog accepts it as the service account identifier. Datadog normalizes an email to the account's handle, so the handle form is the only value that survives `pulumi import` unchanged — importing a mapping configured by email produces a diff on this attribute, which forces replacement. String length must be at least 1.
|
|
81
|
+
*/
|
|
82
|
+
accountIdentifier?: pulumi.Input<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* The UUID of the Datadog user or service account resolved from `accountIdentifier`.
|
|
85
|
+
*/
|
|
86
|
+
accountUuid?: pulumi.Input<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* GitHub Actions OIDC claims to match against. Each argument is a regular expression; `sub` is required and all other claims are optional. A token matches only when all provided patterns match simultaneously (AND semantics).
|
|
89
|
+
*/
|
|
90
|
+
claimMatchers?: pulumi.Input<inputs.GithubOidcIdentityMappingClaimMatchers | undefined>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a GithubOidcIdentityMapping resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface GithubOidcIdentityMappingArgs {
|
|
96
|
+
/**
|
|
97
|
+
* The email or handle of the Datadog user or service account that the GitHub workload authenticates as. For a Terraform-managed service account, prefer the stable UUID exported by `datadog_service_account.id`; Datadog accepts it as the service account identifier. Datadog normalizes an email to the account's handle, so the handle form is the only value that survives `pulumi import` unchanged — importing a mapping configured by email produces a diff on this attribute, which forces replacement. String length must be at least 1.
|
|
98
|
+
*/
|
|
99
|
+
accountIdentifier: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* GitHub Actions OIDC claims to match against. Each argument is a regular expression; `sub` is required and all other claims are optional. A token matches only when all provided patterns match simultaneously (AND semantics).
|
|
102
|
+
*/
|
|
103
|
+
claimMatchers: pulumi.Input<inputs.GithubOidcIdentityMappingClaimMatchers>;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=githubOidcIdentityMapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"githubOidcIdentityMapping.d.ts","sourceRoot":"","sources":["../githubOidcIdentityMapping.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,8BAA8B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,yBAAyB;IAOpK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,yBAAyB;IAOpE;;OAEG;IACH,SAAwB,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAgC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACnE;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;IAErG;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAwBrG;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sCAAsC,GAAG,SAAS,CAAC,CAAC;CAC3F;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sCAAsC,CAAC,CAAC;CAC9E"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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.GithubOidcIdentityMapping = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a GitHub Actions OIDC identity mapping (called a persona mapping in the Datadog API) for Datadog workload identity federation. The mapping allows a GitHub Actions workload whose OIDC token matches the `claimMatchers` patterns to authenticate as the Datadog user or service account identified by `accountIdentifier`. The identity creating the mapping must have every permission assigned to the target identity. Creating the initial mapping requires API and application credentials with the Workload Identity Federation write permission; a provider already using federation cannot bootstrap its own mapping. Mappings cannot be updated; changing any attribute replaces the mapping. This resource uses a public beta API and is subject to change.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* const readOnly = datadog.getRole({
|
|
41
|
+
* filter: "Datadog Read Only Role",
|
|
42
|
+
* });
|
|
43
|
+
* const terraform = new datadog.ServiceAccount("terraform", {
|
|
44
|
+
* email: "terraform-service-account@example.com",
|
|
45
|
+
* name: "Terraform service account",
|
|
46
|
+
* roles: [readOnly.then(readOnly => readOnly.id)],
|
|
47
|
+
* });
|
|
48
|
+
* const terraformGithubOidcIdentityMapping = new datadog.GithubOidcIdentityMapping("terraform", {
|
|
49
|
+
* accountIdentifier: terraform.id,
|
|
50
|
+
* claimMatchers: [{
|
|
51
|
+
* sub: "repo:my-org/terraform:ref:refs/heads/main",
|
|
52
|
+
* repository: "^my-org/terraform$",
|
|
53
|
+
* }],
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## Import
|
|
58
|
+
*
|
|
59
|
+
* The `pulumi import` command can be used, for example:
|
|
60
|
+
*
|
|
61
|
+
* ```sh
|
|
62
|
+
* $ pulumi import datadog:index/githubOidcIdentityMapping:GithubOidcIdentityMapping terraform "00000000-0000-0000-0000-000000000000"
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
class GithubOidcIdentityMapping extends pulumi.CustomResource {
|
|
66
|
+
/**
|
|
67
|
+
* Get an existing GithubOidcIdentityMapping resource's state with the given name, ID, and optional extra
|
|
68
|
+
* properties used to qualify the lookup.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resulting resource.
|
|
71
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
72
|
+
* @param state Any extra arguments used during the lookup.
|
|
73
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
74
|
+
*/
|
|
75
|
+
static get(name, id, state, opts) {
|
|
76
|
+
return new GithubOidcIdentityMapping(name, state, { ...opts, id: id });
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
static __pulumiType = 'datadog:index/githubOidcIdentityMapping:GithubOidcIdentityMapping';
|
|
80
|
+
/**
|
|
81
|
+
* Returns true if the given object is an instance of GithubOidcIdentityMapping. This is designed to work even
|
|
82
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
83
|
+
*/
|
|
84
|
+
static isInstance(obj) {
|
|
85
|
+
if (obj === undefined || obj === null) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
return obj['__pulumiType'] === GithubOidcIdentityMapping.__pulumiType;
|
|
89
|
+
}
|
|
90
|
+
constructor(name, argsOrState, opts) {
|
|
91
|
+
let resourceInputs = {};
|
|
92
|
+
opts = opts || {};
|
|
93
|
+
if (opts.id) {
|
|
94
|
+
const state = argsOrState;
|
|
95
|
+
resourceInputs["accountIdentifier"] = state?.accountIdentifier;
|
|
96
|
+
resourceInputs["accountUuid"] = state?.accountUuid;
|
|
97
|
+
resourceInputs["claimMatchers"] = state?.claimMatchers;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const args = argsOrState;
|
|
101
|
+
if (args?.accountIdentifier === undefined && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'accountIdentifier'");
|
|
103
|
+
}
|
|
104
|
+
if (args?.claimMatchers === undefined && !opts.urn) {
|
|
105
|
+
throw new Error("Missing required property 'claimMatchers'");
|
|
106
|
+
}
|
|
107
|
+
resourceInputs["accountIdentifier"] = args?.accountIdentifier;
|
|
108
|
+
resourceInputs["claimMatchers"] = args?.claimMatchers;
|
|
109
|
+
resourceInputs["accountUuid"] = undefined /*out*/;
|
|
110
|
+
}
|
|
111
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
112
|
+
super(GithubOidcIdentityMapping.__pulumiType, name, resourceInputs, opts);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.GithubOidcIdentityMapping = GithubOidcIdentityMapping;
|
|
116
|
+
//# sourceMappingURL=githubOidcIdentityMapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"githubOidcIdentityMapping.js","sourceRoot":"","sources":["../githubOidcIdentityMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,mEAAmE,CAAC;IAE1G;;;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,yBAAyB,CAAC,YAAY,CAAC;IAC1E,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyD,CAAC;YACxE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;YAC/D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;SAC1D;aAAM;YACH,MAAM,IAAI,GAAG,WAAwD,CAAC;YACtE,IAAI,IAAI,EAAE,iBAAiB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;aACpE;YACD,IAAI,IAAI,EAAE,aAAa,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,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,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAvEL,8DAwEC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a GitHub Actions OIDC intake mapping for Datadog workload identity federation. The mapping allows GitHub Actions workloads whose OIDC tokens match the `claimMatchers` patterns to send telemetry to Datadog intake endpoints. Mappings cannot be updated; changing any attribute replaces the mapping. This resource uses a public beta API and is subject to change.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as datadog from "@pulumi/datadog";
|
|
12
|
+
*
|
|
13
|
+
* const terraform = new datadog.GithubOidcIntakeMapping("terraform", {claimMatchers: [{
|
|
14
|
+
* sub: "repo:my-org/terraform:ref:refs/heads/main",
|
|
15
|
+
* repository: "^my-org/terraform$",
|
|
16
|
+
* }]});
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* The `pulumi import` command can be used, for example:
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import datadog:index/githubOidcIntakeMapping:GithubOidcIntakeMapping terraform "00000000-0000-0000-0000-000000000000"
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class GithubOidcIntakeMapping extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing GithubOidcIntakeMapping resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GithubOidcIntakeMappingState, opts?: pulumi.CustomResourceOptions): GithubOidcIntakeMapping;
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if the given object is an instance of GithubOidcIntakeMapping. This is designed to work even
|
|
40
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
41
|
+
*/
|
|
42
|
+
static isInstance(obj: any): obj is GithubOidcIntakeMapping;
|
|
43
|
+
/**
|
|
44
|
+
* GitHub Actions OIDC claims to match against. Each argument is a regular expression; `sub` is required and all other claims are optional. A token matches only when all provided patterns match simultaneously (AND semantics).
|
|
45
|
+
*/
|
|
46
|
+
readonly claimMatchers: pulumi.Output<outputs.GithubOidcIntakeMappingClaimMatchers>;
|
|
47
|
+
/**
|
|
48
|
+
* Create a GithubOidcIntakeMapping resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name: string, args: GithubOidcIntakeMappingArgs, opts?: pulumi.CustomResourceOptions);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Input properties used for looking up and filtering GithubOidcIntakeMapping resources.
|
|
58
|
+
*/
|
|
59
|
+
export interface GithubOidcIntakeMappingState {
|
|
60
|
+
/**
|
|
61
|
+
* GitHub Actions OIDC claims to match against. Each argument is a regular expression; `sub` is required and all other claims are optional. A token matches only when all provided patterns match simultaneously (AND semantics).
|
|
62
|
+
*/
|
|
63
|
+
claimMatchers?: pulumi.Input<inputs.GithubOidcIntakeMappingClaimMatchers | undefined>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The set of arguments for constructing a GithubOidcIntakeMapping resource.
|
|
67
|
+
*/
|
|
68
|
+
export interface GithubOidcIntakeMappingArgs {
|
|
69
|
+
/**
|
|
70
|
+
* GitHub Actions OIDC claims to match against. Each argument is a regular expression; `sub` is required and all other claims are optional. A token matches only when all provided patterns match simultaneously (AND semantics).
|
|
71
|
+
*/
|
|
72
|
+
claimMatchers: pulumi.Input<inputs.GithubOidcIntakeMappingClaimMatchers>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=githubOidcIntakeMapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"githubOidcIntakeMapping.d.ts","sourceRoot":"","sources":["../githubOidcIntakeMapping.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;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,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAEnG;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAiBnG;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,oCAAoC,GAAG,SAAS,CAAC,CAAC;CACzF;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAC;CAC5E"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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.GithubOidcIntakeMapping = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a GitHub Actions OIDC intake mapping for Datadog workload identity federation. The mapping allows GitHub Actions workloads whose OIDC tokens match the `claimMatchers` patterns to send telemetry to Datadog intake endpoints. Mappings cannot be updated; changing any attribute replaces the mapping. This resource uses a public beta API and is subject to change.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* const terraform = new datadog.GithubOidcIntakeMapping("terraform", {claimMatchers: [{
|
|
41
|
+
* sub: "repo:my-org/terraform:ref:refs/heads/main",
|
|
42
|
+
* repository: "^my-org/terraform$",
|
|
43
|
+
* }]});
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* The `pulumi import` command can be used, for example:
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import datadog:index/githubOidcIntakeMapping:GithubOidcIntakeMapping terraform "00000000-0000-0000-0000-000000000000"
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
class GithubOidcIntakeMapping extends pulumi.CustomResource {
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing GithubOidcIntakeMapping resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new GithubOidcIntakeMapping(name, state, { ...opts, id: id });
|
|
66
|
+
}
|
|
67
|
+
/** @internal */
|
|
68
|
+
static __pulumiType = 'datadog:index/githubOidcIntakeMapping:GithubOidcIntakeMapping';
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of GithubOidcIntakeMapping. 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'] === GithubOidcIntakeMapping.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
constructor(name, argsOrState, opts) {
|
|
80
|
+
let resourceInputs = {};
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
if (opts.id) {
|
|
83
|
+
const state = argsOrState;
|
|
84
|
+
resourceInputs["claimMatchers"] = state?.claimMatchers;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const args = argsOrState;
|
|
88
|
+
if (args?.claimMatchers === undefined && !opts.urn) {
|
|
89
|
+
throw new Error("Missing required property 'claimMatchers'");
|
|
90
|
+
}
|
|
91
|
+
resourceInputs["claimMatchers"] = args?.claimMatchers;
|
|
92
|
+
}
|
|
93
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
94
|
+
super(GithubOidcIntakeMapping.__pulumiType, name, resourceInputs, opts);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.GithubOidcIntakeMapping = GithubOidcIntakeMapping;
|
|
98
|
+
//# sourceMappingURL=githubOidcIntakeMapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"githubOidcIntakeMapping.js","sourceRoot":"","sources":["../githubOidcIntakeMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,+DAA+D,CAAC;IAEtG;;;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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IAeD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;SAC1D;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,IAAI,EAAE,aAAa,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AAxDL,0DAyDC"}
|
package/index.d.ts
CHANGED
|
@@ -376,6 +376,12 @@ export declare const getUsersOutput: typeof import("./getUsers").getUsersOutput;
|
|
|
376
376
|
export { GetWorkflowAutomationArgs, GetWorkflowAutomationResult, GetWorkflowAutomationOutputArgs } from "./getWorkflowAutomation";
|
|
377
377
|
export declare const getWorkflowAutomation: typeof import("./getWorkflowAutomation").getWorkflowAutomation;
|
|
378
378
|
export declare const getWorkflowAutomationOutput: typeof import("./getWorkflowAutomation").getWorkflowAutomationOutput;
|
|
379
|
+
export { GithubOidcIdentityMappingArgs, GithubOidcIdentityMappingState } from "./githubOidcIdentityMapping";
|
|
380
|
+
export type GithubOidcIdentityMapping = import("./githubOidcIdentityMapping").GithubOidcIdentityMapping;
|
|
381
|
+
export declare const GithubOidcIdentityMapping: typeof import("./githubOidcIdentityMapping").GithubOidcIdentityMapping;
|
|
382
|
+
export { GithubOidcIntakeMappingArgs, GithubOidcIntakeMappingState } from "./githubOidcIntakeMapping";
|
|
383
|
+
export type GithubOidcIntakeMapping = import("./githubOidcIntakeMapping").GithubOidcIntakeMapping;
|
|
384
|
+
export declare const GithubOidcIntakeMapping: typeof import("./githubOidcIntakeMapping").GithubOidcIntakeMapping;
|
|
379
385
|
export { GovernanceControlArgs, GovernanceControlState } from "./governanceControl";
|
|
380
386
|
export type GovernanceControl = import("./governanceControl").GovernanceControl;
|
|
381
387
|
export declare const GovernanceControl: typeof import("./governanceControl").GovernanceControl;
|