# RedshiftServerlessAuthConfigurationProperty

Specifies configurations for authentication to a Redshift Serverless.

Specify the type of authentication to use in the `type` field and include the corresponding field. If you specify IAM authentication, you don't need to include another field.

- Source: Generated at build time
- Type last changed: v2.177.0 · 25 Jan 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const redshiftServerlessAuthConfigurationProperty: bedrock.CfnKnowledgeBase.RedshiftServerlessAuthConfigurationProperty = {
  type: 'type',

  // the properties below are optional
  usernamePasswordSecretArn: 'usernamePasswordSecretArn',
};
```

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_bedrock as bedrock

redshift_serverless_auth_configuration_property = bedrock.CfnKnowledgeBase.RedshiftServerlessAuthConfigurationProperty(
    type="type",

    # the properties below are optional
    username_password_secret_arn="usernamePasswordSecretArn"
)
```

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

RedshiftServerlessAuthConfigurationProperty redshiftServerlessAuthConfigurationProperty = RedshiftServerlessAuthConfigurationProperty.builder()
        .type("type")

        // the properties below are optional
        .usernamePasswordSecretArn("usernamePasswordSecretArn")
        .build();
```

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.Bedrock;

var redshiftServerlessAuthConfigurationProperty = new RedshiftServerlessAuthConfigurationProperty {
    Type = "type",

    // the properties below are optional
    UsernamePasswordSecretArn = "usernamePasswordSecretArn"
};
```

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"

redshiftServerlessAuthConfigurationProperty := &RedshiftServerlessAuthConfigurationProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	UsernamePasswordSecretArn: jsii.String("usernamePasswordSecretArn"),
}
```

## Properties

- `type`: string (required) — The type of authentication to use.

- `usernamePasswordSecretArn`: string — The ARN of an Secrets Manager secret for authentication.
