CfnConnection
- class aws_cdk.aws_glue.CfnConnection(scope, id, *, catalog_id, connection_input)
Bases:
CfnResource
The
AWS::Glue::Connection
resource specifies an AWS Glue connection to a data source.For more information, see Adding a Connection to Your Data Store and Connection Structure in the AWS Glue Developer Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html
- CloudformationResource:
AWS::Glue::Connection
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue # athena_properties: Any # connection_properties: Any # custom_authentication_credentials: Any # python_properties: Any # spark_properties: Any # token_url_parameters_map: Any cfn_connection = glue.CfnConnection(self, "MyCfnConnection", catalog_id="catalogId", connection_input=glue.CfnConnection.ConnectionInputProperty( connection_type="connectionType", # the properties below are optional athena_properties=athena_properties, authentication_configuration=glue.CfnConnection.AuthenticationConfigurationInputProperty( authentication_type="authenticationType", # the properties below are optional basic_authentication_credentials=glue.CfnConnection.BasicAuthenticationCredentialsProperty( password="password", username="username" ), custom_authentication_credentials=custom_authentication_credentials, kms_key_arn="kmsKeyArn", o_auth2_properties=glue.CfnConnection.OAuth2PropertiesInputProperty( authorization_code_properties=glue.CfnConnection.AuthorizationCodePropertiesProperty( authorization_code="authorizationCode", redirect_uri="redirectUri" ), o_auth2_client_application=glue.CfnConnection.OAuth2ClientApplicationProperty( aws_managed_client_application_reference="awsManagedClientApplicationReference", user_managed_client_application_client_id="userManagedClientApplicationClientId" ), o_auth2_credentials=glue.CfnConnection.OAuth2CredentialsProperty( access_token="accessToken", jwt_token="jwtToken", refresh_token="refreshToken", user_managed_client_application_client_secret="userManagedClientApplicationClientSecret" ), o_auth2_grant_type="oAuth2GrantType", token_url="tokenUrl", token_url_parameters_map=token_url_parameters_map ), secret_arn="secretArn" ), connection_properties=connection_properties, description="description", match_criteria=["matchCriteria"], name="name", physical_connection_requirements=glue.CfnConnection.PhysicalConnectionRequirementsProperty( availability_zone="availabilityZone", security_group_id_list=["securityGroupIdList"], subnet_id="subnetId" ), python_properties=python_properties, spark_properties=spark_properties, validate_credentials=False, validate_for_compute_environments=["validateForComputeEnvironments"] ) )
- Parameters:
scope (
Construct
) – Scope in which this resource is defined.id (
str
) – Construct identifier for this resource (unique in its scope).catalog_id (
str
) – The ID of the data catalog to create the catalog object in. Currently, this should be the AWS account ID. .. epigraph:: To specify the account ID, you can use theRef
intrinsic function with theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
.connection_input (
Union
[IResolvable
,ConnectionInputProperty
,Dict
[str
,Any
]]) – The connection that you want to create.
Methods
- add_deletion_override(path)
Syntactic sugar for
addOverride(path, undefined)
.- Parameters:
path (
str
) – The path of the value to delete.- Return type:
None
- add_dependency(target)
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
- Parameters:
target (
CfnResource
) –- Return type:
None
- add_depends_on(target)
(deprecated) Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
- Parameters:
target (
CfnResource
) –- Deprecated:
use addDependency
- Stability:
deprecated
- Return type:
None
- add_metadata(key, value)
Add a value to the CloudFormation Resource Metadata.
- Parameters:
key (
str
) –value (
Any
) –
- See:
- Return type:
None
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.
- add_override(path, value)
Adds an override to the synthesized CloudFormation resource.
To add a property override, either use
addPropertyOverride
or prefixpath
with “Properties.” (i.e.Properties.TopicName
).If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal
.
in the property name, prefix with a\
. In most programming languages you will need to write this as"\\."
because the\
itself will need to be escaped.For example:
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"]) cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")
would add the overrides Example:
"Properties": { "GlobalSecondaryIndexes": [ { "Projection": { "NonKeyAttributes": [ "myattribute" ] ... } ... }, { "ProjectionType": "INCLUDE" ... }, ] ... }
The
value
argument toaddOverride
will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.- Parameters:
path (
str
) –The path of the property, you can use dot notation to override values in complex types. Any intermediate keys will be created as needed.
value (
Any
) –The value. Could be primitive or complex.
- Return type:
None
- add_property_deletion_override(property_path)
Adds an override that deletes the value of a property from the resource definition.
- Parameters:
property_path (
str
) – The path to the property.- Return type:
None
- add_property_override(property_path, value)
Adds an override to a resource property.
Syntactic sugar for
addOverride("Properties.<...>", value)
.- Parameters:
property_path (
str
) – The path of the property.value (
Any
) – The value.
- Return type:
None
- apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)
Sets the deletion policy of the resource based on the removal policy specified.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY
), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN
). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT
). A list of resources that support this policy can be found in the following link:- Parameters:
policy (
Optional
[RemovalPolicy
]) –apply_to_update_replace_policy (
Optional
[bool
]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: truedefault (
Optional
[RemovalPolicy
]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resource, please consult that specific resource’s documentation.
- See:
- Return type:
None
- get_att(attribute_name, type_hint=None)
Returns a token for an runtime attribute of this resource.
Ideally, use generated attribute accessors (e.g.
resource.arn
), but this can be used for future compatibility in case there is no generated attribute.- Parameters:
attribute_name (
str
) – The name of the attribute.type_hint (
Optional
[ResolutionTypeHint
]) –
- Return type:
- get_metadata(key)
Retrieve a value value from the CloudFormation Resource Metadata.
- Parameters:
key (
str
) –- See:
- Return type:
Any
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.
- inspect(inspector)
Examines the CloudFormation resource and discloses attributes.
- Parameters:
inspector (
TreeInspector
) – tree inspector to collect and process attributes.- Return type:
None
- obtain_dependencies()
Retrieves an array of resources this resource depends on.
This assembles dependencies on resources across stacks (including nested stacks) automatically.
- Return type:
List
[Union
[Stack
,CfnResource
]]
- obtain_resource_dependencies()
Get a shallow copy of dependencies between this resource and other resources in the same stack.
- Return type:
List
[CfnResource
]
- override_logical_id(new_logical_id)
Overrides the auto-generated logical ID with a specific ID.
- Parameters:
new_logical_id (
str
) – The new logical ID to use for this stack element.- Return type:
None
- remove_dependency(target)
Indicates that this resource no longer depends on another resource.
This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
- Parameters:
target (
CfnResource
) –- Return type:
None
- replace_dependency(target, new_target)
Replaces one dependency with another.
- Parameters:
target (
CfnResource
) – The dependency to replace.new_target (
CfnResource
) – The new dependency to add.
- Return type:
None
- to_string()
Returns a string representation of this construct.
- Return type:
str
- Returns:
a string representation of this resource
Attributes
- CFN_RESOURCE_TYPE_NAME = 'AWS::Glue::Connection'
- attr_id
Id
- Type:
cloudformationAttribute
- catalog_id
The ID of the data catalog to create the catalog object in.
- cfn_options
Options for this resource, such as condition, update policy etc.
- cfn_resource_type
AWS resource type.
- connection_input
The connection that you want to create.
- creation_stack
return:
the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.
- logical_id
The logical ID for this CloudFormation stack element.
The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use
overrideLogicalId(newLogicalId)
.- Returns:
the logical ID as a stringified token. This value will only get resolved during synthesis.
- node
The tree node.
- ref
Return a string that will be resolved to a CloudFormation
{ Ref }
for this element.If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through
Lazy.any({ produce: resource.ref })
.
- stack
The stack in which this element is defined.
CfnElements must be defined within a stack scope (directly or indirectly).
Static Methods
- classmethod is_cfn_element(x)
Returns
true
if a construct is a stack element (i.e. part of the synthesized cloudformation template).Uses duck-typing instead of
instanceof
to allow stack elements from different versions of this library to be included in the same stack.- Parameters:
x (
Any
) –- Return type:
bool
- Returns:
The construct as a stack element or undefined if it is not a stack element.
- classmethod is_cfn_resource(x)
Check whether the given object is a CfnResource.
- Parameters:
x (
Any
) –- Return type:
bool
- classmethod is_construct(x)
Checks if
x
is a construct.Use this method instead of
instanceof
to properly detectConstruct
instances, even when the construct library is symlinked.Explanation: in JavaScript, multiple copies of the
constructs
library on disk are seen as independent, completely different libraries. As a consequence, the classConstruct
in each copy of theconstructs
library is seen as a different class, and an instance of one class will not test asinstanceof
the other class.npm install
will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of theconstructs
library can be accidentally installed, andinstanceof
will behave unpredictably. It is safest to avoid usinginstanceof
, and using this type-testing method instead.- Parameters:
x (
Any
) – Any object.- Return type:
bool
- Returns:
true if
x
is an object created from a class which extendsConstruct
.
AuthenticationConfigurationInputProperty
- class CfnConnection.AuthenticationConfigurationInputProperty(*, authentication_type, basic_authentication_credentials=None, custom_authentication_credentials=None, kms_key_arn=None, o_auth2_properties=None, secret_arn=None)
Bases:
object
A structure containing the authentication configuration in the CreateConnection request.
- Parameters:
authentication_type (
str
) – A structure containing the authentication configuration in the CreateConnection request.basic_authentication_credentials (
Union
[IResolvable
,BasicAuthenticationCredentialsProperty
,Dict
[str
,Any
],None
]) – The credentials used when the authentication type is basic authentication.custom_authentication_credentials (
Any
) – The credentials used when the authentication type is custom authentication.kms_key_arn (
Optional
[str
]) – The ARN of the KMS key used to encrypt the connection. Only taken an as input in the request and stored in the Secret Manager.o_auth2_properties (
Union
[IResolvable
,OAuth2PropertiesInputProperty
,Dict
[str
,Any
],None
]) – The properties for OAuth2 authentication in the CreateConnection request.secret_arn (
Optional
[str
]) – The secret manager ARN to store credentials in the CreateConnection request.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue # custom_authentication_credentials: Any # token_url_parameters_map: Any authentication_configuration_input_property = glue.CfnConnection.AuthenticationConfigurationInputProperty( authentication_type="authenticationType", # the properties below are optional basic_authentication_credentials=glue.CfnConnection.BasicAuthenticationCredentialsProperty( password="password", username="username" ), custom_authentication_credentials=custom_authentication_credentials, kms_key_arn="kmsKeyArn", o_auth2_properties=glue.CfnConnection.OAuth2PropertiesInputProperty( authorization_code_properties=glue.CfnConnection.AuthorizationCodePropertiesProperty( authorization_code="authorizationCode", redirect_uri="redirectUri" ), o_auth2_client_application=glue.CfnConnection.OAuth2ClientApplicationProperty( aws_managed_client_application_reference="awsManagedClientApplicationReference", user_managed_client_application_client_id="userManagedClientApplicationClientId" ), o_auth2_credentials=glue.CfnConnection.OAuth2CredentialsProperty( access_token="accessToken", jwt_token="jwtToken", refresh_token="refreshToken", user_managed_client_application_client_secret="userManagedClientApplicationClientSecret" ), o_auth2_grant_type="oAuth2GrantType", token_url="tokenUrl", token_url_parameters_map=token_url_parameters_map ), secret_arn="secretArn" )
Attributes
- authentication_type
A structure containing the authentication configuration in the CreateConnection request.
- basic_authentication_credentials
The credentials used when the authentication type is basic authentication.
- custom_authentication_credentials
The credentials used when the authentication type is custom authentication.
- kms_key_arn
The ARN of the KMS key used to encrypt the connection.
Only taken an as input in the request and stored in the Secret Manager.
- o_auth2_properties
The properties for OAuth2 authentication in the CreateConnection request.
- secret_arn
The secret manager ARN to store credentials in the CreateConnection request.
BasicAuthenticationCredentialsProperty
- class CfnConnection.BasicAuthenticationCredentialsProperty(*, password=None, username=None)
Bases:
object
For supplying basic auth credentials when not providing a
SecretArn
value.- Parameters:
password (
Optional
[str
]) – The password to connect to the data source.username (
Optional
[str
]) – The username to connect to the data source.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue basic_authentication_credentials_property = glue.CfnConnection.BasicAuthenticationCredentialsProperty( password="password", username="username" )
Attributes
- password
The password to connect to the data source.
- username
The username to connect to the data source.
ConnectionInputProperty
- class CfnConnection.ConnectionInputProperty(*, connection_type, athena_properties=None, authentication_configuration=None, connection_properties=None, description=None, match_criteria=None, name=None, physical_connection_requirements=None, python_properties=None, spark_properties=None, validate_credentials=None, validate_for_compute_environments=None)
Bases:
object
A structure that is used to specify a connection to create or update.
- Parameters:
connection_type (
str
) – The type of the connection. Currently, these types are supported:. -JDBC
- Designates a connection to a database through Java Database Connectivity (JDBC).JDBC
Connections use the following ConnectionParameters. - Required: All of (HOST
,PORT
,JDBC_ENGINE
) orJDBC_CONNECTION_URL
. - Required: All of (USERNAME
,PASSWORD
) orSECRET_ID
. - Optional:JDBC_ENFORCE_SSL
,CUSTOM_JDBC_CERT
,CUSTOM_JDBC_CERT_STRING
,SKIP_CUSTOM_JDBC_CERT_VALIDATION
. These parameters are used to configure SSL with JDBC. -KAFKA
- Designates a connection to an Apache Kafka streaming platform.KAFKA
Connections use the following ConnectionParameters. - Required:KAFKA_BOOTSTRAP_SERVERS
. - Optional:KAFKA_SSL_ENABLED
,KAFKA_CUSTOM_CERT
,KAFKA_SKIP_CUSTOM_CERT_VALIDATION
. These parameters are used to configure SSL withKAFKA
. - Optional:KAFKA_CLIENT_KEYSTORE
,KAFKA_CLIENT_KEYSTORE_PASSWORD
,KAFKA_CLIENT_KEY_PASSWORD
,ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD
,ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD
. These parameters are used to configure TLS client configuration with SSL inKAFKA
. - Optional:KAFKA_SASL_MECHANISM
. Can be specified asSCRAM-SHA-512
,GSSAPI
, orAWS_MSK_IAM
. - Optional:KAFKA_SASL_SCRAM_USERNAME
,KAFKA_SASL_SCRAM_PASSWORD
,ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD
. These parameters are used to configure SASL/SCRAM-SHA-512 authentication withKAFKA
. - Optional:KAFKA_SASL_GSSAPI_KEYTAB
,KAFKA_SASL_GSSAPI_KRB5_CONF
,KAFKA_SASL_GSSAPI_SERVICE
,KAFKA_SASL_GSSAPI_PRINCIPAL
. These parameters are used to configure SASL/GSSAPI authentication withKAFKA
. -MONGODB
- Designates a connection to a MongoDB document database.MONGODB
Connections use the following ConnectionParameters. - Required:CONNECTION_URL
. - Required: All of (USERNAME
,PASSWORD
) orSECRET_ID
. -VIEW_VALIDATION_REDSHIFT
- Designates a connection used for view validation by Amazon Redshift. -VIEW_VALIDATION_ATHENA
- Designates a connection used for view validation by Amazon Athena. -NETWORK
- Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).NETWORK
Connections do not require ConnectionParameters. Instead, provide a PhysicalConnectionRequirements. -MARKETPLACE
- Uses configuration settings contained in a connector purchased from AWS Marketplace to read from and write to data stores that are not natively supported by AWS Glue .MARKETPLACE
Connections use the following ConnectionParameters. - Required:CONNECTOR_TYPE
,CONNECTOR_URL
,CONNECTOR_CLASS_NAME
,CONNECTION_URL
. - Required forJDBC
CONNECTOR_TYPE
connections: All of (USERNAME
,PASSWORD
) orSECRET_ID
. -CUSTOM
- Uses configuration settings contained in a custom connector to read from and write to data stores that are not natively supported by AWS Glue . Additionally, aConnectionType
for the following SaaS connectors is supported: -FACEBOOKADS
- Designates a connection to Facebook Ads. -GOOGLEADS
- Designates a connection to Google Ads. -GOOGLESHEETS
- Designates a connection to Google Sheets. -GOOGLEANALYTICS4
- Designates a connection to Google Analytics 4. -HUBSPOT
- Designates a connection to HubSpot. -INSTAGRAMADS
- Designates a connection to Instagram Ads. -INTERCOM
- Designates a connection to Intercom. -JIRACLOUD
- Designates a connection to Jira Cloud. -MARKETO
- Designates a connection to Adobe Marketo Engage. -NETSUITEERP
- Designates a connection to Oracle NetSuite. -SALESFORCE
- Designates a connection to Salesforce using OAuth authentication. -SALESFORCEMARKETINGCLOUD
- Designates a connection to Salesforce Marketing Cloud. -SALESFORCEPARDOT
- Designates a connection to Salesforce Marketing Cloud Account Engagement (MCAE). -SAPODATA
- Designates a connection to SAP OData. -SERVICENOW
- Designates a connection to ServiceNow. -SLACK
- Designates a connection to Slack. -SNAPCHATADS
- Designates a connection to Snapchat Ads. -STRIPE
- Designates a connection to Stripe. -ZENDESK
- Designates a connection to Zendesk. -ZOHOCRM
- Designates a connection to Zoho CRM. For more information on the connection parameters needed for a particular connector, see the documentation for the connector in Adding an AWS Glue connection in the AWS Glue User Guide.SFTP
is not supported. For more information about how optional ConnectionProperties are used to configure features in AWS Glue , consult AWS Glue connection properties . For more information about how optional ConnectionProperties are used to configure features in AWS Glue Studio, consult Using connectors and connections .athena_properties (
Any
) – Connection properties specific to the Athena compute environment.authentication_configuration (
Union
[IResolvable
,AuthenticationConfigurationInputProperty
,Dict
[str
,Any
],None
]) – The authentication properties of the connection.connection_properties (
Any
) – These key-value pairs define parameters for the connection.description (
Optional
[str
]) – The description of the connection.match_criteria (
Optional
[Sequence
[str
]]) – A list of criteria that can be used in selecting this connection.name (
Optional
[str
]) – The name of the connection.physical_connection_requirements (
Union
[IResolvable
,PhysicalConnectionRequirementsProperty
,Dict
[str
,Any
],None
]) – The physical connection requirements, such as virtual private cloud (VPC) andSecurityGroup
, that are needed to successfully make this connection.python_properties (
Any
) – Connection properties specific to the Python compute environment.spark_properties (
Any
) – Connection properties specific to the Spark compute environment.validate_credentials (
Union
[bool
,IResolvable
,None
]) – A flag to validate the credentials during create connection. Default is true.validate_for_compute_environments (
Optional
[Sequence
[str
]]) – The compute environments that the specified connection properties are validated against.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue # athena_properties: Any # connection_properties: Any # custom_authentication_credentials: Any # python_properties: Any # spark_properties: Any # token_url_parameters_map: Any connection_input_property = glue.CfnConnection.ConnectionInputProperty( connection_type="connectionType", # the properties below are optional athena_properties=athena_properties, authentication_configuration=glue.CfnConnection.AuthenticationConfigurationInputProperty( authentication_type="authenticationType", # the properties below are optional basic_authentication_credentials=glue.CfnConnection.BasicAuthenticationCredentialsProperty( password="password", username="username" ), custom_authentication_credentials=custom_authentication_credentials, kms_key_arn="kmsKeyArn", o_auth2_properties=glue.CfnConnection.OAuth2PropertiesInputProperty( authorization_code_properties=glue.CfnConnection.AuthorizationCodePropertiesProperty( authorization_code="authorizationCode", redirect_uri="redirectUri" ), o_auth2_client_application=glue.CfnConnection.OAuth2ClientApplicationProperty( aws_managed_client_application_reference="awsManagedClientApplicationReference", user_managed_client_application_client_id="userManagedClientApplicationClientId" ), o_auth2_credentials=glue.CfnConnection.OAuth2CredentialsProperty( access_token="accessToken", jwt_token="jwtToken", refresh_token="refreshToken", user_managed_client_application_client_secret="userManagedClientApplicationClientSecret" ), o_auth2_grant_type="oAuth2GrantType", token_url="tokenUrl", token_url_parameters_map=token_url_parameters_map ), secret_arn="secretArn" ), connection_properties=connection_properties, description="description", match_criteria=["matchCriteria"], name="name", physical_connection_requirements=glue.CfnConnection.PhysicalConnectionRequirementsProperty( availability_zone="availabilityZone", security_group_id_list=["securityGroupIdList"], subnet_id="subnetId" ), python_properties=python_properties, spark_properties=spark_properties, validate_credentials=False, validate_for_compute_environments=["validateForComputeEnvironments"] )
Attributes
- athena_properties
Connection properties specific to the Athena compute environment.
- authentication_configuration
The authentication properties of the connection.
- connection_properties
These key-value pairs define parameters for the connection.
- connection_type
.
JDBC
- Designates a connection to a database through Java Database Connectivity (JDBC).
JDBC
Connections use the following ConnectionParameters.Required: All of (
HOST
,PORT
,JDBC_ENGINE
) orJDBC_CONNECTION_URL
.Required: All of (
USERNAME
,PASSWORD
) orSECRET_ID
.Optional:
JDBC_ENFORCE_SSL
,CUSTOM_JDBC_CERT
,CUSTOM_JDBC_CERT_STRING
,SKIP_CUSTOM_JDBC_CERT_VALIDATION
. These parameters are used to configure SSL with JDBC.KAFKA
- Designates a connection to an Apache Kafka streaming platform.
KAFKA
Connections use the following ConnectionParameters.Required:
KAFKA_BOOTSTRAP_SERVERS
.Optional:
KAFKA_SSL_ENABLED
,KAFKA_CUSTOM_CERT
,KAFKA_SKIP_CUSTOM_CERT_VALIDATION
. These parameters are used to configure SSL withKAFKA
.Optional:
KAFKA_CLIENT_KEYSTORE
,KAFKA_CLIENT_KEYSTORE_PASSWORD
,KAFKA_CLIENT_KEY_PASSWORD
,ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD
,ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD
. These parameters are used to configure TLS client configuration with SSL inKAFKA
.Optional:
KAFKA_SASL_MECHANISM
. Can be specified asSCRAM-SHA-512
,GSSAPI
, orAWS_MSK_IAM
.Optional:
KAFKA_SASL_SCRAM_USERNAME
,KAFKA_SASL_SCRAM_PASSWORD
,ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD
. These parameters are used to configure SASL/SCRAM-SHA-512 authentication withKAFKA
.Optional:
KAFKA_SASL_GSSAPI_KEYTAB
,KAFKA_SASL_GSSAPI_KRB5_CONF
,KAFKA_SASL_GSSAPI_SERVICE
,KAFKA_SASL_GSSAPI_PRINCIPAL
. These parameters are used to configure SASL/GSSAPI authentication withKAFKA
.MONGODB
- Designates a connection to a MongoDB document database.
MONGODB
Connections use the following ConnectionParameters.Required:
CONNECTION_URL
.Required: All of (
USERNAME
,PASSWORD
) orSECRET_ID
.VIEW_VALIDATION_REDSHIFT
- Designates a connection used for view validation by Amazon Redshift.VIEW_VALIDATION_ATHENA
- Designates a connection used for view validation by Amazon Athena.NETWORK
- Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).
NETWORK
Connections do not require ConnectionParameters. Instead, provide a PhysicalConnectionRequirements.MARKETPLACE
- Uses configuration settings contained in a connector purchased from AWS Marketplace to read from and write to data stores that are not natively supported by AWS Glue .
MARKETPLACE
Connections use the following ConnectionParameters.Required:
CONNECTOR_TYPE
,CONNECTOR_URL
,CONNECTOR_CLASS_NAME
,CONNECTION_URL
.Required for
JDBC
CONNECTOR_TYPE
connections: All of (USERNAME
,PASSWORD
) orSECRET_ID
.CUSTOM
- Uses configuration settings contained in a custom connector to read from and write to data stores that are not natively supported by AWS Glue .
Additionally, a
ConnectionType
for the following SaaS connectors is supported:FACEBOOKADS
- Designates a connection to Facebook Ads.GOOGLEADS
- Designates a connection to Google Ads.GOOGLESHEETS
- Designates a connection to Google Sheets.GOOGLEANALYTICS4
- Designates a connection to Google Analytics 4.HUBSPOT
- Designates a connection to HubSpot.INSTAGRAMADS
- Designates a connection to Instagram Ads.INTERCOM
- Designates a connection to Intercom.JIRACLOUD
- Designates a connection to Jira Cloud.MARKETO
- Designates a connection to Adobe Marketo Engage.NETSUITEERP
- Designates a connection to Oracle NetSuite.SALESFORCE
- Designates a connection to Salesforce using OAuth authentication.SALESFORCEMARKETINGCLOUD
- Designates a connection to Salesforce Marketing Cloud.SALESFORCEPARDOT
- Designates a connection to Salesforce Marketing Cloud Account Engagement (MCAE).SAPODATA
- Designates a connection to SAP OData.SERVICENOW
- Designates a connection to ServiceNow.SLACK
- Designates a connection to Slack.SNAPCHATADS
- Designates a connection to Snapchat Ads.STRIPE
- Designates a connection to Stripe.ZENDESK
- Designates a connection to Zendesk.ZOHOCRM
- Designates a connection to Zoho CRM.
For more information on the connection parameters needed for a particular connector, see the documentation for the connector in Adding an AWS Glue connection in the AWS Glue User Guide.
SFTP
is not supported.For more information about how optional ConnectionProperties are used to configure features in AWS Glue , consult AWS Glue connection properties .
For more information about how optional ConnectionProperties are used to configure features in AWS Glue Studio, consult Using connectors and connections .
- See:
- Type:
The type of the connection. Currently, these types are supported
- description
The description of the connection.
- match_criteria
A list of criteria that can be used in selecting this connection.
- name
The name of the connection.
- physical_connection_requirements
The physical connection requirements, such as virtual private cloud (VPC) and
SecurityGroup
, that are needed to successfully make this connection.
- python_properties
Connection properties specific to the Python compute environment.
- spark_properties
Connection properties specific to the Spark compute environment.
- validate_credentials
A flag to validate the credentials during create connection.
Default is true.
- validate_for_compute_environments
The compute environments that the specified connection properties are validated against.
OAuth2ClientApplicationProperty
- class CfnConnection.OAuth2ClientApplicationProperty(*, aws_managed_client_application_reference=None, user_managed_client_application_client_id=None)
Bases:
object
The OAuth2 client app used for the connection.
- Parameters:
aws_managed_client_application_reference (
Optional
[str
]) – The reference to the SaaS-side client app that is AWS managed.user_managed_client_application_client_id (
Optional
[str
]) – The client application clientID if the ClientAppType isUSER_MANAGED
.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue o_auth2_client_application_property = glue.CfnConnection.OAuth2ClientApplicationProperty( aws_managed_client_application_reference="awsManagedClientApplicationReference", user_managed_client_application_client_id="userManagedClientApplicationClientId" )
Attributes
- aws_managed_client_application_reference
The reference to the SaaS-side client app that is AWS managed.
- user_managed_client_application_client_id
The client application clientID if the ClientAppType is
USER_MANAGED
.
OAuth2CredentialsProperty
- class CfnConnection.OAuth2CredentialsProperty(*, access_token=None, jwt_token=None, refresh_token=None, user_managed_client_application_client_secret=None)
Bases:
object
The credentials used when the authentication type is OAuth2 authentication.
- Parameters:
access_token (
Optional
[str
]) – The access token used when the authentication type is OAuth2.jwt_token (
Optional
[str
]) – The JSON Web Token (JWT) used when the authentication type is OAuth2.refresh_token (
Optional
[str
]) – The refresh token used when the authentication type is OAuth2.user_managed_client_application_client_secret (
Optional
[str
]) – The client application client secret if the client application is user managed.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue o_auth2_credentials_property = glue.CfnConnection.OAuth2CredentialsProperty( access_token="accessToken", jwt_token="jwtToken", refresh_token="refreshToken", user_managed_client_application_client_secret="userManagedClientApplicationClientSecret" )
Attributes
- access_token
The access token used when the authentication type is OAuth2.
- jwt_token
The JSON Web Token (JWT) used when the authentication type is OAuth2.
- refresh_token
The refresh token used when the authentication type is OAuth2.
- user_managed_client_application_client_secret
The client application client secret if the client application is user managed.
OAuth2PropertiesInputProperty
- class CfnConnection.OAuth2PropertiesInputProperty(*, authorization_code_properties=None, o_auth2_client_application=None, o_auth2_credentials=None, o_auth2_grant_type=None, token_url=None, token_url_parameters_map=None)
Bases:
object
A structure containing properties for OAuth2 in the CreateConnection request.
- Parameters:
authorization_code_properties (
Union
[IResolvable
,AuthorizationCodePropertiesProperty
,Dict
[str
,Any
],None
]) – The set of properties required for the the OAuth2AUTHORIZATION_CODE
grant type.o_auth2_client_application (
Union
[IResolvable
,OAuth2ClientApplicationProperty
,Dict
[str
,Any
],None
]) – The client application type in the CreateConnection request. For example,AWS_MANAGED
orUSER_MANAGED
.o_auth2_credentials (
Union
[IResolvable
,OAuth2CredentialsProperty
,Dict
[str
,Any
],None
]) – The credentials used when the authentication type is OAuth2 authentication.o_auth2_grant_type (
Optional
[str
]) – The OAuth2 grant type in the CreateConnection request. For example,AUTHORIZATION_CODE
,JWT_BEARER
, orCLIENT_CREDENTIALS
.token_url (
Optional
[str
]) – The URL of the provider’s authentication server, to exchange an authorization code for an access token.token_url_parameters_map (
Any
) – A map of parameters that are added to the tokenGET
request.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue # token_url_parameters_map: Any o_auth2_properties_input_property = glue.CfnConnection.OAuth2PropertiesInputProperty( authorization_code_properties=glue.CfnConnection.AuthorizationCodePropertiesProperty( authorization_code="authorizationCode", redirect_uri="redirectUri" ), o_auth2_client_application=glue.CfnConnection.OAuth2ClientApplicationProperty( aws_managed_client_application_reference="awsManagedClientApplicationReference", user_managed_client_application_client_id="userManagedClientApplicationClientId" ), o_auth2_credentials=glue.CfnConnection.OAuth2CredentialsProperty( access_token="accessToken", jwt_token="jwtToken", refresh_token="refreshToken", user_managed_client_application_client_secret="userManagedClientApplicationClientSecret" ), o_auth2_grant_type="oAuth2GrantType", token_url="tokenUrl", token_url_parameters_map=token_url_parameters_map )
Attributes
- authorization_code_properties
The set of properties required for the the OAuth2
AUTHORIZATION_CODE
grant type.
- o_auth2_client_application
The client application type in the CreateConnection request.
For example,
AWS_MANAGED
orUSER_MANAGED
.
- o_auth2_credentials
The credentials used when the authentication type is OAuth2 authentication.
- o_auth2_grant_type
The OAuth2 grant type in the CreateConnection request.
For example,
AUTHORIZATION_CODE
,JWT_BEARER
, orCLIENT_CREDENTIALS
.
- token_url
The URL of the provider’s authentication server, to exchange an authorization code for an access token.
- token_url_parameters_map
A map of parameters that are added to the token
GET
request.
PhysicalConnectionRequirementsProperty
- class CfnConnection.PhysicalConnectionRequirementsProperty(*, availability_zone=None, security_group_id_list=None, subnet_id=None)
Bases:
object
The OAuth client app in GetConnection response.
- Parameters:
availability_zone (
Optional
[str
]) – The connection’s Availability Zone.security_group_id_list (
Optional
[Sequence
[str
]]) – The security group ID list used by the connection.subnet_id (
Optional
[str
]) – The subnet ID used by the connection.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue physical_connection_requirements_property = glue.CfnConnection.PhysicalConnectionRequirementsProperty( availability_zone="availabilityZone", security_group_id_list=["securityGroupIdList"], subnet_id="subnetId" )
Attributes
- availability_zone
The connection’s Availability Zone.
- security_group_id_list
The security group ID list used by the connection.
- subnet_id
The subnet ID used by the connection.