@pulumi/artifactory 7.10.0 → 8.0.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.
Files changed (57) hide show
  1. package/README.md +1 -2
  2. package/config/vars.d.ts +0 -4
  3. package/config/vars.js +0 -7
  4. package/config/vars.js.map +1 -1
  5. package/index.d.ts +0 -9
  6. package/index.js +10 -25
  7. package/index.js.map +1 -1
  8. package/package.json +2 -2
  9. package/provider.d.ts +0 -6
  10. package/provider.js +0 -2
  11. package/provider.js.map +1 -1
  12. package/remoteAlpineRepository.d.ts +3 -3
  13. package/remoteAnsibleRepository.d.ts +3 -3
  14. package/remoteBowerRepository.d.ts +3 -3
  15. package/remoteCargoRepository.d.ts +3 -3
  16. package/remoteChefRepository.d.ts +3 -3
  17. package/remoteCocoapodsRepository.d.ts +3 -3
  18. package/remoteComposerRepository.d.ts +3 -3
  19. package/remoteConanRepository.d.ts +3 -3
  20. package/remoteCondaRepository.d.ts +3 -3
  21. package/remoteCranRepository.d.ts +3 -3
  22. package/remoteDebianRepository.d.ts +3 -3
  23. package/remoteDockerRepository.d.ts +3 -3
  24. package/remoteGemsRepository.d.ts +3 -3
  25. package/remoteGenericRepository.d.ts +3 -3
  26. package/remoteGitlfsRepository.d.ts +3 -3
  27. package/remoteGoRepository.d.ts +3 -3
  28. package/remoteGradleRepository.d.ts +3 -3
  29. package/remoteHelmRepository.d.ts +3 -3
  30. package/remoteHelmociRepository.d.ts +3 -3
  31. package/remoteHuggingfacemlRepository.d.ts +3 -3
  32. package/remoteIvyRepository.d.ts +3 -3
  33. package/remoteMavenRepository.d.ts +3 -3
  34. package/remoteNpmRepository.d.ts +3 -3
  35. package/remoteNugetRepository.d.ts +3 -3
  36. package/remoteOciRepository.d.ts +3 -3
  37. package/remoteOpkgRepository.d.ts +3 -3
  38. package/remoteP2Repository.d.ts +3 -3
  39. package/remotePubRepository.d.ts +3 -3
  40. package/remotePuppetRepository.d.ts +3 -3
  41. package/remotePypiRepository.d.ts +3 -3
  42. package/remoteRpmRepository.d.ts +3 -3
  43. package/remoteSbtRepository.d.ts +3 -3
  44. package/remoteSwiftRepository.d.ts +3 -3
  45. package/remoteTerraformRepository.d.ts +3 -3
  46. package/remoteVcsRepository.d.ts +3 -3
  47. package/types/input.d.ts +0 -21
  48. package/types/output.d.ts +0 -21
  49. package/accessToken.d.ts +0 -307
  50. package/accessToken.js +0 -239
  51. package/accessToken.js.map +0 -1
  52. package/replicationConfig.d.ts +0 -93
  53. package/replicationConfig.js +0 -95
  54. package/replicationConfig.js.map +0 -1
  55. package/singleReplicationConfig.d.ts +0 -115
  56. package/singleReplicationConfig.js +0 -98
  57. package/singleReplicationConfig.js.map +0 -1
