generated from pulumi/pulumi-tf-provider-boilerplate
/
remoteSwiftRepository.go
1033 lines (946 loc) · 62.9 KB
/
remoteSwiftRepository.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package artifactory
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Creates a remote Swift repository.
// Official documentation can be found [here](https://www.jfrog.com/confluence/display/JFROG/Conan+Repositories).
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-artifactory/sdk/v3/go/artifactory"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := artifactory.NewRemoteSwiftRepository(ctx, "my-remote-swift", &artifactory.RemoteSwiftRepositoryArgs{
// Key: pulumi.String("my-remote-swift"),
// Url: pulumi.String("https://swift.org/"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Remote repositories can be imported using their name, e.g.
//
// ```sh
//
// $ pulumi import artifactory:index/remoteSwiftRepository:RemoteSwiftRepository my-remote-swift my-remote-swift
//
// ```
type RemoteSwiftRepository struct {
pulumi.CustomResourceState
// 'Lenient Host Authentication' in the UI. Allow credentials of this repository to be used on requests redirected to any
// other host.
AllowAnyHostAuth pulumi.BoolPtrOutput `pulumi:"allowAnyHostAuth"`
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline.
AssumedOfflinePeriodSecs pulumi.IntPtrOutput `pulumi:"assumedOfflinePeriodSecs"`
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut pulumi.BoolPtrOutput `pulumi:"blackedOut"`
// If set, artifacts will fail to download if a mismatch is detected between requested and received mimetype, according to
// the list specified in the system properties file under blockedMismatchingMimeTypes. You can override by adding mimetypes
// to the override list 'mismatching_mime_types_override_list'.
BlockMismatchingMimeTypes pulumi.BoolPtrOutput `pulumi:"blockMismatchingMimeTypes"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests pulumi.BoolPtrOutput `pulumi:"bypassHeadRequests"`
// When set, download requests to this repository will redirect the client to download the artifact directly from AWS
// CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
CdnRedirect pulumi.BoolPtrOutput `pulumi:"cdnRedirect"`
// Client TLS certificate name.
ClientTlsCertificate pulumi.StringOutput `pulumi:"clientTlsCertificate"`
ContentSynchronisation RemoteSwiftRepositoryContentSynchronisationOutput `pulumi:"contentSynchronisation"`
// Public description.
Description pulumi.StringPtrOutput `pulumi:"description"`
// When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
// storage provider. Available in Enterprise+ and Edge licenses only. Default value is 'false'.
DownloadDirect pulumi.BoolPtrOutput `pulumi:"downloadDirect"`
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement pulumi.BoolPtrOutput `pulumi:"enableCookieManagement"`
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no
// artifacts are excluded.
ExcludesPattern pulumi.StringPtrOutput `pulumi:"excludesPattern"`
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail pulumi.BoolPtrOutput `pulumi:"hardFail"`
// List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When
// used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern pulumi.StringPtrOutput `pulumi:"includesPattern"`
// A mandatory identifier for the repository that must be unique. It cannot begin with a number or
// contain spaces or special characters.
Key pulumi.StringOutput `pulumi:"key"`
// Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
// the 'Retrieval Cache Period'. Default value is 'true'.
ListRemoteFolderItems pulumi.BoolPtrOutput `pulumi:"listRemoteFolderItems"`
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress pulumi.StringPtrOutput `pulumi:"localAddress"`
// Metadata Retrieval Cache Timeout (Sec) in the UI.This value refers to the number of seconds to wait for retrieval from
// the remote before serving locally cached artifact or fail the request.
MetadataRetrievalTimeoutSecs pulumi.IntPtrOutput `pulumi:"metadataRetrievalTimeoutSecs"`
// The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// 'application/json,application/xml'. Default value is empty.
MismatchingMimeTypesOverrideList pulumi.StringPtrOutput `pulumi:"mismatchingMimeTypesOverrideList"`
// Missed Retrieval Cache Period (Sec) in the UI. The number of seconds to cache artifact retrieval misses (artifact not
// found). A value of 0 indicates no caching.
MissedCachePeriodSeconds pulumi.IntPtrOutput `pulumi:"missedCachePeriodSeconds"`
// Internal description.
Notes pulumi.StringPtrOutput `pulumi:"notes"`
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline pulumi.BoolPtrOutput `pulumi:"offline"`
PackageType pulumi.StringOutput `pulumi:"packageType"`
Password pulumi.StringPtrOutput `pulumi:"password"`
// Setting Priority Resolution takes precedence over the resolution order when resolving virtual repositories. Setting
// repositories with priority will cause metadata to be merged only from repositories set with a priority. If a package is
// not found in those repositories, Artifactory will merge from repositories marked as non-priority.
PriorityResolution pulumi.BoolPtrOutput `pulumi:"priorityResolution"`
// Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before
// Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The
// attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will
// be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
ProjectEnvironments pulumi.StringArrayOutput `pulumi:"projectEnvironments"`
// Project key for assigning this repository to. Must be 2 - 20 lowercase alphanumeric and hyphen characters. When
// assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey pulumi.StringPtrOutput `pulumi:"projectKey"`
// List of property set names
PropertySets pulumi.StringArrayOutput `pulumi:"propertySets"`
// Proxy key from Artifactory Proxies settings
Proxy pulumi.StringPtrOutput `pulumi:"proxy"`
// Custom HTTP query parameters that will be automatically included in all remote resource requests. For example:
// `param1=val1¶m2=val2¶m3=val3`
QueryParams pulumi.StringPtrOutput `pulumi:"queryParams"`
// Repository layout key for the remote layout mapping.
RemoteRepoLayoutRef pulumi.StringPtrOutput `pulumi:"remoteRepoLayoutRef"`
// Repository layout key for the local repository
RepoLayoutRef pulumi.StringPtrOutput `pulumi:"repoLayoutRef"`
// Metadata Retrieval Cache Period (Sec) in the UI. This value refers to the number of seconds to cache metadata files
// before checking for newer versions on remote server. A value of 0 indicates no caching.
RetrievalCachePeriodSeconds pulumi.IntPtrOutput `pulumi:"retrievalCachePeriodSeconds"`
ShareConfiguration pulumi.BoolOutput `pulumi:"shareConfiguration"`
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis pulumi.IntPtrOutput `pulumi:"socketTimeoutMillis"`
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally pulumi.BoolPtrOutput `pulumi:"storeArtifactsLocally"`
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties pulumi.BoolPtrOutput `pulumi:"synchronizeProperties"`
// Unused Artifacts Cleanup Period (Hr) in the UI. The number of hours to wait before an artifact is deemed 'unused' and
// eligible for cleanup from the repository. A value of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours pulumi.IntPtrOutput `pulumi:"unusedArtifactsCleanupPeriodHours"`
// The remote repo URL.
Url pulumi.StringOutput `pulumi:"url"`
Username pulumi.StringPtrOutput `pulumi:"username"`
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex pulumi.BoolPtrOutput `pulumi:"xrayIndex"`
}
// NewRemoteSwiftRepository registers a new resource with the given unique name, arguments, and options.
func NewRemoteSwiftRepository(ctx *pulumi.Context,
name string, args *RemoteSwiftRepositoryArgs, opts ...pulumi.ResourceOption) (*RemoteSwiftRepository, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Key == nil {
return nil, errors.New("invalid value for required argument 'Key'")
}
if args.Url == nil {
return nil, errors.New("invalid value for required argument 'Url'")
}
if args.Password != nil {
args.Password = pulumi.ToSecret(args.Password).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"password",
})
opts = append(opts, secrets)
var resource RemoteSwiftRepository
err := ctx.RegisterResource("artifactory:index/remoteSwiftRepository:RemoteSwiftRepository", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetRemoteSwiftRepository gets an existing RemoteSwiftRepository resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetRemoteSwiftRepository(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *RemoteSwiftRepositoryState, opts ...pulumi.ResourceOption) (*RemoteSwiftRepository, error) {
var resource RemoteSwiftRepository
err := ctx.ReadResource("artifactory:index/remoteSwiftRepository:RemoteSwiftRepository", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering RemoteSwiftRepository resources.
type remoteSwiftRepositoryState struct {
// 'Lenient Host Authentication' in the UI. Allow credentials of this repository to be used on requests redirected to any
// other host.
AllowAnyHostAuth *bool `pulumi:"allowAnyHostAuth"`
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline.
AssumedOfflinePeriodSecs *int `pulumi:"assumedOfflinePeriodSecs"`
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut *bool `pulumi:"blackedOut"`
// If set, artifacts will fail to download if a mismatch is detected between requested and received mimetype, according to
// the list specified in the system properties file under blockedMismatchingMimeTypes. You can override by adding mimetypes
// to the override list 'mismatching_mime_types_override_list'.
BlockMismatchingMimeTypes *bool `pulumi:"blockMismatchingMimeTypes"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests *bool `pulumi:"bypassHeadRequests"`
// When set, download requests to this repository will redirect the client to download the artifact directly from AWS
// CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
CdnRedirect *bool `pulumi:"cdnRedirect"`
// Client TLS certificate name.
ClientTlsCertificate *string `pulumi:"clientTlsCertificate"`
ContentSynchronisation *RemoteSwiftRepositoryContentSynchronisation `pulumi:"contentSynchronisation"`
// Public description.
Description *string `pulumi:"description"`
// When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
// storage provider. Available in Enterprise+ and Edge licenses only. Default value is 'false'.
DownloadDirect *bool `pulumi:"downloadDirect"`
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement *bool `pulumi:"enableCookieManagement"`
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no
// artifacts are excluded.
ExcludesPattern *string `pulumi:"excludesPattern"`
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail *bool `pulumi:"hardFail"`
// List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When
// used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern *string `pulumi:"includesPattern"`
// A mandatory identifier for the repository that must be unique. It cannot begin with a number or
// contain spaces or special characters.
Key *string `pulumi:"key"`
// Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
// the 'Retrieval Cache Period'. Default value is 'true'.
ListRemoteFolderItems *bool `pulumi:"listRemoteFolderItems"`
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress *string `pulumi:"localAddress"`
// Metadata Retrieval Cache Timeout (Sec) in the UI.This value refers to the number of seconds to wait for retrieval from
// the remote before serving locally cached artifact or fail the request.
MetadataRetrievalTimeoutSecs *int `pulumi:"metadataRetrievalTimeoutSecs"`
// The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// 'application/json,application/xml'. Default value is empty.
MismatchingMimeTypesOverrideList *string `pulumi:"mismatchingMimeTypesOverrideList"`
// Missed Retrieval Cache Period (Sec) in the UI. The number of seconds to cache artifact retrieval misses (artifact not
// found). A value of 0 indicates no caching.
MissedCachePeriodSeconds *int `pulumi:"missedCachePeriodSeconds"`
// Internal description.
Notes *string `pulumi:"notes"`
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline *bool `pulumi:"offline"`
PackageType *string `pulumi:"packageType"`
Password *string `pulumi:"password"`
// Setting Priority Resolution takes precedence over the resolution order when resolving virtual repositories. Setting
// repositories with priority will cause metadata to be merged only from repositories set with a priority. If a package is
// not found in those repositories, Artifactory will merge from repositories marked as non-priority.
PriorityResolution *bool `pulumi:"priorityResolution"`
// Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before
// Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The
// attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will
// be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
ProjectEnvironments []string `pulumi:"projectEnvironments"`
// Project key for assigning this repository to. Must be 2 - 20 lowercase alphanumeric and hyphen characters. When
// assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey *string `pulumi:"projectKey"`
// List of property set names
PropertySets []string `pulumi:"propertySets"`
// Proxy key from Artifactory Proxies settings
Proxy *string `pulumi:"proxy"`
// Custom HTTP query parameters that will be automatically included in all remote resource requests. For example:
// `param1=val1¶m2=val2¶m3=val3`
QueryParams *string `pulumi:"queryParams"`
// Repository layout key for the remote layout mapping.
RemoteRepoLayoutRef *string `pulumi:"remoteRepoLayoutRef"`
// Repository layout key for the local repository
RepoLayoutRef *string `pulumi:"repoLayoutRef"`
// Metadata Retrieval Cache Period (Sec) in the UI. This value refers to the number of seconds to cache metadata files
// before checking for newer versions on remote server. A value of 0 indicates no caching.
RetrievalCachePeriodSeconds *int `pulumi:"retrievalCachePeriodSeconds"`
ShareConfiguration *bool `pulumi:"shareConfiguration"`
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis *int `pulumi:"socketTimeoutMillis"`
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally *bool `pulumi:"storeArtifactsLocally"`
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties *bool `pulumi:"synchronizeProperties"`
// Unused Artifacts Cleanup Period (Hr) in the UI. The number of hours to wait before an artifact is deemed 'unused' and
// eligible for cleanup from the repository. A value of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours *int `pulumi:"unusedArtifactsCleanupPeriodHours"`
// The remote repo URL.
Url *string `pulumi:"url"`
Username *string `pulumi:"username"`
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex *bool `pulumi:"xrayIndex"`
}
type RemoteSwiftRepositoryState struct {
// 'Lenient Host Authentication' in the UI. Allow credentials of this repository to be used on requests redirected to any
// other host.
AllowAnyHostAuth pulumi.BoolPtrInput
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline.
AssumedOfflinePeriodSecs pulumi.IntPtrInput
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut pulumi.BoolPtrInput
// If set, artifacts will fail to download if a mismatch is detected between requested and received mimetype, according to
// the list specified in the system properties file under blockedMismatchingMimeTypes. You can override by adding mimetypes
// to the override list 'mismatching_mime_types_override_list'.
BlockMismatchingMimeTypes pulumi.BoolPtrInput
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests pulumi.BoolPtrInput
// When set, download requests to this repository will redirect the client to download the artifact directly from AWS
// CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
CdnRedirect pulumi.BoolPtrInput
// Client TLS certificate name.
ClientTlsCertificate pulumi.StringPtrInput
ContentSynchronisation RemoteSwiftRepositoryContentSynchronisationPtrInput
// Public description.
Description pulumi.StringPtrInput
// When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
// storage provider. Available in Enterprise+ and Edge licenses only. Default value is 'false'.
DownloadDirect pulumi.BoolPtrInput
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement pulumi.BoolPtrInput
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no
// artifacts are excluded.
ExcludesPattern pulumi.StringPtrInput
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail pulumi.BoolPtrInput
// List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When
// used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern pulumi.StringPtrInput
// A mandatory identifier for the repository that must be unique. It cannot begin with a number or
// contain spaces or special characters.
Key pulumi.StringPtrInput
// Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
// the 'Retrieval Cache Period'. Default value is 'true'.
ListRemoteFolderItems pulumi.BoolPtrInput
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress pulumi.StringPtrInput
// Metadata Retrieval Cache Timeout (Sec) in the UI.This value refers to the number of seconds to wait for retrieval from
// the remote before serving locally cached artifact or fail the request.
MetadataRetrievalTimeoutSecs pulumi.IntPtrInput
// The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// 'application/json,application/xml'. Default value is empty.
MismatchingMimeTypesOverrideList pulumi.StringPtrInput
// Missed Retrieval Cache Period (Sec) in the UI. The number of seconds to cache artifact retrieval misses (artifact not
// found). A value of 0 indicates no caching.
MissedCachePeriodSeconds pulumi.IntPtrInput
// Internal description.
Notes pulumi.StringPtrInput
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline pulumi.BoolPtrInput
PackageType pulumi.StringPtrInput
Password pulumi.StringPtrInput
// Setting Priority Resolution takes precedence over the resolution order when resolving virtual repositories. Setting
// repositories with priority will cause metadata to be merged only from repositories set with a priority. If a package is
// not found in those repositories, Artifactory will merge from repositories marked as non-priority.
PriorityResolution pulumi.BoolPtrInput
// Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before
// Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The
// attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will
// be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
ProjectEnvironments pulumi.StringArrayInput
// Project key for assigning this repository to. Must be 2 - 20 lowercase alphanumeric and hyphen characters. When
// assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey pulumi.StringPtrInput
// List of property set names
PropertySets pulumi.StringArrayInput
// Proxy key from Artifactory Proxies settings
Proxy pulumi.StringPtrInput
// Custom HTTP query parameters that will be automatically included in all remote resource requests. For example:
// `param1=val1¶m2=val2¶m3=val3`
QueryParams pulumi.StringPtrInput
// Repository layout key for the remote layout mapping.
RemoteRepoLayoutRef pulumi.StringPtrInput
// Repository layout key for the local repository
RepoLayoutRef pulumi.StringPtrInput
// Metadata Retrieval Cache Period (Sec) in the UI. This value refers to the number of seconds to cache metadata files
// before checking for newer versions on remote server. A value of 0 indicates no caching.
RetrievalCachePeriodSeconds pulumi.IntPtrInput
ShareConfiguration pulumi.BoolPtrInput
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis pulumi.IntPtrInput
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally pulumi.BoolPtrInput
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties pulumi.BoolPtrInput
// Unused Artifacts Cleanup Period (Hr) in the UI. The number of hours to wait before an artifact is deemed 'unused' and
// eligible for cleanup from the repository. A value of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours pulumi.IntPtrInput
// The remote repo URL.
Url pulumi.StringPtrInput
Username pulumi.StringPtrInput
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex pulumi.BoolPtrInput
}
func (RemoteSwiftRepositoryState) ElementType() reflect.Type {
return reflect.TypeOf((*remoteSwiftRepositoryState)(nil)).Elem()
}
type remoteSwiftRepositoryArgs struct {
// 'Lenient Host Authentication' in the UI. Allow credentials of this repository to be used on requests redirected to any
// other host.
AllowAnyHostAuth *bool `pulumi:"allowAnyHostAuth"`
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline.
AssumedOfflinePeriodSecs *int `pulumi:"assumedOfflinePeriodSecs"`
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut *bool `pulumi:"blackedOut"`
// If set, artifacts will fail to download if a mismatch is detected between requested and received mimetype, according to
// the list specified in the system properties file under blockedMismatchingMimeTypes. You can override by adding mimetypes
// to the override list 'mismatching_mime_types_override_list'.
BlockMismatchingMimeTypes *bool `pulumi:"blockMismatchingMimeTypes"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests *bool `pulumi:"bypassHeadRequests"`
// When set, download requests to this repository will redirect the client to download the artifact directly from AWS
// CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
CdnRedirect *bool `pulumi:"cdnRedirect"`
// Client TLS certificate name.
ClientTlsCertificate *string `pulumi:"clientTlsCertificate"`
ContentSynchronisation *RemoteSwiftRepositoryContentSynchronisation `pulumi:"contentSynchronisation"`
// Public description.
Description *string `pulumi:"description"`
// When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
// storage provider. Available in Enterprise+ and Edge licenses only. Default value is 'false'.
DownloadDirect *bool `pulumi:"downloadDirect"`
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement *bool `pulumi:"enableCookieManagement"`
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no
// artifacts are excluded.
ExcludesPattern *string `pulumi:"excludesPattern"`
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail *bool `pulumi:"hardFail"`
// List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When
// used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern *string `pulumi:"includesPattern"`
// A mandatory identifier for the repository that must be unique. It cannot begin with a number or
// contain spaces or special characters.
Key string `pulumi:"key"`
// Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
// the 'Retrieval Cache Period'. Default value is 'true'.
ListRemoteFolderItems *bool `pulumi:"listRemoteFolderItems"`
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress *string `pulumi:"localAddress"`
// Metadata Retrieval Cache Timeout (Sec) in the UI.This value refers to the number of seconds to wait for retrieval from
// the remote before serving locally cached artifact or fail the request.
MetadataRetrievalTimeoutSecs *int `pulumi:"metadataRetrievalTimeoutSecs"`
// The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// 'application/json,application/xml'. Default value is empty.
MismatchingMimeTypesOverrideList *string `pulumi:"mismatchingMimeTypesOverrideList"`
// Missed Retrieval Cache Period (Sec) in the UI. The number of seconds to cache artifact retrieval misses (artifact not
// found). A value of 0 indicates no caching.
MissedCachePeriodSeconds *int `pulumi:"missedCachePeriodSeconds"`
// Internal description.
Notes *string `pulumi:"notes"`
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline *bool `pulumi:"offline"`
Password *string `pulumi:"password"`
// Setting Priority Resolution takes precedence over the resolution order when resolving virtual repositories. Setting
// repositories with priority will cause metadata to be merged only from repositories set with a priority. If a package is
// not found in those repositories, Artifactory will merge from repositories marked as non-priority.
PriorityResolution *bool `pulumi:"priorityResolution"`
// Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before
// Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The
// attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will
// be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
ProjectEnvironments []string `pulumi:"projectEnvironments"`
// Project key for assigning this repository to. Must be 2 - 20 lowercase alphanumeric and hyphen characters. When
// assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey *string `pulumi:"projectKey"`
// List of property set names
PropertySets []string `pulumi:"propertySets"`
// Proxy key from Artifactory Proxies settings
Proxy *string `pulumi:"proxy"`
// Custom HTTP query parameters that will be automatically included in all remote resource requests. For example:
// `param1=val1¶m2=val2¶m3=val3`
QueryParams *string `pulumi:"queryParams"`
// Repository layout key for the remote layout mapping.
RemoteRepoLayoutRef *string `pulumi:"remoteRepoLayoutRef"`
// Repository layout key for the local repository
RepoLayoutRef *string `pulumi:"repoLayoutRef"`
// Metadata Retrieval Cache Period (Sec) in the UI. This value refers to the number of seconds to cache metadata files
// before checking for newer versions on remote server. A value of 0 indicates no caching.
RetrievalCachePeriodSeconds *int `pulumi:"retrievalCachePeriodSeconds"`
ShareConfiguration *bool `pulumi:"shareConfiguration"`
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis *int `pulumi:"socketTimeoutMillis"`
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally *bool `pulumi:"storeArtifactsLocally"`
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties *bool `pulumi:"synchronizeProperties"`
// Unused Artifacts Cleanup Period (Hr) in the UI. The number of hours to wait before an artifact is deemed 'unused' and
// eligible for cleanup from the repository. A value of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours *int `pulumi:"unusedArtifactsCleanupPeriodHours"`
// The remote repo URL.
Url string `pulumi:"url"`
Username *string `pulumi:"username"`
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex *bool `pulumi:"xrayIndex"`
}
// The set of arguments for constructing a RemoteSwiftRepository resource.
type RemoteSwiftRepositoryArgs struct {
// 'Lenient Host Authentication' in the UI. Allow credentials of this repository to be used on requests redirected to any
// other host.
AllowAnyHostAuth pulumi.BoolPtrInput
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline.
AssumedOfflinePeriodSecs pulumi.IntPtrInput
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut pulumi.BoolPtrInput
// If set, artifacts will fail to download if a mismatch is detected between requested and received mimetype, according to
// the list specified in the system properties file under blockedMismatchingMimeTypes. You can override by adding mimetypes
// to the override list 'mismatching_mime_types_override_list'.
BlockMismatchingMimeTypes pulumi.BoolPtrInput
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests pulumi.BoolPtrInput
// When set, download requests to this repository will redirect the client to download the artifact directly from AWS
// CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
CdnRedirect pulumi.BoolPtrInput
// Client TLS certificate name.
ClientTlsCertificate pulumi.StringPtrInput
ContentSynchronisation RemoteSwiftRepositoryContentSynchronisationPtrInput
// Public description.
Description pulumi.StringPtrInput
// When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
// storage provider. Available in Enterprise+ and Edge licenses only. Default value is 'false'.
DownloadDirect pulumi.BoolPtrInput
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement pulumi.BoolPtrInput
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no
// artifacts are excluded.
ExcludesPattern pulumi.StringPtrInput
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail pulumi.BoolPtrInput
// List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When
// used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern pulumi.StringPtrInput
// A mandatory identifier for the repository that must be unique. It cannot begin with a number or
// contain spaces or special characters.
Key pulumi.StringInput
// Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
// the 'Retrieval Cache Period'. Default value is 'true'.
ListRemoteFolderItems pulumi.BoolPtrInput
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress pulumi.StringPtrInput
// Metadata Retrieval Cache Timeout (Sec) in the UI.This value refers to the number of seconds to wait for retrieval from
// the remote before serving locally cached artifact or fail the request.
MetadataRetrievalTimeoutSecs pulumi.IntPtrInput
// The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// 'application/json,application/xml'. Default value is empty.
MismatchingMimeTypesOverrideList pulumi.StringPtrInput
// Missed Retrieval Cache Period (Sec) in the UI. The number of seconds to cache artifact retrieval misses (artifact not
// found). A value of 0 indicates no caching.
MissedCachePeriodSeconds pulumi.IntPtrInput
// Internal description.
Notes pulumi.StringPtrInput
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline pulumi.BoolPtrInput
Password pulumi.StringPtrInput
// Setting Priority Resolution takes precedence over the resolution order when resolving virtual repositories. Setting
// repositories with priority will cause metadata to be merged only from repositories set with a priority. If a package is
// not found in those repositories, Artifactory will merge from repositories marked as non-priority.
PriorityResolution pulumi.BoolPtrInput
// Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before
// Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The
// attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will
// be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
ProjectEnvironments pulumi.StringArrayInput
// Project key for assigning this repository to. Must be 2 - 20 lowercase alphanumeric and hyphen characters. When
// assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey pulumi.StringPtrInput
// List of property set names
PropertySets pulumi.StringArrayInput
// Proxy key from Artifactory Proxies settings
Proxy pulumi.StringPtrInput
// Custom HTTP query parameters that will be automatically included in all remote resource requests. For example:
// `param1=val1¶m2=val2¶m3=val3`
QueryParams pulumi.StringPtrInput
// Repository layout key for the remote layout mapping.
RemoteRepoLayoutRef pulumi.StringPtrInput
// Repository layout key for the local repository
RepoLayoutRef pulumi.StringPtrInput
// Metadata Retrieval Cache Period (Sec) in the UI. This value refers to the number of seconds to cache metadata files
// before checking for newer versions on remote server. A value of 0 indicates no caching.
RetrievalCachePeriodSeconds pulumi.IntPtrInput
ShareConfiguration pulumi.BoolPtrInput
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis pulumi.IntPtrInput
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally pulumi.BoolPtrInput
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties pulumi.BoolPtrInput
// Unused Artifacts Cleanup Period (Hr) in the UI. The number of hours to wait before an artifact is deemed 'unused' and
// eligible for cleanup from the repository. A value of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours pulumi.IntPtrInput
// The remote repo URL.
Url pulumi.StringInput
Username pulumi.StringPtrInput
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex pulumi.BoolPtrInput
}
func (RemoteSwiftRepositoryArgs) ElementType() reflect.Type {
return reflect.TypeOf((*remoteSwiftRepositoryArgs)(nil)).Elem()
}
type RemoteSwiftRepositoryInput interface {
pulumi.Input
ToRemoteSwiftRepositoryOutput() RemoteSwiftRepositoryOutput
ToRemoteSwiftRepositoryOutputWithContext(ctx context.Context) RemoteSwiftRepositoryOutput
}
func (*RemoteSwiftRepository) ElementType() reflect.Type {
return reflect.TypeOf((**RemoteSwiftRepository)(nil)).Elem()
}
func (i *RemoteSwiftRepository) ToRemoteSwiftRepositoryOutput() RemoteSwiftRepositoryOutput {
return i.ToRemoteSwiftRepositoryOutputWithContext(context.Background())
}
func (i *RemoteSwiftRepository) ToRemoteSwiftRepositoryOutputWithContext(ctx context.Context) RemoteSwiftRepositoryOutput {
return pulumi.ToOutputWithContext(ctx, i).(RemoteSwiftRepositoryOutput)
}
// RemoteSwiftRepositoryArrayInput is an input type that accepts RemoteSwiftRepositoryArray and RemoteSwiftRepositoryArrayOutput values.
// You can construct a concrete instance of `RemoteSwiftRepositoryArrayInput` via:
//
// RemoteSwiftRepositoryArray{ RemoteSwiftRepositoryArgs{...} }
type RemoteSwiftRepositoryArrayInput interface {
pulumi.Input
ToRemoteSwiftRepositoryArrayOutput() RemoteSwiftRepositoryArrayOutput
ToRemoteSwiftRepositoryArrayOutputWithContext(context.Context) RemoteSwiftRepositoryArrayOutput
}
type RemoteSwiftRepositoryArray []RemoteSwiftRepositoryInput
func (RemoteSwiftRepositoryArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RemoteSwiftRepository)(nil)).Elem()
}
func (i RemoteSwiftRepositoryArray) ToRemoteSwiftRepositoryArrayOutput() RemoteSwiftRepositoryArrayOutput {
return i.ToRemoteSwiftRepositoryArrayOutputWithContext(context.Background())
}
func (i RemoteSwiftRepositoryArray) ToRemoteSwiftRepositoryArrayOutputWithContext(ctx context.Context) RemoteSwiftRepositoryArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(RemoteSwiftRepositoryArrayOutput)
}
// RemoteSwiftRepositoryMapInput is an input type that accepts RemoteSwiftRepositoryMap and RemoteSwiftRepositoryMapOutput values.
// You can construct a concrete instance of `RemoteSwiftRepositoryMapInput` via:
//
// RemoteSwiftRepositoryMap{ "key": RemoteSwiftRepositoryArgs{...} }
type RemoteSwiftRepositoryMapInput interface {
pulumi.Input
ToRemoteSwiftRepositoryMapOutput() RemoteSwiftRepositoryMapOutput
ToRemoteSwiftRepositoryMapOutputWithContext(context.Context) RemoteSwiftRepositoryMapOutput
}
type RemoteSwiftRepositoryMap map[string]RemoteSwiftRepositoryInput
func (RemoteSwiftRepositoryMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*RemoteSwiftRepository)(nil)).Elem()
}
func (i RemoteSwiftRepositoryMap) ToRemoteSwiftRepositoryMapOutput() RemoteSwiftRepositoryMapOutput {
return i.ToRemoteSwiftRepositoryMapOutputWithContext(context.Background())
}
func (i RemoteSwiftRepositoryMap) ToRemoteSwiftRepositoryMapOutputWithContext(ctx context.Context) RemoteSwiftRepositoryMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(RemoteSwiftRepositoryMapOutput)
}
type RemoteSwiftRepositoryOutput struct{ *pulumi.OutputState }
func (RemoteSwiftRepositoryOutput) ElementType() reflect.Type {
return reflect.TypeOf((**RemoteSwiftRepository)(nil)).Elem()
}
func (o RemoteSwiftRepositoryOutput) ToRemoteSwiftRepositoryOutput() RemoteSwiftRepositoryOutput {
return o
}
func (o RemoteSwiftRepositoryOutput) ToRemoteSwiftRepositoryOutputWithContext(ctx context.Context) RemoteSwiftRepositoryOutput {
return o
}
// 'Lenient Host Authentication' in the UI. Allow credentials of this repository to be used on requests redirected to any
// other host.
func (o RemoteSwiftRepositoryOutput) AllowAnyHostAuth() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.AllowAnyHostAuth }).(pulumi.BoolPtrOutput)
}
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline.
func (o RemoteSwiftRepositoryOutput) AssumedOfflinePeriodSecs() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.IntPtrOutput { return v.AssumedOfflinePeriodSecs }).(pulumi.IntPtrOutput)
}
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
func (o RemoteSwiftRepositoryOutput) BlackedOut() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.BlackedOut }).(pulumi.BoolPtrOutput)
}
// If set, artifacts will fail to download if a mismatch is detected between requested and received mimetype, according to
// the list specified in the system properties file under blockedMismatchingMimeTypes. You can override by adding mimetypes
// to the override list 'mismatching_mime_types_override_list'.
func (o RemoteSwiftRepositoryOutput) BlockMismatchingMimeTypes() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.BlockMismatchingMimeTypes }).(pulumi.BoolPtrOutput)
}
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
func (o RemoteSwiftRepositoryOutput) BypassHeadRequests() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.BypassHeadRequests }).(pulumi.BoolPtrOutput)
}
// When set, download requests to this repository will redirect the client to download the artifact directly from AWS
// CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
func (o RemoteSwiftRepositoryOutput) CdnRedirect() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.CdnRedirect }).(pulumi.BoolPtrOutput)
}
// Client TLS certificate name.
func (o RemoteSwiftRepositoryOutput) ClientTlsCertificate() pulumi.StringOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringOutput { return v.ClientTlsCertificate }).(pulumi.StringOutput)
}
func (o RemoteSwiftRepositoryOutput) ContentSynchronisation() RemoteSwiftRepositoryContentSynchronisationOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) RemoteSwiftRepositoryContentSynchronisationOutput {
return v.ContentSynchronisation
}).(RemoteSwiftRepositoryContentSynchronisationOutput)
}
// Public description.
func (o RemoteSwiftRepositoryOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// When set, download requests to this repository will redirect the client to download the artifact directly from the cloud
// storage provider. Available in Enterprise+ and Edge licenses only. Default value is 'false'.
func (o RemoteSwiftRepositoryOutput) DownloadDirect() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.DownloadDirect }).(pulumi.BoolPtrOutput)
}
// Enables cookie management if the remote repository uses cookies to manage client state.
func (o RemoteSwiftRepositoryOutput) EnableCookieManagement() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.EnableCookieManagement }).(pulumi.BoolPtrOutput)
}
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no
// artifacts are excluded.
func (o RemoteSwiftRepositoryOutput) ExcludesPattern() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.ExcludesPattern }).(pulumi.StringPtrOutput)
}
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
func (o RemoteSwiftRepositoryOutput) HardFail() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.HardFail }).(pulumi.BoolPtrOutput)
}
// List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When
// used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
func (o RemoteSwiftRepositoryOutput) IncludesPattern() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.IncludesPattern }).(pulumi.StringPtrOutput)
}
// A mandatory identifier for the repository that must be unique. It cannot begin with a number or
// contain spaces or special characters.
func (o RemoteSwiftRepositoryOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringOutput { return v.Key }).(pulumi.StringOutput)
}
// Lists the items of remote folders in simple and list browsing. The remote content is cached according to the value of
// the 'Retrieval Cache Period'. Default value is 'true'.
func (o RemoteSwiftRepositoryOutput) ListRemoteFolderItems() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.ListRemoteFolderItems }).(pulumi.BoolPtrOutput)
}
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
func (o RemoteSwiftRepositoryOutput) LocalAddress() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.LocalAddress }).(pulumi.StringPtrOutput)
}
// Metadata Retrieval Cache Timeout (Sec) in the UI.This value refers to the number of seconds to wait for retrieval from
// the remote before serving locally cached artifact or fail the request.
func (o RemoteSwiftRepositoryOutput) MetadataRetrievalTimeoutSecs() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.IntPtrOutput { return v.MetadataRetrievalTimeoutSecs }).(pulumi.IntPtrOutput)
}
// The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// 'application/json,application/xml'. Default value is empty.
func (o RemoteSwiftRepositoryOutput) MismatchingMimeTypesOverrideList() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.MismatchingMimeTypesOverrideList }).(pulumi.StringPtrOutput)
}
// Missed Retrieval Cache Period (Sec) in the UI. The number of seconds to cache artifact retrieval misses (artifact not
// found). A value of 0 indicates no caching.
func (o RemoteSwiftRepositoryOutput) MissedCachePeriodSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.IntPtrOutput { return v.MissedCachePeriodSeconds }).(pulumi.IntPtrOutput)
}
// Internal description.
func (o RemoteSwiftRepositoryOutput) Notes() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.Notes }).(pulumi.StringPtrOutput)
}
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
func (o RemoteSwiftRepositoryOutput) Offline() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.Offline }).(pulumi.BoolPtrOutput)
}
func (o RemoteSwiftRepositoryOutput) PackageType() pulumi.StringOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringOutput { return v.PackageType }).(pulumi.StringOutput)
}
func (o RemoteSwiftRepositoryOutput) Password() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.Password }).(pulumi.StringPtrOutput)
}
// Setting Priority Resolution takes precedence over the resolution order when resolving virtual repositories. Setting
// repositories with priority will cause metadata to be merged only from repositories set with a priority. If a package is
// not found in those repositories, Artifactory will merge from repositories marked as non-priority.
func (o RemoteSwiftRepositoryOutput) PriorityResolution() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.PriorityResolution }).(pulumi.BoolPtrOutput)
}
// Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before
// Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The
// attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will
// be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
func (o RemoteSwiftRepositoryOutput) ProjectEnvironments() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringArrayOutput { return v.ProjectEnvironments }).(pulumi.StringArrayOutput)
}
// Project key for assigning this repository to. Must be 2 - 20 lowercase alphanumeric and hyphen characters. When
// assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
func (o RemoteSwiftRepositoryOutput) ProjectKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.ProjectKey }).(pulumi.StringPtrOutput)
}
// List of property set names
func (o RemoteSwiftRepositoryOutput) PropertySets() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringArrayOutput { return v.PropertySets }).(pulumi.StringArrayOutput)
}
// Proxy key from Artifactory Proxies settings
func (o RemoteSwiftRepositoryOutput) Proxy() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.Proxy }).(pulumi.StringPtrOutput)
}
// Custom HTTP query parameters that will be automatically included in all remote resource requests. For example:
// `param1=val1¶m2=val2¶m3=val3`
func (o RemoteSwiftRepositoryOutput) QueryParams() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.QueryParams }).(pulumi.StringPtrOutput)
}
// Repository layout key for the remote layout mapping.
func (o RemoteSwiftRepositoryOutput) RemoteRepoLayoutRef() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.RemoteRepoLayoutRef }).(pulumi.StringPtrOutput)
}
// Repository layout key for the local repository
func (o RemoteSwiftRepositoryOutput) RepoLayoutRef() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.RepoLayoutRef }).(pulumi.StringPtrOutput)
}
// Metadata Retrieval Cache Period (Sec) in the UI. This value refers to the number of seconds to cache metadata files
// before checking for newer versions on remote server. A value of 0 indicates no caching.
func (o RemoteSwiftRepositoryOutput) RetrievalCachePeriodSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.IntPtrOutput { return v.RetrievalCachePeriodSeconds }).(pulumi.IntPtrOutput)
}
func (o RemoteSwiftRepositoryOutput) ShareConfiguration() pulumi.BoolOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolOutput { return v.ShareConfiguration }).(pulumi.BoolOutput)
}
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
func (o RemoteSwiftRepositoryOutput) SocketTimeoutMillis() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.IntPtrOutput { return v.SocketTimeoutMillis }).(pulumi.IntPtrOutput)
}
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
func (o RemoteSwiftRepositoryOutput) StoreArtifactsLocally() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.StoreArtifactsLocally }).(pulumi.BoolPtrOutput)
}
// When set, remote artifacts are fetched along with their properties.
func (o RemoteSwiftRepositoryOutput) SynchronizeProperties() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.SynchronizeProperties }).(pulumi.BoolPtrOutput)
}
// Unused Artifacts Cleanup Period (Hr) in the UI. The number of hours to wait before an artifact is deemed 'unused' and
// eligible for cleanup from the repository. A value of 0 means automatic cleanup of cached artifacts is disabled.
func (o RemoteSwiftRepositoryOutput) UnusedArtifactsCleanupPeriodHours() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.IntPtrOutput { return v.UnusedArtifactsCleanupPeriodHours }).(pulumi.IntPtrOutput)
}
// The remote repo URL.
func (o RemoteSwiftRepositoryOutput) Url() pulumi.StringOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput)
}
func (o RemoteSwiftRepositoryOutput) Username() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.StringPtrOutput { return v.Username }).(pulumi.StringPtrOutput)
}
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
func (o RemoteSwiftRepositoryOutput) XrayIndex() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RemoteSwiftRepository) pulumi.BoolPtrOutput { return v.XrayIndex }).(pulumi.BoolPtrOutput)
}
type RemoteSwiftRepositoryArrayOutput struct{ *pulumi.OutputState }
func (RemoteSwiftRepositoryArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RemoteSwiftRepository)(nil)).Elem()
}
func (o RemoteSwiftRepositoryArrayOutput) ToRemoteSwiftRepositoryArrayOutput() RemoteSwiftRepositoryArrayOutput {
return o
}
func (o RemoteSwiftRepositoryArrayOutput) ToRemoteSwiftRepositoryArrayOutputWithContext(ctx context.Context) RemoteSwiftRepositoryArrayOutput {
return o
}
func (o RemoteSwiftRepositoryArrayOutput) Index(i pulumi.IntInput) RemoteSwiftRepositoryOutput {