@pulumi/azuread 5.30.0 → 5.31.0-alpha.1668029558
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/appRoleAssignment.d.ts +22 -3
- package/appRoleAssignment.js +19 -0
- package/appRoleAssignment.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +10 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/synchronizationJob.d.ts +143 -0
- package/synchronizationJob.js +123 -0
- package/synchronizationJob.js.map +1 -0
- package/synchronizationSecret.d.ts +112 -0
- package/synchronizationSecret.js +105 -0
- package/synchronizationSecret.js.map +1 -0
- package/types/input.d.ts +24 -0
- package/types/output.d.ts +24 -0
package/appRoleAssignment.d.ts
CHANGED
|
@@ -128,6 +128,25 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
128
128
|
* });
|
|
129
129
|
* ```
|
|
130
130
|
*
|
|
131
|
+
* *Assign a group to the default app role for an internal application*
|
|
132
|
+
*
|
|
133
|
+
* ```typescript
|
|
134
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
135
|
+
* import * as azuread from "@pulumi/azuread";
|
|
136
|
+
*
|
|
137
|
+
* const internalApplication = new azuread.Application("internalApplication", {displayName: "internal"});
|
|
138
|
+
* const internalServicePrincipal = new azuread.ServicePrincipal("internalServicePrincipal", {applicationId: internalApplication.applicationId});
|
|
139
|
+
* const exampleGroup = new azuread.Group("exampleGroup", {
|
|
140
|
+
* displayName: "example",
|
|
141
|
+
* securityEnabled: true,
|
|
142
|
+
* });
|
|
143
|
+
* const exampleAppRoleAssignment = new azuread.AppRoleAssignment("exampleAppRoleAssignment", {
|
|
144
|
+
* appRoleId: "00000000-0000-0000-0000-000000000000",
|
|
145
|
+
* principalObjectId: exampleGroup.objectId,
|
|
146
|
+
* resourceObjectId: internalServicePrincipal.objectId,
|
|
147
|
+
* });
|
|
148
|
+
* ```
|
|
149
|
+
*
|
|
131
150
|
* ## Import
|
|
132
151
|
*
|
|
133
152
|
* App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g.
|
|
@@ -155,7 +174,7 @@ export declare class AppRoleAssignment extends pulumi.CustomResource {
|
|
|
155
174
|
*/
|
|
156
175
|
static isInstance(obj: any): obj is AppRoleAssignment;
|
|
157
176
|
/**
|
|
158
|
-
* The ID of the app role to be assigned
|
|
177
|
+
* The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
159
178
|
*/
|
|
160
179
|
readonly appRoleId: pulumi.Output<string>;
|
|
161
180
|
/**
|
|
@@ -192,7 +211,7 @@ export declare class AppRoleAssignment extends pulumi.CustomResource {
|
|
|
192
211
|
*/
|
|
193
212
|
export interface AppRoleAssignmentState {
|
|
194
213
|
/**
|
|
195
|
-
* The ID of the app role to be assigned
|
|
214
|
+
* The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
196
215
|
*/
|
|
197
216
|
appRoleId?: pulumi.Input<string>;
|
|
198
217
|
/**
|
|
@@ -221,7 +240,7 @@ export interface AppRoleAssignmentState {
|
|
|
221
240
|
*/
|
|
222
241
|
export interface AppRoleAssignmentArgs {
|
|
223
242
|
/**
|
|
224
|
-
* The ID of the app role to be assigned
|
|
243
|
+
* The ID of the app role to be assigned, or the default role ID `00000000-0000-0000-0000-000000000000`. Changing this forces a new resource to be created.
|
|
225
244
|
*/
|
|
226
245
|
appRoleId: pulumi.Input<string>;
|
|
227
246
|
/**
|
package/appRoleAssignment.js
CHANGED
|
@@ -134,6 +134,25 @@ const utilities = require("./utilities");
|
|
|
134
134
|
* });
|
|
135
135
|
* ```
|
|
136
136
|
*
|
|
137
|
+
* *Assign a group to the default app role for an internal application*
|
|
138
|
+
*
|
|
139
|
+
* ```typescript
|
|
140
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
141
|
+
* import * as azuread from "@pulumi/azuread";
|
|
142
|
+
*
|
|
143
|
+
* const internalApplication = new azuread.Application("internalApplication", {displayName: "internal"});
|
|
144
|
+
* const internalServicePrincipal = new azuread.ServicePrincipal("internalServicePrincipal", {applicationId: internalApplication.applicationId});
|
|
145
|
+
* const exampleGroup = new azuread.Group("exampleGroup", {
|
|
146
|
+
* displayName: "example",
|
|
147
|
+
* securityEnabled: true,
|
|
148
|
+
* });
|
|
149
|
+
* const exampleAppRoleAssignment = new azuread.AppRoleAssignment("exampleAppRoleAssignment", {
|
|
150
|
+
* appRoleId: "00000000-0000-0000-0000-000000000000",
|
|
151
|
+
* principalObjectId: exampleGroup.objectId,
|
|
152
|
+
* resourceObjectId: internalServicePrincipal.objectId,
|
|
153
|
+
* });
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
137
156
|
* ## Import
|
|
138
157
|
*
|
|
139
158
|
* App role assignments can be imported using the object ID of the service principal representing the resource and the ID of the app role assignment (note_not_ the ID of the app role), e.g.
|
package/appRoleAssignment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appRoleAssignment.js","sourceRoot":"","sources":["../appRoleAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"appRoleAssignment.js","sourceRoot":"","sources":["../appRoleAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6JG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA6DxD,YAAY,IAAY,EAAE,WAA4D,EAAE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GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CA6FC;AA/EG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export * from "./servicePrincipalCertificate";
|
|
|
35
35
|
export * from "./servicePrincipalClaimsMappingPolicyAssignment";
|
|
36
36
|
export * from "./servicePrincipalDelegatedPermissionGrant";
|
|
37
37
|
export * from "./servicePrincipalPassword";
|
|
38
|
+
export * from "./synchronizationJob";
|
|
39
|
+
export * from "./synchronizationSecret";
|
|
38
40
|
export * from "./user";
|
|
39
41
|
import * as config from "./config";
|
|
40
42
|
import * as types from "./types";
|
package/index.js
CHANGED
|
@@ -57,6 +57,8 @@ __exportStar(require("./servicePrincipalCertificate"), exports);
|
|
|
57
57
|
__exportStar(require("./servicePrincipalClaimsMappingPolicyAssignment"), exports);
|
|
58
58
|
__exportStar(require("./servicePrincipalDelegatedPermissionGrant"), exports);
|
|
59
59
|
__exportStar(require("./servicePrincipalPassword"), exports);
|
|
60
|
+
__exportStar(require("./synchronizationJob"), exports);
|
|
61
|
+
__exportStar(require("./synchronizationSecret"), exports);
|
|
60
62
|
__exportStar(require("./user"), exports);
|
|
61
63
|
// Export sub-modules:
|
|
62
64
|
const config = require("./config");
|
|
@@ -87,6 +89,8 @@ const servicePrincipalCertificate_1 = require("./servicePrincipalCertificate");
|
|
|
87
89
|
const servicePrincipalClaimsMappingPolicyAssignment_1 = require("./servicePrincipalClaimsMappingPolicyAssignment");
|
|
88
90
|
const servicePrincipalDelegatedPermissionGrant_1 = require("./servicePrincipalDelegatedPermissionGrant");
|
|
89
91
|
const servicePrincipalPassword_1 = require("./servicePrincipalPassword");
|
|
92
|
+
const synchronizationJob_1 = require("./synchronizationJob");
|
|
93
|
+
const synchronizationSecret_1 = require("./synchronizationSecret");
|
|
90
94
|
const user_1 = require("./user");
|
|
91
95
|
const _module = {
|
|
92
96
|
version: utilities.getVersion(),
|
|
@@ -138,6 +142,10 @@ const _module = {
|
|
|
138
142
|
return new servicePrincipalDelegatedPermissionGrant_1.ServicePrincipalDelegatedPermissionGrant(name, undefined, { urn });
|
|
139
143
|
case "azuread:index/servicePrincipalPassword:ServicePrincipalPassword":
|
|
140
144
|
return new servicePrincipalPassword_1.ServicePrincipalPassword(name, undefined, { urn });
|
|
145
|
+
case "azuread:index/synchronizationJob:SynchronizationJob":
|
|
146
|
+
return new synchronizationJob_1.SynchronizationJob(name, undefined, { urn });
|
|
147
|
+
case "azuread:index/synchronizationSecret:SynchronizationSecret":
|
|
148
|
+
return new synchronizationSecret_1.SynchronizationSecret(name, undefined, { urn });
|
|
141
149
|
case "azuread:index/user:User":
|
|
142
150
|
return new user_1.User(name, undefined, { urn });
|
|
143
151
|
default:
|
|
@@ -168,6 +176,8 @@ pulumi.runtime.registerResourceModule("azuread", "index/servicePrincipalCertific
|
|
|
168
176
|
pulumi.runtime.registerResourceModule("azuread", "index/servicePrincipalClaimsMappingPolicyAssignment", _module);
|
|
169
177
|
pulumi.runtime.registerResourceModule("azuread", "index/servicePrincipalDelegatedPermissionGrant", _module);
|
|
170
178
|
pulumi.runtime.registerResourceModule("azuread", "index/servicePrincipalPassword", _module);
|
|
179
|
+
pulumi.runtime.registerResourceModule("azuread", "index/synchronizationJob", _module);
|
|
180
|
+
pulumi.runtime.registerResourceModule("azuread", "index/synchronizationSecret", _module);
|
|
171
181
|
pulumi.runtime.registerResourceModule("azuread", "index/user", _module);
|
|
172
182
|
const provider_1 = require("./provider");
|
|
173
183
|
pulumi.runtime.registerResourcePackage("azuread", {
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,uDAAqC;AACrC,6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v5.
|
|
3
|
+
"version": "v5.31.0-alpha.1668029558+71f27706",
|
|
4
4
|
"description": "A Pulumi package for creating and managing azuread cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource azuread v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource azuread v5.31.0-alpha.1668029558+71f27706"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/azuread",
|
|
3
|
-
"version": "v5.
|
|
3
|
+
"version": "v5.31.0-alpha.1668029558+71f27706",
|
|
4
4
|
"description": "A Pulumi package for creating and managing azuread cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource azuread v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource azuread v5.31.0-alpha.1668029558+71f27706"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Manages a synchronization job associated with a service principal (enterprise application) within Azure Active Directory.
|
|
5
|
+
*
|
|
6
|
+
* ## API Permissions
|
|
7
|
+
*
|
|
8
|
+
* The following API permissions are required in order to use this resource.
|
|
9
|
+
*
|
|
10
|
+
* When authenticated with a service principal, this resource requires one of the following application roles: `Application.ReadWrite.All` or `Directory.ReadWrite.All`
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* *Basic example*
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as azuread from "@pulumi/azuread";
|
|
19
|
+
*
|
|
20
|
+
* const exampleApplicationTemplate = azuread.getApplicationTemplate({
|
|
21
|
+
* displayName: "Azure Databricks SCIM Provisioning Connector",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleApplication = new azuread.Application("exampleApplication", {
|
|
24
|
+
* displayName: "example",
|
|
25
|
+
* templateId: exampleApplicationTemplate.then(exampleApplicationTemplate => exampleApplicationTemplate.templateId),
|
|
26
|
+
* featureTags: [{
|
|
27
|
+
* enterprise: true,
|
|
28
|
+
* gallery: true,
|
|
29
|
+
* }],
|
|
30
|
+
* });
|
|
31
|
+
* const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {
|
|
32
|
+
* applicationId: exampleApplication.applicationId,
|
|
33
|
+
* useExisting: true,
|
|
34
|
+
* });
|
|
35
|
+
* const exampleSynchronizationSecret = new azuread.SynchronizationSecret("exampleSynchronizationSecret", {
|
|
36
|
+
* servicePrincipalId: exampleServicePrincipal.id,
|
|
37
|
+
* credentials: [
|
|
38
|
+
* {
|
|
39
|
+
* key: "BaseAddress",
|
|
40
|
+
* value: "https://adb-example.azuredatabricks.net/api/2.0/preview/scim",
|
|
41
|
+
* },
|
|
42
|
+
* {
|
|
43
|
+
* key: "SecretToken",
|
|
44
|
+
* value: "some-token",
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* });
|
|
48
|
+
* const exampleSynchronizationJob = new azuread.SynchronizationJob("exampleSynchronizationJob", {
|
|
49
|
+
* servicePrincipalId: exampleServicePrincipal.id,
|
|
50
|
+
* templateId: "dataBricks",
|
|
51
|
+
* enabled: true,
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* Synchronization jobs can be imported using the `id`, e.g.
|
|
58
|
+
*
|
|
59
|
+
* ```sh
|
|
60
|
+
* $ pulumi import azuread:index/synchronizationJob:SynchronizationJob example 00000000-0000-0000-0000-000000000000/job/dataBricks.f5532fc709734b1a90e8a1fa9fd03a82.8442fd39-2183-419c-8732-74b6ce866bd5
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* -> This ID format is unique to Terraform and is composed of the Service Principal Object ID and the ID of the Synchronization Job Id in the format `{servicePrincipalId}/job/{jobId}`.
|
|
64
|
+
*/
|
|
65
|
+
export declare class SynchronizationJob extends pulumi.CustomResource {
|
|
66
|
+
/**
|
|
67
|
+
* Get an existing SynchronizationJob 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: string, id: pulumi.Input<pulumi.ID>, state?: SynchronizationJobState, opts?: pulumi.CustomResourceOptions): SynchronizationJob;
|
|
76
|
+
/**
|
|
77
|
+
* Returns true if the given object is an instance of SynchronizationJob. This is designed to work even
|
|
78
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
79
|
+
*/
|
|
80
|
+
static isInstance(obj: any): obj is SynchronizationJob;
|
|
81
|
+
/**
|
|
82
|
+
* Whether or not the provisioning job is enabled. Default state is `true`.
|
|
83
|
+
*/
|
|
84
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* A `schedule` list as documented below.
|
|
87
|
+
*/
|
|
88
|
+
readonly schedules: pulumi.Output<outputs.SynchronizationJobSchedule[]>;
|
|
89
|
+
/**
|
|
90
|
+
* The object ID of the service principal for which this synchronization job should be created. Changing this field forces a new resource to be created.
|
|
91
|
+
*/
|
|
92
|
+
readonly servicePrincipalId: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Identifier of the synchronization template this job is based on.
|
|
95
|
+
*/
|
|
96
|
+
readonly templateId: pulumi.Output<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Create a SynchronizationJob resource with the given unique name, arguments, and options.
|
|
99
|
+
*
|
|
100
|
+
* @param name The _unique_ name of the resource.
|
|
101
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
102
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
103
|
+
*/
|
|
104
|
+
constructor(name: string, args: SynchronizationJobArgs, opts?: pulumi.CustomResourceOptions);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Input properties used for looking up and filtering SynchronizationJob resources.
|
|
108
|
+
*/
|
|
109
|
+
export interface SynchronizationJobState {
|
|
110
|
+
/**
|
|
111
|
+
* Whether or not the provisioning job is enabled. Default state is `true`.
|
|
112
|
+
*/
|
|
113
|
+
enabled?: pulumi.Input<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* A `schedule` list as documented below.
|
|
116
|
+
*/
|
|
117
|
+
schedules?: pulumi.Input<pulumi.Input<inputs.SynchronizationJobSchedule>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* The object ID of the service principal for which this synchronization job should be created. Changing this field forces a new resource to be created.
|
|
120
|
+
*/
|
|
121
|
+
servicePrincipalId?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Identifier of the synchronization template this job is based on.
|
|
124
|
+
*/
|
|
125
|
+
templateId?: pulumi.Input<string>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The set of arguments for constructing a SynchronizationJob resource.
|
|
129
|
+
*/
|
|
130
|
+
export interface SynchronizationJobArgs {
|
|
131
|
+
/**
|
|
132
|
+
* Whether or not the provisioning job is enabled. Default state is `true`.
|
|
133
|
+
*/
|
|
134
|
+
enabled?: pulumi.Input<boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* The object ID of the service principal for which this synchronization job should be created. Changing this field forces a new resource to be created.
|
|
137
|
+
*/
|
|
138
|
+
servicePrincipalId: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Identifier of the synchronization template this job is based on.
|
|
141
|
+
*/
|
|
142
|
+
templateId: pulumi.Input<string>;
|
|
143
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SynchronizationJob = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a synchronization job associated with a service principal (enterprise application) within Azure Active Directory.
|
|
10
|
+
*
|
|
11
|
+
* ## API Permissions
|
|
12
|
+
*
|
|
13
|
+
* The following API permissions are required in order to use this resource.
|
|
14
|
+
*
|
|
15
|
+
* When authenticated with a service principal, this resource requires one of the following application roles: `Application.ReadWrite.All` or `Directory.ReadWrite.All`
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* *Basic example*
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as azuread from "@pulumi/azuread";
|
|
24
|
+
*
|
|
25
|
+
* const exampleApplicationTemplate = azuread.getApplicationTemplate({
|
|
26
|
+
* displayName: "Azure Databricks SCIM Provisioning Connector",
|
|
27
|
+
* });
|
|
28
|
+
* const exampleApplication = new azuread.Application("exampleApplication", {
|
|
29
|
+
* displayName: "example",
|
|
30
|
+
* templateId: exampleApplicationTemplate.then(exampleApplicationTemplate => exampleApplicationTemplate.templateId),
|
|
31
|
+
* featureTags: [{
|
|
32
|
+
* enterprise: true,
|
|
33
|
+
* gallery: true,
|
|
34
|
+
* }],
|
|
35
|
+
* });
|
|
36
|
+
* const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {
|
|
37
|
+
* applicationId: exampleApplication.applicationId,
|
|
38
|
+
* useExisting: true,
|
|
39
|
+
* });
|
|
40
|
+
* const exampleSynchronizationSecret = new azuread.SynchronizationSecret("exampleSynchronizationSecret", {
|
|
41
|
+
* servicePrincipalId: exampleServicePrincipal.id,
|
|
42
|
+
* credentials: [
|
|
43
|
+
* {
|
|
44
|
+
* key: "BaseAddress",
|
|
45
|
+
* value: "https://adb-example.azuredatabricks.net/api/2.0/preview/scim",
|
|
46
|
+
* },
|
|
47
|
+
* {
|
|
48
|
+
* key: "SecretToken",
|
|
49
|
+
* value: "some-token",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* });
|
|
53
|
+
* const exampleSynchronizationJob = new azuread.SynchronizationJob("exampleSynchronizationJob", {
|
|
54
|
+
* servicePrincipalId: exampleServicePrincipal.id,
|
|
55
|
+
* templateId: "dataBricks",
|
|
56
|
+
* enabled: true,
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ## Import
|
|
61
|
+
*
|
|
62
|
+
* Synchronization jobs can be imported using the `id`, e.g.
|
|
63
|
+
*
|
|
64
|
+
* ```sh
|
|
65
|
+
* $ pulumi import azuread:index/synchronizationJob:SynchronizationJob example 00000000-0000-0000-0000-000000000000/job/dataBricks.f5532fc709734b1a90e8a1fa9fd03a82.8442fd39-2183-419c-8732-74b6ce866bd5
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* -> This ID format is unique to Terraform and is composed of the Service Principal Object ID and the ID of the Synchronization Job Id in the format `{servicePrincipalId}/job/{jobId}`.
|
|
69
|
+
*/
|
|
70
|
+
class SynchronizationJob extends pulumi.CustomResource {
|
|
71
|
+
constructor(name, argsOrState, opts) {
|
|
72
|
+
let resourceInputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (opts.id) {
|
|
75
|
+
const state = argsOrState;
|
|
76
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
77
|
+
resourceInputs["schedules"] = state ? state.schedules : undefined;
|
|
78
|
+
resourceInputs["servicePrincipalId"] = state ? state.servicePrincipalId : undefined;
|
|
79
|
+
resourceInputs["templateId"] = state ? state.templateId : undefined;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if ((!args || args.servicePrincipalId === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'servicePrincipalId'");
|
|
85
|
+
}
|
|
86
|
+
if ((!args || args.templateId === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'templateId'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
90
|
+
resourceInputs["servicePrincipalId"] = args ? args.servicePrincipalId : undefined;
|
|
91
|
+
resourceInputs["templateId"] = args ? args.templateId : undefined;
|
|
92
|
+
resourceInputs["schedules"] = undefined /*out*/;
|
|
93
|
+
}
|
|
94
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
95
|
+
super(SynchronizationJob.__pulumiType, name, resourceInputs, opts);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Get an existing SynchronizationJob resource's state with the given name, ID, and optional extra
|
|
99
|
+
* properties used to qualify the lookup.
|
|
100
|
+
*
|
|
101
|
+
* @param name The _unique_ name of the resulting resource.
|
|
102
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
103
|
+
* @param state Any extra arguments used during the lookup.
|
|
104
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
105
|
+
*/
|
|
106
|
+
static get(name, id, state, opts) {
|
|
107
|
+
return new SynchronizationJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Returns true if the given object is an instance of SynchronizationJob. This is designed to work even
|
|
111
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
112
|
+
*/
|
|
113
|
+
static isInstance(obj) {
|
|
114
|
+
if (obj === undefined || obj === null) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
return obj['__pulumiType'] === SynchronizationJob.__pulumiType;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.SynchronizationJob = SynchronizationJob;
|
|
121
|
+
/** @internal */
|
|
122
|
+
SynchronizationJob.__pulumiType = 'azuread:index/synchronizationJob:SynchronizationJob';
|
|
123
|
+
//# sourceMappingURL=synchronizationJob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synchronizationJob.js","sourceRoot":"","sources":["../synchronizationJob.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IAqDzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAA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A5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDA8EC;AAhEG,gBAAgB;AACO,+BAAY,GAAG,qDAAqD,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Manages synchronization secrets associated with a service principal (enterprise application) within Azure Active Directory.
|
|
5
|
+
*
|
|
6
|
+
* ## API Permissions
|
|
7
|
+
*
|
|
8
|
+
* The following API permissions are required in order to use this resource.
|
|
9
|
+
*
|
|
10
|
+
* When authenticated with a service principal, this resource requires one of the following application roles: `Application.ReadWrite.All` or `Directory.ReadWrite.All`
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* *Basic example*
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as azuread from "@pulumi/azuread";
|
|
19
|
+
*
|
|
20
|
+
* const exampleApplicationTemplate = azuread.getApplicationTemplate({
|
|
21
|
+
* displayName: "Azure Databricks SCIM Provisioning Connector",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleApplication = new azuread.Application("exampleApplication", {
|
|
24
|
+
* displayName: "example",
|
|
25
|
+
* templateId: exampleApplicationTemplate.then(exampleApplicationTemplate => exampleApplicationTemplate.templateId),
|
|
26
|
+
* featureTags: [{
|
|
27
|
+
* enterprise: true,
|
|
28
|
+
* gallery: true,
|
|
29
|
+
* }],
|
|
30
|
+
* });
|
|
31
|
+
* const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {
|
|
32
|
+
* applicationId: exampleApplication.applicationId,
|
|
33
|
+
* useExisting: true,
|
|
34
|
+
* });
|
|
35
|
+
* const exampleSynchronizationSecret = new azuread.SynchronizationSecret("exampleSynchronizationSecret", {
|
|
36
|
+
* servicePrincipalId: exampleServicePrincipal.id,
|
|
37
|
+
* credentials: [
|
|
38
|
+
* {
|
|
39
|
+
* key: "BaseAddress",
|
|
40
|
+
* value: "abc",
|
|
41
|
+
* },
|
|
42
|
+
* {
|
|
43
|
+
* key: "SecretToken",
|
|
44
|
+
* value: "some-token",
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ## Import
|
|
51
|
+
*
|
|
52
|
+
* This resource does not support importing.
|
|
53
|
+
*/
|
|
54
|
+
export declare class SynchronizationSecret extends pulumi.CustomResource {
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing SynchronizationSecret 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: string, id: pulumi.Input<pulumi.ID>, state?: SynchronizationSecretState, opts?: pulumi.CustomResourceOptions): SynchronizationSecret;
|
|
65
|
+
/**
|
|
66
|
+
* Returns true if the given object is an instance of SynchronizationSecret. This is designed to work even
|
|
67
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
|
+
*/
|
|
69
|
+
static isInstance(obj: any): obj is SynchronizationSecret;
|
|
70
|
+
/**
|
|
71
|
+
* One or more `credential` blocks as documented below.
|
|
72
|
+
*/
|
|
73
|
+
readonly credentials: pulumi.Output<outputs.SynchronizationSecretCredential[] | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* The object ID of the service principal for which this synchronization secrets should be stored. Changing this field forces a new resource to be created.
|
|
76
|
+
*/
|
|
77
|
+
readonly servicePrincipalId: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a SynchronizationSecret resource with the given unique name, arguments, and options.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resource.
|
|
82
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
+
*/
|
|
85
|
+
constructor(name: string, args: SynchronizationSecretArgs, opts?: pulumi.CustomResourceOptions);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Input properties used for looking up and filtering SynchronizationSecret resources.
|
|
89
|
+
*/
|
|
90
|
+
export interface SynchronizationSecretState {
|
|
91
|
+
/**
|
|
92
|
+
* One or more `credential` blocks as documented below.
|
|
93
|
+
*/
|
|
94
|
+
credentials?: pulumi.Input<pulumi.Input<inputs.SynchronizationSecretCredential>[]>;
|
|
95
|
+
/**
|
|
96
|
+
* The object ID of the service principal for which this synchronization secrets should be stored. Changing this field forces a new resource to be created.
|
|
97
|
+
*/
|
|
98
|
+
servicePrincipalId?: pulumi.Input<string>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a SynchronizationSecret resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface SynchronizationSecretArgs {
|
|
104
|
+
/**
|
|
105
|
+
* One or more `credential` blocks as documented below.
|
|
106
|
+
*/
|
|
107
|
+
credentials?: pulumi.Input<pulumi.Input<inputs.SynchronizationSecretCredential>[]>;
|
|
108
|
+
/**
|
|
109
|
+
* The object ID of the service principal for which this synchronization secrets should be stored. Changing this field forces a new resource to be created.
|
|
110
|
+
*/
|
|
111
|
+
servicePrincipalId: pulumi.Input<string>;
|
|
112
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SynchronizationSecret = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages synchronization secrets associated with a service principal (enterprise application) within Azure Active Directory.
|
|
10
|
+
*
|
|
11
|
+
* ## API Permissions
|
|
12
|
+
*
|
|
13
|
+
* The following API permissions are required in order to use this resource.
|
|
14
|
+
*
|
|
15
|
+
* When authenticated with a service principal, this resource requires one of the following application roles: `Application.ReadWrite.All` or `Directory.ReadWrite.All`
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* *Basic example*
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as azuread from "@pulumi/azuread";
|
|
24
|
+
*
|
|
25
|
+
* const exampleApplicationTemplate = azuread.getApplicationTemplate({
|
|
26
|
+
* displayName: "Azure Databricks SCIM Provisioning Connector",
|
|
27
|
+
* });
|
|
28
|
+
* const exampleApplication = new azuread.Application("exampleApplication", {
|
|
29
|
+
* displayName: "example",
|
|
30
|
+
* templateId: exampleApplicationTemplate.then(exampleApplicationTemplate => exampleApplicationTemplate.templateId),
|
|
31
|
+
* featureTags: [{
|
|
32
|
+
* enterprise: true,
|
|
33
|
+
* gallery: true,
|
|
34
|
+
* }],
|
|
35
|
+
* });
|
|
36
|
+
* const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {
|
|
37
|
+
* applicationId: exampleApplication.applicationId,
|
|
38
|
+
* useExisting: true,
|
|
39
|
+
* });
|
|
40
|
+
* const exampleSynchronizationSecret = new azuread.SynchronizationSecret("exampleSynchronizationSecret", {
|
|
41
|
+
* servicePrincipalId: exampleServicePrincipal.id,
|
|
42
|
+
* credentials: [
|
|
43
|
+
* {
|
|
44
|
+
* key: "BaseAddress",
|
|
45
|
+
* value: "abc",
|
|
46
|
+
* },
|
|
47
|
+
* {
|
|
48
|
+
* key: "SecretToken",
|
|
49
|
+
* value: "some-token",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* This resource does not support importing.
|
|
58
|
+
*/
|
|
59
|
+
class SynchronizationSecret extends pulumi.CustomResource {
|
|
60
|
+
constructor(name, argsOrState, opts) {
|
|
61
|
+
let resourceInputs = {};
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
if (opts.id) {
|
|
64
|
+
const state = argsOrState;
|
|
65
|
+
resourceInputs["credentials"] = state ? state.credentials : undefined;
|
|
66
|
+
resourceInputs["servicePrincipalId"] = state ? state.servicePrincipalId : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.servicePrincipalId === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'servicePrincipalId'");
|
|
72
|
+
}
|
|
73
|
+
resourceInputs["credentials"] = args ? args.credentials : undefined;
|
|
74
|
+
resourceInputs["servicePrincipalId"] = args ? args.servicePrincipalId : undefined;
|
|
75
|
+
}
|
|
76
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
77
|
+
super(SynchronizationSecret.__pulumiType, name, resourceInputs, opts);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get an existing SynchronizationSecret resource's state with the given name, ID, and optional extra
|
|
81
|
+
* properties used to qualify the lookup.
|
|
82
|
+
*
|
|
83
|
+
* @param name The _unique_ name of the resulting resource.
|
|
84
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
85
|
+
* @param state Any extra arguments used during the lookup.
|
|
86
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
87
|
+
*/
|
|
88
|
+
static get(name, id, state, opts) {
|
|
89
|
+
return new SynchronizationSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Returns true if the given object is an instance of SynchronizationSecret. This is designed to work even
|
|
93
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
94
|
+
*/
|
|
95
|
+
static isInstance(obj) {
|
|
96
|
+
if (obj === undefined || obj === null) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
return obj['__pulumiType'] === SynchronizationSecret.__pulumiType;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.SynchronizationSecret = SynchronizationSecret;
|
|
103
|
+
/** @internal */
|
|
104
|
+
SynchronizationSecret.__pulumiType = 'azuread:index/synchronizationSecret:SynchronizationSecret';
|
|
105
|
+
//# sourceMappingURL=synchronizationSecret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synchronizationSecret.js","sourceRoot":"","sources":["../synchronizationSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA6C5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACl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K,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;;AA1BL,sDA+DC;AAjDG,gBAAgB;AACO,kCAAY,GAAG,2DAA2D,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -514,3 +514,27 @@ export interface ServicePrincipalSamlSingleSignOn {
|
|
|
514
514
|
*/
|
|
515
515
|
relayState?: pulumi.Input<string>;
|
|
516
516
|
}
|
|
517
|
+
export interface SynchronizationJobSchedule {
|
|
518
|
+
/**
|
|
519
|
+
* Date and time when this job will expire, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
|
|
520
|
+
*/
|
|
521
|
+
expiration?: pulumi.Input<string>;
|
|
522
|
+
/**
|
|
523
|
+
* The interval between synchronization iterations ISO8601. E.g. PT40M run every 40 minutes.
|
|
524
|
+
*/
|
|
525
|
+
interval?: pulumi.Input<string>;
|
|
526
|
+
/**
|
|
527
|
+
* State of the job.
|
|
528
|
+
*/
|
|
529
|
+
state?: pulumi.Input<string>;
|
|
530
|
+
}
|
|
531
|
+
export interface SynchronizationSecretCredential {
|
|
532
|
+
/**
|
|
533
|
+
* The key of the secret.
|
|
534
|
+
*/
|
|
535
|
+
key: pulumi.Input<string>;
|
|
536
|
+
/**
|
|
537
|
+
* The value of the secret.
|
|
538
|
+
*/
|
|
539
|
+
value: pulumi.Input<string>;
|
|
540
|
+
}
|
package/types/output.d.ts
CHANGED
|
@@ -963,3 +963,27 @@ export interface ServicePrincipalSamlSingleSignOn {
|
|
|
963
963
|
*/
|
|
964
964
|
relayState?: string;
|
|
965
965
|
}
|
|
966
|
+
export interface SynchronizationJobSchedule {
|
|
967
|
+
/**
|
|
968
|
+
* Date and time when this job will expire, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
|
|
969
|
+
*/
|
|
970
|
+
expiration: string;
|
|
971
|
+
/**
|
|
972
|
+
* The interval between synchronization iterations ISO8601. E.g. PT40M run every 40 minutes.
|
|
973
|
+
*/
|
|
974
|
+
interval: string;
|
|
975
|
+
/**
|
|
976
|
+
* State of the job.
|
|
977
|
+
*/
|
|
978
|
+
state: string;
|
|
979
|
+
}
|
|
980
|
+
export interface SynchronizationSecretCredential {
|
|
981
|
+
/**
|
|
982
|
+
* The key of the secret.
|
|
983
|
+
*/
|
|
984
|
+
key: string;
|
|
985
|
+
/**
|
|
986
|
+
* The value of the secret.
|
|
987
|
+
*/
|
|
988
|
+
value: string;
|
|
989
|
+
}
|