@@ -129,7 +129,7 @@ export declare class RemotePuppetRepository extends pulumi.CustomResource {
129
129
  readonly key: pulumi.Output<string>;
130
130
  /**
131
131
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
132
- * the 'Retrieval Cache Period'. Default value is 'true'.
132
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
133
133
  */
134
134
  readonly listRemoteFolderItems: pulumi.Output<boolean | undefined>;
135
135
  /**
@@ -335,7 +335,7 @@ export interface RemotePuppetRepositoryState {
335
335
  key?: pulumi.Input<string>;
336
336
  /**
337
337
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
338
- * the 'Retrieval Cache Period'. Default value is 'true'.
338
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
339
339
  */
340
340
  listRemoteFolderItems?: pulumi.Input<boolean>;
341
341
  /**
@@ -533,7 +533,7 @@ export interface RemotePuppetRepositoryArgs {
533
533
  key: pulumi.Input<string>;
534
534
  /**
535
535
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
536
- * the 'Retrieval Cache Period'. Default value is 'true'.
536
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
537
537
  */
538
538
  listRemoteFolderItems?: pulumi.Input<boolean>;
539
539
  /**
@@ -135,7 +135,7 @@ export declare class RemotePypiRepository extends pulumi.CustomResource {
135
135
  readonly key: pulumi.Output<string>;
136
136
  /**
137
137
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
138
- * the 'Retrieval Cache Period'. Default value is 'true'.
138
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
139
139
  */
140
140
  readonly listRemoteFolderItems: pulumi.Output<boolean | undefined>;
141
141
  /**
@@ -353,7 +353,7 @@ export interface RemotePypiRepositoryState {
353
353
  key?: pulumi.Input<string>;
354
354
  /**
355
355
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
356
- * the 'Retrieval Cache Period'. Default value is 'true'.
356
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
357
357
  */
358
358
  listRemoteFolderItems?: pulumi.Input<boolean>;
359
359
  /**
@@ -563,7 +563,7 @@ export interface RemotePypiRepositoryArgs {
563
563
  key: pulumi.Input<string>;
564
564
  /**
565
565
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
566
- * the 'Retrieval Cache Period'. Default value is 'true'.
566
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
567
567
  */
568
568
  listRemoteFolderItems?: pulumi.Input<boolean>;
569
569
  /**
@@ -129,7 +129,7 @@ export declare class RemoteRpmRepository extends pulumi.CustomResource {
129
129
  readonly key: pulumi.Output<string>;
130
130
  /**
131
131
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
132
- * the 'Retrieval Cache Period'. Default value is 'true'.
132
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
133
133
  */
134
134
  readonly listRemoteFolderItems: pulumi.Output<boolean | undefined>;
135
135
  /**
@@ -335,7 +335,7 @@ export interface RemoteRpmRepositoryState {
335
335
  key?: pulumi.Input<string>;
336
336
  /**
337
337
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
338
- * the 'Retrieval Cache Period'. Default value is 'true'.
338
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
339
339
  */
340
340
  listRemoteFolderItems?: pulumi.Input<boolean>;
341
341
  /**
@@ -533,7 +533,7 @@ export interface RemoteRpmRepositoryArgs {
533
533
  key: pulumi.Input<string>;
534
534
  /**
535
535
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
536
- * the 'Retrieval Cache Period'. Default value is 'true'.
536
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
537
537
  */
538
538
  listRemoteFolderItems?: pulumi.Input<boolean>;
539
539
  /**
@@ -150,7 +150,7 @@ export declare class RemoteSbtRepository extends pulumi.CustomResource {
150
150
  readonly key: pulumi.Output<string>;
151
151
  /**
152
152
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
153
- * the 'Retrieval Cache Period'. Default value is 'true'.
153
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
154
154
  */
155
155
  readonly listRemoteFolderItems: pulumi.Output<boolean | undefined>;
156
156
  /**
@@ -388,7 +388,7 @@ export interface RemoteSbtRepositoryState {
388
388
  key?: pulumi.Input<string>;
389
389
  /**
390
390
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
391
- * the 'Retrieval Cache Period'. Default value is 'true'.
391
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
392
392
  */
393
393
  listRemoteFolderItems?: pulumi.Input<boolean>;
394
394
  /**
@@ -618,7 +618,7 @@ export interface RemoteSbtRepositoryArgs {
618
618
  key: pulumi.Input<string>;
619
619
  /**
620
620
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
621
- * the 'Retrieval Cache Period'. Default value is 'true'.
621
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
622
622
  */
623
623
  listRemoteFolderItems?: pulumi.Input<boolean>;
624
624
  /**
@@ -129,7 +129,7 @@ export declare class RemoteSwiftRepository extends pulumi.CustomResource {
129
129
  readonly key: pulumi.Output<string>;
130
130
  /**
131
131
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
132
- * the 'Retrieval Cache Period'. Default value is 'true'.
132
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
133
133
  */
134
134
  readonly listRemoteFolderItems: pulumi.Output<boolean | undefined>;
135
135
  /**
@@ -335,7 +335,7 @@ export interface RemoteSwiftRepositoryState {
335
335
  key?: pulumi.Input<string>;
336
336
  /**
337
337
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
338
- * the 'Retrieval Cache Period'. Default value is 'true'.
338
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
339
339
  */
340
340
  listRemoteFolderItems?: pulumi.Input<boolean>;
341
341
  /**
@@ -533,7 +533,7 @@ export interface RemoteSwiftRepositoryArgs {
533
533
  key: pulumi.Input<string>;
534
534
  /**
535
535
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
536
- * the 'Retrieval Cache Period'. Default value is 'true'.
536
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
537
537
  */
538
538
  listRemoteFolderItems?: pulumi.Input<boolean>;
539
539
  /**
@@ -128,7 +128,7 @@ export declare class RemoteTerraformRepository extends pulumi.CustomResource {
128
128
  readonly key: pulumi.Output<string>;
129
129
  /**
130
130
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
131
- * the 'Retrieval Cache Period'. Default value is 'true'.
131
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
132
132
  */
133
133
  readonly listRemoteFolderItems: pulumi.Output<boolean | undefined>;
134
134
  /**
@@ -336,7 +336,7 @@ export interface RemoteTerraformRepositoryState {
336
336
  key?: pulumi.Input<string>;
337
337
  /**
338
338
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
339
- * the 'Retrieval Cache Period'. Default value is 'true'.
339
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
340
340
  */
341
341
  listRemoteFolderItems?: pulumi.Input<boolean>;
342
342
  /**
@@ -536,7 +536,7 @@ export interface RemoteTerraformRepositoryArgs {
536
536
  key: pulumi.Input<string>;
537
537
  /**
538
538
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
539
- * the 'Retrieval Cache Period'. Default value is 'true'.
539
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
540
540
  */
541
541
  listRemoteFolderItems?: pulumi.Input<boolean>;
542
542
  /**
@@ -132,7 +132,7 @@ export declare class RemoteVcsRepository extends pulumi.CustomResource {
132
132
  readonly key: pulumi.Output<string>;
133
133
  /**
134
134
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
135
- * the 'Retrieval Cache Period'. Default value is 'true'.
135
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
136
136
  */
137
137
  readonly listRemoteFolderItems: pulumi.Output<boolean | undefined>;
138
138
  /**
@@ -354,7 +354,7 @@ export interface RemoteVcsRepositoryState {
354
354
  key?: pulumi.Input<string>;
355
355
  /**
356
356
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
357
- * the 'Retrieval Cache Period'. Default value is 'true'.
357
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
358
358
  */
359
359
  listRemoteFolderItems?: pulumi.Input<boolean>;
360
360
  /**
@@ -568,7 +568,7 @@ export interface RemoteVcsRepositoryArgs {
568
568
  key: pulumi.Input<string>;
569
569
  /**
570
570
  * Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
571
- * the 'Retrieval Cache Period'. Default value is 'true'.
571
+ * the 'Retrieval Cache Period'. Default value is 'false'. This field exists in the API but not in the UI.
572
572
  */
573
573
  listRemoteFolderItems?: pulumi.Input<boolean>;
574
574
  /**
package/types/input.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
- export interface AccessTokenAdminToken {
4
- instanceId: pulumi.Input<string>;
5
- }
6
3
  export interface ArtifactCustomWebhookCriteria {
7
4
  /**
8
5
  * Trigger on any federated repositories
@@ -5044,24 +5041,6 @@ export interface RemoteVcsRepositoryContentSynchronisation {
5044
5041
  */
5045
5042
  statisticsEnabled?: pulumi.Input<boolean>;
5046
5043
  }
