-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsec2_InitServiceOptions.go
44 lines (41 loc) · 1.74 KB
/
awsec2_InitServiceOptions.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 awsec2
// Options for an InitService.
//
// Example:
// // Example automatically generated from non-compiling source. May contain errors.
// var myBucket bucket
//
//
// handle := ec2.NewInitServiceRestartHandle()
//
// ec2.cloudFormationInit.fromElements(ec2.initFile.fromString(jsii.String("/etc/nginx/nginx.conf"), jsii.String("..."), &initFileOptions{
// serviceRestartHandles: []initServiceRestartHandle{
// handle,
// },
// }), ec2.initSource.fromS3Object(jsii.String("/var/www/html"), myBucket, jsii.String("html.zip"), &initSourceOptions{
// serviceRestartHandles: []*initServiceRestartHandle{
// handle,
// },
// }), ec2.initService.enable(jsii.String("nginx"), &initServiceOptions{
// serviceRestartHandle: handle,
// }))
//
type InitServiceOptions struct {
// Enable or disable this service.
//
// Set to true to ensure that the service will be started automatically upon boot.
//
// Set to false to ensure that the service will not be started automatically upon boot.
Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"`
// Make sure this service is running or not running after cfn-init finishes.
//
// Set to true to ensure that the service is running after cfn-init finishes.
//
// Set to false to ensure that the service is not running after cfn-init finishes.
EnsureRunning *bool `field:"optional" json:"ensureRunning" yaml:"ensureRunning"`
// Restart service when the actions registered into the restartHandle have been performed.
//
// Register actions into the restartHandle by passing it to `InitFile`, `InitCommand`,
// `InitPackage` and `InitSource` objects.
ServiceRestartHandle InitServiceRestartHandle `field:"optional" json:"serviceRestartHandle" yaml:"serviceRestartHandle"`
}