class S3LogDestination
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Pipes.Alpha.S3LogDestination |
![]() | github.com/aws/aws-cdk-go/awscdkpipesalpha/v2#S3LogDestination |
![]() | software.amazon.awscdk.services.pipes.alpha.S3LogDestination |
![]() | aws_cdk.aws_pipes_alpha.S3LogDestination |
![]() | @aws-cdk/aws-pipes-alpha » S3LogDestination |
Implements
ILog
S3 bucket for delivery of pipe logs.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as pipes_alpha from '@aws-cdk/aws-pipes-alpha';
import { aws_s3 as s3 } from 'aws-cdk-lib';
declare const bucket: s3.Bucket;
const s3LogDestination = new pipes_alpha.S3LogDestination({
bucket: bucket,
// the properties below are optional
bucketOwner: 'bucketOwner',
outputFormat: pipes_alpha.S3OutputFormat.PLAIN,
prefix: 'prefix',
});
Initializer
new S3LogDestination(parameters: S3LogDestinationProps)
Parameters
- parameters
S3
Log Destination Props
Methods
Name | Description |
---|---|
bind(_pipe) | Bind the log destination to the pipe. |
grant | Grant the pipe role to push to the log destination. |
bind(_pipe)
public bind(_pipe: IPipe): LogDestinationConfig
Parameters
- _pipe
IPipe
Returns
Bind the log destination to the pipe.
grantPush(pipeRole)
public grantPush(pipeRole: IRole): void
Parameters
- pipeRole
IRole
Grant the pipe role to push to the log destination.