[ aws . context ]

update-connection

Description

Updates a connection’s configuration.

See also: AWS API Documentation

Synopsis

  update-connection
--connection-id <value>
[--name <value>]
[--scope <value>]
[--access-config <value>]
[--sync-schedule <value>]
--ingestion-config <value>
[--glue-connection-mappings <value>]
[--publish | --no-publish]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]

Options

--connection-id (string) [required]

The connection to update, by its ID (which starts with conn- ) or its ARN.

Constraints:

  • min: 1
  • max: 180
  • pattern: (arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:connection/)?[a-z0-9]+(-[a-z0-9]+)*

--name (string)

The new name. If you omit it, the name is unchanged.

Constraints:

  • min: 3
  • max: 63
  • pattern: [a-zA-Z][a-zA-Z0-9-]*

--scope (structure)

The new ingestion scope for the connection. If you omit it, the existing scope is unchanged. The rules of CreateConnectionRequest.scope apply, with the following additions:

  • A DATABRICKS or SNOWFLAKE scope names at most one databricksCatalog or snowflakeDatabase , unless the existing scope already names each one.
  • If the stored scope has a selector with a glueService segment, the new scope can’t be empty. Every selector that it adds must also have a glueService segment. Otherwise, the request fails with ValidationException . You can keep a selector that the stored scope already has, so resending the stored scope unchanged succeeds.

selectors -> (list)

The selectors describing which parts of the data source are in scope.

Constraints:

  • min: 0
  • max: 100

(structure)

A single selector: an ordered path of {level, id} segments identifying a node in the data source’s resource hierarchy. On a GLUE_DATA_CATALOG connection the path can also name at most one glueService segment, which selects a service rather than a node (see DataSourceScope ).

path -> (list) [required]

Ordered hierarchy path from the root to the selected resource. Must be non-empty.

Constraints:

  • min: 0
  • max: 100

(structure)

One segment of a resource hierarchy path: the hierarchy level , such as database or table , and the id of the resource at that level. Both are required.

In a GLUE_DATA_CATALOG connection’s scope, the level glueService names a service instead of a resource. Its id is one of the following:

  • GLUE - AWS Glue databases and tables.
  • SAGEMAKER_AI - Amazon SageMaker AI resources.
  • REDSHIFT - Amazon Redshift resources.
  • RDS - Amazon RDS resources.
  • MSK - Amazon Managed Streaming for Apache Kafka (Amazon MSK) resources.
  • KINESIS - Amazon Kinesis Data Streams resources.
  • FIREHOSE - Amazon Data Firehose resources.
  • DYNAMODB - Amazon DynamoDB resources.
  • KEYSPACES - Amazon Keyspaces (for Apache Cassandra) resources.
  • ELASTICACHE - Amazon ElastiCache resources.
  • OPENSEARCH - Amazon OpenSearch Service resources.
  • NEPTUNE - Amazon Neptune resources.
  • TIMESTREAM - Amazon Timestream resources.
  • ATHENA - Amazon Athena resources.
  • GLUE_SCHEMA_REGISTRY - AWS Glue Schema Registry resources.
  • S3 - Amazon S3 resources.
  • S3_VECTORS - Amazon S3 Vectors resources.

Every later segment of the selector must name a level of that service. Any other value, a second glueService segment, or a glueService segment in any other position returns ValidationException . A resource path never contains glueService .

level -> (string) [required]

