Class: AWSCDK::AppFlow::CfnConnectorProfile::OAuth2PropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnConnectorProfile::OAuth2PropertiesProperty
- Defined in:
- app_flow/cfn_connector_profile.rb
Overview
The OAuth 2.0 properties required for OAuth 2.0 authentication.
Instance Attribute Summary collapse
-
#o_auth2_grant_type ⇒ String?
readonly
The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.
-
#token_url ⇒ String?
readonly
The token URL required for OAuth 2.0 authentication.
-
#token_url_custom_properties ⇒ AWSCDK::IResolvable, ...
readonly
Associates your token URL with a map of properties that you define.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(o_auth2_grant_type: nil, token_url: nil, token_url_custom_properties: nil) ⇒ OAuth2PropertiesProperty
constructor
A new instance of OAuth2PropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(o_auth2_grant_type: nil, token_url: nil, token_url_custom_properties: nil) ⇒ OAuth2PropertiesProperty
Returns a new instance of OAuth2PropertiesProperty.
1809 1810 1811 1812 1813 1814 1815 1816 |
# File 'app_flow/cfn_connector_profile.rb', line 1809 def initialize(o_auth2_grant_type: nil, token_url: nil, token_url_custom_properties: nil) @o_auth2_grant_type = o_auth2_grant_type Jsii::Type.check_type(@o_auth2_grant_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "oAuth2GrantType") unless @o_auth2_grant_type.nil? @token_url = token_url Jsii::Type.check_type(@token_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenUrl") unless @token_url.nil? @token_url_custom_properties = token_url_custom_properties Jsii::Type.check_type(@token_url_custom_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "tokenUrlCustomProperties") unless @token_url_custom_properties.nil? end |
Instance Attribute Details
#o_auth2_grant_type ⇒ String? (readonly)
The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.
1822 1823 1824 |
# File 'app_flow/cfn_connector_profile.rb', line 1822 def o_auth2_grant_type @o_auth2_grant_type end |
#token_url ⇒ String? (readonly)
The token URL required for OAuth 2.0 authentication.
1827 1828 1829 |
# File 'app_flow/cfn_connector_profile.rb', line 1827 def token_url @token_url end |
#token_url_custom_properties ⇒ AWSCDK::IResolvable, ... (readonly)
Associates your token URL with a map of properties that you define.
Use this parameter to provide any additional details that the connector requires to authenticate your request.
1834 1835 1836 |
# File 'app_flow/cfn_connector_profile.rb', line 1834 def token_url_custom_properties @token_url_custom_properties end |
Class Method Details
.jsii_properties ⇒ Object
1836 1837 1838 1839 1840 1841 1842 |
# File 'app_flow/cfn_connector_profile.rb', line 1836 def self.jsii_properties { :o_auth2_grant_type => "oAuth2GrantType", :token_url => "tokenUrl", :token_url_custom_properties => "tokenUrlCustomProperties", } end |
Instance Method Details
#to_jsii ⇒ Object
1844 1845 1846 1847 1848 1849 1850 1851 1852 |
# File 'app_flow/cfn_connector_profile.rb', line 1844 def to_jsii result = {} result.merge!({ "oAuth2GrantType" => @o_auth2_grant_type, "tokenUrl" => @token_url, "tokenUrlCustomProperties" => @token_url_custom_properties, }) result.compact end |