Interface CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Jsii$Proxy
- Enclosing class:
CfnConnectorProfile
@Stability(Stable)
public static interface CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty
extends software.amazon.jsii.JsiiSerializable
The connector-specific profile credentials required when using Salesforce.
Example:
// 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.*; SalesforceConnectorProfileCredentialsProperty salesforceConnectorProfileCredentialsProperty = SalesforceConnectorProfileCredentialsProperty.builder() .accessToken("accessToken") .clientCredentialsArn("clientCredentialsArn") .connectorOAuthRequest(ConnectorOAuthRequestProperty.builder() .authCode("authCode") .redirectUri("redirectUri") .build()) .jwtToken("jwtToken") .oAuth2GrantType("oAuth2GrantType") .refreshToken("refreshToken") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The credentials used to access protected Salesforce resources.default String
The secret manager ARN, which contains the client ID and client secret of the connected app.default Object
Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.default String
A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce records.default String
Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from Salesforce.default String
The credentials used to acquire new access tokens.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessToken
The credentials used to access protected Salesforce resources.- See Also:
-
getClientCredentialsArn
The secret manager ARN, which contains the client ID and client secret of the connected app.- See Also:
-
getConnectorOAuthRequest
Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.- See Also:
-
getJwtToken
A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce records.- See Also:
-
getOAuth2GrantType
Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce records.You can specify one of the following values:
- AUTHORIZATION_CODE - Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon AppFlow to access your records.
- CLIENT_CREDENTIALS - Amazon AppFlow passes client credentials (a client ID and client secret) when it requests the access token from Salesforce. You provide these credentials to Amazon AppFlow when you define the connection to your Salesforce account.
- JWT_BEARER - Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records.
- See Also:
-
getRefreshToken
The credentials used to acquire new access tokens.- See Also:
-
builder
@Stability(Stable) static CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder builder()
-