Skip to content
v2.278.0

CfnConnectorProfile L1 construct ​

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 ​

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 cfnConnectorProfile = new appflow.CfnConnectorProfile(this, 'MyCfnConnectorProfile', {
  connectionMode: 'connectionMode',
  connectorProfileName: 'connectorProfileName',
  connectorType: 'connectorType',

  // the properties below are optional
  connectorLabel: 'connectorLabel',
  connectorProfileConfig: {
    connectorProfileCredentials: {
      amplitude: {
        apiKey: 'apiKey',
        secretKey: 'secretKey',
      },
      customConnector: {
        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',
        },
      },
      datadog: {
        apiKey: 'apiKey',
        applicationKey: 'applicationKey',
      },
      dynatrace: {
        apiToken: 'apiToken',
      },
      googleAnalytics: {
        clientId: 'clientId',
        clientSecret: 'clientSecret',

        // the properties below are optional
        accessToken: 'accessToken',
        connectorOAuthRequest: {
          authCode: 'authCode',
          redirectUri: 'redirectUri',
        },
        refreshToken: 'refreshToken',
      },
      inforNexus: {
        accessKeyId: 'accessKeyId',
        datakey: 'datakey',
        secretAccessKey: 'secretAccessKey',
        userId: 'userId',
      },
      marketo: {
        clientId: 'clientId',
        clientSecret: 'clientSecret',

        // the properties below are optional
        accessToken: 'accessToken',
        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: {
        clientId: 'clientId',
        clientSecret: 'clientSecret',

        // the properties below are optional
        accessToken: 'accessToken',
        connectorOAuthRequest: {
          authCode: 'authCode',
          redirectUri: 'redirectUri',
        },
      },
      snowflake: {
        password: 'password',
        username: 'username',
      },
      trendmicro: {
        apiSecretKey: 'apiSecretKey',
      },
      veeva: {
        password: 'password',
        username: 'username',
      },
      zendesk: {
        clientId: 'clientId',
        clientSecret: 'clientSecret',

        // the properties below are optional
        accessToken: 'accessToken',
        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',

        // the properties below are optional
        instanceUrl: 'instanceUrl',
        isSandboxEnvironment: false,
      },
      redshift: {
        bucketName: 'bucketName',
        roleArn: 'roleArn',

        // the properties below are optional
        bucketPrefix: 'bucketPrefix',
        clusterIdentifier: 'clusterIdentifier',
        dataApiRoleArn: 'dataApiRoleArn',
        databaseName: 'databaseName',
        databaseUrl: 'databaseUrl',
        isRedshiftServerless: false,
        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: {
        bucketName: 'bucketName',
        stage: 'stage',
        warehouse: 'warehouse',

        // the properties below are optional
        accountName: 'accountName',
        bucketPrefix: 'bucketPrefix',
        privateLinkServiceName: 'privateLinkServiceName',
        region: 'region',
      },
      veeva: {
        instanceUrl: 'instanceUrl',
      },
      zendesk: {
        instanceUrl: 'instanceUrl',
      },
    },
  },
  kmsArn: 'kmsArn',
});
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

cfn_connector_profile = appflow.CfnConnectorProfile(self, "MyCfnConnectorProfile",
    connection_mode="connectionMode",
    connector_profile_name="connectorProfileName",
    connector_type="connectorType",

    # the properties below are optional
    connector_label="connectorLabel",
    connector_profile_config=appflow.CfnConnectorProfile.ConnectorProfileConfigProperty(
        connector_profile_credentials=appflow.CfnConnectorProfile.ConnectorProfileCredentialsProperty(
            amplitude=appflow.CfnConnectorProfile.AmplitudeConnectorProfileCredentialsProperty(
                api_key="apiKey",
                secret_key="secretKey"
            ),
            custom_connector=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"
                )
            ),
            datadog=appflow.CfnConnectorProfile.DatadogConnectorProfileCredentialsProperty(
                api_key="apiKey",
                application_key="applicationKey"
            ),
            dynatrace=appflow.CfnConnectorProfile.DynatraceConnectorProfileCredentialsProperty(
                api_token="apiToken"
            ),
            google_analytics=appflow.CfnConnectorProfile.GoogleAnalyticsConnectorProfileCredentialsProperty(
                client_id="clientId",
                client_secret="clientSecret",

                # the properties below are optional
                access_token="accessToken",
                connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
                    auth_code="authCode",
                    redirect_uri="redirectUri"
                ),
                refresh_token="refreshToken"
            ),
            infor_nexus=appflow.CfnConnectorProfile.InforNexusConnectorProfileCredentialsProperty(
                access_key_id="accessKeyId",
                datakey="datakey",
                secret_access_key="secretAccessKey",
                user_id="userId"
            ),
            marketo=appflow.CfnConnectorProfile.MarketoConnectorProfileCredentialsProperty(
                client_id="clientId",
                client_secret="clientSecret",

                # the properties below are optional
                access_token="accessToken",
                connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
                    auth_code="authCode",
                    redirect_uri="redirectUri"
                )
            ),
            pardot=appflow.CfnConnectorProfile.PardotConnectorProfileCredentialsProperty(
                access_token="accessToken",
                client_credentials_arn="clientCredentialsArn",
                connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
                    auth_code="authCode",
                    redirect_uri="redirectUri"
                ),
                refresh_token="refreshToken"
            ),
            redshift=appflow.CfnConnectorProfile.RedshiftConnectorProfileCredentialsProperty(
                password="password",
                username="username"
            ),
            salesforce=appflow.CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty(
                access_token="accessToken",
                client_credentials_arn="clientCredentialsArn",
                connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
                    auth_code="authCode",
                    redirect_uri="redirectUri"
                ),
                jwt_token="jwtToken",
                o_auth2_grant_type="oAuth2GrantType",
                refresh_token="refreshToken"
            ),
            sapo_data=appflow.CfnConnectorProfile.SAPODataConnectorProfileCredentialsProperty(
                basic_auth_credentials=appflow.CfnConnectorProfile.BasicAuthCredentialsProperty(
                    password="password",
                    username="username"
                ),
                o_auth_credentials=appflow.CfnConnectorProfile.OAuthCredentialsProperty(
                    access_token="accessToken",
                    client_id="clientId",
                    client_secret="clientSecret",
                    connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
                        auth_code="authCode",
                        redirect_uri="redirectUri"
                    ),
                    refresh_token="refreshToken"
                )
            ),
            service_now=appflow.CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty(
                o_auth2_credentials=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"
                ),
                password="password",
                username="username"
            ),
            singular=appflow.CfnConnectorProfile.SingularConnectorProfileCredentialsProperty(
                api_key="apiKey"
            ),
            slack=appflow.CfnConnectorProfile.SlackConnectorProfileCredentialsProperty(
                client_id="clientId",
                client_secret="clientSecret",

                # the properties below are optional
                access_token="accessToken",
                connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
                    auth_code="authCode",
                    redirect_uri="redirectUri"
                )
            ),
            snowflake=appflow.CfnConnectorProfile.SnowflakeConnectorProfileCredentialsProperty(
                password="password",
                username="username"
            ),
            trendmicro=appflow.CfnConnectorProfile.TrendmicroConnectorProfileCredentialsProperty(
                api_secret_key="apiSecretKey"
            ),
            veeva=appflow.CfnConnectorProfile.VeevaConnectorProfileCredentialsProperty(
                password="password",
                username="username"
            ),
            zendesk=appflow.CfnConnectorProfile.ZendeskConnectorProfileCredentialsProperty(
                client_id="clientId",
                client_secret="clientSecret",

                # the properties below are optional
                access_token="accessToken",
                connector_o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
                    auth_code="authCode",
                    redirect_uri="redirectUri"
                )
            )
        ),
        connector_profile_properties=appflow.CfnConnectorProfile.ConnectorProfilePropertiesProperty(
            custom_connector=appflow.CfnConnectorProfile.CustomConnectorProfilePropertiesProperty(
                o_auth2_properties=appflow.CfnConnectorProfile.OAuth2PropertiesProperty(
                    o_auth2_grant_type="oAuth2GrantType",
                    token_url="tokenUrl",
                    token_url_custom_properties={
                        "token_url_custom_properties_key": "tokenUrlCustomProperties"
                    }
                ),
                profile_properties={
                    "profile_properties_key": "profileProperties"
                }
            ),
            datadog=appflow.CfnConnectorProfile.DatadogConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            ),
            dynatrace=appflow.CfnConnectorProfile.DynatraceConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            ),
            infor_nexus=appflow.CfnConnectorProfile.InforNexusConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            ),
            marketo=appflow.CfnConnectorProfile.MarketoConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            ),
            pardot=appflow.CfnConnectorProfile.PardotConnectorProfilePropertiesProperty(
                business_unit_id="businessUnitId",

                # the properties below are optional
                instance_url="instanceUrl",
                is_sandbox_environment=False
            ),
            redshift=appflow.CfnConnectorProfile.RedshiftConnectorProfilePropertiesProperty(
                bucket_name="bucketName",
                role_arn="roleArn",

                # the properties below are optional
                bucket_prefix="bucketPrefix",
                cluster_identifier="clusterIdentifier",
                data_api_role_arn="dataApiRoleArn",
                database_name="databaseName",
                database_url="databaseUrl",
                is_redshift_serverless=False,
                workgroup_name="workgroupName"
            ),
            salesforce=appflow.CfnConnectorProfile.SalesforceConnectorProfilePropertiesProperty(
                instance_url="instanceUrl",
                is_sandbox_environment=False,
                use_private_link_for_metadata_and_authorization=False
            ),
            sapo_data=appflow.CfnConnectorProfile.SAPODataConnectorProfilePropertiesProperty(
                application_host_url="applicationHostUrl",
                application_service_path="applicationServicePath",
                client_number="clientNumber",
                disable_sso=False,
                logon_language="logonLanguage",
                o_auth_properties=appflow.CfnConnectorProfile.OAuthPropertiesProperty(
                    auth_code_url="authCodeUrl",
                    o_auth_scopes=["oAuthScopes"],
                    token_url="tokenUrl"
                ),
                port_number=123,
                private_link_service_name="privateLinkServiceName"
            ),
            service_now=appflow.CfnConnectorProfile.ServiceNowConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            ),
            slack=appflow.CfnConnectorProfile.SlackConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            ),
            snowflake=appflow.CfnConnectorProfile.SnowflakeConnectorProfilePropertiesProperty(
                bucket_name="bucketName",
                stage="stage",
                warehouse="warehouse",

                # the properties below are optional
                account_name="accountName",
                bucket_prefix="bucketPrefix",
                private_link_service_name="privateLinkServiceName",
                region="region"
            ),
            veeva=appflow.CfnConnectorProfile.VeevaConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            ),
            zendesk=appflow.CfnConnectorProfile.ZendeskConnectorProfilePropertiesProperty(
                instance_url="instanceUrl"
            )
        )
    ),
    kms_arn="kmsArn"
)
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.*;

