-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnDeployment_DeploymentPoliciesProperty.go
44 lines (41 loc) · 2.36 KB
/
CfnDeployment_DeploymentPoliciesProperty.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
package awsgreengrassv2
// Contains information about policies that define how a deployment updates components and handles failure.
//
// 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"
//
// deploymentPoliciesProperty := &DeploymentPoliciesProperty{
// ComponentUpdatePolicy: &DeploymentComponentUpdatePolicyProperty{
// Action: jsii.String("action"),
// TimeoutInSeconds: jsii.Number(123),
// },
// ConfigurationValidationPolicy: &DeploymentConfigurationValidationPolicyProperty{
// TimeoutInSeconds: jsii.Number(123),
// },
// FailureHandlingPolicy: jsii.String("failureHandlingPolicy"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-deploymentpolicies.html
//
type CfnDeployment_DeploymentPoliciesProperty struct {
// The component update policy for the configuration deployment.
//
// This policy defines when it's safe to deploy the configuration to devices.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-deploymentpolicies.html#cfn-greengrassv2-deployment-deploymentpolicies-componentupdatepolicy
//
ComponentUpdatePolicy interface{} `field:"optional" json:"componentUpdatePolicy" yaml:"componentUpdatePolicy"`
// The configuration validation policy for the configuration deployment.
//
// This policy defines how long each component has to validate its configure updates.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-deploymentpolicies.html#cfn-greengrassv2-deployment-deploymentpolicies-configurationvalidationpolicy
//
ConfigurationValidationPolicy interface{} `field:"optional" json:"configurationValidationPolicy" yaml:"configurationValidationPolicy"`
// The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.
//
// Default: `ROLLBACK`.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-deployment-deploymentpolicies.html#cfn-greengrassv2-deployment-deploymentpolicies-failurehandlingpolicy
//
FailureHandlingPolicy *string `field:"optional" json:"failureHandlingPolicy" yaml:"failureHandlingPolicy"`
}