Struct aws_sdk_appflow::types::SalesforceMetadata
source · #[non_exhaustive]pub struct SalesforceMetadata {
pub o_auth_scopes: Option<Vec<String>>,
pub data_transfer_apis: Option<Vec<SalesforceDataTransferApi>>,
pub oauth2_grant_types_supported: Option<Vec<OAuth2GrantType>>,
}
Expand description
The connector metadata specific to Salesforce.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.o_auth_scopes: Option<Vec<String>>
The desired authorization scope for the Salesforce account.
data_transfer_apis: Option<Vec<SalesforceDataTransferApi>>
The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce.
oauth2_grant_types_supported: Option<Vec<OAuth2GrantType>>
The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce records.
- 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.
Implementations§
source§impl SalesforceMetadata
impl SalesforceMetadata
sourcepub fn o_auth_scopes(&self) -> &[String]
pub fn o_auth_scopes(&self) -> &[String]
The desired authorization scope for the Salesforce account.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .o_auth_scopes.is_none()
.
sourcepub fn data_transfer_apis(&self) -> &[SalesforceDataTransferApi]
pub fn data_transfer_apis(&self) -> &[SalesforceDataTransferApi]
The Salesforce APIs that you can have Amazon AppFlow use when your flows transfers data to or from Salesforce.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .data_transfer_apis.is_none()
.
sourcepub fn oauth2_grant_types_supported(&self) -> &[OAuth2GrantType]
pub fn oauth2_grant_types_supported(&self) -> &[OAuth2GrantType]
The OAuth 2.0 grant types that Amazon AppFlow can use when it requests an access token from Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce records.
- 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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .oauth2_grant_types_supported.is_none()
.
source§impl SalesforceMetadata
impl SalesforceMetadata
sourcepub fn builder() -> SalesforceMetadataBuilder
pub fn builder() -> SalesforceMetadataBuilder
Creates a new builder-style object to manufacture SalesforceMetadata
.
Trait Implementations§
source§impl Clone for SalesforceMetadata
impl Clone for SalesforceMetadata
source§fn clone(&self) -> SalesforceMetadata
fn clone(&self) -> SalesforceMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SalesforceMetadata
impl Debug for SalesforceMetadata
source§impl PartialEq for SalesforceMetadata
impl PartialEq for SalesforceMetadata
source§fn eq(&self, other: &SalesforceMetadata) -> bool
fn eq(&self, other: &SalesforceMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.