CfnConnectorProfile cfnConnectorProfile = CfnConnectorProfile.Builder.create(this, "MyCfnConnectorProfile")
        .connectionMode("connectionMode")
        .connectorProfileName("connectorProfileName")
        .connectorType("connectorType")

        // the properties below are optional
        .connectorLabel("connectorLabel")
        .connectorProfileConfig(ConnectorProfileConfigProperty.builder()
                .connectorProfileCredentials(ConnectorProfileCredentialsProperty.builder()
                        .amplitude(AmplitudeConnectorProfileCredentialsProperty.builder()
                                .apiKey("apiKey")
                                .secretKey("secretKey")
                                .build())
                        .customConnector(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())
                        .datadog(DatadogConnectorProfileCredentialsProperty.builder()
                                .apiKey("apiKey")
                                .applicationKey("applicationKey")
                                .build())
                        .dynatrace(DynatraceConnectorProfileCredentialsProperty.builder()
                                .apiToken("apiToken")
                                .build())
                        .googleAnalytics(GoogleAnalyticsConnectorProfileCredentialsProperty.builder()
                                .clientId("clientId")
                                .clientSecret("clientSecret")

                                // the properties below are optional
                                .accessToken("accessToken")
                                .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
                                        .authCode("authCode")
                                        .redirectUri("redirectUri")
                                        .build())
                                .refreshToken("refreshToken")
                                .build())
                        .inforNexus(InforNexusConnectorProfileCredentialsProperty.builder()
                                .accessKeyId("accessKeyId")
                                .datakey("datakey")
                                .secretAccessKey("secretAccessKey")
                                .userId("userId")
                                .build())
                        .marketo(MarketoConnectorProfileCredentialsProperty.builder()
                                .clientId("clientId")
                                .clientSecret("clientSecret")

                                // the properties below are optional
                                .accessToken("accessToken")
                                .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
                                        .authCode("authCode")
                                        .redirectUri("redirectUri")
                                        .build())
                                .build())
                        .pardot(PardotConnectorProfileCredentialsProperty.builder()
                                .accessToken("accessToken")
                                .clientCredentialsArn("clientCredentialsArn")
                                .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
                                        .authCode("authCode")
                                        .redirectUri("redirectUri")
                                        .build())
                                .refreshToken("refreshToken")
                                .build())
                        .redshift(RedshiftConnectorProfileCredentialsProperty.builder()
                                .password("password")
                                .username("username")
                                .build())
                        .salesforce(SalesforceConnectorProfileCredentialsProperty.builder()
                                .accessToken("accessToken")
                                .clientCredentialsArn("clientCredentialsArn")
                                .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
                                        .authCode("authCode")
                                        .redirectUri("redirectUri")
                                        .build())
                                .jwtToken("jwtToken")
                                .oAuth2GrantType("oAuth2GrantType")
                                .refreshToken("refreshToken")
                                .build())
                        .sapoData(SAPODataConnectorProfileCredentialsProperty.builder()
                                .basicAuthCredentials(BasicAuthCredentialsProperty.builder()
                                        .password("password")
                                        .username("username")
                                        .build())
                                .oAuthCredentials(OAuthCredentialsProperty.builder()
                                        .accessToken("accessToken")
                                        .clientId("clientId")
                                        .clientSecret("clientSecret")
                                        .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
                                                .authCode("authCode")
                                                .redirectUri("redirectUri")
                                                .build())
                                        .refreshToken("refreshToken")
                                        .build())
                                .build())
                        .serviceNow(ServiceNowConnectorProfileCredentialsProperty.builder()
                                .oAuth2Credentials(OAuth2CredentialsProperty.builder()
                                        .accessToken("accessToken")
                                        .clientId("clientId")
                                        .clientSecret("clientSecret")
                                        .oAuthRequest(ConnectorOAuthRequestProperty.builder()
                                                .authCode("authCode")
                                                .redirectUri("redirectUri")
                                                .build())
                                        .refreshToken("refreshToken")
                                        .build())
                                .password("password")
                                .username("username")
                                .build())
                        .singular(SingularConnectorProfileCredentialsProperty.builder()
                                .apiKey("apiKey")
                                .build())
                        .slack(SlackConnectorProfileCredentialsProperty.builder()
                                .clientId("clientId")
                                .clientSecret("clientSecret")

                                // the properties below are optional
                                .accessToken("accessToken")
                                .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
                                        .authCode("authCode")
                                        .redirectUri("redirectUri")
                                        .build())
                                .build())
                        .snowflake(SnowflakeConnectorProfileCredentialsProperty.builder()
                                .password("password")
                                .username("username")
                                .build())
                        .trendmicro(TrendmicroConnectorProfileCredentialsProperty.builder()
                                .apiSecretKey("apiSecretKey")
                                .build())
                        .veeva(VeevaConnectorProfileCredentialsProperty.builder()
                                .password("password")
                                .username("username")
                                .build())
                        .zendesk(ZendeskConnectorProfileCredentialsProperty.builder()
                                .clientId("clientId")
                                .clientSecret("clientSecret")

                                // the properties below are optional
                                .accessToken("accessToken")
                                .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder()
                                        .authCode("authCode")
                                        .redirectUri("redirectUri")
                                        .build())
                                .build())
                        .build())
                .connectorProfileProperties(ConnectorProfilePropertiesProperty.builder()
                        .customConnector(CustomConnectorProfilePropertiesProperty.builder()
                                .oAuth2Properties(OAuth2PropertiesProperty.builder()
                                        .oAuth2GrantType("oAuth2GrantType")
                                        .tokenUrl("tokenUrl")
                                        .tokenUrlCustomProperties(Map.of(
                                                "tokenUrlCustomPropertiesKey", "tokenUrlCustomProperties"))
                                        .build())
                                .profileProperties(Map.of(
                                        "profilePropertiesKey", "profileProperties"))
                                .build())
                        .datadog(DatadogConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .dynatrace(DynatraceConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .inforNexus(InforNexusConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .marketo(MarketoConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .pardot(PardotConnectorProfilePropertiesProperty.builder()
                                .businessUnitId("businessUnitId")

                                // the properties below are optional
                                .instanceUrl("instanceUrl")
                                .isSandboxEnvironment(false)
                                .build())
                        .redshift(RedshiftConnectorProfilePropertiesProperty.builder()
                                .bucketName("bucketName")
                                .roleArn("roleArn")

                                // the properties below are optional
                                .bucketPrefix("bucketPrefix")
                                .clusterIdentifier("clusterIdentifier")
                                .dataApiRoleArn("dataApiRoleArn")
                                .databaseName("databaseName")
                                .databaseUrl("databaseUrl")
                                .isRedshiftServerless(false)
                                .workgroupName("workgroupName")
                                .build())
                        .salesforce(SalesforceConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .isSandboxEnvironment(false)
                                .usePrivateLinkForMetadataAndAuthorization(false)
                                .build())
                        .sapoData(SAPODataConnectorProfilePropertiesProperty.builder()
                                .applicationHostUrl("applicationHostUrl")
                                .applicationServicePath("applicationServicePath")
                                .clientNumber("clientNumber")
                                .disableSso(false)
                                .logonLanguage("logonLanguage")
                                .oAuthProperties(OAuthPropertiesProperty.builder()
                                        .authCodeUrl("authCodeUrl")
                                        .oAuthScopes(List.of("oAuthScopes"))
                                        .tokenUrl("tokenUrl")
                                        .build())
                                .portNumber(123)
                                .privateLinkServiceName("privateLinkServiceName")
                                .build())
                        .serviceNow(ServiceNowConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .slack(SlackConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .snowflake(SnowflakeConnectorProfilePropertiesProperty.builder()
                                .bucketName("bucketName")
                                .stage("stage")
                                .warehouse("warehouse")

                                // the properties below are optional
                                .accountName("accountName")
                                .bucketPrefix("bucketPrefix")
                                .privateLinkServiceName("privateLinkServiceName")
                                .region("region")
                                .build())
                        .veeva(VeevaConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .zendesk(ZendeskConnectorProfilePropertiesProperty.builder()
                                .instanceUrl("instanceUrl")
                                .build())
                        .build())
                .build())
        .kmsArn("kmsArn")
        .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 cfnConnectorProfile = new CfnConnectorProfile(this, "MyCfnConnectorProfile", new CfnConnectorProfileProps {
    ConnectionMode = "connectionMode",
    ConnectorProfileName = "connectorProfileName",
    ConnectorType = "connectorType",

    // the properties below are optional
    ConnectorLabel = "connectorLabel",
    ConnectorProfileConfig = new ConnectorProfileConfigProperty {
        ConnectorProfileCredentials = new ConnectorProfileCredentialsProperty {
            Amplitude = new AmplitudeConnectorProfileCredentialsProperty {
                ApiKey = "apiKey",
                SecretKey = "secretKey"
            },
            CustomConnector = 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"
                }
            },
            Datadog = new DatadogConnectorProfileCredentialsProperty {
                ApiKey = "apiKey",
                ApplicationKey = "applicationKey"
            },
            Dynatrace = new DynatraceConnectorProfileCredentialsProperty {
                ApiToken = "apiToken"
            },
            GoogleAnalytics = new GoogleAnalyticsConnectorProfileCredentialsProperty {
                ClientId = "clientId",
                ClientSecret = "clientSecret",

                // the properties below are optional
                AccessToken = "accessToken",
                ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
                    AuthCode = "authCode",
                    RedirectUri = "redirectUri"
                },
                RefreshToken = "refreshToken"
            },
            InforNexus = new InforNexusConnectorProfileCredentialsProperty {
                AccessKeyId = "accessKeyId",
                Datakey = "datakey",
                SecretAccessKey = "secretAccessKey",
                UserId = "userId"
            },
            Marketo = new MarketoConnectorProfileCredentialsProperty {
                ClientId = "clientId",
                ClientSecret = "clientSecret",

                // the properties below are optional
                AccessToken = "accessToken",
                ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
                    AuthCode = "authCode",
                    RedirectUri = "redirectUri"
                }
            },
            Pardot = new PardotConnectorProfileCredentialsProperty {
                AccessToken = "accessToken",
                ClientCredentialsArn = "clientCredentialsArn",
                ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
                    AuthCode = "authCode",
                    RedirectUri = "redirectUri"
                },
                RefreshToken = "refreshToken"
            },
            Redshift = new RedshiftConnectorProfileCredentialsProperty {
                Password = "password",
                Username = "username"
            },
            Salesforce = new SalesforceConnectorProfileCredentialsProperty {
                AccessToken = "accessToken",
                ClientCredentialsArn = "clientCredentialsArn",
                ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
                    AuthCode = "authCode",
                    RedirectUri = "redirectUri"
                },
                JwtToken = "jwtToken",
                OAuth2GrantType = "oAuth2GrantType",
                RefreshToken = "refreshToken"
            },
            SapoData = new SAPODataConnectorProfileCredentialsProperty {
                BasicAuthCredentials = new BasicAuthCredentialsProperty {
                    Password = "password",
                    Username = "username"
                },
                OAuthCredentials = new OAuthCredentialsProperty {
                    AccessToken = "accessToken",
                    ClientId = "clientId",
                    ClientSecret = "clientSecret",
                    ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
                        AuthCode = "authCode",
                        RedirectUri = "redirectUri"
                    },
                    RefreshToken = "refreshToken"
                }
            },
            ServiceNow = new ServiceNowConnectorProfileCredentialsProperty {
                OAuth2Credentials = new OAuth2CredentialsProperty {
                    AccessToken = "accessToken",
                    ClientId = "clientId",
                    ClientSecret = "clientSecret",
                    OAuthRequest = new ConnectorOAuthRequestProperty {
                        AuthCode = "authCode",
                        RedirectUri = "redirectUri"
                    },
                    RefreshToken = "refreshToken"
                },
                Password = "password",
                Username = "username"
            },
            Singular = new SingularConnectorProfileCredentialsProperty {
                ApiKey = "apiKey"
            },
            Slack = new SlackConnectorProfileCredentialsProperty {
                ClientId = "clientId",
                ClientSecret = "clientSecret",

                // the properties below are optional
                AccessToken = "accessToken",
                ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
                    AuthCode = "authCode",
                    RedirectUri = "redirectUri"
                }
            },
            Snowflake = new SnowflakeConnectorProfileCredentialsProperty {
                Password = "password",
                Username = "username"
            },
            Trendmicro = new TrendmicroConnectorProfileCredentialsProperty {
                ApiSecretKey = "apiSecretKey"
            },
            Veeva = new VeevaConnectorProfileCredentialsProperty {
                Password = "password",
                Username = "username"
            },
            Zendesk = new ZendeskConnectorProfileCredentialsProperty {
                ClientId = "clientId",
                ClientSecret = "clientSecret",

                // the properties below are optional
                AccessToken = "accessToken",
                ConnectorOAuthRequest = new ConnectorOAuthRequestProperty {
                    AuthCode = "authCode",
                    RedirectUri = "redirectUri"
                }
            }
        },
        ConnectorProfileProperties = new ConnectorProfilePropertiesProperty {
            CustomConnector = new CustomConnectorProfilePropertiesProperty {
                OAuth2Properties = new OAuth2PropertiesProperty {
                    OAuth2GrantType = "oAuth2GrantType",
                    TokenUrl = "tokenUrl",
                    TokenUrlCustomProperties = new Dictionary<string, string> {
                        { "tokenUrlCustomPropertiesKey", "tokenUrlCustomProperties" }
                    }
                },
                ProfileProperties = new Dictionary<string, string> {
                    { "profilePropertiesKey", "profileProperties" }
                }
            },
            Datadog = new DatadogConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            },
            Dynatrace = new DynatraceConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            },
            InforNexus = new InforNexusConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            },
            Marketo = new MarketoConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            },
            Pardot = new PardotConnectorProfilePropertiesProperty {
                BusinessUnitId = "businessUnitId",

                // the properties below are optional
                InstanceUrl = "instanceUrl",
                IsSandboxEnvironment = false
            },
            Redshift = new RedshiftConnectorProfilePropertiesProperty {
                BucketName = "bucketName",
                RoleArn = "roleArn",

                // the properties below are optional
                BucketPrefix = "bucketPrefix",
                ClusterIdentifier = "clusterIdentifier",
                DataApiRoleArn = "dataApiRoleArn",
                DatabaseName = "databaseName",
                DatabaseUrl = "databaseUrl",
                IsRedshiftServerless = false,
                WorkgroupName = "workgroupName"
            },
            Salesforce = new SalesforceConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl",
                IsSandboxEnvironment = false,
                UsePrivateLinkForMetadataAndAuthorization = false
            },
            SapoData = new SAPODataConnectorProfilePropertiesProperty {
                ApplicationHostUrl = "applicationHostUrl",
                ApplicationServicePath = "applicationServicePath",
                ClientNumber = "clientNumber",
                DisableSso = false,
                LogonLanguage = "logonLanguage",
                OAuthProperties = new OAuthPropertiesProperty {
                    AuthCodeUrl = "authCodeUrl",
                    OAuthScopes = new [] { "oAuthScopes" },
                    TokenUrl = "tokenUrl"
                },
                PortNumber = 123,
                PrivateLinkServiceName = "privateLinkServiceName"
            },
            ServiceNow = new ServiceNowConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            },
            Slack = new SlackConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            },
            Snowflake = new SnowflakeConnectorProfilePropertiesProperty {
                BucketName = "bucketName",
                Stage = "stage",
                Warehouse = "warehouse",

                // the properties below are optional
                AccountName = "accountName",
                BucketPrefix = "bucketPrefix",
                PrivateLinkServiceName = "privateLinkServiceName",
                Region = "region"
            },
            Veeva = new VeevaConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            },
            Zendesk = new ZendeskConnectorProfilePropertiesProperty {
                InstanceUrl = "instanceUrl"
            }
        }
    },
    KmsArn = "kmsArn"
});
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"