The hierarchy level name for this segment (for example, “database”, “table”). Non-blank, no whitespace.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\s`]+

id -> (string) [required]

The ID of the resource at this level. Non-blank. Can contain spaces, backticks, and % (it is a resource name), but no control characters. AWS Context matches it exactly.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\p{Cc}\p{Zl}\p{Zp}]+

JSON Syntax:

{
  "selectors": [
    {
      "path": [
        {
          "level": "string",
          "id": "string"
        }
        ...
      ]
    }
    ...
  ]
}

--access-config (tagged union structure)

The updated access configuration for the data source. If you omit it, the existing configuration is unchanged. If you provide one, it replaces the stored configuration, including its variant.

For DATABRICKS and SNOWFLAKE , a configuration with no variant clears a stored iamRole , and the connection is then returned with no accessConfig .

For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE , you cannot add or remove the iamRole . An update that adds an iamRole to a connection stored without one fails with ValidationException . So does an update that provides a configuration without iamRole for a connection that has one. You can replace a stored role with another role. To change how such a connection reads its data source, delete the connection and create it again.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: iamRole.

iamRole -> (structure)

Assume-role access. The service assumes roleArn to read the connection’s data source.

roleArn -> (string) [required]

The IAM role that AWS Context assumes to read this connection’s data source. The role must be in your account. AWS Context rejects a role in another account. It has the same format as ingestionConfig.roleArn . You must have iam:PassRole permission on the role to pass it to AWS Context. Otherwise, CreateConnection and UpdateConnection fail with AccessDeniedException .

Constraints:

  • min: 20
  • max: 1011
  • pattern: arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/(?:[a-zA-Z0-9+=,.@_-]{1,512}/)*[a-zA-Z0-9+=,.@_-]{1,64}

Shorthand Syntax:

iamRole={roleArn=string}

JSON Syntax:

{
  "iamRole": {
    "roleArn": "string"
  }
}

--sync-schedule (tagged union structure)

The new sync schedule for a DATABRICKS or SNOWFLAKE source. If you omit it, the existing schedule is unchanged. Not accepted for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: frequency, cronExpression.

frequency -> (string)

How often catalog synchronization runs. AWS Glue determines the schedule’s start time. Valid values:

  • HOURLY - Every 60 minutes.
  • DAILY - Every 1,440 minutes.
  • WEEKLY - Not supported. You can save this value on a connection created with publish set to false , but publishing the connection with this value returns ValidationException .
  • MONTHLY - Not supported. You can save this value on a connection created with publish set to false , but publishing the connection with this value returns ValidationException .

Possible values:

  • HOURLY
  • DAILY
  • WEEKLY
  • MONTHLY

cronExpression -> (string)

Not supported. Catalog synchronization doesn’t support cron schedules, so publishing a connection with this member returns ValidationException . Use frequency instead.

Constraints:

  • min: 13
  • max: 256
  • pattern: cron\(([^\s()]+ ){5}[^\s()]+\)

Shorthand Syntax:

frequency=string,cronExpression=string

JSON Syntax:

{
  "frequency": "HOURLY"|"DAILY"|"WEEKLY"|"MONTHLY",
  "cronExpression": "string"
}

--ingestion-config (structure) [required]

The ingestion configuration: the IAM role that a data producer assumes to push data into this connection. Required on every update, so that an existing connection always has an ingestion role that AWS Context can authorize. You must have iam:PassRole permission to pass this role to the data producer, and the role must be in your account. You can’t clear the role.

roleArn -> (string) [required]

The IAM role in your account that a data producer assumes to push data into this connection’s agent contexts. Your account must own the role.

Constraints:

  • min: 20
  • max: 1011
  • pattern: arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/(?:[a-zA-Z0-9+=,.@_-]{1,512}/)*[a-zA-Z0-9+=,.@_-]{1,64}

Shorthand Syntax:

roleArn=string

JSON Syntax:

{
  "roleArn": "string"
}

--glue-connection-mappings (list)

The AWS Glue connection for each redshiftNamespace , and for each rdsInstance and rdsDatabase pair, in scope . If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changes scope , or changes the role of a connection to another account’s catalog, AWS Context validates the kept list again. The rules are those of CreateConnectionRequest.glueConnectionMappings . You can’t change the list of a SNOWFLAKE connection, which is keyed by snowflakeDatabase : omit it or send it unchanged.

Constraints:

  • min: 0
  • max: 20

(structure)

A GlueConnectionMapping binds one resource in the connection’s scope to an existing AWS Glue connection that you specify for it. The mapping covers every scope selector that names that resource. For a redshiftNamespace , AWS Context does not check which resource your AWS Glue connection targets. AWS Context does not revalidate an update that resends the stored list unchanged. A response does not return a status for each mapping.

path -> (list) [required]

The resource that this mapping binds, root first, in the same form as scope.selectors[].path . Required. Contains 1–2 segments:

  • On a GLUE_DATA_CATALOG connection, either a redshiftNamespace segment whose ID is an Amazon Redshift namespace ARN (namespace:<id> , or namespace/<id> for Amazon Redshift Serverless), or an rdsInstance segment whose ID is an Amazon RDS DB cluster or DB instance ARN (cluster:<id> or db:<id> ) followed by an rdsDatabase segment whose ID is the database name. The ARN must be in your account and Region.
  • On a SNOWFLAKE connection whose dataSource is an AWS Glue connection, a snowflakeDatabase segment whose ID is the database name, at most 255 characters.

Constraints:

  • min: 1
  • max: 2

(structure)

One segment of a resource hierarchy path: the hierarchy level , such as database or table , and the id of the resource at that level. Both are required.

In a GLUE_DATA_CATALOG connection’s scope, the level glueService names a service instead of a resource. Its id is one of the following:

  • GLUE - AWS Glue databases and tables.
  • SAGEMAKER_AI - Amazon SageMaker AI resources.
  • REDSHIFT - Amazon Redshift resources.
  • RDS - Amazon RDS resources.
  • MSK - Amazon Managed Streaming for Apache Kafka (Amazon MSK) resources.
  • KINESIS - Amazon Kinesis Data Streams resources.
  • FIREHOSE - Amazon Data Firehose resources.
  • DYNAMODB - Amazon DynamoDB resources.
  • KEYSPACES - Amazon Keyspaces (for Apache Cassandra) resources.
  • ELASTICACHE - Amazon ElastiCache resources.
  • OPENSEARCH - Amazon OpenSearch Service resources.
  • NEPTUNE - Amazon Neptune resources.
  • TIMESTREAM - Amazon Timestream resources.
  • ATHENA - Amazon Athena resources.
  • GLUE_SCHEMA_REGISTRY - AWS Glue Schema Registry resources.
  • S3 - Amazon S3 resources.
  • S3_VECTORS - Amazon S3 Vectors resources.

Every later segment of the selector must name a level of that service. Any other value, a second glueService segment, or a glueService segment in any other position returns ValidationException . A resource path never contains glueService .

level -> (string) [required]

The hierarchy level name for this segment (for example, “database”, “table”). Non-blank, no whitespace.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\s`]+