5047
- export interface ReplicationConfigReplication {
5048
- enabled?: pulumi.Input<boolean>;
5049
- /**
5050
- * Requires password encryption to be turned off `POST /api/system/decrypt`.
5051
- */
5052
- password?: pulumi.Input<string>;
5053
- pathPrefix?: pulumi.Input<string>;
5054
- /**
5055
- * Proxy key from Artifactory Proxies setting
5056
- */
5057
- proxy?: pulumi.Input<string>;
5058
- socketTimeoutMillis?: pulumi.Input<number>;
5059
- syncDeletes?: pulumi.Input<boolean>;
5060
- syncProperties?: pulumi.Input<boolean>;
5061
- syncStatistics?: pulumi.Input<boolean>;
5062
- url?: pulumi.Input<string>;
5063
- username?: pulumi.Input<string>;
5064
- }
5065
5044
  export interface UnmanagedUserPasswordPolicy {
5066
5045
  /**
5067
5046
  * Minimum number of digits that the password must contain
package/types/output.d.ts CHANGED
@@ -1,7 +1,4 @@
1
1
  import * as outputs from "../types/output";
2
- export interface AccessTokenAdminToken {
3
- instanceId: string;
4
- }
5
2
  export interface ArtifactCustomWebhookCriteria {
6
3
  /**
7
4
  * Trigger on any federated repositories
@@ -3827,24 +3824,6 @@ export interface RemoteVcsRepositoryContentSynchronisation {
3827
3824
  */
3828
3825
  statisticsEnabled?: boolean;
3829
3826
  }
