-
Notifications
You must be signed in to change notification settings - Fork 17
/
CodeDeployEcsDeployActionProps.go
130 lines (127 loc) · 6.04 KB
/
CodeDeployEcsDeployActionProps.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
package awscodepipelineactions
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy"
"github.com/aws/aws-cdk-go/awscdk/v2/awscodepipeline"
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
)
// Construction properties of the `CodeDeployEcsDeployAction CodeDeploy ECS deploy CodePipeline Action`.
//
// 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"
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var artifact artifact
// var artifactPath artifactPath
// var ecsDeploymentGroup ecsDeploymentGroup
// var role role
//
// codeDeployEcsDeployActionProps := &CodeDeployEcsDeployActionProps{
// ActionName: jsii.String("actionName"),
// DeploymentGroup: ecsDeploymentGroup,
//
// // the properties below are optional
// AppSpecTemplateFile: artifactPath,
// AppSpecTemplateInput: artifact,
// ContainerImageInputs: []codeDeployEcsContainerImageInput{
// &codeDeployEcsContainerImageInput{
// Input: artifact,
//
// // the properties below are optional
// TaskDefinitionPlaceholder: jsii.String("taskDefinitionPlaceholder"),
// },
// },
// Role: role,
// RunOrder: jsii.Number(123),
// TaskDefinitionTemplateFile: artifactPath,
// TaskDefinitionTemplateInput: artifact,
// VariablesNamespace: jsii.String("variablesNamespace"),
// }
//
type CodeDeployEcsDeployActionProps struct {
// The physical, human-readable name of the Action.
//
// Note that Action names must be unique within a single Stage.
ActionName *string `field:"required" json:"actionName" yaml:"actionName"`
// The runOrder property for this Action.
//
// RunOrder determines the relative order in which multiple Actions in the same Stage execute.
// See: https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html
//
// Default: 1.
//
RunOrder *float64 `field:"optional" json:"runOrder" yaml:"runOrder"`
// The name of the namespace to use for variables emitted by this action.
// Default: - a name will be generated, based on the stage and action names,
// if any of the action's variables were referenced - otherwise,
// no namespace will be set.
//
VariablesNamespace *string `field:"optional" json:"variablesNamespace" yaml:"variablesNamespace"`
// The Role in which context's this Action will be executing in.
//
// The Pipeline's Role will assume this Role
// (the required permissions for that will be granted automatically)
// right before executing this Action.
// This Action will be passed into your `IAction.bind`
// method in the `ActionBindOptions.role` property.
// Default: a new Role will be generated.
//
Role awsiam.IRole `field:"optional" json:"role" yaml:"role"`
// The CodeDeploy ECS Deployment Group to deploy to.
DeploymentGroup awscodedeploy.IEcsDeploymentGroup `field:"required" json:"deploymentGroup" yaml:"deploymentGroup"`
// The name of the CodeDeploy AppSpec file.
//
// During deployment, a new task definition will be registered
// with ECS, and the new task definition ID will be inserted into
// the CodeDeploy AppSpec file. The AppSpec file contents will be
// provided to CodeDeploy for the deployment.
//
// Use this property if you want to use a different name for this file than the default 'appspec.yaml'.
// If you use this property, you don't need to specify the `appSpecTemplateInput` property.
// Default: - one of this property, or `appSpecTemplateInput`, is required.
//
AppSpecTemplateFile awscodepipeline.ArtifactPath `field:"optional" json:"appSpecTemplateFile" yaml:"appSpecTemplateFile"`
// The artifact containing the CodeDeploy AppSpec file.
//
// During deployment, a new task definition will be registered
// with ECS, and the new task definition ID will be inserted into
// the CodeDeploy AppSpec file. The AppSpec file contents will be
// provided to CodeDeploy for the deployment.
//
// If you use this property, it's assumed the file is called 'appspec.yaml'.
// If your AppSpec file uses a different filename, leave this property empty,
// and use the `appSpecTemplateFile` property instead.
// Default: - one of this property, or `appSpecTemplateFile`, is required.
//
AppSpecTemplateInput awscodepipeline.Artifact `field:"optional" json:"appSpecTemplateInput" yaml:"appSpecTemplateInput"`
// Configuration for dynamically updated images in the task definition.
//
// Provide pairs of an image details input artifact and a placeholder string
// that will be used to dynamically update the ECS task definition template
// file prior to deployment. A maximum of 4 images can be given.
ContainerImageInputs *[]*CodeDeployEcsContainerImageInput `field:"optional" json:"containerImageInputs" yaml:"containerImageInputs"`
// The name of the ECS task definition template file.
//
// During deployment, the task definition template file contents
// will be registered with ECS.
//
// Use this property if you want to use a different name for this file than the default 'taskdef.json'.
// If you use this property, you don't need to specify the `taskDefinitionTemplateInput` property.
// Default: - one of this property, or `taskDefinitionTemplateInput`, is required.
//
TaskDefinitionTemplateFile awscodepipeline.ArtifactPath `field:"optional" json:"taskDefinitionTemplateFile" yaml:"taskDefinitionTemplateFile"`
// The artifact containing the ECS task definition template file.
//
// During deployment, the task definition template file contents
// will be registered with ECS.
//
// If you use this property, it's assumed the file is called 'taskdef.json'.
// If your task definition template uses a different filename, leave this property empty,
// and use the `taskDefinitionTemplateFile` property instead.
// Default: - one of this property, or `taskDefinitionTemplateFile`, is required.
//
TaskDefinitionTemplateInput awscodepipeline.Artifact `field:"optional" json:"taskDefinitionTemplateInput" yaml:"taskDefinitionTemplateInput"`
}