> **Experimental**
>
> `@aws-cdk/aws-pipes-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# S3LogDestination

S3 bucket for delivery of pipe logs.

Implements: [ILogDestination](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.ILogDestination.html)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/logs.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-pipes-alpha/lib/logs.ts#L210)

## Example

TypeScript:

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_pipes_alpha as pipes_alpha
from aws_cdk import aws_s3 as s3

# bucket: s3.Bucket

s3_log_destination = pipes_alpha.S3LogDestination(
    bucket=bucket,

    # the properties below are optional
    bucket_owner="bucketOwner",
    output_format=pipes_alpha.S3OutputFormat.PLAIN,
    prefix="prefix"
)
```

Java:

```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.pipes.alpha.*;
import software.amazon.awscdk.services.s3.*;

Bucket bucket;

S3LogDestination s3LogDestination = S3LogDestination.Builder.create()
        .bucket(bucket)

        // the properties below are optional
        .bucketOwner("bucketOwner")
        .outputFormat(S3OutputFormat.PLAIN)
        .prefix("prefix")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Pipes.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pipes.Alpha;
using Amazon.CDK.AWS.S3;

Bucket bucket;

var s3LogDestination = new S3LogDestination(new S3LogDestinationProps {
    Bucket = bucket,

    // the properties below are optional
    BucketOwner = "bucketOwner",
    OutputFormat = S3OutputFormat.PLAIN,
    Prefix = "prefix"
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkpipesalpha/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/awscdkpipesalpha"
import "github.com/aws/aws-cdk-go/awscdk"

var bucket Bucket

s3LogDestination := pipes_alpha.NewS3LogDestination(&S3LogDestinationProps{
	Bucket: bucket,

	// the properties below are optional
	BucketOwner: jsii.String("bucketOwner"),
	OutputFormat: pipes_alpha.S3OutputFormat_PLAIN,
	Prefix: jsii.String("prefix"),
})
```

## Initializer

TypeScript:

```ts
new S3LogDestination(parameters: S3LogDestinationProps)
```

Python:

```python
S3LogDestination(parameters: S3LogDestinationProps)
```

Java:

```java
new S3LogDestination(S3LogDestinationProps parameters)
```

C# / .NET:

```csharp
new S3LogDestination(S3LogDestinationProps parameters)
```

Golang:

```go
NewS3LogDestination(Parameters S3LogDestinationProps)
```

## Methods

- `bind(_pipe: IPipe): LogDestinationConfig` — Bind the log destination to the pipe.

- `grantPush(pipeRole: IRole): void` — Grant the pipe role to push to the log destination.
