Interface UpdateConnectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<UpdateConnectionRequest.Builder,,UpdateConnectionRequest> SdkBuilder<UpdateConnectionRequest.Builder,,UpdateConnectionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateConnectionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateConnectionRequest.BuilderaccessConfig(Consumer<AccessConfig.Builder> accessConfig) The updated access configuration for the data source.accessConfig(AccessConfig accessConfig) The updated access configuration for the data source.connectionId(String connectionId) The connection to update, by its ID (which starts withconn-) or its ARN.glueConnectionMappings(Collection<GlueConnectionMapping> glueConnectionMappings) The AWS Glue connection for eachredshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope.glueConnectionMappings(Consumer<GlueConnectionMapping.Builder>... glueConnectionMappings) The AWS Glue connection for eachredshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope.glueConnectionMappings(GlueConnectionMapping... glueConnectionMappings) The AWS Glue connection for eachredshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope.default UpdateConnectionRequest.BuilderingestionConfig(Consumer<IngestionConfig.Builder> ingestionConfig) The ingestion configuration: the IAM role that a data producer assumes to push data into this connection.ingestionConfig(IngestionConfig ingestionConfig) The ingestion configuration: the IAM role that a data producer assumes to push data into this connection.The new name.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Specifies whether to publish a third-party connection created withpublish: false.default UpdateConnectionRequest.Builderscope(Consumer<DataSourceScope.Builder> scope) The new ingestion scope for the connection.scope(DataSourceScope scope) The new ingestion scope for the connection.default UpdateConnectionRequest.BuildersyncSchedule(Consumer<SyncSchedule.Builder> syncSchedule) The new sync schedule for aDATABRICKSorSNOWFLAKEsource.syncSchedule(SyncSchedule syncSchedule) The new sync schedule for aDATABRICKSorSNOWFLAKEsource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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 withconn-) 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.scopeapply, with the following additions:-
A
DATABRICKSorSNOWFLAKEscope names at most onedatabricksCatalogorsnowflakeDatabase, unless the existing scope already names each one. -
If the stored scope has a selector with a
glueServicesegment, the new scope can't be empty. Every selector that it adds must also have aglueServicesegment. Otherwise, the request fails withValidationException. 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 ofCreateConnectionRequest.scopeapply, with the following additions:-
A
DATABRICKSorSNOWFLAKEscope names at most onedatabricksCatalogorsnowflakeDatabase, unless the existing scope already names each one. -
If the stored scope has a selector with a
glueServicesegment, the new scope can't be empty. Every selector that it adds must also have aglueServicesegment. Otherwise, the request fails withValidationException. 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.scopeapply, with the following additions:-
A
DATABRICKSorSNOWFLAKEscope names at most onedatabricksCatalogorsnowflakeDatabase, unless the existing scope already names each one. -
If the stored scope has a selector with a
glueServicesegment, the new scope can't be empty. Every selector that it adds must also have aglueServicesegment. Otherwise, the request fails withValidationException. You can keep a selector that the stored scope already has, so resending the stored scope unchanged succeeds.
DataSourceScope.Builderavoiding the need to create one manually viaDataSourceScope.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscope(DataSourceScope).- Parameters:
scope- a consumer that will call methods onDataSourceScope.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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
DATABRICKSandSNOWFLAKE, a configuration with no variant clears a storediamRole, and the connection is then returned with noaccessConfig.For
GLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE, you cannot add or remove theiamRole. An update that adds aniamRoleto a connection stored without one fails withValidationException. So does an update that provides a configuration withoutiamRolefor 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
DATABRICKSandSNOWFLAKE, a configuration with no variant clears a storediamRole, and the connection is then returned with noaccessConfig.For
GLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE, you cannot add or remove theiamRole. An update that adds aniamRoleto a connection stored without one fails withValidationException. So does an update that provides a configuration withoutiamRolefor 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
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
DATABRICKSandSNOWFLAKE, a configuration with no variant clears a storediamRole, and the connection is then returned with noaccessConfig.For
This is a convenience method that creates an instance of theGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE, you cannot add or remove theiamRole. An update that adds aniamRoleto a connection stored without one fails withValidationException. So does an update that provides a configuration withoutiamRolefor 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.AccessConfig.Builderavoiding the need to create one manually viaAccessConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessConfig(AccessConfig).- Parameters:
accessConfig- a consumer that will call methods onAccessConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
syncSchedule
The new sync schedule for a
DATABRICKSorSNOWFLAKEsource. If you omit it, the existing schedule is unchanged. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections.- Parameters:
syncSchedule- The new sync schedule for aDATABRICKSorSNOWFLAKEsource. If you omit it, the existing schedule is unchanged. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syncSchedule
The new sync schedule for a
This is a convenience method that creates an instance of theDATABRICKSorSNOWFLAKEsource. If you omit it, the existing schedule is unchanged. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections.SyncSchedule.Builderavoiding the need to create one manually viaSyncSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosyncSchedule(SyncSchedule).- Parameters:
syncSchedule- a consumer that will call methods onSyncSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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:PassRolepermission 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 haveiam:PassRolepermission 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
This is a convenience method that creates an instance of theiam:PassRolepermission to pass this role to the data producer, and the role must be in your account. You can't clear the role.IngestionConfig.Builderavoiding the need to create one manually viaIngestionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toingestionConfig(IngestionConfig).- Parameters:
ingestionConfig- a consumer that will call methods onIngestionConfig.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 eachrdsInstanceandrdsDatabasepair, inscope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changesscope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those ofCreateConnectionRequest.glueConnectionMappings. You can't change the list of aSNOWFLAKEconnection, which is keyed bysnowflakeDatabase: omit it or send it unchanged.- Parameters:
glueConnectionMappings- The AWS Glue connection for eachredshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changesscope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those ofCreateConnectionRequest.glueConnectionMappings. You can't change the list of aSNOWFLAKEconnection, which is keyed bysnowflakeDatabase: 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 eachrdsInstanceandrdsDatabasepair, inscope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changesscope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those ofCreateConnectionRequest.glueConnectionMappings. You can't change the list of aSNOWFLAKEconnection, which is keyed bysnowflakeDatabase: omit it or send it unchanged.- Parameters:
glueConnectionMappings- The AWS Glue connection for eachredshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changesscope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those ofCreateConnectionRequest.glueConnectionMappings. You can't change the list of aSNOWFLAKEconnection, which is keyed bysnowflakeDatabase: 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
This is a convenience method that creates an instance of theredshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changesscope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those ofCreateConnectionRequest.glueConnectionMappings. You can't change the list of aSNOWFLAKEconnection, which is keyed bysnowflakeDatabase: omit it or send it unchanged.GlueConnectionMapping.Builderavoiding the need to create one manually viaGlueConnectionMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toglueConnectionMappings(List<GlueConnectionMapping>).- Parameters:
glueConnectionMappings- a consumer that will call methods onGlueConnectionMapping.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. Iftrue, 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.falseis not accepted, because a connection can't be unpublished. Delete the connection instead.- Parameters:
publish- Specifies whether to publish a third-party connection created withpublish: false. Iftrue, 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.falseis 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateConnectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-