Class: AWSCDK::AppFlow::CfnConnectorProfile::ConnectorOAuthRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnConnectorProfile::ConnectorOAuthRequestProperty
- Defined in:
- app_flow/cfn_connector_profile.rb
Overview
Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
Instance Attribute Summary collapse
-
#auth_code ⇒ String?
readonly
The code provided by the connector when it has been authenticated via the connected app.
-
#redirect_uri ⇒ String?
readonly
The URL to which the authentication server redirects the browser after authorization has been granted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth_code: nil, redirect_uri: nil) ⇒ ConnectorOAuthRequestProperty
constructor
A new instance of ConnectorOAuthRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auth_code: nil, redirect_uri: nil) ⇒ ConnectorOAuthRequestProperty
Returns a new instance of ConnectorOAuthRequestProperty.
715 716 717 718 719 720 |
# File 'app_flow/cfn_connector_profile.rb', line 715 def initialize(auth_code: nil, redirect_uri: nil) @auth_code = auth_code Jsii::Type.check_type(@auth_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authCode") unless @auth_code.nil? @redirect_uri = redirect_uri Jsii::Type.check_type(@redirect_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "redirectUri") unless @redirect_uri.nil? end |
Instance Attribute Details
#auth_code ⇒ String? (readonly)
The code provided by the connector when it has been authenticated via the connected app.
726 727 728 |
# File 'app_flow/cfn_connector_profile.rb', line 726 def auth_code @auth_code end |
#redirect_uri ⇒ String? (readonly)
The URL to which the authentication server redirects the browser after authorization has been granted.
731 732 733 |
# File 'app_flow/cfn_connector_profile.rb', line 731 def redirect_uri @redirect_uri end |
Class Method Details
.jsii_properties ⇒ Object
733 734 735 736 737 738 |
# File 'app_flow/cfn_connector_profile.rb', line 733 def self.jsii_properties { :auth_code => "authCode", :redirect_uri => "redirectUri", } end |
Instance Method Details
#to_jsii ⇒ Object
740 741 742 743 744 745 746 747 |
# File 'app_flow/cfn_connector_profile.rb', line 740 def to_jsii result = {} result.merge!({ "authCode" => @auth_code, "redirectUri" => @redirect_uri, }) result.compact end |