Skip to content

Commit 3f1898d

Browse files
Adds a new AccountSetting - defaultLogDriverMode for ECS.
1 parent d0fcd09 commit 3f1898d

14 files changed

+80
-42
lines changed

generator/ServiceModels/ecs/ecs-2014-11-13.api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3562,7 +3562,8 @@
35623562
"fargateFIPSMode",
35633563
"tagResourceAuthorization",
35643564
"fargateTaskRetirementWaitPeriod",
3565-
"guardDutyActivate"
3565+
"guardDutyActivate",
3566+
"defaultLogDriverMode"
35663567
]
35673568
},
35683569
"SettingType":{

generator/ServiceModels/ecs/ecs-2014-11-13.docs.json

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

generator/ServiceModels/ecs/ecs-2014-11-13.normal.json

Lines changed: 6 additions & 5 deletions
Large diffs are not rendered by default.

sdk/src/Services/ECS/Generated/Model/DescribeServiceDeploymentsRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ namespace Amazon.ECS.Model
3636
///
3737
/// <para>
3838
/// A service deployment happens when you release a software update for the service. For
39-
/// more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployments.html">Amazon
40-
/// ECS service deployments</a>.
39+
/// more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html">View
40+
/// service history using Amazon ECS service deployments</a>.
4141
/// </para>
4242
/// </summary>
4343
public partial class DescribeServiceDeploymentsRequest : AmazonECSRequest

sdk/src/Services/ECS/Generated/Model/LogConfiguration.cs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ internal bool IsSetLogDriver()
188188
/// </para>
189189
/// </dd> <dt>awslogs-stream-prefix</dt> <dd>
190190
/// <para>
191-
/// Required: Yes, when using the Fargate launch type.Optional for the EC2 launch type,
192-
/// required for the Fargate launch type.
191+
/// Required: Yes, when using Fargate.Optional when using EC2.
193192
/// </para>
194193
///
195194
/// <para>
@@ -275,7 +274,11 @@ internal bool IsSetLogDriver()
275274
/// Multiline logging performs regular expression parsing and matching of all log messages.
276275
/// This might have a negative impact on logging performance.
277276
/// </para>
278-
/// </note> </dd> <dt>mode</dt> <dd>
277+
/// </note> </dd> </dl>
278+
/// <para>
279+
/// The following options apply to all supported log drivers.
280+
/// </para>
281+
/// <dl> <dt>mode</dt> <dd>
279282
/// <para>
280283
/// Required: No
281284
/// </para>
@@ -285,27 +288,34 @@ internal bool IsSetLogDriver()
285288
/// </para>
286289
///
287290
/// <para>
288-
/// This option defines the delivery mode of log messages from the container to CloudWatch
289-
/// Logs. The delivery mode you choose affects application availability when the flow
290-
/// of logs from container to CloudWatch is interrupted.
291+
/// This option defines the delivery mode of log messages from the container to the log
292+
/// driver specified using <c>logDriver</c>. The delivery mode you choose affects application
293+
/// availability when the flow of logs from container is interrupted.
291294
/// </para>
292295
///
293296
/// <para>
294-
/// If you use the <c>blocking</c> mode and the flow of logs to CloudWatch is interrupted,
295-
/// calls from container code to write to the <c>stdout</c> and <c>stderr</c> streams
296-
/// will block. The logging thread of the application will block as a result. This may
297-
/// cause the application to become unresponsive and lead to container healthcheck failure.
298-
///
297+
/// If you use the <c>blocking</c> mode and the flow of logs is interrupted, calls from
298+
/// container code to write to the <c>stdout</c> and <c>stderr</c> streams will block.
299+
/// The logging thread of the application will block as a result. This may cause the application
300+
/// to become unresponsive and lead to container healthcheck failure.
299301
/// </para>
300302
///
301303
/// <para>
302304
/// If you use the <c>non-blocking</c> mode, the container's logs are instead stored in
303305
/// an in-memory intermediate buffer configured with the <c>max-buffer-size</c> option.
304-
/// This prevents the application from becoming unresponsive when logs cannot be sent
305-
/// to CloudWatch. We recommend using this mode if you want to ensure service availability
306-
/// and are okay with some log loss. For more information, see <a href="http://aws.amazon.com/blogs/containers/preventing-log-loss-with-non-blocking-mode-in-the-awslogs-container-log-driver/">Preventing
306+
/// This prevents the application from becoming unresponsive when logs cannot be sent.
307+
/// We recommend using this mode if you want to ensure service availability and are okay
308+
/// with some log loss. For more information, see <a href="http://aws.amazon.com/blogs/containers/preventing-log-loss-with-non-blocking-mode-in-the-awslogs-container-log-driver/">Preventing
307309
/// log loss with non-blocking mode in the <c>awslogs</c> container log driver</a>.
308310
/// </para>
311+
///
312+
/// <para>
313+
/// You can set a default <c>mode</c> for all containers in a specific Amazon Web Services
314+
/// Region by using the <c>defaultLogDriverMode</c> account setting. If you don't specify
315+
/// the <c>mode</c> option or configure the account setting, Amazon ECS will default to
316+
/// the <c>blocking</c> mode. For more information about the account setting, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#default-log-driver-mode">Default
317+
/// log driver mode</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
318+
/// </para>
309319
/// </dd> <dt>max-buffer-size</dt> <dd>
310320
/// <para>
311321
/// Required: No

sdk/src/Services/ECS/Generated/Model/PutAccountSettingDefaultRequest.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,17 @@ public partial class PutAccountSettingDefaultRequest : AmazonECSRequest
146146
/// </para>
147147
/// </li> <li>
148148
/// <para>
149+
/// <c>defaultLogDriverMode</c> -Amazon ECS supports setting a default delivery mode
150+
/// of log messages from a container to the <c>logDriver</c> that you specify in the container's
151+
/// <c>logConfiguration</c>. The delivery mode affects application stability when the
152+
/// flow of logs from the container to the log driver is interrupted. The <c>defaultLogDriverMode</c>
153+
/// setting supports two values: <c>blocking</c> and <c>non-blocking</c>. If you don't
154+
/// specify a delivery mode in your container definition's <c>logConfiguration</c>, the
155+
/// mode you specify using this account setting will be used as the default. For more
156+
/// information about log delivery modes, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html">LogConfiguration</a>.
157+
/// </para>
158+
/// </li> <li>
159+
/// <para>
149160
/// <c>guardDutyActivate</c> - The <c>guardDutyActivate</c> parameter is read-only in
150161
/// Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is enabled or disabled
151162
/// by your security administrator in your Amazon ECS account. Amazon GuardDuty controls

sdk/src/Services/ECS/Generated/Model/PutAccountSettingRequest.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,17 @@ public partial class PutAccountSettingRequest : AmazonECSRequest
149149
/// </para>
150150
/// </li> <li>
151151
/// <para>
152+
/// <c>defaultLogDriverMode</c> - Amazon ECS supports setting a default delivery mode
153+
/// of log messages from a container to the <c>logDriver</c> that you specify in the container's
154+
/// <c>logConfiguration</c>. The delivery mode affects application stability when the
155+
/// flow of logs from the container to the log driver is interrupted. The <c>defaultLogDriverMode</c>
156+
/// setting supports two values: <c>blocking</c> and <c>non-blocking</c>. If you don't
157+
/// specify a delivery mode in your container definition's <c>logConfiguration</c>, the
158+
/// mode you specify using this account setting will be used as the default. For more
159+
/// information about log delivery modes, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html">LogConfiguration</a>.
160+
/// </para>
161+
/// </li> <li>
162+
/// <para>
152163
/// <c>guardDutyActivate</c> - The <c>guardDutyActivate</c> parameter is read-only in
153164
/// Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is enabled or disabled
154165
/// by your security administrator in your Amazon ECS account. Amazon GuardDuty controls

sdk/src/Services/ECS/Generated/ServiceEnumerations.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,6 +2711,10 @@ public class SettingName : ConstantClass
27112711
/// </summary>
27122712
public static readonly SettingName ContainerInstanceLongArnFormat = new SettingName("containerInstanceLongArnFormat");
27132713
/// <summary>
2714+
/// Constant DefaultLogDriverMode for SettingName
2715+
/// </summary>
2716+
public static readonly SettingName DefaultLogDriverMode = new SettingName("defaultLogDriverMode");
2717+
/// <summary>
27142718
/// Constant FargateFIPSMode for SettingName
27152719
/// </summary>
27162720
public static readonly SettingName FargateFIPSMode = new SettingName("fargateFIPSMode");

sdk/src/Services/ECS/Generated/_bcl35/AmazonECSClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,8 +2056,8 @@ public virtual DescribeContainerInstancesResponse EndDescribeContainerInstances(
20562056
///
20572057
/// <para>
20582058
/// A service deployment happens when you release a software update for the service. For
2059-
/// more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployments.html">Amazon
2060-
/// ECS service deployments</a>.
2059+
/// more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html">View
2060+
/// service history using Amazon ECS service deployments</a>.
20612061
/// </para>
20622062
/// </summary>
20632063
/// <param name="request">Container for the necessary parameters to execute the DescribeServiceDeployments service method.</param>

sdk/src/Services/ECS/Generated/_bcl35/IAmazonECS.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,8 +1614,8 @@ public partial interface IAmazonECS : IAmazonService, IDisposable
16141614
///
16151615
/// <para>
16161616
/// A service deployment happens when you release a software update for the service. For
1617-
/// more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployments.html">Amazon
1618-
/// ECS service deployments</a>.
1617+
/// more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html">View
1618+
/// service history using Amazon ECS service deployments</a>.
16191619
/// </para>
16201620
/// </summary>
16211621
/// <param name="request">Container for the necessary parameters to execute the DescribeServiceDeployments service method.</param>

0 commit comments

Comments
 (0)