CustomConnectorProfileCredentialsProperty Struct
The connector-specific profile credentials that are required when using the custom connector.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
}
};
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
apiKeyoptionalIResolvable | CfnConnectorProfile.api_keyoptionaltyping.Union[IResolvable, ApiKeyCredentialsProperty]apiKeyoptionalIResolvableApiKeyoptionalIResolvableApiKeyoptionalinterface{} #The API keys required for the authentication of the user.
authenticationTypestringauthentication_typestrauthenticationTypeStringAuthenticationTypestringAuthenticationType*string required #The authentication type that the custom connector uses for authenticating while creating a connector profile.
basicoptionalIResolvable | CfnConnectorProfile.basicoptionaltyping.Union[IResolvable, BasicAuthCredentialsProperty]basicoptionalIResolvableBasicoptionalIResolvableBasicoptionalinterface{} #The basic credentials that are required for the authentication of the user.
customoptionalIResolvable | CfnConnectorProfile.customoptionaltyping.Union[IResolvable, CustomAuthCredentialsProperty]customoptionalIResolvableCustomoptionalIResolvableCustomoptionalinterface{} #If the connector uses the custom authentication mechanism, this holds the required credentials.
oauth2optionalIResolvable | CfnConnectorProfile.oauth2optionaltyping.Union[IResolvable, OAuth2CredentialsProperty]oauth2optionalIResolvableOauth2optionalIResolvableOauth2optionalinterface{} #The OAuth 2.0 credentials required for the authentication of the user.