cfnConnectorProfile := awscdk.Aws_appflow.NewCfnConnectorProfile(this, jsii.String("MyCfnConnectorProfile"), &CfnConnectorProfileProps{
	ConnectionMode: jsii.String("connectionMode"),
	ConnectorProfileName: jsii.String("connectorProfileName"),
	ConnectorType: jsii.String("connectorType"),

	// the properties below are optional
	ConnectorLabel: jsii.String("connectorLabel"),
	ConnectorProfileConfig: &ConnectorProfileConfigProperty{
		ConnectorProfileCredentials: &ConnectorProfileCredentialsProperty{
			Amplitude: &AmplitudeConnectorProfileCredentialsProperty{
				ApiKey: jsii.String("apiKey"),
				SecretKey: jsii.String("secretKey"),
			},
			CustomConnector: &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"),
				},
			},
			Datadog: &DatadogConnectorProfileCredentialsProperty{
				ApiKey: jsii.String("apiKey"),
				ApplicationKey: jsii.String("applicationKey"),
			},
			Dynatrace: &DynatraceConnectorProfileCredentialsProperty{
				ApiToken: jsii.String("apiToken"),
			},
			GoogleAnalytics: &GoogleAnalyticsConnectorProfileCredentialsProperty{
				ClientId: jsii.String("clientId"),
				ClientSecret: jsii.String("clientSecret"),

				// the properties below are optional
				AccessToken: jsii.String("accessToken"),
				ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
					AuthCode: jsii.String("authCode"),
					RedirectUri: jsii.String("redirectUri"),
				},
				RefreshToken: jsii.String("refreshToken"),
			},
			InforNexus: &InforNexusConnectorProfileCredentialsProperty{
				AccessKeyId: jsii.String("accessKeyId"),
				Datakey: jsii.String("datakey"),
				SecretAccessKey: jsii.String("secretAccessKey"),
				UserId: jsii.String("userId"),
			},
			Marketo: &MarketoConnectorProfileCredentialsProperty{
				ClientId: jsii.String("clientId"),
				ClientSecret: jsii.String("clientSecret"),

				// the properties below are optional
				AccessToken: jsii.String("accessToken"),
				ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
					AuthCode: jsii.String("authCode"),
					RedirectUri: jsii.String("redirectUri"),
				},
			},
			Pardot: &PardotConnectorProfileCredentialsProperty{
				AccessToken: jsii.String("accessToken"),
				ClientCredentialsArn: jsii.String("clientCredentialsArn"),
				ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
					AuthCode: jsii.String("authCode"),
					RedirectUri: jsii.String("redirectUri"),
				},
				RefreshToken: jsii.String("refreshToken"),
			},
			Redshift: &RedshiftConnectorProfileCredentialsProperty{
				Password: jsii.String("password"),
				Username: jsii.String("username"),
			},
			Salesforce: &SalesforceConnectorProfileCredentialsProperty{
				AccessToken: jsii.String("accessToken"),
				ClientCredentialsArn: jsii.String("clientCredentialsArn"),
				ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
					AuthCode: jsii.String("authCode"),
					RedirectUri: jsii.String("redirectUri"),
				},
				JwtToken: jsii.String("jwtToken"),
				OAuth2GrantType: jsii.String("oAuth2GrantType"),
				RefreshToken: jsii.String("refreshToken"),
			},
			SapoData: &SAPODataConnectorProfileCredentialsProperty{
				BasicAuthCredentials: &BasicAuthCredentialsProperty{
					Password: jsii.String("password"),
					Username: jsii.String("username"),
				},
				OAuthCredentials: &OAuthCredentialsProperty{
					AccessToken: jsii.String("accessToken"),
					ClientId: jsii.String("clientId"),
					ClientSecret: jsii.String("clientSecret"),
					ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
						AuthCode: jsii.String("authCode"),
						RedirectUri: jsii.String("redirectUri"),
					},
					RefreshToken: jsii.String("refreshToken"),
				},
			},
			ServiceNow: &ServiceNowConnectorProfileCredentialsProperty{
				OAuth2Credentials: &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"),
				},
				Password: jsii.String("password"),
				Username: jsii.String("username"),
			},
			Singular: &SingularConnectorProfileCredentialsProperty{
				ApiKey: jsii.String("apiKey"),
			},
			Slack: &SlackConnectorProfileCredentialsProperty{
				ClientId: jsii.String("clientId"),
				ClientSecret: jsii.String("clientSecret"),

				// the properties below are optional
				AccessToken: jsii.String("accessToken"),
				ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
					AuthCode: jsii.String("authCode"),
					RedirectUri: jsii.String("redirectUri"),
				},
			},
			Snowflake: &SnowflakeConnectorProfileCredentialsProperty{
				Password: jsii.String("password"),
				Username: jsii.String("username"),
			},
			Trendmicro: &TrendmicroConnectorProfileCredentialsProperty{
				ApiSecretKey: jsii.String("apiSecretKey"),
			},
			Veeva: &VeevaConnectorProfileCredentialsProperty{
				Password: jsii.String("password"),
				Username: jsii.String("username"),
			},
			Zendesk: &ZendeskConnectorProfileCredentialsProperty{
				ClientId: jsii.String("clientId"),
				ClientSecret: jsii.String("clientSecret"),

				// the properties below are optional
				AccessToken: jsii.String("accessToken"),
				ConnectorOAuthRequest: &ConnectorOAuthRequestProperty{
					AuthCode: jsii.String("authCode"),
					RedirectUri: jsii.String("redirectUri"),
				},
			},
		},
		ConnectorProfileProperties: &ConnectorProfilePropertiesProperty{
			CustomConnector: &CustomConnectorProfilePropertiesProperty{
				OAuth2Properties: &OAuth2PropertiesProperty{
					OAuth2GrantType: jsii.String("oAuth2GrantType"),
					TokenUrl: jsii.String("tokenUrl"),
					TokenUrlCustomProperties: map[string]*string{
						"tokenUrlCustomPropertiesKey": jsii.String("tokenUrlCustomProperties"),
					},
				},
				ProfileProperties: map[string]*string{
					"profilePropertiesKey": jsii.String("profileProperties"),
				},
			},
			Datadog: &DatadogConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
			Dynatrace: &DynatraceConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
			InforNexus: &InforNexusConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
			Marketo: &MarketoConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
			Pardot: &PardotConnectorProfilePropertiesProperty{
				BusinessUnitId: jsii.String("businessUnitId"),

				// the properties below are optional
				InstanceUrl: jsii.String("instanceUrl"),
				IsSandboxEnvironment: jsii.Boolean(false),
			},
			Redshift: &RedshiftConnectorProfilePropertiesProperty{
				BucketName: jsii.String("bucketName"),
				RoleArn: jsii.String("roleArn"),

				// the properties below are optional
				BucketPrefix: jsii.String("bucketPrefix"),
				ClusterIdentifier: jsii.String("clusterIdentifier"),
				DataApiRoleArn: jsii.String("dataApiRoleArn"),
				DatabaseName: jsii.String("databaseName"),
				DatabaseUrl: jsii.String("databaseUrl"),
				IsRedshiftServerless: jsii.Boolean(false),
				WorkgroupName: jsii.String("workgroupName"),
			},
			Salesforce: &SalesforceConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
				IsSandboxEnvironment: jsii.Boolean(false),
				UsePrivateLinkForMetadataAndAuthorization: jsii.Boolean(false),
			},
			SapoData: &SAPODataConnectorProfilePropertiesProperty{
				ApplicationHostUrl: jsii.String("applicationHostUrl"),
				ApplicationServicePath: jsii.String("applicationServicePath"),
				ClientNumber: jsii.String("clientNumber"),
				DisableSso: jsii.Boolean(false),
				LogonLanguage: jsii.String("logonLanguage"),
				OAuthProperties: &OAuthPropertiesProperty{
					AuthCodeUrl: jsii.String("authCodeUrl"),
					OAuthScopes: []*string{
						jsii.String("oAuthScopes"),
					},
					TokenUrl: jsii.String("tokenUrl"),
				},
				PortNumber: jsii.Number(123),
				PrivateLinkServiceName: jsii.String("privateLinkServiceName"),
			},
			ServiceNow: &ServiceNowConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
			Slack: &SlackConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
			Snowflake: &SnowflakeConnectorProfilePropertiesProperty{
				BucketName: jsii.String("bucketName"),
				Stage: jsii.String("stage"),
				Warehouse: jsii.String("warehouse"),

				// the properties below are optional
				AccountName: jsii.String("accountName"),
				BucketPrefix: jsii.String("bucketPrefix"),
				PrivateLinkServiceName: jsii.String("privateLinkServiceName"),
				Region: jsii.String("region"),
			},
			Veeva: &VeevaConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
			Zendesk: &ZendeskConnectorProfilePropertiesProperty{
				InstanceUrl: jsii.String("instanceUrl"),
			},
		},
	},
	KmsArn: jsii.String("kmsArn"),
})

