Class UpdateConnectionRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateConnectionRequest.Builder,UpdateConnectionRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AccessConfigThe updated access configuration for the data source.builder()final StringThe connection to update, by its ID (which starts withconn-) or its ARN.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final List<GlueConnectionMapping> The AWS Glue connection for eachredshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope.final booleanFor responses, this returns true if the service returned a value for the GlueConnectionMappings property.final inthashCode()final IngestionConfigThe ingestion configuration: the IAM role that a data producer assumes to push data into this connection.final Stringname()The new name.final Booleanpublish()Specifies whether to publish a third-party connection created withpublish: false.final DataSourceScopescope()The new ingestion scope for the connection.static Class<? extends UpdateConnectionRequest.Builder> final SyncScheduleThe new sync schedule for aDATABRICKSorSNOWFLAKEsource.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
connectionId
The connection to update, by its ID (which starts with
conn-) or its ARN.- Returns:
- The connection to update, by its ID (which starts with
conn-) or its ARN.
-
name
The new name. If you omit it, the name is unchanged.
- Returns:
- The new name. If you omit it, the name is unchanged.
-
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.
- Returns:
- 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.
-
-
-
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:
- 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.
-
syncSchedule
The new sync schedule for a
DATABRICKSorSNOWFLAKEsource. If you omit it, the existing schedule is unchanged. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections.- Returns:
- The new sync schedule for a
DATABRICKSorSNOWFLAKEsource. If you omit it, the existing schedule is unchanged. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections.
-
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.- Returns:
- 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.
-
hasGlueConnectionMappings
public final boolean hasGlueConnectionMappings()For responses, this returns true if the service returned a value for the GlueConnectionMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasGlueConnectionMappings()method.- Returns:
- 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.
-
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.- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateConnectionRequest.Builder,UpdateConnectionRequest> - Specified by:
toBuilderin classContextRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-