Skip to content

Get Connection

datazone_get_connection R Documentation

Gets a connection

Description

Gets a connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.

Usage

datazone_get_connection(domainIdentifier, identifier, withSecret)

Arguments

domainIdentifier

[required] The ID of the domain where we get the connection.

identifier

[required] The connection ID.

withSecret

Specifies whether a connection has a secret.

Value

A list with the following syntax:

list(
  connectionCredentials = list(
    accessKeyId = "string",
    expiration = as.POSIXct(
      "2015-01-01"
    ),
    secretAccessKey = "string",
    sessionToken = "string"
  ),
  connectionId = "string",
  description = "string",
  domainId = "string",
  domainUnitId = "string",
  environmentId = "string",
  environmentUserRole = "string",
  name = "string",
  physicalEndpoints = list(
    list(
      awsLocation = list(
        accessRole = "string",
        awsAccountId = "string",
        awsRegion = "string",
        iamConnectionId = "string"
      ),
      glueConnection = list(
        athenaProperties = list(
          "string"
        ),
        authenticationConfiguration = list(
          authenticationType = "BASIC"|"OAUTH2"|"CUSTOM",
          oAuth2Properties = list(
            authorizationCodeProperties = list(
              authorizationCode = "string",
              redirectUri = "string"
            ),
            oAuth2ClientApplication = list(
              aWSManagedClientApplicationReference = "string",
              userManagedClientApplicationClientId = "string"
            ),
            oAuth2Credentials = list(
              accessToken = "string",
              jwtToken = "string",
              refreshToken = "string",
              userManagedClientApplicationClientSecret = "string"
            ),
            oAuth2GrantType = "AUTHORIZATION_CODE"|"CLIENT_CREDENTIALS"|"JWT_BEARER",
            tokenUrl = "string",
            tokenUrlParametersMap = list(
              "string"
            )
          ),
          secretArn = "string"
        ),
        compatibleComputeEnvironments = list(
          "SPARK"|"ATHENA"|"PYTHON"
        ),
        connectionProperties = list(
          "string"
        ),
        connectionSchemaVersion = 123,
        connectionType = "ATHENA"|"BIGQUERY"|"DATABRICKS"|"DOCUMENTDB"|"DYNAMODB"|"HYPERPOD"|"IAM"|"MYSQL"|"OPENSEARCH"|"ORACLE"|"POSTGRESQL"|"REDSHIFT"|"SAPHANA"|"SNOWFLAKE"|"SPARK"|"SQLSERVER"|"TERADATA"|"VERTICA"|"WORKFLOWS_MWAA",
        creationTime = as.POSIXct(
          "2015-01-01"
        ),
        description = "string",
        lastConnectionValidationTime = as.POSIXct(
          "2015-01-01"
        ),
        lastUpdatedBy = "string",
        lastUpdatedTime = as.POSIXct(
          "2015-01-01"
        ),
        matchCriteria = list(
          "string"
        ),
        name = "string",
        physicalConnectionRequirements = list(
          availabilityZone = "string",
          securityGroupIdList = list(
            "string"
          ),
          subnetId = "string",
          subnetIdList = list(
            "string"
          )
        ),
        pythonProperties = list(
          "string"
        ),
        sparkProperties = list(
          "string"
        ),
        status = "CREATING"|"CREATE_FAILED"|"DELETING"|"DELETE_FAILED"|"READY"|"UPDATING"|"UPDATE_FAILED"|"DELETED",
        statusReason = "string"
      ),
      glueConnectionName = "string",
      host = "string",
      port = 123,
      protocol = "ATHENA"|"GLUE_INTERACTIVE_SESSION"|"HTTPS"|"JDBC"|"LIVY"|"ODBC"|"PRISM",
      stage = "string"
    )
  ),
  projectId = "string",
  props = list(
    athenaProperties = list(
      workgroupName = "string"
    ),
    glueProperties = list(
      errorMessage = "string",
      status = "CREATING"|"CREATE_FAILED"|"DELETING"|"DELETE_FAILED"|"READY"|"UPDATING"|"UPDATE_FAILED"|"DELETED"
    ),
    hyperPodProperties = list(
      clusterArn = "string",
      clusterName = "string",
      orchestrator = "EKS"|"SLURM"
    ),
    iamProperties = list(
      environmentId = "string",
      glueLineageSyncEnabled = TRUE|FALSE
    ),
    redshiftProperties = list(
      credentials = list(
        secretArn = "string",
        usernamePassword = list(
          password = "string",
          username = "string"
        )
      ),
      databaseName = "string",
      isProvisionedSecret = TRUE|FALSE,
      jdbcIamUrl = "string",
      jdbcUrl = "string",
      lineageSync = list(
        enabled = TRUE|FALSE,
        lineageJobId = "string",
        schedule = list(
          schedule = "string"
        )
      ),
      redshiftTempDir = "string",
      status = "CREATING"|"CREATE_FAILED"|"DELETING"|"DELETE_FAILED"|"READY"|"UPDATING"|"UPDATE_FAILED"|"DELETED",
      storage = list(
        clusterName = "string",
        workgroupName = "string"
      )
    ),
    sparkEmrProperties = list(
      computeArn = "string",
      credentials = list(
        password = "string",
        username = "string"
      ),
      credentialsExpiration = as.POSIXct(
        "2015-01-01"
      ),
      governanceType = "AWS_MANAGED"|"USER_MANAGED",
      instanceProfileArn = "string",
      javaVirtualEnv = "string",
      livyEndpoint = "string",
      logUri = "string",
      pythonVirtualEnv = "string",
      runtimeRole = "string",
      trustedCertificatesS3Uri = "string"
    ),
    sparkGlueProperties = list(
      additionalArgs = list(
        connection = "string"
      ),
      glueConnectionName = "string",
      glueVersion = "string",
      idleTimeout = 123,
      javaVirtualEnv = "string",
      numberOfWorkers = 123,
      pythonVirtualEnv = "string",
      workerType = "string"
    )
  ),
  type = "ATHENA"|"BIGQUERY"|"DATABRICKS"|"DOCUMENTDB"|"DYNAMODB"|"HYPERPOD"|"IAM"|"MYSQL"|"OPENSEARCH"|"ORACLE"|"POSTGRESQL"|"REDSHIFT"|"SAPHANA"|"SNOWFLAKE"|"SPARK"|"SQLSERVER"|"TERADATA"|"VERTICA"|"WORKFLOWS_MWAA"
)

Request syntax

svc$get_connection(
  domainIdentifier = "string",
  identifier = "string",
  withSecret = TRUE|FALSE
)