Interface UpdateConnectionRequest.Builder

  • Method Details

    • connectionId

      UpdateConnectionRequest.Builder connectionId(String connectionId)

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

      Parameters:
      connectionId - The connection to update, by its ID (which starts with conn-) or its ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

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

      Parameters:
      name - The new name. If you omit it, the name is unchanged.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scope

      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.

      Parameters:
      scope - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scope

      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.

      This is a convenience method that creates an instance of the DataSourceScope.Builder avoiding the need to create one manually via DataSourceScope.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scope(DataSourceScope).

      Parameters:
      scope - a consumer that will call methods on DataSourceScope.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • accessConfig

      UpdateConnectionRequest.Builder accessConfig(AccessConfig accessConfig)

      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.

      Parameters:
      accessConfig - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessConfig

      default UpdateConnectionRequest.Builder accessConfig(Consumer<AccessConfig.Builder> accessConfig)

      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.

      This is a convenience method that creates an instance of the AccessConfig.Builder avoiding the need to create one manually via AccessConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to accessConfig(AccessConfig).

      Parameters:
      accessConfig - a consumer that will call methods on AccessConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • syncSchedule

      UpdateConnectionRequest.Builder syncSchedule(SyncSchedule syncSchedule)

      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.

      Parameters:
      syncSchedule - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • syncSchedule

      default UpdateConnectionRequest.Builder syncSchedule(Consumer<SyncSchedule.Builder> syncSchedule)

      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.

      This is a convenience method that creates an instance of the SyncSchedule.Builder avoiding the need to create one manually via SyncSchedule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to syncSchedule(SyncSchedule).

      Parameters:
      syncSchedule - a consumer that will call methods on SyncSchedule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ingestionConfig

      UpdateConnectionRequest.Builder ingestionConfig(IngestionConfig ingestionConfig)

      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.

      Parameters:
      ingestionConfig - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ingestionConfig

      default UpdateConnectionRequest.Builder ingestionConfig(Consumer<IngestionConfig.Builder> ingestionConfig)

      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.

      This is a convenience method that creates an instance of the IngestionConfig.Builder avoiding the need to create one manually via IngestionConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ingestionConfig(IngestionConfig).

      Parameters:
      ingestionConfig - a consumer that will call methods on IngestionConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • glueConnectionMappings

      UpdateConnectionRequest.Builder glueConnectionMappings(Collection<GlueConnectionMapping> glueConnectionMappings)

      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.

      Parameters:
      glueConnectionMappings - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • glueConnectionMappings

      UpdateConnectionRequest.Builder glueConnectionMappings(GlueConnectionMapping... glueConnectionMappings)

      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.

      Parameters:
      glueConnectionMappings - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • glueConnectionMappings

      UpdateConnectionRequest.Builder glueConnectionMappings(Consumer<GlueConnectionMapping.Builder>... glueConnectionMappings)

      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.

      This is a convenience method that creates an instance of the GlueConnectionMapping.Builder avoiding the need to create one manually via GlueConnectionMapping.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to glueConnectionMappings(List<GlueConnectionMapping>).

      Parameters:
      glueConnectionMappings - a consumer that will call methods on GlueConnectionMapping.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • publish

      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.

      Parameters:
      publish - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      UpdateConnectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.