Initializer ​

ts
new CfnConnectorProfile(scope: Construct, id: string, props: CfnConnectorProfileProps)
python
CfnConnectorProfile(scope: Construct, id: str, props: CfnConnectorProfileProps)
java
new CfnConnectorProfile(Construct scope, String id, CfnConnectorProfileProps props)
csharp
new CfnConnectorProfile(Construct scope, string id, CfnConnectorProfileProps props)
go
NewCfnConnectorProfile(Scope Construct, Id *string, Props CfnConnectorProfileProps)

Construct Props ​

connectionModestringconnection_modestrconnectionModeStringConnectionModestringConnectionMode*string required #
Indicates the connection mode and if it is public or private.
connectorLabeloptionalstringconnector_labeloptionalstrconnectorLabeloptionalStringConnectorLabeloptionalstringConnectorLabeloptional*string #
The label for the connector profile being created.
connectorProfileConfigoptionalIResolvable | CfnConnectorProfile.ConnectorProfileConfigPropertyconnector_profile_configoptionaltyping.Union[IResolvable, ConnectorProfileConfigProperty]connectorProfileConfigoptionalIResolvableConnectorProfileConfigoptionalIResolvableConnectorProfileConfigoptionalinterface{} #
Defines the connector-specific configuration and credentials.
connectorProfileNamestringconnector_profile_namestrconnectorProfileNameStringConnectorProfileNamestringConnectorProfileName*string required #
The name of the connector profile.

