Class: Aws::Context::Types::CreateConnectionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Context::Types::CreateConnectionRequest
- Defined in:
- gems/aws-sdk-context/lib/aws-sdk-context/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#access_config ⇒ Types::AccessConfig
The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access.
-
#acknowledgements ⇒ Array<String>
The conditions that you acknowledge AWS Context can't honor.
-
#client_token ⇒ String
A client idempotency token.
-
#data_source ⇒ Types::DataSourceReference
The external data source that this connection binds to: its
typeandlocation.arn. -
#glue_connection_mappings ⇒ Array<Types::GlueConnectionMapping>
The AWS Glue connection to use for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath. -
#ingestion_config ⇒ Types::IngestionConfig
The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts.
-
#name ⇒ String
The name of the connection.
-
#publish ⇒ Boolean
Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call.
-
#scope ⇒ Types::DataSourceScope
Optional hierarchical subset of the data source to ingest.
-
#sync_schedule ⇒ Types::SyncSchedule
How often AWS Context re-syncs a
DATABRICKSorSNOWFLAKEsource. -
#tags ⇒ Hash<String,String>
Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags.
Instance Attribute Details
#access_config ⇒ Types::AccessConfig
The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.
For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE, iamRole is
the IAM role that AWS Context assumes to read the source and the AWS
Glue connections in glueConnectionMappings. If you omit
accessConfig or set no variant, AWS Context reads them with your
own credentials. This applies whether the source is in your account
or another account. For a source in another account, AWS Context
checks when it creates the connection that iamRole can read the
source, and the request fails if it can't. A source in another
account with no iamRole isn't checked when the connection is
created. An accessConfig with no variant is stored as absent and
is not returned on the connection.
For DATABRICKS and SNOWFLAKE, AWS Glue reads the source with the
ROLE_ARN of the AWS Glue connection in dataSource, not with
accessConfig. For these types, accessConfig is reserved for
other roles.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#acknowledgements ⇒ Array<String>
The conditions that you acknowledge AWS Context can't honor.
Specify CUSTOMER_MANAGED_KEY when the knowledge base is encrypted
with an AWS KMS customer managed key and you accept that AWS Context
stores the ingested data under AWS owned keys. If you omit it,
creating a connection to such a knowledge base fails with
ValidationException. An unknown or repeated value also fails with
ValidationException.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#client_token ⇒ String
A client idempotency token. It is optional, so the AWS SDKs can
generate it automatically and reuse it on retries. A retry with an
identical request returns the original connection. A different
request returns ValidationException. acknowledgements, tags
and, once the connection is ACTIVE, publish are not compared
with the original request. A create refused for a missing
acknowledgement records no token.
A suitable default value is auto-generated. You should normally not need to pass this option.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#data_source ⇒ Types::DataSourceReference
The external data source that this connection binds to: its type
and location.arn. The ARN must be in your account, except for
GLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue
connection in another account.
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException.DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn't store them.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#glue_connection_mappings ⇒ Array<Types::GlueConnectionMapping>
The AWS Glue connection to use for each redshiftNamespace, each
rdsInstance and rdsDatabase pair, or each snowflakeDatabase in
scope, keyed by path. Optional. You can specify 0–20 entries.
The following rules apply:
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase.redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional.snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN.While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService.A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#ingestion_config ⇒ Types::IngestionConfig
The ingestion configuration: the IAM role that a data producer (AWS
Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push
data into this connection's agent contexts. It is separate from
accessConfig, which names the role that AWS Context assumes to
read the source. Required, because a connection can't ingest data
without a role that its data producer can assume. You must have
iam:PassRole permission to pass this role to the data producer,
and the role must be in your account.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#publish ⇒ Boolean
Specifies whether to configure catalog synchronization and wait for
it to be provisioned during this call. If you omit it, the default
is true. For a DATABRICKS or SNOWFLAKE connection, false
validates only the AWS Glue connection. The connection is returned
as CREATING with subStatus GLUE_CONNECTION_VALIDATED, and you
publish it later by calling UpdateConnection with publish set to
true. Ignored for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE
connections, which have no sync job.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#scope ⇒ Types::DataSourceScope
Optional hierarchical subset of the data source to ingest. Absent
means the whole source. A DATABRICKS scope names at most one
databricksCatalog, and a SNOWFLAKE scope one snowflakeDatabase.
A GLUE_DATA_CATALOG scope can select by service with a
glueService segment (see DataSourceScope). An unknown service
name, a repeated or misplaced glueService segment, a later level
of another service, or glueService on another connection type
returns ValidationException.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#sync_schedule ⇒ Types::SyncSchedule
How often AWS Context re-syncs a DATABRICKS or SNOWFLAKE source.
If you omit it, the default is DAILY. Not accepted for
GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections. You
can change it with UpdateConnection.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Hash<String,String>
Tags to add to the connection when you create it: up to 200 in the
request, of which at most 50 can be user tags. Keys can't start
with aws:. To add tags, you also need context:TagResource
permission on the new connection. If you specify more than 50 user
tags, the request fails with ServiceQuotaExceededException, as on
TagResource. If an AWS Organizations tag policy refuses a tag, the
request fails with ValidationException.
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 1905 class CreateConnectionRequest < Struct.new( :client_token, :name, :data_source, :scope, :access_config, :sync_schedule, :ingestion_config, :glue_connection_mappings, :publish, :acknowledgements, :tags) SENSITIVE = [] include Aws::Structure end |