Class: AWSCDK::DataZone::CfnConnection::OAuth2PropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataZone::CfnConnection::OAuth2PropertiesProperty
- Defined in:
- data_zone/cfn_connection.rb
Overview
The OAuth2 properties.
Instance Attribute Summary collapse
-
#authorization_code_properties ⇒ AWSCDK::IResolvable, ...
readonly
The authorization code properties of the OAuth2 properties.
-
#o_auth2_client_application ⇒ AWSCDK::IResolvable, ...
readonly
The OAuth2 client application of the OAuth2 properties.
-
#o_auth2_credentials ⇒ AWSCDK::IResolvable, ...
readonly
The OAuth2 credentials of the OAuth2 properties.
-
#o_auth2_grant_type ⇒ String?
readonly
The OAuth2 grant type of the OAuth2 properties.
-
#token_url ⇒ String?
readonly
The OAuth2 token URL of the OAuth2 properties.
-
#token_url_parameters_map ⇒ AWSCDK::IResolvable, ...
readonly
The OAuth2 token URL parameter map of the OAuth2 properties.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authorization_code_properties: nil, o_auth2_client_application: nil, o_auth2_credentials: nil, o_auth2_grant_type: nil, token_url: nil, token_url_parameters_map: nil) ⇒ OAuth2PropertiesProperty
constructor
A new instance of OAuth2PropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorization_code_properties: nil, o_auth2_client_application: nil, o_auth2_credentials: nil, o_auth2_grant_type: nil, token_url: nil, token_url_parameters_map: nil) ⇒ OAuth2PropertiesProperty
Returns a new instance of OAuth2PropertiesProperty.
1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 |
# File 'data_zone/cfn_connection.rb', line 1631 def initialize(authorization_code_properties: nil, o_auth2_client_application: nil, o_auth2_credentials: nil, o_auth2_grant_type: nil, token_url: nil, token_url_parameters_map: nil) @authorization_code_properties = .is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::AuthorizationCodePropertiesProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@authorization_code_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLkF1dGhvcml6YXRpb25Db2RlUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "authorizationCodeProperties") unless @authorization_code_properties.nil? @o_auth2_client_application = o_auth2_client_application.is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::OAuth2ClientApplicationProperty.new(**o_auth2_client_application.transform_keys(&:to_sym)) : o_auth2_client_application Jsii::Type.check_type(@o_auth2_client_application, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLk9BdXRoMkNsaWVudEFwcGxpY2F0aW9uUHJvcGVydHkifV19fQ==")), "oAuth2ClientApplication") unless @o_auth2_client_application.nil? @o_auth2_credentials = o_auth2_credentials.is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::GlueOAuth2CredentialsProperty.new(**o_auth2_credentials.transform_keys(&:to_sym)) : o_auth2_credentials Jsii::Type.check_type(@o_auth2_credentials, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLkdsdWVPQXV0aDJDcmVkZW50aWFsc1Byb3BlcnR5In1dfX0=")), "oAuth2Credentials") unless @o_auth2_credentials.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_parameters_map = token_url_parameters_map Jsii::Type.check_type(@token_url_parameters_map, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "tokenUrlParametersMap") unless @token_url_parameters_map.nil? end |
Instance Attribute Details
#authorization_code_properties ⇒ AWSCDK::IResolvable, ... (readonly)
The authorization code properties of the OAuth2 properties.
1650 1651 1652 |
# File 'data_zone/cfn_connection.rb', line 1650 def @authorization_code_properties end |
#o_auth2_client_application ⇒ AWSCDK::IResolvable, ... (readonly)
The OAuth2 client application of the OAuth2 properties.
1655 1656 1657 |
# File 'data_zone/cfn_connection.rb', line 1655 def o_auth2_client_application @o_auth2_client_application end |
#o_auth2_credentials ⇒ AWSCDK::IResolvable, ... (readonly)
The OAuth2 credentials of the OAuth2 properties.
1660 1661 1662 |
# File 'data_zone/cfn_connection.rb', line 1660 def o_auth2_credentials @o_auth2_credentials end |
#o_auth2_grant_type ⇒ String? (readonly)
The OAuth2 grant type of the OAuth2 properties.
1665 1666 1667 |
# File 'data_zone/cfn_connection.rb', line 1665 def o_auth2_grant_type @o_auth2_grant_type end |
#token_url ⇒ String? (readonly)
The OAuth2 token URL of the OAuth2 properties.
1670 1671 1672 |
# File 'data_zone/cfn_connection.rb', line 1670 def token_url @token_url end |
#token_url_parameters_map ⇒ AWSCDK::IResolvable, ... (readonly)
The OAuth2 token URL parameter map of the OAuth2 properties.
1675 1676 1677 |
# File 'data_zone/cfn_connection.rb', line 1675 def token_url_parameters_map @token_url_parameters_map end |
Class Method Details
.jsii_properties ⇒ Object
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 |
# File 'data_zone/cfn_connection.rb', line 1677 def self.jsii_properties { :authorization_code_properties => "authorizationCodeProperties", :o_auth2_client_application => "oAuth2ClientApplication", :o_auth2_credentials => "oAuth2Credentials", :o_auth2_grant_type => "oAuth2GrantType", :token_url => "tokenUrl", :token_url_parameters_map => "tokenUrlParametersMap", } end |
Instance Method Details
#to_jsii ⇒ Object
1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 |
# File 'data_zone/cfn_connection.rb', line 1688 def to_jsii result = {} result.merge!({ "authorizationCodeProperties" => @authorization_code_properties, "oAuth2ClientApplication" => @o_auth2_client_application, "oAuth2Credentials" => @o_auth2_credentials, "oAuth2GrantType" => @o_auth2_grant_type, "tokenUrl" => @token_url, "tokenUrlParametersMap" => @token_url_parameters_map, }) result.compact end |