Class: AWSCDK::AppFlow::CfnConnectorProfile::ZendeskConnectorProfileCredentialsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_flow/cfn_connector_profile.rb

Overview

The connector-specific profile credentials required when using Zendesk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_id:, client_secret:, access_token: nil, connector_o_auth_request: nil) ⇒ ZendeskConnectorProfileCredentialsProperty

Returns a new instance of ZendeskConnectorProfileCredentialsProperty.

Parameters:

  • client_id (String)

    The identifier for the desired client.

  • client_secret (String)

    The client secret used by the OAuth client to authenticate to the authorization server.

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

    The credentials used to access protected Zendesk resources.

  • connector_o_auth_request (AWSCDK::IResolvable, AWSCDK::AppFlow::CfnConnectorProfile::ConnectorOAuthRequestProperty, nil) (defaults to: nil)

    Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.



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_tokenString? (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_idString (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_secretString (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_requestAWSCDK::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_propertiesObject



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_jsiiObject



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