LoggingProperty Struct
Logging configuration defines where Image Builder uploads your logs.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const loggingProperty: imagebuilder.CfnInfrastructureConfiguration.LoggingProperty = {
s3Logs: {
s3BucketName: 's3BucketName',
s3KeyPrefix: 's3KeyPrefix',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_imagebuilder as imagebuilder
logging_property = imagebuilder.CfnInfrastructureConfiguration.LoggingProperty(
s3_logs=imagebuilder.CfnInfrastructureConfiguration.S3LogsProperty(
s3_bucket_name="s3BucketName",
s3_key_prefix="s3KeyPrefix"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
LoggingProperty loggingProperty = LoggingProperty.builder()
.s3Logs(S3LogsProperty.builder()
.s3BucketName("s3BucketName")
.s3KeyPrefix("s3KeyPrefix")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;
var loggingProperty = new LoggingProperty {
S3Logs = new S3LogsProperty {
S3BucketName = "s3BucketName",
S3KeyPrefix = "s3KeyPrefix"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
loggingProperty := &LoggingProperty{
S3Logs: &S3LogsProperty{
S3BucketName: jsii.String("s3BucketName"),
S3KeyPrefix: jsii.String("s3KeyPrefix"),
},
}
Properties
s3LogsoptionalIResolvable | CfnInfrastructureConfiguration.s3_logsoptionaltyping.Union[IResolvable, S3LogsProperty]s3LogsoptionalIResolvableS3LogsoptionalIResolvableS3Logsoptionalinterface{} #The Amazon S3 logging configuration.