Class: AWSCDK::AppFlow::CfnConnectorProfile::ZendeskConnectorProfileCredentialsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnConnectorProfile::ZendeskConnectorProfileCredentialsProperty
- Defined in:
- app_flow/cfn_connector_profile.rb
Overview
The connector-specific profile credentials required when using Zendesk.
Instance Attribute Summary collapse
-
#access_token ⇒ String?
readonly
The credentials used to access protected Zendesk resources.
-
#client_id ⇒ String
readonly
The identifier for the desired client.
-
#client_secret ⇒ String
readonly
The client secret used by the OAuth client to authenticate to the authorization server.
-
#connector_o_auth_request ⇒ AWSCDK::IResolvable, ...
readonly
Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client_id:, client_secret:, access_token: nil, connector_o_auth_request: nil) ⇒ ZendeskConnectorProfileCredentialsProperty
constructor
A new instance of ZendeskConnectorProfileCredentialsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(client_id:, client_secret:, access_token: nil, connector_o_auth_request: nil) ⇒ ZendeskConnectorProfileCredentialsProperty
Returns a new instance of ZendeskConnectorProfileCredentialsProperty.
3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 |
# File 'app_flow/cfn_connector_profile.rb', line 3038 def initialize(client_id:, client_secret:, access_token: nil, connector_o_auth_request: nil) @client_id = client_id Jsii::Type.check_type(@client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientId") @client_secret = client_secret Jsii::Type.check_type(@client_secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientSecret") @access_token = access_token Jsii::Type.check_type(@access_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessToken") unless @access_token.nil? @connector_o_auth_request = connector_o_auth_request.is_a?(Hash) ? ::AWSCDK::AppFlow::CfnConnectorProfile::ConnectorOAuthRequestProperty.new(**connector_o_auth_request.transform_keys(&:to_sym)) : connector_o_auth_request Jsii::Type.check_type(@connector_o_auth_request, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBmbG93LkNmbkNvbm5lY3RvclByb2ZpbGUuQ29ubmVjdG9yT0F1dGhSZXF1ZXN0UHJvcGVydHkifV19fQ==")), "connectorOAuthRequest") unless @connector_o_auth_request.nil? end |
Instance Attribute Details
#access_token ⇒ String? (readonly)
The credentials used to access protected Zendesk resources.
3063 3064 3065 |
# File 'app_flow/cfn_connector_profile.rb', line 3063 def access_token @access_token end |
#client_id ⇒ String (readonly)
The identifier for the desired client.
3053 3054 3055 |
# File 'app_flow/cfn_connector_profile.rb', line 3053 def client_id @client_id end |
#client_secret ⇒ String (readonly)
The client secret used by the OAuth client to authenticate to the authorization server.
3058 3059 3060 |
# File 'app_flow/cfn_connector_profile.rb', line 3058 def client_secret @client_secret end |
#connector_o_auth_request ⇒ AWSCDK::IResolvable, ... (readonly)
Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
3068 3069 3070 |
# File 'app_flow/cfn_connector_profile.rb', line 3068 def connector_o_auth_request @connector_o_auth_request end |
Class Method Details
.jsii_properties ⇒ Object
3070 3071 3072 3073 3074 3075 3076 3077 |
# File 'app_flow/cfn_connector_profile.rb', line 3070 def self.jsii_properties { :client_id => "clientId", :client_secret => "clientSecret", :access_token => "accessToken", :connector_o_auth_request => "connectorOAuthRequest", } end |
Instance Method Details
#to_jsii ⇒ Object
3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 |
# File 'app_flow/cfn_connector_profile.rb', line 3079 def to_jsii result = {} result.merge!({ "clientId" => @client_id, "clientSecret" => @client_secret, "accessToken" => @access_token, "connectorOAuthRequest" => @connector_o_auth_request, }) result.compact end |