Class CfnCluster.ExecuteCommandLogConfigurationProperty
The log configuration for the results of the execute command actions.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCluster.ExecuteCommandLogConfigurationProperty : CfnCluster.IExecuteCommandLogConfigurationProperty
Syntax (vb)
Public Class CfnCluster.ExecuteCommandLogConfigurationProperty Implements CfnCluster.IExecuteCommandLogConfigurationProperty
Remarks
The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var executeCommandLogConfigurationProperty = new ExecuteCommandLogConfigurationProperty {
CloudWatchEncryptionEnabled = false,
CloudWatchLogGroupName = "cloudWatchLogGroupName",
S3BucketName = "s3BucketName",
S3EncryptionEnabled = false,
S3KeyPrefix = "s3KeyPrefix"
};
Synopsis
Constructors
| ExecuteCommandLogConfigurationProperty() | The log configuration for the results of the execute command actions. |
Properties
| CloudWatchEncryptionEnabled | Determines whether to use encryption on the CloudWatch logs. |
| CloudWatchLogGroupName | The name of the CloudWatch log group to send logs to. |
| S3BucketName | The name of the S3 bucket to send logs to. |
| S3EncryptionEnabled | Determines whether to use encryption on the S3 logs. |
| S3KeyPrefix | An optional folder in the S3 bucket to place logs in. |
Constructors
ExecuteCommandLogConfigurationProperty()
The log configuration for the results of the execute command actions.
public ExecuteCommandLogConfigurationProperty()
Remarks
The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var executeCommandLogConfigurationProperty = new ExecuteCommandLogConfigurationProperty {
CloudWatchEncryptionEnabled = false,
CloudWatchLogGroupName = "cloudWatchLogGroupName",
S3BucketName = "s3BucketName",
S3EncryptionEnabled = false,
S3KeyPrefix = "s3KeyPrefix"
};
Properties
CloudWatchEncryptionEnabled
Determines whether to use encryption on the CloudWatch logs.
public object? CloudWatchEncryptionEnabled { get; set; }
Property Value
Remarks
If not specified, encryption will be off.
Type union: either bool or IResolvable
CloudWatchLogGroupName
The name of the CloudWatch log group to send logs to.
public string? CloudWatchLogGroupName { get; set; }
Property Value
Remarks
The CloudWatch log group must already be created.
S3BucketName
The name of the S3 bucket to send logs to.
public string? S3BucketName { get; set; }
Property Value
Remarks
S3EncryptionEnabled
Determines whether to use encryption on the S3 logs.
public object? S3EncryptionEnabled { get; set; }
Property Value
Remarks
If not specified, encryption is not used.
Type union: either bool or IResolvable
S3KeyPrefix
An optional folder in the S3 bucket to place logs in.
public string? S3KeyPrefix { get; set; }