Class: AWSCDK::DataZone::CfnConnection::GlueOAuth2CredentialsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataZone::CfnConnection::GlueOAuth2CredentialsProperty
- Defined in:
- data_zone/cfn_connection.rb
Overview
The GlueOAuth2 credentials of a connection.
Instance Attribute Summary collapse
-
#access_token ⇒ String?
readonly
The access token of a connection.
-
#jwt_token ⇒ String?
readonly
The jwt token of the connection.
-
#refresh_token ⇒ String?
readonly
The refresh token of the connection.
-
#user_managed_client_application_client_secret ⇒ String?
readonly
The user managed client application client secret of the connection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(access_token: nil, jwt_token: nil, refresh_token: nil, user_managed_client_application_client_secret: nil) ⇒ GlueOAuth2CredentialsProperty
constructor
A new instance of GlueOAuth2CredentialsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(access_token: nil, jwt_token: nil, refresh_token: nil, user_managed_client_application_client_secret: nil) ⇒ GlueOAuth2CredentialsProperty
Returns a new instance of GlueOAuth2CredentialsProperty.
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 |
# File 'data_zone/cfn_connection.rb', line 1325 def initialize(access_token: nil, jwt_token: nil, refresh_token: nil, user_managed_client_application_client_secret: nil) @access_token = access_token Jsii::Type.check_type(@access_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessToken") unless @access_token.nil? @jwt_token = jwt_token Jsii::Type.check_type(@jwt_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jwtToken") unless @jwt_token.nil? @refresh_token = refresh_token Jsii::Type.check_type(@refresh_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "refreshToken") unless @refresh_token.nil? @user_managed_client_application_client_secret = user_managed_client_application_client_secret Jsii::Type.check_type(@user_managed_client_application_client_secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userManagedClientApplicationClientSecret") unless @user_managed_client_application_client_secret.nil? end |
Instance Attribute Details
#access_token ⇒ String? (readonly)
The access token of a connection.
1340 1341 1342 |
# File 'data_zone/cfn_connection.rb', line 1340 def access_token @access_token end |
#jwt_token ⇒ String? (readonly)
The jwt token of the connection.
1345 1346 1347 |
# File 'data_zone/cfn_connection.rb', line 1345 def jwt_token @jwt_token end |
#refresh_token ⇒ String? (readonly)
The refresh token of the connection.
1350 1351 1352 |
# File 'data_zone/cfn_connection.rb', line 1350 def refresh_token @refresh_token end |
#user_managed_client_application_client_secret ⇒ String? (readonly)
The user managed client application client secret of the connection.
1355 1356 1357 |
# File 'data_zone/cfn_connection.rb', line 1355 def user_managed_client_application_client_secret @user_managed_client_application_client_secret end |
Class Method Details
.jsii_properties ⇒ Object
1357 1358 1359 1360 1361 1362 1363 1364 |
# File 'data_zone/cfn_connection.rb', line 1357 def self.jsii_properties { :access_token => "accessToken", :jwt_token => "jwtToken", :refresh_token => "refreshToken", :user_managed_client_application_client_secret => "userManagedClientApplicationClientSecret", } end |
Instance Method Details
#to_jsii ⇒ Object
1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 |
# File 'data_zone/cfn_connection.rb', line 1366 def to_jsii result = {} result.merge!({ "accessToken" => @access_token, "jwtToken" => @jwt_token, "refreshToken" => @refresh_token, "userManagedClientApplicationClientSecret" => @user_managed_client_application_client_secret, }) result.compact end |