Skip to content
v2.278.0

BasicAuthenticationPropertiesProperty Struct ​

Basic authentication configuration.

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 basicAuthenticationPropertiesProperty: glue.CfnConnectionType.BasicAuthenticationPropertiesProperty = {
  password: {
    name: 'name',
    propertyType: 'propertyType',
    required: false,

    // the properties below are optional
    keyOverride: 'keyOverride',
    propertyLocation: 'propertyLocation',
  },
  username: {
    name: 'name',
    propertyType: 'propertyType',
    required: false,

    // the properties below are optional
    keyOverride: 'keyOverride',
    propertyLocation: 'propertyLocation',
  },
};
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_properties_property = glue.CfnConnectionType.BasicAuthenticationPropertiesProperty(
    password=glue.CfnConnectionType.SecretConnectorPropertyProperty(
        name="name",
        property_type="propertyType",
        required=False,

        # the properties below are optional
        key_override="keyOverride",
        property_location="propertyLocation"
    ),
    username=glue.CfnConnectionType.SecretConnectorPropertyProperty(
        name="name",
        property_type="propertyType",
        required=False,

        # the properties below are optional
        key_override="keyOverride",
        property_location="propertyLocation"
    )
)
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.*;

BasicAuthenticationPropertiesProperty basicAuthenticationPropertiesProperty = BasicAuthenticationPropertiesProperty.builder()
        .password(SecretConnectorPropertyProperty.builder()
                .name("name")
                .propertyType("propertyType")
                .required(false)

                // the properties below are optional
                .keyOverride("keyOverride")
                .propertyLocation("propertyLocation")
                .build())
        .username(SecretConnectorPropertyProperty.builder()
                .name("name")
                .propertyType("propertyType")
                .required(false)

                // the properties below are optional
                .keyOverride("keyOverride")
                .propertyLocation("propertyLocation")
                .build())
        .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 basicAuthenticationPropertiesProperty = new BasicAuthenticationPropertiesProperty {
    Password = new SecretConnectorPropertyProperty {
        Name = "name",
        PropertyType = "propertyType",
        Required = false,

        // the properties below are optional
        KeyOverride = "keyOverride",
        PropertyLocation = "propertyLocation"
    },
    Username = new SecretConnectorPropertyProperty {
        Name = "name",
        PropertyType = "propertyType",
        Required = false,

        // the properties below are optional
        KeyOverride = "keyOverride",
        PropertyLocation = "propertyLocation"
    }
};
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"

basicAuthenticationPropertiesProperty := &BasicAuthenticationPropertiesProperty{
	Password: &SecretConnectorPropertyProperty{
		Name: jsii.String("name"),
		PropertyType: jsii.String("propertyType"),
		Required: jsii.Boolean(false),

		// the properties below are optional
		KeyOverride: jsii.String("keyOverride"),
		PropertyLocation: jsii.String("propertyLocation"),
	},
	Username: &SecretConnectorPropertyProperty{
		Name: jsii.String("name"),
		PropertyType: jsii.String("propertyType"),
		Required: jsii.Boolean(false),

		// the properties below are optional
		KeyOverride: jsii.String("keyOverride"),
		PropertyLocation: jsii.String("propertyLocation"),
	},
}

Properties ​

passwordoptionalIResolvable | CfnConnectionType.SecretConnectorPropertyPropertypasswordoptionaltyping.Union[IResolvable, SecretConnectorPropertyProperty]passwordoptionalIResolvablePasswordoptionalIResolvablePasswordoptionalinterface{} #
Defines a secret property configuration.

SECRET-type properties cannot have DefaultValue or AllowedValues.

usernameoptionalIResolvable | CfnConnectionType.SecretConnectorPropertyPropertyusernameoptionaltyping.Union[IResolvable, SecretConnectorPropertyProperty]usernameoptionalIResolvableUsernameoptionalIResolvableUsernameoptionalinterface{} #
Defines a secret property configuration.

SECRET-type properties cannot have DefaultValue or AllowedValues.