1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package types
4
5import (
6	"time"
7)
8
9type Application struct {
10
11	// The description of the application.
12	Description *string
13
14	// The application ID.
15	Id *string
16
17	// The application name.
18	Name *string
19}
20
21// A summary of a configuration profile.
22type ConfigurationProfileSummary struct {
23
24	// The application ID.
25	ApplicationId *string
26
27	// The ID of the configuration profile.
28	Id *string
29
30	// The URI location of the configuration.
31	LocationUri *string
32
33	// The name of the configuration profile.
34	Name *string
35
36	// The types of validators in the configuration profile.
37	ValidatorTypes []ValidatorType
38}
39
40// An object that describes a deployment event.
41type DeploymentEvent struct {
42
43	// A description of the deployment event. Descriptions include, but are not limited
44	// to, the user account or the CloudWatch alarm ARN that initiated a rollback, the
45	// percentage of hosts that received the deployment, or in the case of an internal
46	// error, a recommendation to attempt a new deployment.
47	Description *string
48
49	// The type of deployment event. Deployment event types include the start, stop, or
50	// completion of a deployment; a percentage update; the start or stop of a bake
51	// period; the start or completion of a rollback.
52	EventType DeploymentEventType
53
54	// The date and time the event occurred.
55	OccurredAt *time.Time
56
57	// The entity that triggered the deployment event. Events can be triggered by a
58	// user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.
59	TriggeredBy TriggeredBy
60}
61
62type DeploymentStrategy struct {
63
64	// Total amount of time the deployment lasted.
65	DeploymentDurationInMinutes int32
66
67	// The description of the deployment strategy.
68	Description *string
69
70	// The amount of time AppConfig monitored for alarms before considering the
71	// deployment to be complete and no longer eligible for automatic roll back.
72	FinalBakeTimeInMinutes int32
73
74	// The percentage of targets that received a deployed configuration during each
75	// interval.
76	GrowthFactor float32
77
78	// The algorithm used to define how percentage grew over time.
79	GrowthType GrowthType
80
81	// The deployment strategy ID.
82	Id *string
83
84	// The name of the deployment strategy.
85	Name *string
86
87	// Save the deployment strategy to a Systems Manager (SSM) document.
88	ReplicateTo ReplicateTo
89}
90
91// Information about the deployment.
92type DeploymentSummary struct {
93
94	// Time the deployment completed.
95	CompletedAt *time.Time
96
97	// The name of the configuration.
98	ConfigurationName *string
99
100	// The version of the configuration.
101	ConfigurationVersion *string
102
103	// Total amount of time the deployment lasted.
104	DeploymentDurationInMinutes int32
105
106	// The sequence number of the deployment.
107	DeploymentNumber int32
108
109	// The amount of time AppConfig monitors for alarms before considering the
110	// deployment to be complete and no longer eligible for automatic roll back.
111	FinalBakeTimeInMinutes int32
112
113	// The percentage of targets to receive a deployed configuration during each
114	// interval.
115	GrowthFactor float32
116
117	// The algorithm used to define how percentage grows over time.
118	GrowthType GrowthType
119
120	// The percentage of targets for which the deployment is available.
121	PercentageComplete float32
122
123	// Time the deployment started.
124	StartedAt *time.Time
125
126	// The state of the deployment.
127	State DeploymentState
128}
129
130type Environment struct {
131
132	// The application ID.
133	ApplicationId *string
134
135	// The description of the environment.
136	Description *string
137
138	// The environment ID.
139	Id *string
140
141	// Amazon CloudWatch alarms monitored during the deployment.
142	Monitors []Monitor
143
144	// The name of the environment.
145	Name *string
146
147	// The state of the environment. An environment can be in one of the following
148	// states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
149	State EnvironmentState
150}
151
152// Information about the configuration.
153type HostedConfigurationVersionSummary struct {
154
155	// The application ID.
156	ApplicationId *string
157
158	// The configuration profile ID.
159	ConfigurationProfileId *string
160
161	// A standard MIME type describing the format of the configuration content. For
162	// more information, see Content-Type
163	// (https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
164	ContentType *string
165
166	// A description of the configuration.
167	Description *string
168
169	// The configuration version.
170	VersionNumber int32
171}
172
173// Amazon CloudWatch alarms to monitor during the deployment process.
174type Monitor struct {
175
176	// ARN of the Amazon CloudWatch alarm.
177	AlarmArn *string
178
179	// ARN of an IAM role for AppConfig to monitor AlarmArn.
180	AlarmRoleArn *string
181}
182
183// A validator provides a syntactic or semantic check to ensure the configuration
184// you want to deploy functions as intended. To validate your application
185// configuration data, you provide a schema or a Lambda function that runs against
186// the configuration. The configuration deployment or update can only proceed when
187// the configuration data is valid.
188type Validator struct {
189
190	// Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
191	// Lambda function.
192	//
193	// This member is required.
194	Content *string
195
196	// AppConfig supports validators of type JSON_SCHEMA and LAMBDA
197	//
198	// This member is required.
199	Type ValidatorType
200}
201