Skip to content

Create Connection

glue_create_connection R Documentation

Creates a connection definition in the Data Catalog

Description

Creates a connection definition in the Data Catalog.

Connections used for creating federated resources require the IAM glue:PassConnection permission.

Usage

glue_create_connection(CatalogId, ConnectionInput, Tags)

Arguments

CatalogId

The ID of the Data Catalog in which to create the connection. If none is provided, the Amazon Web Services account ID is used by default.

ConnectionInput

[required] A ConnectionInput object defining the connection to create.

Tags

The tags you assign to the connection.

Value

A list with the following syntax:

list(
  CreateConnectionStatus = "READY"|"IN_PROGRESS"|"FAILED"
)

Request syntax

svc$create_connection(
  CatalogId = "string",
  ConnectionInput = list(
    Name = "string",
    Description = "string",
    ConnectionType = "JDBC"|"SFTP"|"MONGODB"|"KAFKA"|"NETWORK"|"MARKETPLACE"|"CUSTOM"|"SALESFORCE"|"VIEW_VALIDATION_REDSHIFT"|"VIEW_VALIDATION_ATHENA",
    MatchCriteria = list(
      "string"
    ),
    ConnectionProperties = list(
      "string"
    ),
    PhysicalConnectionRequirements = list(
      SubnetId = "string",
      SecurityGroupIdList = list(
        "string"
      ),
      AvailabilityZone = "string"
    ),
    AuthenticationConfiguration = list(
      AuthenticationType = "BASIC"|"OAUTH2"|"CUSTOM",
      SecretArn = "string",
      OAuth2Properties = list(
        OAuth2GrantType = "AUTHORIZATION_CODE"|"CLIENT_CREDENTIALS"|"JWT_BEARER",
        OAuth2ClientApplication = list(
          UserManagedClientApplicationClientId = "string",
          AWSManagedClientApplicationReference = "string"
        ),
        TokenUrl = "string",
        TokenUrlParametersMap = list(
          "string"
        ),
        AuthorizationCodeProperties = list(
          AuthorizationCode = "string",
          RedirectUri = "string"
        )
      )
    ),
    ValidateCredentials = TRUE|FALSE
  ),
  Tags = list(
    "string"
  )
)