Skip to content
v2.277.0

BasicAuthenticationCredentialsProperty Struct ​

For supplying basic auth credentials when not providing a SecretArn value.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const basicAuthenticationCredentialsProperty: glue.CfnConnection.BasicAuthenticationCredentialsProperty = {
  password: 'password',
  username: 'username',
};
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_glue as glue

basic_authentication_credentials_property = glue.CfnConnection.BasicAuthenticationCredentialsProperty(
    password="password",
    username="username"
)
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.glue.*;

BasicAuthenticationCredentialsProperty basicAuthenticationCredentialsProperty = BasicAuthenticationCredentialsProperty.builder()
        .password("password")
        .username("username")
        .build();
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.Glue;

var basicAuthenticationCredentialsProperty = new BasicAuthenticationCredentialsProperty {
    Password = "password",
    Username = "username"
};
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"

basicAuthenticationCredentialsProperty := &BasicAuthenticationCredentialsProperty{
	Password: jsii.String("password"),
	Username: jsii.String("username"),
}

Properties ​

passwordoptionalstringpasswordoptionalstrpasswordoptionalStringPasswordoptionalstringPasswordoptional*string#
The password to connect to the data source.
usernameoptionalstringusernameoptionalstrusernameoptionalStringUsernameoptionalstringUsernameoptional*string#
The username to connect to the data source.