id -> (string) [required]

The ID of the resource at this level. Non-blank. Can contain spaces, backticks, and % (it is a resource name), but no control characters. AWS Context matches it exactly.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\p{Cc}\p{Zl}\p{Zp}]+

glueConnectionArn -> (string) [required]

The ARN of your AWS Glue connection for path , in your account and Region. Required. The connection type must be one that path accepts:

  • redshiftNamespace - A REDSHIFT unified connection (ConnectionSchemaVersion 2).
  • rdsInstance and rdsDatabase - A POSTGRESQL unified connection, or, for an RDS DB instance, also ORACLE , with its DATABASE property set to that rdsDatabase .
  • snowflakeDatabase - A SNOWFLAKE connection with a ROLE_ARN and its DATABASE property set to that database. The ROLE_ARN must allow glue:GetConnection on that connection.

AWS Context synchronizes the database through this connection. It doesn’t change DATABASE on a connection that it didn’t create. If AWS Glue is still validating the connection, the request fails with ConflictException . If its validation failed, the request fails with AccessDeniedException .

Constraints:

  • min: 1
  • max: 2048
  • pattern: arn:(aws|aws-cn|aws-us-gov):.*

Shorthand Syntax:

path=[{level=string,id=string},{level=string,id=string}],glueConnectionArn=string ...

JSON Syntax:

[
  {
    "path": [
      {
        "level": "string",
        "id": "string"
      }
      ...
    ],
    "glueConnectionArn": "string"
  }
  ...
]

--publish | --no-publish (boolean)

Specifies whether to publish a third-party connection created with publish: false . If true , AWS Context configures catalog synchronization. The connection moves to ACTIVE when AWS Glue finishes provisioning the managed crawler. This has no effect on an ACTIVE connection. false is not accepted, because a connection can’t be unpublished. Delete the connection instead.

--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

Global Options

--debug (boolean)

Turn on debug logging.

--endpoint-url (string)

Override command’s default URL with the given URL.

