Class UpdateConnectionRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<UpdateConnectionRequest.Builder,UpdateConnectionRequest>

@Generated("software.amazon.awssdk:codegen") public final class UpdateConnectionRequest extends ContextRequest implements ToCopyableBuilder<UpdateConnectionRequest.Builder,UpdateConnectionRequest>
  • Method Details

    • connectionId

      public final String 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

      public final String 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

      public final DataSourceScope 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:
      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.

    • accessConfig

      public final 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.

      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 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.

    • syncSchedule

      public final 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.

      Returns:
      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.
    • ingestionConfig

      public final 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.

      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:PassRole permission 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 the isEmpty() 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

      public final List<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.

      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 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.
    • publish

      public final Boolean 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:
      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.
    • toBuilder

      public UpdateConnectionRequest.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<UpdateConnectionRequest.Builder,UpdateConnectionRequest>
      Specified by:
      toBuilder in class ContextRequest
      Returns:
      a builder for type T
    • builder

      public static UpdateConnectionRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends UpdateConnectionRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Description copied from class: SdkRequest
      Used to retrieve the value of a field from any class that extends SdkRequest. 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, the SdkRequest.getValueForField(String, Class) method will again be available.
      Overrides:
      getValueForField in class SdkRequest
      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

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.