class CfnConnectorProfilePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppFlow.Mixins.CfnConnectorProfilePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappflow/mixins#CfnConnectorProfilePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.appflow.mixins.CfnConnectorProfilePropsMixin |
Python | aws_cdk.mixins_preview.aws_appflow.mixins.CfnConnectorProfilePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_appflow » mixins » CfnConnectorProfilePropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::AppFlow::ConnectorProfile resource is an Amazon AppFlow resource type that specifies the configuration profile for an instance of a connector.
This includes the provided name, credentials ARN, connection-mode, and so on. The fields that are common to all types of connector profiles are explicitly specified under the Properties field. The rest of the connector-specific properties are specified under Properties/ConnectorProfileConfig .
If you want to use CloudFormation to create a connector profile for connectors that implement OAuth (such as Salesforce, Slack, Zendesk, and Google Analytics), you must fetch the access and refresh tokens. You can do this by implementing your own UI for OAuth, or by retrieving the tokens from elsewhere. Alternatively, you can use the Amazon AppFlow console to create the connector profile, and then use that connector profile in the flow creation CloudFormation template.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as appflow_mixins } from '@aws-cdk/mixins-preview/aws-appflow';
const cfnConnectorProfilePropsMixin = new appflow_mixins.CfnConnectorProfilePropsMixin({
connectionMode: 'connectionMode',
connectorLabel: 'connectorLabel',
connectorProfileConfig: {
connectorProfileCredentials: {
amplitude: {
apiKey: 'apiKey',
secretKey: 'secretKey',
},
customConnector: {
apiKey: {
apiKey: 'apiKey',
apiSecretKey: 'apiSecretKey',
},
authenticationType: 'authenticationType',
basic: {
password: 'password',
username: 'username',
},
custom: {
credentialsMap: {
credentialsMapKey: 'credentialsMap',
},
customAuthenticationType: 'customAuthenticationType',
},
oauth2: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
oAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
refreshToken: 'refreshToken',
},
},
datadog: {
apiKey: 'apiKey',
applicationKey: 'applicationKey',
},
dynatrace: {
apiToken: 'apiToken',
},
googleAnalytics: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
refreshToken: 'refreshToken',
},
inforNexus: {
accessKeyId: 'accessKeyId',
datakey: 'datakey',
secretAccessKey: 'secretAccessKey',
userId: 'userId',
},
marketo: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
},
pardot: {
accessToken: 'accessToken',
clientCredentialsArn: 'clientCredentialsArn',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
refreshToken: 'refreshToken',
},
redshift: {
password: 'password',
username: 'username',
},
salesforce: {
accessToken: 'accessToken',
clientCredentialsArn: 'clientCredentialsArn',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
jwtToken: 'jwtToken',
oAuth2GrantType: 'oAuth2GrantType',
refreshToken: 'refreshToken',
},
sapoData: {
basicAuthCredentials: {
password: 'password',
username: 'username',
},
oAuthCredentials: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
refreshToken: 'refreshToken',
},
},
serviceNow: {
oAuth2Credentials: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
oAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
refreshToken: 'refreshToken',
},
password: 'password',
username: 'username',
},
singular: {
apiKey: 'apiKey',
},
slack: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
},
snowflake: {
password: 'password',
username: 'username',
},
trendmicro: {
apiSecretKey: 'apiSecretKey',
},
veeva: {
password: 'password',
username: 'username',
},
zendesk: {
accessToken: 'accessToken',
clientId: 'clientId',
clientSecret: 'clientSecret',
connectorOAuthRequest: {
authCode: 'authCode',
redirectUri: 'redirectUri',
},
},
},
connectorProfileProperties: {
customConnector: {
oAuth2Properties: {
oAuth2GrantType: 'oAuth2GrantType',
tokenUrl: 'tokenUrl',
tokenUrlCustomProperties: {
tokenUrlCustomPropertiesKey: 'tokenUrlCustomProperties',
},
},
profileProperties: {
profilePropertiesKey: 'profileProperties',
},
},
datadog: {
instanceUrl: 'instanceUrl',
},
dynatrace: {
instanceUrl: 'instanceUrl',
},
inforNexus: {
instanceUrl: 'instanceUrl',
},
marketo: {
instanceUrl: 'instanceUrl',
},
pardot: {
businessUnitId: 'businessUnitId',
instanceUrl: 'instanceUrl',
isSandboxEnvironment: false,
},
redshift: {
bucketName: 'bucketName',
bucketPrefix: 'bucketPrefix',
clusterIdentifier: 'clusterIdentifier',
dataApiRoleArn: 'dataApiRoleArn',
databaseName: 'databaseName',
databaseUrl: 'databaseUrl',
isRedshiftServerless: false,
roleArn: 'roleArn',
workgroupName: 'workgroupName',
},
salesforce: {
instanceUrl: 'instanceUrl',
isSandboxEnvironment: false,
usePrivateLinkForMetadataAndAuthorization: false,
},
sapoData: {
applicationHostUrl: 'applicationHostUrl',
applicationServicePath: 'applicationServicePath',
clientNumber: 'clientNumber',
disableSso: false,
logonLanguage: 'logonLanguage',
oAuthProperties: {
authCodeUrl: 'authCodeUrl',
oAuthScopes: ['oAuthScopes'],
tokenUrl: 'tokenUrl',
},
portNumber: 123,
privateLinkServiceName: 'privateLinkServiceName',
},
serviceNow: {
instanceUrl: 'instanceUrl',
},
slack: {
instanceUrl: 'instanceUrl',
},
snowflake: {
accountName: 'accountName',
bucketName: 'bucketName',
bucketPrefix: 'bucketPrefix',
privateLinkServiceName: 'privateLinkServiceName',
region: 'region',
stage: 'stage',
warehouse: 'warehouse',
},
veeva: {
instanceUrl: 'instanceUrl',
},
zendesk: {
instanceUrl: 'instanceUrl',
},
},
},
connectorProfileName: 'connectorProfileName',
connectorType: 'connectorType',
kmsArn: 'kmsArn',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnConnectorProfilePropsMixin(props: CfnConnectorProfileMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Connector Profile Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::AppFlow::ConnectorProfile.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript