UNPKG

@cdklabs/cdk-appflow

Version:

*Note:* this library is currently in technical preview.

31 lines (30 loc) 1.73 kB
import { SecretValue } from "aws-cdk-lib"; import { CfnConnectorProfile } from "aws-cdk-lib/aws-appflow"; import { Construct } from "constructs"; import { ConnectorProfileBase, ConnectorProfileProps } from "../core/connectors/connector-profile"; export interface SalesforceMarketingCloudConnectorProfileProps extends ConnectorProfileProps { readonly oAuth: SalesforceMarketingCloudOAuthSettings; readonly instanceUrl: string; } export interface SalesforceMarketingCloudOAuthEndpoints { readonly token: string; } export interface SalesforceMarketingCloudOAuthClientSettings { readonly clientId: SecretValue; readonly clientSecret: SecretValue; } export interface SalesforceMarketingCloudFlowSettings { readonly clientCredentials: SalesforceMarketingCloudOAuthClientSettings; } export interface SalesforceMarketingCloudOAuthSettings { readonly accessToken?: SecretValue; readonly flow?: SalesforceMarketingCloudFlowSettings; readonly endpoints: SalesforceMarketingCloudOAuthEndpoints; } export declare class SalesforceMarketingCloudConnectorProfile extends ConnectorProfileBase { static fromConnectionProfileArn(scope: Construct, id: string, arn: string): SalesforceMarketingCloudConnectorProfile; static fromConnectionProfileName(scope: Construct, id: string, name: string): SalesforceMarketingCloudConnectorProfile; constructor(scope: Construct, id: string, props: SalesforceMarketingCloudConnectorProfileProps); protected buildConnectorProfileProperties(props: ConnectorProfileProps): CfnConnectorProfile.ConnectorProfilePropertiesProperty; protected buildConnectorProfileCredentials(props: ConnectorProfileProps): CfnConnectorProfile.ConnectorProfileCredentialsProperty; }