Class CfnCluster.ExecuteCommandLogConfigurationProperty
The log configuration for the results of the execute command actions.
Inheritance
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class ExecuteCommandLogConfigurationProperty : Object, CfnCluster.IExecuteCommandLogConfigurationProperty
Syntax (vb)
Public Class ExecuteCommandLogConfigurationProperty
Inherits Object
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() |
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()
public ExecuteCommandLogConfigurationProperty()
Properties
CloudWatchEncryptionEnabled
Determines whether to use encryption on the CloudWatch logs.
public object CloudWatchEncryptionEnabled { get; set; }
Property Value
System.Object
Remarks
CloudWatchLogGroupName
The name of the CloudWatch log group to send logs to.
public string CloudWatchLogGroupName { get; set; }
Property Value
System.String
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
System.String
Remarks
S3EncryptionEnabled
Determines whether to use encryption on the S3 logs.
public object S3EncryptionEnabled { get; set; }
Property Value
System.Object
Remarks
If not specified, encryption is not used.
S3KeyPrefix
An optional folder in the S3 bucket to place logs in.
public string S3KeyPrefix { get; set; }
Property Value
System.String