Class: AWSCDK::AppFlow::CfnConnectorProfile::PardotConnectorProfileCredentialsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnConnectorProfile::PardotConnectorProfileCredentialsProperty
- Defined in:
- app_flow/cfn_connector_profile.rb
Overview
The connector-specific profile credentials required when using Salesforce Pardot.
Instance Attribute Summary collapse
-
#access_token ⇒ String?
readonly
The credentials used to access protected Salesforce Pardot resources.
-
#client_credentials_arn ⇒ String?
readonly
The secret manager ARN, which contains the client ID and client secret of the connected app.
- #connector_o_auth_request ⇒ AWSCDK::IResolvable, ... readonly
-
#refresh_token ⇒ String?
readonly
The credentials used to acquire new access tokens.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_token: nil, client_credentials_arn: nil, connector_o_auth_request: nil, refresh_token: nil) ⇒ PardotConnectorProfileCredentialsProperty
constructor
A new instance of PardotConnectorProfileCredentialsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_token: nil, client_credentials_arn: nil, connector_o_auth_request: nil, refresh_token: nil) ⇒ PardotConnectorProfileCredentialsProperty
Returns a new instance of PardotConnectorProfileCredentialsProperty.
1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 |
# File 'app_flow/cfn_connector_profile.rb', line 1989 def initialize(access_token: nil, client_credentials_arn: nil, connector_o_auth_request: nil, refresh_token: nil) @access_token = access_token Jsii::Type.check_type(@access_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessToken") unless @access_token.nil? @client_credentials_arn = client_credentials_arn Jsii::Type.check_type(@client_credentials_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientCredentialsArn") unless @client_credentials_arn.nil? @connector_o_auth_request = connector_o_auth_request.is_a?(Hash) ? ::AWSCDK::AppFlow::CfnConnectorProfile::ConnectorOAuthRequestProperty.new(**connector_o_auth_request.transform_keys(&:to_sym)) : connector_o_auth_request Jsii::Type.check_type(@connector_o_auth_request, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBmbG93LkNmbkNvbm5lY3RvclByb2ZpbGUuQ29ubmVjdG9yT0F1dGhSZXF1ZXN0UHJvcGVydHkifV19fQ==")), "connectorOAuthRequest") unless @connector_o_auth_request.nil? @refresh_token = refresh_token Jsii::Type.check_type(@refresh_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "refreshToken") unless @refresh_token.nil? end |
Instance Attribute Details
#access_token ⇒ String? (readonly)
The credentials used to access protected Salesforce Pardot resources.
2004 2005 2006 |
# File 'app_flow/cfn_connector_profile.rb', line 2004 def access_token @access_token end |
#client_credentials_arn ⇒ String? (readonly)
The secret manager ARN, which contains the client ID and client secret of the connected app.
2009 2010 2011 |
# File 'app_flow/cfn_connector_profile.rb', line 2009 def client_credentials_arn @client_credentials_arn end |
#connector_o_auth_request ⇒ AWSCDK::IResolvable, ... (readonly)
2012 2013 2014 |
# File 'app_flow/cfn_connector_profile.rb', line 2012 def connector_o_auth_request @connector_o_auth_request end |
#refresh_token ⇒ String? (readonly)
The credentials used to acquire new access tokens.
2017 2018 2019 |
# File 'app_flow/cfn_connector_profile.rb', line 2017 def refresh_token @refresh_token end |
Class Method Details
.jsii_properties ⇒ Object
2019 2020 2021 2022 2023 2024 2025 2026 |
# File 'app_flow/cfn_connector_profile.rb', line 2019 def self.jsii_properties { :access_token => "accessToken", :client_credentials_arn => "clientCredentialsArn", :connector_o_auth_request => "connectorOAuthRequest", :refresh_token => "refreshToken", } end |
Instance Method Details
#to_jsii ⇒ Object
2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 |
# File 'app_flow/cfn_connector_profile.rb', line 2028 def to_jsii result = {} result.merge!({ "accessToken" => @access_token, "clientCredentialsArn" => @client_credentials_arn, "connectorOAuthRequest" => @connector_o_auth_request, "refreshToken" => @refresh_token, }) result.compact end |