3830
- export interface ReplicationConfigReplication {
3831
- enabled: boolean;
3832
- /**
3833
- * Requires password encryption to be turned off `POST /api/system/decrypt`.
3834
- */
3835
- password: string;
3836
- pathPrefix?: string;
3837
- /**
3838
- * Proxy key from Artifactory Proxies setting
3839
- */
3840
- proxy?: string;
3841
- socketTimeoutMillis: number;
3842
- syncDeletes: boolean;
3843
- syncProperties: boolean;
3844
- syncStatistics: boolean;
3845
- url?: string;
3846
- username?: string;
3847
- }
3848
3827
  export interface UnmanagedUserPasswordPolicy {
3849
3828
  /**
3850
3829
  * Minimum number of digits that the password must contain
package/accessToken.d.ts DELETED
@@ -1,307 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- import * as inputs from "./types/input";
3
- import * as outputs from "./types/output";
4
- /**
5
- * !> **Warning:** This resource is being deprecated and replaced by `artifactory.ScopedToken` since v6.8.0.
6
- *
7
- * Provides an Artifactory Access Token resource. This can be used to create and manage Artifactory Access Tokens.
8
- *
9
- * > **Note:** Access Tokens will be stored in the raw state as plain-text. Read more about sensitive data in
10
- * state.
11
- *
12
- * ## Example Usage
13
- *
14
- * ### S
15
- * ### Create a new Artifactory Access Token for an existing user
16
- *
17
- * ```typescript
18
- * import * as pulumi from "@pulumi/pulumi";
19
- * import * as artifactory from "@pulumi/artifactory";
20
- *
21
- * const exisingUser = new artifactory.AccessToken("exising_user", {
22
- * username: "existing-user",
23
- * endDateRelative: "5m",
24
- * });
25
- * ```
26
- *
27
- * Note: This assumes that the user `existing-user` has already been created in Artifactory by different means, i.e. manually or in a separate pulumi up.
28
- *
29
- * ### Create a new Artifactory User and Access token
30
- * ```typescript
31
- * import * as pulumi from "@pulumi/pulumi";
32
- * import * as artifactory from "@pulumi/artifactory";
33
- *
34
- * const newUser = new artifactory.User("new_user", {
35
- * name: "new_user",
36
- * email: "new_user@somewhere.com",
37
- * groups: ["readers"],
38
- * });
39
- * const newUserAccessToken = new artifactory.AccessToken("new_user", {
40
- * username: newUser.name,
41
- * endDateRelative: "5m",
42
- * });
43
- * ```
44
- *
45
- * ### Creates a new token for groups
46
- * This creates a transient user called `temporary-user`.
47
- * ```typescript
48
- * import * as pulumi from "@pulumi/pulumi";
49
- * import * as artifactory from "@pulumi/artifactory";
50
- *
51
- * const temporaryUser = new artifactory.AccessToken("temporary_user", {
52
- * username: "temporary-user",
53
- * endDateRelative: "1h",
54
- * groups: ["readers"],
55
- * });
56
- * ```
57
- *
58
- * ### Create token with no expiry
59
- * ```typescript
60
- * import * as pulumi from "@pulumi/pulumi";
61
- * import * as artifactory from "@pulumi/artifactory";
62
- *
63
- * const noExpiry = new artifactory.AccessToken("no_expiry", {
64
- * username: "existing-user",
65
- * endDateRelative: "0s",
66
- * });
67
- * ```
68
- *
69
- * ### Creates a refreshable token
70
- * ```typescript
71
- * import * as pulumi from "@pulumi/pulumi";
72
- * import * as artifactory from "@pulumi/artifactory";
73
- *
74
- * const refreshable = new artifactory.AccessToken("refreshable", {
75
- * username: "refreshable",
76
- * endDateRelative: "1m",
77
- * refreshable: true,
78
- * groups: ["readers"],
79
- * });
80
- * ```
81
- *
82
- * ### Creates an administrator token
83
- * ```typescript
84
- * import * as pulumi from "@pulumi/pulumi";
85
- * import * as artifactory from "@pulumi/artifactory";
86
- *
87
- * const admin = new artifactory.AccessToken("admin", {
88
- * username: "admin",
89
- * endDateRelative: "1m",
90
- * adminToken: {
91
- * instanceId: "<instance id>",
92
- * },
93
- * });
94
- * ```
95
- *
96
- * ### Creates a token with an audience
97
- * ```typescript
98
- * import * as pulumi from "@pulumi/pulumi";
99
- * import * as artifactory from "@pulumi/artifactory";
100
- *
101
- * const audience = new artifactory.AccessToken("audience", {
102
- * username: "audience",
103
- * endDateRelative: "1m",
104
- * audience: "jfrt@*",
105
- * refreshable: true,
106
- * });
107
- * ```
108
- *
109
- * ### Creates a token with a fixed end date
110
- * ```typescript
111
- * import * as pulumi from "@pulumi/pulumi";
112
- * import * as artifactory from "@pulumi/artifactory";
113
- *
114
- * const fixeddate = new artifactory.AccessToken("fixeddate", {
115
- * username: "fixeddate",
116
- * endDate: "2018-01-01T01:02:03Z",
117
- * groups: ["readers"],
118
- * });
119
- * ```
120
- *
121
- * ### Rotate token after it expires
122
- * This example will generate a token that will expire in 1 hour.
123
- *
124
- * If `pulumi up` is run before 1 hour, nothing changes.
125
- * One an hour has passed, `pulumi up` will generate a new token.
126
- *
127
- * ```typescript
128
- * import * as pulumi from "@pulumi/pulumi";
129
- * import * as artifactory from "@pulumi/artifactory";
130
- * import * as time from "@pulumiverse/time";
131
- *
132
- * const nowPlus1Hours = new time.Rotating("now_plus_1_hours", {rotationHours: 1});
133
- * const rotating = new artifactory.AccessToken("rotating", {
134
- * username: "rotating",
135
- * endDate: nowPlus1Hour.rotationRfc3339,
136
- * groups: ["readers"],
137
- * });
138
- * ```
139
- *
140
- * ### Rotate token each pulumi up
141
- * This example will generate a token that will expire in 1 hour.
142
- *
143
- * If `pulumi up` is run before 1 hour, a new token is generated with an expiry of 1 hour.
144
- *
145
- * ```typescript
146
- * import * as pulumi from "@pulumi/pulumi";
147
- * import * as artifactory from "@pulumi/artifactory";
148
- * import * as std from "@pulumi/std";
149
- * import * as time from "@pulumiverse/time";
150
- *
151
- * const nowPlus1Hours = new time.Rotating("now_plus_1_hours", {
152
- * triggers: {
153
- * key: std.timestamp({}).then(invoke => invoke.result),
154
- * },
155
- * rotationHours: 1,
156
- * });
157
- * const rotating = new artifactory.AccessToken("rotating", {
158
- * username: "rotating",
159
- * endDate: nowPlus1Hour.rotationRfc3339,
160
- * groups: ["readers"],
161
- * });
162
- * ```
163
- *
164
- * ## References
165
- *
166
- * - https://www.jfrog.com/confluence/display/ACC1X/Access+Tokens
167
- * - https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-CreateToken
168
- *
169
- * ## Import
170
- *
171
- * Artifactory **does not** retain access tokens and cannot be imported into state.
172
- */
173
- export declare class AccessToken extends pulumi.CustomResource {
174
- /**
175
- * Get an existing AccessToken resource's state with the given name, ID, and optional extra
176
- * properties used to qualify the lookup.
177
- *
178
- * @param name The _unique_ name of the resulting resource.
179
- * @param id The _unique_ provider ID of the resource to lookup.
180
- * @param state Any extra arguments used during the lookup.
181
- * @param opts Optional settings to control the behavior of the CustomResource.
182
- */
183
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessTokenState, opts?: pulumi.CustomResourceOptions): AccessToken;
184
- /**
185
- * Returns true if the given object is an instance of AccessToken. This is designed to work even
186
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
187
- */
188
- static isInstance(obj: any): obj is AccessToken;
189
- /**
190
- * Returns the access token to authenciate to Artifactory
191
- */
192
- readonly accessToken: pulumi.Output<string>;
193
- /**
194
- * (Optional) Specify the `instanceId` in this block to grant this token admin privileges. This can only be created when the authenticated user is an admin. `adminToken` cannot be specified with `groups`.
195
- */
196
- readonly adminToken: pulumi.Output<outputs.AccessTokenAdminToken | undefined>;
197
- /**
198
- * (Optional) A space-separate list of the other Artifactory instances or services that should accept this token identified by their Artifactory Service IDs. You may set `"jfrt@*"` so the token to be accepted by all Artifactory instances.
199
- */
200
- readonly audience: pulumi.Output<string | undefined>;
201
- /**
202
- * (Optional) The end date which the token is valid until, formatted as a RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
203
- */
204
- readonly endDate: pulumi.Output<string>;
205
- /**
206
- * (Optional) A relative duration for which the token is valid until, for example `240h` (10 days) or `2400h30m`. Valid time units are "s", "m", "h".
207
- */
208
- readonly endDateRelative: pulumi.Output<string | undefined>;
209
- /**
210
- * (Optional) List of groups. The token is granted access based on the permissions of the groups. Specify `["*"]` for all groups that the user belongs to. `groups` cannot be specified with `adminToken`.
211
- */
212
- readonly groups: pulumi.Output<string[] | undefined>;
213
- /**
214
- * Returns the refresh token when `refreshable` is true, or an empty string when `refreshable` is false.
215
- */
216
- readonly refreshToken: pulumi.Output<string>;
217
- /**
218
- * (Optional) Is this token refreshable? Defaults to `false`
219
- */
220
- readonly refreshable: pulumi.Output<boolean | undefined>;
221
- /**
222
- * (Required) The username or subject for the token. A non-admin can only specify their own username. Admins can specify any existing username, or a new name for a temporary token. Temporary tokens require `groups` to be set.
223
- */
224
- readonly username: pulumi.Output<string>;
225
- /**
226
- * Create a AccessToken resource with the given unique name, arguments, and options.
227
- *
228
- * @param name The _unique_ name of the resource.
229
- * @param args The arguments to use to populate this resource's properties.
230
- * @param opts A bag of options that control this resource's behavior.
231
- */
232
- constructor(name: string, args: AccessTokenArgs, opts?: pulumi.CustomResourceOptions);
233
- }
234
- /**
235
- * Input properties used for looking up and filtering AccessToken resources.
236
- */
237
- export interface AccessTokenState {
238
- /**
239
- * Returns the access token to authenciate to Artifactory
240
- */
241
- accessToken?: pulumi.Input<string>;
242
- /**
243
- * (Optional) Specify the `instanceId` in this block to grant this token admin privileges. This can only be created when the authenticated user is an admin. `adminToken` cannot be specified with `groups`.
244
- */
245
- adminToken?: pulumi.Input<inputs.AccessTokenAdminToken>;
246
- /**
247
- * (Optional) A space-separate list of the other Artifactory instances or services that should accept this token identified by their Artifactory Service IDs. You may set `"jfrt@*"` so the token to be accepted by all Artifactory instances.
248
- */
249
- audience?: pulumi.Input<string>;
250
- /**
251
- * (Optional) The end date which the token is valid until, formatted as a RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
252
- */
253
- endDate?: pulumi.Input<string>;
254
- /**
255
- * (Optional) A relative duration for which the token is valid until, for example `240h` (10 days) or `2400h30m`. Valid time units are "s", "m", "h".
256
- */
257
- endDateRelative?: pulumi.Input<string>;
258
- /**
259
- * (Optional) List of groups. The token is granted access based on the permissions of the groups. Specify `["*"]` for all groups that the user belongs to. `groups` cannot be specified with `adminToken`.
260
- */
261
- groups?: pulumi.Input<pulumi.Input<string>[]>;
262
- /**
263
- * Returns the refresh token when `refreshable` is true, or an empty string when `refreshable` is false.
264
- */
265
- refreshToken?: pulumi.Input<string>;
266
- /**
267
- * (Optional) Is this token refreshable? Defaults to `false`
268
- */
269
- refreshable?: pulumi.Input<boolean>;
270
- /**
271
- * (Required) The username or subject for the token. A non-admin can only specify their own username. Admins can specify any existing username, or a new name for a temporary token. Temporary tokens require `groups` to be set.
272
- */
273
- username?: pulumi.Input<string>;
274
- }
275
- /**
276
- * The set of arguments for constructing a AccessToken resource.
277
- */
278
- export interface AccessTokenArgs {
279
- /**
280
- * (Optional) Specify the `instanceId` in this block to grant this token admin privileges. This can only be created when the authenticated user is an admin. `adminToken` cannot be specified with `groups`.
281
- */
282
- adminToken?: pulumi.Input<inputs.AccessTokenAdminToken>;
283
- /**
284
- * (Optional) A space-separate list of the other Artifactory instances or services that should accept this token identified by their Artifactory Service IDs. You may set `"jfrt@*"` so the token to be accepted by all Artifactory instances.
285
- */
286
- audience?: pulumi.Input<string>;
287
- /**
288
- * (Optional) The end date which the token is valid until, formatted as a RFC3339 date string (e.g. `2018-01-01T01:02:03Z`).
289
- */
290
- endDate?: pulumi.Input<string>;
291
- /**
292
- * (Optional) A relative duration for which the token is valid until, for example `240h` (10 days) or `2400h30m`. Valid time units are "s", "m", "h".
293
- */
294
- endDateRelative?: pulumi.Input<string>;
295
- /**
296
- * (Optional) List of groups. The token is granted access based on the permissions of the groups. Specify `["*"]` for all groups that the user belongs to. `groups` cannot be specified with `adminToken`.
297
- */
298
- groups?: pulumi.Input<pulumi.Input<string>[]>;
299
- /**
300
- * (Optional) Is this token refreshable? Defaults to `false`
301
- */
302
- refreshable?: pulumi.Input<boolean>;
303
- /**
304
- * (Required) The username or subject for the token. A non-admin can only specify their own username. Admins can specify any existing username, or a new name for a temporary token. Temporary tokens require `groups` to be set.
305
- */
306
- username: pulumi.Input<string>;
307
- }