/
cloudassemblyschema.go
816 lines (747 loc) · 25.1 KB
/
cloudassemblyschema.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
package cloudassemblyschema
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// Query to AMI context provider.
// Experimental.
type AmiContextQuery struct {
// Account to query.
// Experimental.
Account *string `json:"account"`
// Filters to DescribeImages call.
// Experimental.
Filters *map[string]*[]*string `json:"filters"`
// Region to query.
// Experimental.
Region *string `json:"region"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
// Owners to DescribeImages call.
// Experimental.
Owners *[]*string `json:"owners"`
}
// A manifest for a single artifact within the cloud assembly.
// Experimental.
type ArtifactManifest struct {
// The type of artifact.
// Experimental.
Type ArtifactType `json:"type"`
// IDs of artifacts that must be deployed before this artifact.
// Experimental.
Dependencies *[]*string `json:"dependencies"`
// A string that represents this artifact.
//
// Should only be used in user interfaces.
// Experimental.
DisplayName *string `json:"displayName"`
// The environment into which this artifact is deployed.
// Experimental.
Environment *string `json:"environment"`
// Associated metadata.
// Experimental.
Metadata *map[string]*[]*MetadataEntry `json:"metadata"`
// The set of properties for this artifact (depends on type).
// Experimental.
Properties interface{} `json:"properties"`
}
// Type of artifact metadata entry.
// Experimental.
type ArtifactMetadataEntryType string
const (
ArtifactMetadataEntryType_ASSET ArtifactMetadataEntryType = "ASSET"
ArtifactMetadataEntryType_INFO ArtifactMetadataEntryType = "INFO"
ArtifactMetadataEntryType_WARN ArtifactMetadataEntryType = "WARN"
ArtifactMetadataEntryType_ERROR ArtifactMetadataEntryType = "ERROR"
ArtifactMetadataEntryType_LOGICAL_ID ArtifactMetadataEntryType = "LOGICAL_ID"
ArtifactMetadataEntryType_STACK_TAGS ArtifactMetadataEntryType = "STACK_TAGS"
)
// Type of cloud artifact.
// Experimental.
type ArtifactType string
const (
ArtifactType_NONE ArtifactType = "NONE"
ArtifactType_AWS_CLOUDFORMATION_STACK ArtifactType = "AWS_CLOUDFORMATION_STACK"
ArtifactType_CDK_TREE ArtifactType = "CDK_TREE"
ArtifactType_ASSET_MANIFEST ArtifactType = "ASSET_MANIFEST"
ArtifactType_NESTED_CLOUD_ASSEMBLY ArtifactType = "NESTED_CLOUD_ASSEMBLY"
)
// A manifest which describes the cloud assembly.
// Experimental.
type AssemblyManifest struct {
// Protocol version.
// Experimental.
Version *string `json:"version"`
// The set of artifacts in this assembly.
// Experimental.
Artifacts *map[string]*ArtifactManifest `json:"artifacts"`
// Missing context information.
//
// If this field has values, it means that the
// cloud assembly is not complete and should not be deployed.
// Experimental.
Missing *[]*MissingContext `json:"missing"`
// Runtime information.
// Experimental.
Runtime *RuntimeInfo `json:"runtime"`
}
// Definitions for the asset manifest.
// Experimental.
type AssetManifest struct {
// Version of the manifest.
// Experimental.
Version *string `json:"version"`
// The Docker image assets in this manifest.
// Experimental.
DockerImages *map[string]*DockerImageAsset `json:"dockerImages"`
// The file assets in this manifest.
// Experimental.
Files *map[string]*FileAsset `json:"files"`
}
// Artifact properties for the Asset Manifest.
// Experimental.
type AssetManifestProperties struct {
// Filename of the asset manifest.
// Experimental.
File *string `json:"file"`
// SSM parameter where the bootstrap stack version number can be found.
//
// - If this value is not set, the bootstrap stack name must be known at
// deployment time so the stack version can be looked up from the stack
// outputs.
// - If this value is set, the bootstrap stack can have any name because
// we won't need to look it up.
// Experimental.
BootstrapStackVersionSsmParameter *string `json:"bootstrapStackVersionSsmParameter"`
// Version of bootstrap stack required to deploy this stack.
// Experimental.
RequiresBootstrapStackVersion *float64 `json:"requiresBootstrapStackVersion"`
}
// Query to availability zone context provider.
// Experimental.
type AvailabilityZonesContextQuery struct {
// Query account.
// Experimental.
Account *string `json:"account"`
// Query region.
// Experimental.
Region *string `json:"region"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
}
// Artifact properties for CloudFormation stacks.
// Experimental.
type AwsCloudFormationStackProperties struct {
// A file relative to the assembly root which contains the CloudFormation template for this stack.
// Experimental.
TemplateFile *string `json:"templateFile"`
// The role that needs to be assumed to deploy the stack.
// Experimental.
AssumeRoleArn *string `json:"assumeRoleArn"`
// External ID to use when assuming role for cloudformation deployments.
// Experimental.
AssumeRoleExternalId *string `json:"assumeRoleExternalId"`
// SSM parameter where the bootstrap stack version number can be found.
//
// Only used if `requiresBootstrapStackVersion` is set.
//
// - If this value is not set, the bootstrap stack name must be known at
// deployment time so the stack version can be looked up from the stack
// outputs.
// - If this value is set, the bootstrap stack can have any name because
// we won't need to look it up.
// Experimental.
BootstrapStackVersionSsmParameter *string `json:"bootstrapStackVersionSsmParameter"`
// The role that is passed to CloudFormation to execute the change set.
// Experimental.
CloudFormationExecutionRoleArn *string `json:"cloudFormationExecutionRoleArn"`
// Values for CloudFormation stack parameters that should be passed when the stack is deployed.
// Experimental.
Parameters *map[string]*string `json:"parameters"`
// Version of bootstrap stack required to deploy this stack.
// Experimental.
RequiresBootstrapStackVersion *float64 `json:"requiresBootstrapStackVersion"`
// The name to use for the CloudFormation stack.
// Experimental.
StackName *string `json:"stackName"`
// If the stack template has already been included in the asset manifest, its asset URL.
// Experimental.
StackTemplateAssetObjectUrl *string `json:"stackTemplateAssetObjectUrl"`
// Values for CloudFormation stack tags that should be passed when the stack is deployed.
// Experimental.
Tags *map[string]*string `json:"tags"`
// Whether to enable termination protection for this stack.
// Experimental.
TerminationProtection *bool `json:"terminationProtection"`
// Whether this stack should be validated by the CLI after synthesis.
// Experimental.
ValidateOnSynth *bool `json:"validateOnSynth"`
}
// Destination for assets that need to be uploaded to AWS.
// Experimental.
type AwsDestination struct {
// The role that needs to be assumed while publishing this asset.
// Experimental.
AssumeRoleArn *string `json:"assumeRoleArn"`
// The ExternalId that needs to be supplied while assuming this role.
// Experimental.
AssumeRoleExternalId *string `json:"assumeRoleExternalId"`
// The region where this asset will need to be published.
// Experimental.
Region *string `json:"region"`
}
// Metadata Entry spec for container images.
// Experimental.
type ContainerImageAssetMetadataEntry struct {
// Logical identifier for the asset.
// Experimental.
Id *string `json:"id"`
// Type of asset.
// Experimental.
Packaging *string `json:"packaging"`
// Path on disk to the asset.
// Experimental.
Path *string `json:"path"`
// The hash of the asset source.
// Experimental.
SourceHash *string `json:"sourceHash"`
// Build args to pass to the `docker build` command.
// Experimental.
BuildArgs *map[string]*string `json:"buildArgs"`
// Path to the Dockerfile (relative to the directory).
// Experimental.
File *string `json:"file"`
// ECR Repository name and repo digest (separated by "@sha256:") where this image is stored.
// Deprecated: specify `repositoryName` and `imageTag` instead, and then you
// know where the image will go.
ImageNameParameter *string `json:"imageNameParameter"`
// The docker image tag to use for tagging pushed images.
//
// This field is
// required if `imageParameterName` is ommited (otherwise, the app won't be
// able to find the image).
// Experimental.
ImageTag *string `json:"imageTag"`
// ECR repository name, if omitted a default name based on the asset's ID is used instead.
//
// Specify this property if you need to statically address the
// image, e.g. from a Kubernetes Pod. Note, this is only the repository name,
// without the registry and the tag parts.
// Experimental.
RepositoryName *string `json:"repositoryName"`
// Docker target to build to.
// Experimental.
Target *string `json:"target"`
}
// Identifier for the context provider.
// Experimental.
type ContextProvider string
const (
ContextProvider_AMI_PROVIDER ContextProvider = "AMI_PROVIDER"
ContextProvider_AVAILABILITY_ZONE_PROVIDER ContextProvider = "AVAILABILITY_ZONE_PROVIDER"
ContextProvider_HOSTED_ZONE_PROVIDER ContextProvider = "HOSTED_ZONE_PROVIDER"
ContextProvider_SSM_PARAMETER_PROVIDER ContextProvider = "SSM_PARAMETER_PROVIDER"
ContextProvider_VPC_PROVIDER ContextProvider = "VPC_PROVIDER"
ContextProvider_ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER ContextProvider = "ENDPOINT_SERVICE_AVAILABILITY_ZONE_PROVIDER"
ContextProvider_LOAD_BALANCER_PROVIDER ContextProvider = "LOAD_BALANCER_PROVIDER"
ContextProvider_LOAD_BALANCER_LISTENER_PROVIDER ContextProvider = "LOAD_BALANCER_LISTENER_PROVIDER"
ContextProvider_SECURITY_GROUP_PROVIDER ContextProvider = "SECURITY_GROUP_PROVIDER"
ContextProvider_KEY_PROVIDER ContextProvider = "KEY_PROVIDER"
)
// A file asset.
// Experimental.
type DockerImageAsset struct {
// Destinations for this file asset.
// Experimental.
Destinations *map[string]*DockerImageDestination `json:"destinations"`
// Source description for file assets.
// Experimental.
Source *DockerImageSource `json:"source"`
}
// Where to publish docker images.
// Experimental.
type DockerImageDestination struct {
// The role that needs to be assumed while publishing this asset.
// Experimental.
AssumeRoleArn *string `json:"assumeRoleArn"`
// The ExternalId that needs to be supplied while assuming this role.
// Experimental.
AssumeRoleExternalId *string `json:"assumeRoleExternalId"`
// The region where this asset will need to be published.
// Experimental.
Region *string `json:"region"`
// Tag of the image to publish.
// Experimental.
ImageTag *string `json:"imageTag"`
// Name of the ECR repository to publish to.
// Experimental.
RepositoryName *string `json:"repositoryName"`
}
// Properties for how to produce a Docker image from a source.
// Experimental.
type DockerImageSource struct {
// The directory containing the Docker image build instructions.
//
// This path is relative to the asset manifest location.
// Experimental.
Directory *string `json:"directory"`
// Additional build arguments.
//
// Only allowed when `directory` is set.
// Experimental.
DockerBuildArgs *map[string]*string `json:"dockerBuildArgs"`
// Target build stage in a Dockerfile with multiple build stages.
//
// Only allowed when `directory` is set.
// Experimental.
DockerBuildTarget *string `json:"dockerBuildTarget"`
// The name of the file with build instructions.
//
// Only allowed when `directory` is set.
// Experimental.
DockerFile *string `json:"dockerFile"`
// A command-line executable that returns the name of a local Docker image on stdout after being run.
// Experimental.
Executable *[]*string `json:"executable"`
}
// Query to endpoint service context provider.
// Experimental.
type EndpointServiceAvailabilityZonesContextQuery struct {
// Query account.
// Experimental.
Account *string `json:"account"`
// Query region.
// Experimental.
Region *string `json:"region"`
// Query service name.
// Experimental.
ServiceName *string `json:"serviceName"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
}
// A file asset.
// Experimental.
type FileAsset struct {
// Destinations for this file asset.
// Experimental.
Destinations *map[string]*FileDestination `json:"destinations"`
// Source description for file assets.
// Experimental.
Source *FileSource `json:"source"`
}
// Metadata Entry spec for files.
// Experimental.
type FileAssetMetadataEntry struct {
// The name of the parameter where the hash of the bundled asset should be passed in.
// Experimental.
ArtifactHashParameter *string `json:"artifactHashParameter"`
// Logical identifier for the asset.
// Experimental.
Id *string `json:"id"`
// Requested packaging style.
// Experimental.
Packaging *string `json:"packaging"`
// Path on disk to the asset.
// Experimental.
Path *string `json:"path"`
// Name of parameter where S3 bucket should be passed in.
// Experimental.
S3BucketParameter *string `json:"s3BucketParameter"`
// Name of parameter where S3 key should be passed in.
// Experimental.
S3KeyParameter *string `json:"s3KeyParameter"`
// The hash of the asset source.
// Experimental.
SourceHash *string `json:"sourceHash"`
}
// Packaging strategy for file assets.
// Experimental.
type FileAssetPackaging string
const (
FileAssetPackaging_FILE FileAssetPackaging = "FILE"
FileAssetPackaging_ZIP_DIRECTORY FileAssetPackaging = "ZIP_DIRECTORY"
)
// Where in S3 a file asset needs to be published.
// Experimental.
type FileDestination struct {
// The role that needs to be assumed while publishing this asset.
// Experimental.
AssumeRoleArn *string `json:"assumeRoleArn"`
// The ExternalId that needs to be supplied while assuming this role.
// Experimental.
AssumeRoleExternalId *string `json:"assumeRoleExternalId"`
// The region where this asset will need to be published.
// Experimental.
Region *string `json:"region"`
// The name of the bucket.
// Experimental.
BucketName *string `json:"bucketName"`
// The destination object key.
// Experimental.
ObjectKey *string `json:"objectKey"`
}
// Describe the source of a file asset.
// Experimental.
type FileSource struct {
// External command which will produce the file asset to upload.
// Experimental.
Executable *[]*string `json:"executable"`
// Packaging method.
//
// Only allowed when `path` is specified.
// Experimental.
Packaging FileAssetPackaging `json:"packaging"`
// The filesystem object to upload.
//
// This path is relative to the asset manifest location.
// Experimental.
Path *string `json:"path"`
}
// Query to hosted zone context provider.
// Experimental.
type HostedZoneContextQuery struct {
// Query account.
// Experimental.
Account *string `json:"account"`
// The domain name e.g. example.com to lookup.
// Experimental.
DomainName *string `json:"domainName"`
// Query region.
// Experimental.
Region *string `json:"region"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
// True if the zone you want to find is a private hosted zone.
// Experimental.
PrivateZone *bool `json:"privateZone"`
// The VPC ID to that the private zone must be associated with.
//
// If you provide VPC ID and privateZone is false, this will return no results
// and raise an error.
// Experimental.
VpcId *string `json:"vpcId"`
}
// Query input for looking up a KMS Key.
// Experimental.
type KeyContextQuery struct {
// Query account.
// Experimental.
Account *string `json:"account"`
// Alias name used to search the Key.
// Experimental.
AliasName *string `json:"aliasName"`
// Query region.
// Experimental.
Region *string `json:"region"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
}
// Query input for looking up a load balancer.
// Experimental.
type LoadBalancerContextQuery struct {
// Filter load balancers by their type.
// Experimental.
LoadBalancerType LoadBalancerType `json:"loadBalancerType"`
// Find by load balancer's ARN.
// Experimental.
LoadBalancerArn *string `json:"loadBalancerArn"`
// Match load balancer tags.
// Experimental.
LoadBalancerTags *[]*Tag `json:"loadBalancerTags"`
// Query account.
// Experimental.
Account *string `json:"account"`
// Query region.
// Experimental.
Region *string `json:"region"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
}
// Filters for selecting load balancers.
// Experimental.
type LoadBalancerFilter struct {
// Filter load balancers by their type.
// Experimental.
LoadBalancerType LoadBalancerType `json:"loadBalancerType"`
// Find by load balancer's ARN.
// Experimental.
LoadBalancerArn *string `json:"loadBalancerArn"`
// Match load balancer tags.
// Experimental.
LoadBalancerTags *[]*Tag `json:"loadBalancerTags"`
}
// Query input for looking up a load balancer listener.
// Experimental.
type LoadBalancerListenerContextQuery struct {
// Filter load balancers by their type.
// Experimental.
LoadBalancerType LoadBalancerType `json:"loadBalancerType"`
// Find by load balancer's ARN.
// Experimental.
LoadBalancerArn *string `json:"loadBalancerArn"`
// Match load balancer tags.
// Experimental.
LoadBalancerTags *[]*Tag `json:"loadBalancerTags"`
// Query account.
// Experimental.
Account *string `json:"account"`
// Query region.
// Experimental.
Region *string `json:"region"`
// Find by listener's arn.
// Experimental.
ListenerArn *string `json:"listenerArn"`
// Filter listeners by listener port.
// Experimental.
ListenerPort *float64 `json:"listenerPort"`
// Filter by listener protocol.
// Experimental.
ListenerProtocol LoadBalancerListenerProtocol `json:"listenerProtocol"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
}
// The protocol for connections from clients to the load balancer.
// Experimental.
type LoadBalancerListenerProtocol string
const (
LoadBalancerListenerProtocol_HTTP LoadBalancerListenerProtocol = "HTTP"
LoadBalancerListenerProtocol_HTTPS LoadBalancerListenerProtocol = "HTTPS"
LoadBalancerListenerProtocol_TCP LoadBalancerListenerProtocol = "TCP"
LoadBalancerListenerProtocol_TLS LoadBalancerListenerProtocol = "TLS"
LoadBalancerListenerProtocol_UDP LoadBalancerListenerProtocol = "UDP"
LoadBalancerListenerProtocol_TCP_UDP LoadBalancerListenerProtocol = "TCP_UDP"
)
// Type of load balancer.
// Experimental.
type LoadBalancerType string
const (
LoadBalancerType_NETWORK LoadBalancerType = "NETWORK"
LoadBalancerType_APPLICATION LoadBalancerType = "APPLICATION"
)
// Protocol utility class.
// Experimental.
type Manifest interface {
}
// The jsii proxy struct for Manifest
type jsiiProxy_Manifest struct {
_ byte // padding
}
// Deprecated.
// Deprecated: use `loadAssemblyManifest()`
func Manifest_Load(filePath *string) *AssemblyManifest {
_init_.Initialize()
var returns *AssemblyManifest
_jsii_.StaticInvoke(
"monocdk.cloud_assembly_schema.Manifest",
"load",
[]interface{}{filePath},
&returns,
)
return returns
}
// Load and validates the cloud assembly manifest from file.
// Experimental.
func Manifest_LoadAssemblyManifest(filePath *string) *AssemblyManifest {
_init_.Initialize()
var returns *AssemblyManifest
_jsii_.StaticInvoke(
"monocdk.cloud_assembly_schema.Manifest",
"loadAssemblyManifest",
[]interface{}{filePath},
&returns,
)
return returns
}
// Load and validates the asset manifest from file.
// Experimental.
func Manifest_LoadAssetManifest(filePath *string) *AssetManifest {
_init_.Initialize()
var returns *AssetManifest
_jsii_.StaticInvoke(
"monocdk.cloud_assembly_schema.Manifest",
"loadAssetManifest",
[]interface{}{filePath},
&returns,
)
return returns
}
// Deprecated.
// Deprecated: use `saveAssemblyManifest()`
func Manifest_Save(manifest *AssemblyManifest, filePath *string) {
_init_.Initialize()
_jsii_.StaticInvokeVoid(
"monocdk.cloud_assembly_schema.Manifest",
"save",
[]interface{}{manifest, filePath},
)
}
// Validates and saves the cloud assembly manifest to file.
// Experimental.
func Manifest_SaveAssemblyManifest(manifest *AssemblyManifest, filePath *string) {
_init_.Initialize()
_jsii_.StaticInvokeVoid(
"monocdk.cloud_assembly_schema.Manifest",
"saveAssemblyManifest",
[]interface{}{manifest, filePath},
)
}
// Validates and saves the asset manifest to file.
// Experimental.
func Manifest_SaveAssetManifest(manifest *AssetManifest, filePath *string) {
_init_.Initialize()
_jsii_.StaticInvokeVoid(
"monocdk.cloud_assembly_schema.Manifest",
"saveAssetManifest",
[]interface{}{manifest, filePath},
)
}
// Fetch the current schema version number.
// Experimental.
func Manifest_Version() *string {
_init_.Initialize()
var returns *string
_jsii_.StaticInvoke(
"monocdk.cloud_assembly_schema.Manifest",
"version",
nil, // no parameters
&returns,
)
return returns
}
// A metadata entry in a cloud assembly artifact.
// Experimental.
type MetadataEntry struct {
// The type of the metadata entry.
// Experimental.
Type *string `json:"type"`
// The data.
// Experimental.
Data interface{} `json:"data"`
// A stack trace for when the entry was created.
// Experimental.
Trace *[]*string `json:"trace"`
}
// Represents a missing piece of context.
// Experimental.
type MissingContext struct {
// The missing context key.
// Experimental.
Key *string `json:"key"`
// A set of provider-specific options.
// Experimental.
Props interface{} `json:"props"`
// The provider from which we expect this context key to be obtained.
// Experimental.
Provider ContextProvider `json:"provider"`
}
// Artifact properties for nested cloud assemblies.
// Experimental.
type NestedCloudAssemblyProperties struct {
// Relative path to the nested cloud assembly.
// Experimental.
DirectoryName *string `json:"directoryName"`
// Display name for the cloud assembly.
// Experimental.
DisplayName *string `json:"displayName"`
}
// Information about the application's runtime components.
// Experimental.
type RuntimeInfo struct {
// The list of libraries loaded in the application, associated with their versions.
// Experimental.
Libraries *map[string]*string `json:"libraries"`
}
// Query to SSM Parameter Context Provider.
// Experimental.
type SSMParameterContextQuery struct {
// Query account.
// Experimental.
Account *string `json:"account"`
// Parameter name to query.
// Experimental.
ParameterName *string `json:"parameterName"`
// Query region.
// Experimental.
Region *string `json:"region"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
}
// Query input for looking up a security group.
// Experimental.
type SecurityGroupContextQuery struct {
// Query account.
// Experimental.
Account *string `json:"account"`
// Query region.
// Experimental.
Region *string `json:"region"`
// Security group id.
// Experimental.
SecurityGroupId *string `json:"securityGroupId"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
}
// Metadata Entry spec for stack tag.
// Experimental.
type Tag struct {
// Tag key.
//
// (In the actual file on disk this will be cased as "Key", and the structure is
// patched to match this structure upon loading:
// https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)
// Experimental.
Key *string `json:"key"`
// Tag value.
//
// (In the actual file on disk this will be cased as "Value", and the structure is
// patched to match this structure upon loading:
// https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)
// Experimental.
Value *string `json:"value"`
}
// Artifact properties for the Construct Tree Artifact.
// Experimental.
type TreeArtifactProperties struct {
// Filename of the tree artifact.
// Experimental.
File *string `json:"file"`
}
// Query input for looking up a VPC.
// Experimental.
type VpcContextQuery struct {
// Query account.
// Experimental.
Account *string `json:"account"`
// Filters to apply to the VPC.
//
// Filter parameters are the same as passed to DescribeVpcs.
// See: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html
//
// Experimental.
Filter *map[string]*string `json:"filter"`
// Query region.
// Experimental.
Region *string `json:"region"`
// The ARN of the role that should be used to look up the missing values.
// Experimental.
LookupRoleArn *string `json:"lookupRoleArn"`
// Whether to populate the subnetGroups field of the {@link VpcContextResponse}, which contains potentially asymmetric subnet groups.
// Experimental.
ReturnAsymmetricSubnets *bool `json:"returnAsymmetricSubnets"`
// Optional tag for subnet group name.
//
// If not provided, we'll look at the aws-cdk:subnet-name tag.
// If the subnet does not have the specified tag,
// we'll use its type as the name.
// Experimental.
SubnetGroupNameTag *string `json:"subnetGroupNameTag"`
}