-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnImageRecipeProps.go
106 lines (103 loc) · 5.2 KB
/
CfnImageRecipeProps.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
package awsimagebuilder
// Properties for defining a `CfnImageRecipe`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cfnImageRecipeProps := &CfnImageRecipeProps{
// Components: []interface{}{
// &ComponentConfigurationProperty{
// ComponentArn: jsii.String("componentArn"),
// Parameters: []interface{}{
// &ComponentParameterProperty{
// Name: jsii.String("name"),
// Value: []*string{
// jsii.String("value"),
// },
// },
// },
// },
// },
// Name: jsii.String("name"),
// ParentImage: jsii.String("parentImage"),
// Version: jsii.String("version"),
//
// // the properties below are optional
// AdditionalInstanceConfiguration: &AdditionalInstanceConfigurationProperty{
// SystemsManagerAgent: &SystemsManagerAgentProperty{
// UninstallAfterBuild: jsii.Boolean(false),
// },
// UserDataOverride: jsii.String("userDataOverride"),
// },
// BlockDeviceMappings: []interface{}{
// &InstanceBlockDeviceMappingProperty{
// DeviceName: jsii.String("deviceName"),
// Ebs: &EbsInstanceBlockDeviceSpecificationProperty{
// DeleteOnTermination: jsii.Boolean(false),
// Encrypted: jsii.Boolean(false),
// Iops: jsii.Number(123),
// KmsKeyId: jsii.String("kmsKeyId"),
// SnapshotId: jsii.String("snapshotId"),
// Throughput: jsii.Number(123),
// VolumeSize: jsii.Number(123),
// VolumeType: jsii.String("volumeType"),
// },
// NoDevice: jsii.String("noDevice"),
// VirtualName: jsii.String("virtualName"),
// },
// },
// Description: jsii.String("description"),
// Tags: map[string]*string{
// "tagsKey": jsii.String("tags"),
// },
// WorkingDirectory: jsii.String("workingDirectory"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html
//
type CfnImageRecipeProps struct {
// The components of the image recipe.
//
// Components are orchestration documents that define a sequence of steps for downloading, installing, configuring, and testing software packages. They also define validation and security hardening steps. A component is defined using a YAML document format.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-components
//
Components interface{} `field:"required" json:"components" yaml:"components"`
// The name of the image recipe.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// The parent image of the image recipe.
//
// The string must be either an Image ARN or an AMI ID.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-parentimage
//
ParentImage *string `field:"required" json:"parentImage" yaml:"parentImage"`
// The semantic version of the image recipe.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-version
//
Version *string `field:"required" json:"version" yaml:"version"`
// Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration.
//
// Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-additionalinstanceconfiguration
//
AdditionalInstanceConfiguration interface{} `field:"optional" json:"additionalInstanceConfiguration" yaml:"additionalInstanceConfiguration"`
// The block device mappings to apply when creating images from this recipe.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-blockdevicemappings
//
BlockDeviceMappings interface{} `field:"optional" json:"blockDeviceMappings" yaml:"blockDeviceMappings"`
// The description of the image recipe.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-description
//
Description *string `field:"optional" json:"description" yaml:"description"`
// The tags of the image recipe.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-tags
//
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// The working directory to be used during build and test workflows.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-workingdirectory
//
WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"`
}