# SessionPinningFilter

SessionPinningFilter.

Obtainable from: SessionPinningFilter.EXCLUDE_VARIABLE_SETS, SessionPinningFilter.of

- Source: [`aws-rds/lib/proxy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-rds/lib/proxy.ts#L67)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const sessionPinningFilter = rds.SessionPinningFilter.of('filterName');
```

Python:

```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_rds as rds

session_pinning_filter = rds.SessionPinningFilter.of("filterName")
```

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.rds.*;

SessionPinningFilter sessionPinningFilter = SessionPinningFilter.of("filterName");
```

C# / .NET:

```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.RDS;

var sessionPinningFilter = SessionPinningFilter.Of("filterName");
```

Golang:

```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"

sessionPinningFilter := awscdk.Aws_rds.SessionPinningFilter_Of(jsii.String("filterName"))
```

## Properties

- `EXCLUDE_VARIABLE_SETS`: [SessionPinningFilter](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rds.SessionPinningFilter.html) (static) — You can opt out of session pinning for the following kinds of application statements:.

  - Setting session variables and configuration settings.

- `filterName`: string — Filter name.

## Methods

- `of(filterName: string): SessionPinningFilter // chainable` (static) — custom filter.
