Skip to content
v2.277.0

LoggingInfoProperty Struct ​

LoggingInfo has been deprecated.

To specify an Amazon S3 bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see AWS ::SSM::MaintenanceWindowTask MaintenanceWindowRunCommandParameters .

The LoggingInfo property type specifies information about the Amazon S3 bucket to write instance-level logs to.

LoggingInfo is a property of the AWS::SSM::MaintenanceWindowTask resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const loggingInfoProperty: ssm.CfnMaintenanceWindowTask.LoggingInfoProperty = {
  region: 'region',
  s3Bucket: 's3Bucket',

  // the properties below are optional
  s3Prefix: 's3Prefix',
};
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_ssm as ssm

logging_info_property = ssm.CfnMaintenanceWindowTask.LoggingInfoProperty(
    region="region",
    s3_bucket="s3Bucket",

    # the properties below are optional
    s3_prefix="s3Prefix"
)
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.ssm.*;

LoggingInfoProperty loggingInfoProperty = LoggingInfoProperty.builder()
        .region("region")
        .s3Bucket("s3Bucket")

        // the properties below are optional
        .s3Prefix("s3Prefix")
        .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.SSM;

var loggingInfoProperty = new LoggingInfoProperty {
    Region = "region",
    S3Bucket = "s3Bucket",

    // the properties below are optional
    S3Prefix = "s3Prefix"
};
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"

loggingInfoProperty := &LoggingInfoProperty{
	Region: jsii.String("region"),
	S3Bucket: jsii.String("s3Bucket"),

	// the properties below are optional
	S3Prefix: jsii.String("s3Prefix"),
}

Properties ​

regionstringregionstrregionStringRegionstringRegion*stringrequired#
The AWS Region where the S3 bucket is located.
s3Bucketstrings3_bucketstrs3BucketStringS3BucketstringS3Bucket*stringrequired#
The name of an S3 bucket where execution logs are stored.
s3Prefixoptionalstrings3_prefixoptionalstrs3PrefixoptionalStringS3PrefixoptionalstringS3Prefixoptional*string#
The Amazon S3 bucket subfolder.