The name is unique for each ConnectorProfile in the AWS account .

connectorTypestringconnector_typestrconnectorTypeStringConnectorTypestringConnectorType*string required #
The type of connector, such as Salesforce, Amplitude, and so on.
kmsArnoptionalstringkms_arnoptionalstrkmsArnoptionalStringKmsArnoptionalstringKmsArnoptional*string #
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption.

This is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key.

Properties ​

attrConnectorProfileArnstringattr_connector_profile_arnstrattrConnectorProfileArnStringAttrConnectorProfileArnstringAttrConnectorProfileArn*string #
The Amazon Resource Name (ARN) of the connector profile.
attrCredentialsArnstringattr_credentials_arnstrattrCredentialsArnStringAttrCredentialsArnstringAttrCredentialsArn*string #
The Amazon Resource Name (ARN) of the connector profile credentials.
CFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAMEstrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*string static #
The CloudFormation resource type name for this resource class.
Options for this resource, such as condition, update policy etc.
cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*string #
AWS resource type.
connectionModestringconnection_modestrconnectionModeStringConnectionModestringConnectionMode*string #
Indicates the connection mode and if it is public or private.
connectorLabelmay be undefinedstringconnector_labelmay be undefinedstrconnectorLabelmay be undefinedStringConnectorLabelmay be undefinedstringConnectorLabelmay be undefined*string #
The label for the connector profile being created.
connectorProfileConfigmay be undefinedIResolvable | CfnConnectorProfile.ConnectorProfileConfigPropertyconnector_profile_configmay be undefinedtyping.Union[IResolvable, ConnectorProfileConfigProperty]connectorProfileConfigmay be undefinedIResolvableConnectorProfileConfigmay be undefinedIResolvableConnectorProfileConfigmay be undefinedinterface{} #
Defines the connector-specific configuration and credentials.
connectorProfileNamestringconnector_profile_namestrconnectorProfileNameStringConnectorProfileNamestringConnectorProfileName*string #
The name of the connector profile.
connectorProfileRefConnectorProfileReferenceconnector_profile_refConnectorProfileReferenceconnectorProfileRefConnectorProfileReferenceConnectorProfileRefConnectorProfileReferenceConnectorProfileRefConnectorProfileReference #
A reference to a ConnectorProfile resource.
connectorTypestringconnector_typestrconnectorTypeStringConnectorTypestringConnectorType*string #
The type of connector, such as Salesforce, Amplitude, and so on.
creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*string #
kmsArnmay be undefinedstringkms_arnmay be undefinedstrkmsArnmay be undefinedStringKmsArnmay be undefinedstringKmsArnmay be undefined*string #
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption.
logicalIdstringlogical_idstrlogicalIdStringLogicalIdstringLogicalId*string #
The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

nodeNodenodeNodenodeNodeNodeNodeNodeNode #
The tree node.
refstringrefstrrefStringRefstringRef*string #
Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

stackStackstackStackstackStackStackStackStackStack #
The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Methods ​

addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string) #
Syntactic sugar for `addOverride(path, undefined)`.
1 parameter

Parameters

  • pathpathpathpathPath — The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource) deprecated #
Use `addResourceDependency` instead.

This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.

addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource) deprecated #
Use `addResourceDependency` instead.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.

addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{}) #
Add a value to the CloudFormation Resource Metadata.
addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{}) #
Adds an override to the synthesized CloudFormation resource.
notes · 2 parameters

To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example,

typescript
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');

would add the overrides

json
"Properties": {
  "GlobalSecondaryIndexes": [
    {
      "Projection": {
        "NonKeyAttributes": [ "myattribute" ]
        ...
      }
      ...
    },
    {
      "ProjectionType": "INCLUDE"
      ...
    },
  ]
  ...
}

The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.

Parameters

  • pathpathpathpathPath — - The path of the property, you can use dot notation to override values in complex types.
  • valuevaluevaluevalueValue — - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string) #
Adds an override that deletes the value of a property from the resource definition.
1 parameter

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{}) #
Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

2 parameters

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path of the property.
  • valuevaluevaluevalueValue — The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string) #
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.

applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength) #
Sets the cross-stack reference strength for this resource.

When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.

1 parameter

Parameters

  • strengthstrengthstrengthstrengthStrength — - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions) #
Sets the deletion policy of the resource based on the removal policy specified.
notes

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

arnForConnectorProfile(resource: IConnectorProfileRef): string@staticmethod def arn_for_connector_profile(resource: IConnectorProfileRef) -> strpublic static String arnForConnectorProfile(IConnectorProfileRef resource)public static string ArnForConnectorProfile(IConnectorProfileRef resource)func ArnForConnectorProfile(Resource IConnectorProfileRef) *string static #
cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string #
getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference #
Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

1 parameter

Parameters

  • attributeNameattribute_nameattributeNameattributeNameAttributeName — The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{} #
Retrieve a value value from the CloudFormation Resource Metadata.
inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector) #
Examines the CloudFormation resource and discloses attributes.
1 parameter

Parameters

  • inspectorinspectorinspectorinspectorInspector — tree inspector to collect and process attributes.
isCfnConnectorProfile(x: any): boolean@staticmethod def is_cfn_connector_profile(x: Any) -> boolpublic static Boolean isCfnConnectorProfile(Object x)public static bool IsCfnConnectorProfile(object x)func IsCfnConnectorProfile(X interface{}) *bool static #
Checks whether the given object is a CfnConnectorProfile.
isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *bool static #
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

returns

Returns: The construct as a stack element or undefined if it is not a stack element.

isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *bool static #
Check whether the given object is a CfnResource.
isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *bool static #
Checks if `x` is a construct.
notes · 1 parameter · returns

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Construct.

obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{} #
Retrieves an array of resources and stacks this resource depends on.

For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.

overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string) #
Overrides the auto-generated logical ID with a specific ID.
1 parameter

Parameters

  • newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId — The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource) deprecated #
Use `removeResourceDependency` instead

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource) #
Indicates that this resource no longer depends on another resource.

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource) #
Replaces one dependency with another.
2 parameters

Parameters

  • targettargettargettargetTarget — The dependency to replace.
  • newTargetnew_targetnewTargetnewTargetNewTarget — The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string #
Returns a string representation of this construct.
returns

Returns: a string representation of this resource

with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct #
Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.