--no-verify-ssl (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

--no-paginate (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

--output (string)

The formatting style for command output.

  • json
  • text
  • table
  • yaml
  • yaml-stream
  • off

--query (string)

A JMESPath query to use in filtering the response data.

--profile (string)

Use a specific profile from your credential file.

--region (string)

The region to use. Overrides config/env settings.

--version (string)

Display the version of this tool.

--color (string)

Turn on/off color output.

  • on
  • off
  • auto

--no-sign-request (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

--ca-bundle (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

--cli-read-timeout (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

--cli-connect-timeout (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

--cli-binary-format (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.

  • base64
  • raw-in-base64-out

--no-cli-pager (boolean)

Disable cli pager for output.

--cli-auto-prompt (boolean)

Automatically prompt for CLI input parameters.

--no-cli-auto-prompt (boolean)

Disable automatically prompt for CLI input parameters.

--cli-error-format (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

  • legacy
  • json
  • yaml
  • text
  • table
  • enhanced

--help (boolean)

Display help for the command/subcommand.

Output

id -> (string)

The ID of the connection.

Constraints:

  • min: 1
  • max: 64
  • pattern: [a-z0-9]+(-[a-z0-9]+)*

arn -> (string)

The ARN of the connection.

Constraints:

  • min: 1
  • max: 180
  • pattern: arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:connection/[a-z0-9]+(-[a-z0-9]+)*

name -> (string)

The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.

Constraints:

  • min: 3
  • max: 63
  • pattern: [a-zA-Z][a-zA-Z0-9-]*

dataSource -> (structure)

The typed reference to the external data source that this connection binds to. Its type , the authoritative kind of data source, is in dataSource.type .

type -> (string) [required]

The kind of data source.

Valid values:

  • GLUE_DATA_CATALOG - An AWS Glue Data Catalog, or an AWS Glue connection that fronts a federated AWS data source.
  • BEDROCK_KNOWLEDGE_BASE - An Amazon Bedrock knowledge base.
  • DATABRICKS - A Databricks third-party catalog.
  • SNOWFLAKE - A Snowflake third-party catalog.

Possible values:

  • GLUE_DATA_CATALOG
  • BEDROCK_KNOWLEDGE_BASE
  • DATABRICKS
  • SNOWFLAKE

location -> (structure) [required]

Where the data source lives. For this scope, an AWS ARN only.

arn -> (string) [required]

The ARN of the data source. Its account segment must be your account when you create the connection.

Constraints:

  • min: 1
  • max: 2048
  • pattern: arn:(aws|aws-cn|aws-us-gov):.*

scope -> (structure)

The hierarchical subset of the data source this connection ingests.

selectors -> (list)

The selectors describing which parts of the data source are in scope.

Constraints:

  • min: 0
  • max: 100

(structure)

A single selector: an ordered path of {level, id} segments identifying a node in the data source’s resource hierarchy. On a GLUE_DATA_CATALOG connection the path can also name at most one glueService segment, which selects a service rather than a node (see DataSourceScope ).

path -> (list) [required]

Ordered hierarchy path from the root to the selected resource. Must be non-empty.

Constraints:

  • min: 0
  • max: 100

(structure)

One segment of a resource hierarchy path: the hierarchy level , such as database or table , and the id of the resource at that level. Both are required.

In a GLUE_DATA_CATALOG connection’s scope, the level glueService names a service instead of a resource. Its id is one of the following:

  • GLUE - AWS Glue databases and tables.
  • SAGEMAKER_AI - Amazon SageMaker AI resources.
  • REDSHIFT - Amazon Redshift resources.
  • RDS - Amazon RDS resources.
  • MSK - Amazon Managed Streaming for Apache Kafka (Amazon MSK) resources.
  • KINESIS - Amazon Kinesis Data Streams resources.
  • FIREHOSE - Amazon Data Firehose resources.
  • DYNAMODB - Amazon DynamoDB resources.
  • KEYSPACES - Amazon Keyspaces (for Apache Cassandra) resources.
  • ELASTICACHE - Amazon ElastiCache resources.
  • OPENSEARCH - Amazon OpenSearch Service resources.
  • NEPTUNE - Amazon Neptune resources.
  • TIMESTREAM - Amazon Timestream resources.
  • ATHENA - Amazon Athena resources.
  • GLUE_SCHEMA_REGISTRY - AWS Glue Schema Registry resources.
  • S3 - Amazon S3 resources.
  • S3_VECTORS - Amazon S3 Vectors resources.

Every later segment of the selector must name a level of that service. Any other value, a second glueService segment, or a glueService segment in any other position returns ValidationException . A resource path never contains glueService .

level -> (string) [required]

The hierarchy level name for this segment (for example, “database”, “table”). Non-blank, no whitespace.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\s`]+

id -> (string) [required]

The ID of the resource at this level. Non-blank. Can contain spaces, backticks, and % (it is a resource name), but no control characters. AWS Context matches it exactly.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\p{Cc}\p{Zl}\p{Zp}]+

accessConfig -> (tagged union structure)

Per-connection access configuration: the IAM role used for data access.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: iamRole.

iamRole -> (structure)

Assume-role access. The service assumes roleArn to read the connection’s data source.

roleArn -> (string) [required]

The IAM role that AWS Context assumes to read this connection’s data source. The role must be in your account. AWS Context rejects a role in another account. It has the same format as ingestionConfig.roleArn . You must have iam:PassRole permission on the role to pass it to AWS Context. Otherwise, CreateConnection and UpdateConnection fail with AccessDeniedException .

Constraints:

  • min: 20
  • max: 1011
  • pattern: arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/(?:[a-zA-Z0-9+=,.@_-]{1,512}/)*[a-zA-Z0-9+=,.@_-]{1,64}

syncSchedule -> (tagged union structure)

The effective sync schedule. Present for DATABRICKS and SNOWFLAKE connections (DAILY if you didn’t specify one). Absent for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections, which are event-driven.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: frequency, cronExpression.

frequency -> (string)

How often catalog synchronization runs. AWS Glue determines the schedule’s start time. Valid values:

  • HOURLY - Every 60 minutes.
  • DAILY - Every 1,440 minutes.
  • WEEKLY - Not supported. You can save this value on a connection created with publish set to false , but publishing the connection with this value returns ValidationException .
  • MONTHLY - Not supported. You can save this value on a connection created with publish set to false , but publishing the connection with this value returns ValidationException .

Possible values:

  • HOURLY
  • DAILY
  • WEEKLY
  • MONTHLY

cronExpression -> (string)

Not supported. Catalog synchronization doesn’t support cron schedules, so publishing a connection with this member returns ValidationException . Use frequency instead.

Constraints:

  • min: 13
  • max: 256
  • pattern: cron\(([^\s()]+ ){5}[^\s()]+\)

ingestionConfig -> (structure)

The connection’s ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.

roleArn -> (string) [required]

The IAM role in your account that a data producer assumes to push data into this connection’s agent contexts. Your account must own the role.

Constraints:

  • min: 20
  • max: 1011
  • pattern: arn:(aws|aws-cn|aws-us-gov):iam::[0-9]{12}:role/(?:[a-zA-Z0-9+=,.@_-]{1,512}/)*[a-zA-Z0-9+=,.@_-]{1,64}

glueConnectionMappings -> (list)

The AWS Glue connection for each redshiftNamespace , each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope . Absent when none is configured.

Constraints:

  • min: 0
  • max: 20

(structure)

A GlueConnectionMapping binds one resource in the connection’s scope to an existing AWS Glue connection that you specify for it. The mapping covers every scope selector that names that resource. For a redshiftNamespace , AWS Context does not check which resource your AWS Glue connection targets. AWS Context does not revalidate an update that resends the stored list unchanged. A response does not return a status for each mapping.

path -> (list) [required]

The resource that this mapping binds, root first, in the same form as scope.selectors[].path . Required. Contains 1–2 segments:

  • On a GLUE_DATA_CATALOG connection, either a redshiftNamespace segment whose ID is an Amazon Redshift namespace ARN (namespace:<id> , or namespace/<id> for Amazon Redshift Serverless), or an rdsInstance segment whose ID is an Amazon RDS DB cluster or DB instance ARN (cluster:<id> or db:<id> ) followed by an rdsDatabase segment whose ID is the database name. The ARN must be in your account and Region.
  • On a SNOWFLAKE connection whose dataSource is an AWS Glue connection, a snowflakeDatabase segment whose ID is the database name, at most 255 characters.

Constraints:

  • min: 1
  • max: 2

(structure)

One segment of a resource hierarchy path: the hierarchy level , such as database or table , and the id of the resource at that level. Both are required.

In a GLUE_DATA_CATALOG connection’s scope, the level glueService names a service instead of a resource. Its id is one of the following:

  • GLUE - AWS Glue databases and tables.
  • SAGEMAKER_AI - Amazon SageMaker AI resources.
  • REDSHIFT - Amazon Redshift resources.
  • RDS - Amazon RDS resources.
  • MSK - Amazon Managed Streaming for Apache Kafka (Amazon MSK) resources.
  • KINESIS - Amazon Kinesis Data Streams resources.
  • FIREHOSE - Amazon Data Firehose resources.
  • DYNAMODB - Amazon DynamoDB resources.
  • KEYSPACES - Amazon Keyspaces (for Apache Cassandra) resources.
  • ELASTICACHE - Amazon ElastiCache resources.
  • OPENSEARCH - Amazon OpenSearch Service resources.
  • NEPTUNE - Amazon Neptune resources.
  • TIMESTREAM - Amazon Timestream resources.
  • ATHENA - Amazon Athena resources.
  • GLUE_SCHEMA_REGISTRY - AWS Glue Schema Registry resources.
  • S3 - Amazon S3 resources.
  • S3_VECTORS - Amazon S3 Vectors resources.

Every later segment of the selector must name a level of that service. Any other value, a second glueService segment, or a glueService segment in any other position returns ValidationException . A resource path never contains glueService .

level -> (string) [required]

The hierarchy level name for this segment (for example, “database”, “table”). Non-blank, no whitespace.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\s`]+

id -> (string) [required]

The ID of the resource at this level. Non-blank. Can contain spaces, backticks, and % (it is a resource name), but no control characters. AWS Context matches it exactly.

Constraints:

  • min: 1
  • max: 1024
  • pattern: [^\p{Cc}\p{Zl}\p{Zp}]+

glueConnectionArn -> (string) [required]

The ARN of your AWS Glue connection for path , in your account and Region. Required. The connection type must be one that path accepts:

  • redshiftNamespace - A REDSHIFT unified connection (ConnectionSchemaVersion 2).
  • rdsInstance and rdsDatabase - A POSTGRESQL unified connection, or, for an RDS DB instance, also ORACLE , with its DATABASE property set to that rdsDatabase .
  • snowflakeDatabase - A SNOWFLAKE connection with a ROLE_ARN and its DATABASE property set to that database. The ROLE_ARN must allow glue:GetConnection on that connection.

AWS Context synchronizes the database through this connection. It doesn’t change DATABASE on a connection that it didn’t create. If AWS Glue is still validating the connection, the request fails with ConflictException . If its validation failed, the request fails with AccessDeniedException .

Constraints:

  • min: 1
  • max: 2048
  • pattern: arn:(aws|aws-cn|aws-us-gov):.*

status -> (string)

The connection’s status. Valid values:

  • CREATING - Validation or provisioning is still in progress.
  • ACTIVE - The data source is reachable and, for a DATABRICKS or SNOWFLAKE connection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn’t mean that a crawl has started or completed.
  • UPDATING - The connection is being updated.
  • DELETING - The connection is being deleted.
  • FAILED - Validation or provisioning failed, and the connection can’t recover.

Possible values:

  • CREATING
  • ACTIVE
  • UPDATING
  • DELETING
  • FAILED

failure -> (structure)

The reason the connection is FAILED. Absent in every other status.

code -> (string) [required]

A code that identifies why the connection failed. Codes include the following:

  • GLUE_CONNECTION_UNAVAILABLE - The AWS Glue connection failed AWS Glue validation or no longer exists, or AWS Context couldn’t provision catalog synchronization. Check the AWS Glue connection in the AWS Glue console, and then create the connection again.

New codes can be added, so handle a code that you don’t recognize. Use code , not message , to decide how to respond.

Possible values:

  • GLUE_CONNECTION_UNAVAILABLE

message -> (string) [required]

The failure message. For an AWS Glue connection that failed validation, this is the StatusReason from AWS Glue. Otherwise, it is a message from AWS Context.

Constraints:

  • min: 1
  • max: 1024

subStatus -> (string)

The last milestone a third-party connection’s lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with publish: false means it is waiting for UpdateConnection publish: true .

Possible values:

  • GLUE_CONNECTION_CREATED
  • GLUE_CONNECTION_VALIDATED
  • SYNC_JOB_CREATED

createdAt -> (timestamp)

The date and time when the connection was created.

updatedAt -> (timestamp)

When the resource last changed. Equal to createdAt until the first update.