Class: AWSCDK::AppFlow::CfnConnectorProfile::ConnectorOAuthRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_code: nil, redirect_uri: nil) ⇒ ConnectorOAuthRequestProperty

Returns a new instance of ConnectorOAuthRequestProperty.

Parameters:

  • auth_code (String, nil) (defaults to: nil)

    The code provided by the connector when it has been authenticated via the connected app.

  • redirect_uri (String, nil) (defaults to: nil)

    The URL to which the authentication server redirects the browser after authorization has been granted.



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_codeString? (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_uriString? (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_propertiesObject



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_jsiiObject



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