# CustomConnectorProfileCredentialsProperty

The connector-specific profile credentials that are required when using the custom connector.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appflow as appflow } from 'aws-cdk-lib';
const customConnectorProfileCredentialsProperty: appflow.CfnConnectorProfile.CustomConnectorProfileCredentialsProperty = {
  authenticationType: 'authenticationType',

  // the properties below are optional
  apiKey: {
    apiKey: 'apiKey',

    // the properties below are optional
    apiSecretKey: 'apiSecretKey',
  },
  basic: {
    password: 'password',
    username: 'username',
  },
  custom: {
    customAuthenticationType: 'customAuthenticationType',

    // the properties below are optional
    credentialsMap: {
      credentialsMapKey: 'credentialsMap',
    },
  },
  oauth2: {
    accessToken: 'accessToken',
    clientId: 'clientId',
    clientSecret: 'clientSecret',
    oAuthRequest: {
      authCode: 'authCode',
      redirectUri: 'redirectUri',
    },
    refreshToken: 'refreshToken',
  },
};
```

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_appflow as appflow

custom_connector_profile_credentials_property = appflow.CfnConnectorProfile.CustomConnectorProfileCredentialsProperty(
    authentication_type="authenticationType",

    # the properties below are optional
    api_key=appflow.CfnConnectorProfile.ApiKeyCredentialsProperty(
        api_key="apiKey",

        # the properties below are optional
        api_secret_key="apiSecretKey"
    ),
    basic=appflow.CfnConnectorProfile.BasicAuthCredentialsProperty(
        password="password",
        username="username"
    ),
    custom=appflow.CfnConnectorProfile.CustomAuthCredentialsProperty(
        custom_authentication_type="customAuthenticationType",

        # the properties below are optional
        credentials_map={
            "credentials_map_key": "credentialsMap"
        }
    ),
    oauth2=appflow.CfnConnectorProfile.OAuth2CredentialsProperty(
        access_token="accessToken",
        client_id="clientId",
        client_secret="clientSecret",
        o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
            auth_code="authCode",
            redirect_uri="redirectUri"
        ),
        refresh_token="refreshToken"
    )
)
```

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

CustomConnectorProfileCredentialsProperty customConnectorProfileCredentialsProperty = CustomConnectorProfileCredentialsProperty.builder()
        .authenticationType("authenticationType")

        // the properties below are optional
        .apiKey(ApiKeyCredentialsProperty.builder()
                .apiKey("apiKey")

                // the properties below are optional
                .apiSecretKey("apiSecretKey")
                .build())
        .basic(BasicAuthCredentialsProperty.builder()
                .password("password")
                .username("username")
                .build())
        .custom(CustomAuthCredentialsProperty.builder()
                .customAuthenticationType("customAuthenticationType")

                // the properties below are optional
                .credentialsMap(Map.of(
                        "credentialsMapKey", "credentialsMap"))
                .build())
        .oauth2(OAuth2CredentialsProperty.builder()
                .accessToken("accessToken")
                .clientId("clientId")
                .clientSecret("clientSecret")
                .oAuthRequest(ConnectorOAuthRequestProperty.builder()
                        .authCode("authCode")
                        .redirectUri("redirectUri")
                        .build())
                .refreshToken("refreshToken")
                .build())
        .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.AppFlow;

var customConnectorProfileCredentialsProperty = new CustomConnectorProfileCredentialsProperty {
    AuthenticationType = "authenticationType",

    // the properties below are optional
    ApiKey = new ApiKeyCredentialsProperty {
        ApiKey = "apiKey",

        // the properties below are optional
        ApiSecretKey = "apiSecretKey"
    },
    Basic = new BasicAuthCredentialsProperty {
        Password = "password",
        Username = "username"
    },
    Custom = new CustomAuthCredentialsProperty {
        CustomAuthenticationType = "customAuthenticationType",

        // the properties below are optional
        CredentialsMap = new Dictionary<string, string> {
            { "credentialsMapKey", "credentialsMap" }
        }
    },
    Oauth2 = new OAuth2CredentialsProperty {
        AccessToken = "accessToken",
        ClientId = "clientId",
        ClientSecret = "clientSecret",
        OAuthRequest = new ConnectorOAuthRequestProperty {
            AuthCode = "authCode",
            RedirectUri = "redirectUri"
        },
        RefreshToken = "refreshToken"
    }
};
```

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"

customConnectorProfileCredentialsProperty := &CustomConnectorProfileCredentialsProperty{
	AuthenticationType: jsii.String("authenticationType"),

	// the properties below are optional
	ApiKey: &ApiKeyCredentialsProperty{
		ApiKey: jsii.String("apiKey"),

		// the properties below are optional
		ApiSecretKey: jsii.String("apiSecretKey"),
	},
	Basic: &BasicAuthCredentialsProperty{
		Password: jsii.String("password"),
		Username: jsii.String("username"),
	},
	Custom: &CustomAuthCredentialsProperty{
		CustomAuthenticationType: jsii.String("customAuthenticationType"),

		// the properties below are optional
		CredentialsMap: map[string]*string{
			"credentialsMapKey": jsii.String("credentialsMap"),
		},
	},
	Oauth2: &OAuth2CredentialsProperty{
		AccessToken: jsii.String("accessToken"),
		ClientId: jsii.String("clientId"),
		ClientSecret: jsii.String("clientSecret"),
		OAuthRequest: &ConnectorOAuthRequestProperty{
			AuthCode: jsii.String("authCode"),
			RedirectUri: jsii.String("redirectUri"),
		},
		RefreshToken: jsii.String("refreshToken"),
	},
}
```

## Properties

- `apiKey`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnectorProfile.ApiKeyCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnConnectorProfile.ApiKeyCredentialsProperty.html) — The API keys required for the authentication of the user.

- `authenticationType`: string (required) — The authentication type that the custom connector uses for authenticating while creating a connector profile.

- `basic`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnectorProfile.BasicAuthCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnConnectorProfile.BasicAuthCredentialsProperty.html) — The basic credentials that are required for the authentication of the user.

- `custom`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnectorProfile.CustomAuthCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnConnectorProfile.CustomAuthCredentialsProperty.html) — If the connector uses the custom authentication mechanism, this holds the required credentials.

- `oauth2`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnectorProfile.OAuth2CredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnConnectorProfile.OAuth2CredentialsProperty.html) — The OAuth 2.0 credentials required for the authentication of the user.
