aws-cdk-lib.aws_ssm.CfnMaintenanceWindowTask.LoggingInfoProperty

interface LoggingInfoProperty

LanguageType name
.NETAmazon.CDK.AWS.SSM.CfnMaintenanceWindowTask.LoggingInfoProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsssm#CfnMaintenanceWindowTask_LoggingInfoProperty
Javasoftware.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.LoggingInfoProperty
Pythonaws_cdk.aws_ssm.CfnMaintenanceWindowTask.LoggingInfoProperty
TypeScript aws-cdk-lib » aws_ssm » CfnMaintenanceWindowTask » LoggingInfoProperty

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.

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 .

Example

// 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',
};

Properties

NameTypeDescription
regionstringThe AWS Region where the S3 bucket is located.
s3BucketstringThe name of an S3 bucket where execution logs are stored.
s3Prefix?stringThe Amazon S3 bucket subfolder.

region

Type: string

The AWS Region where the S3 bucket is located.


s3Bucket

Type: string

The name of an S3 bucket where execution logs are stored.


s3Prefix?

Type: string (optional)

The Amazon S3 bucket subfolder.