Class LoggingConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LoggingConfiguration.Builder,LoggingConfiguration>
Specifies a change to the logging configuration of Amazon Redshift Serverless with express configuration.
logDestinationType selects the destination. When it is s3table, the S3 Tables members
apply. Omit logExports in this case. When it is cloudwatch or omitted,
logExports is required. Omit the S3 Tables members in this case.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingConfiguration.Builderbuilder()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) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the LogExports property.final booleanFor responses, this returns true if the service returned a value for the S3TableNames property.final LogDestinationTypeThe destination for the log data.final StringThe destination for the log data.The types of logs to export to Amazon CloudWatch.The types of logs to export to Amazon CloudWatch.final S3TableActionWhether to enable or disable publishing system tables to Amazon S3 Tables.final StringWhether to enable or disable publishing system tables to Amazon S3 Tables.The scope of the Amazon S3 Tables destination.final StringThe scope of the Amazon S3 Tables destination.final StringThe identifier of the Key Management Service key used to encrypt the published Amazon S3 Tables data.The system tables to publish (on enable) or to stop publishing (on disable).static Class<? extends LoggingConfiguration.Builder> 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 interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
logExports
The types of logs to export to Amazon CloudWatch. Available export types are
userlog,connectionlog, anduseractivitylog. Specify an empty list to stop exporting logs. Required whenlogDestinationTypeiscloudwatchor omitted. Can't be specified whenlogDestinationTypeiss3table.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
hasLogExports()method.- Returns:
- The types of logs to export to Amazon CloudWatch. Available export types are
userlog,connectionlog, anduseractivitylog. Specify an empty list to stop exporting logs. Required whenlogDestinationTypeiscloudwatchor omitted. Can't be specified whenlogDestinationTypeiss3table.
-
hasLogExports
public final boolean hasLogExports()For responses, this returns true if the service returned a value for the LogExports 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. -
logExportsAsStrings
The types of logs to export to Amazon CloudWatch. Available export types are
userlog,connectionlog, anduseractivitylog. Specify an empty list to stop exporting logs. Required whenlogDestinationTypeiscloudwatchor omitted. Can't be specified whenlogDestinationTypeiss3table.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
hasLogExports()method.- Returns:
- The types of logs to export to Amazon CloudWatch. Available export types are
userlog,connectionlog, anduseractivitylog. Specify an empty list to stop exporting logs. Required whenlogDestinationTypeiscloudwatchor omitted. Can't be specified whenlogDestinationTypeiss3table.
-
logDestinationType
The destination for the log data. Valid values:
-
cloudwatch- Exports audit logs to Amazon CloudWatch. This is the default. -
s3table- Publishes system tables to Amazon S3 Tables.
If the service returns an enum value that is not available in the current SDK version,
logDestinationTypewill returnLogDestinationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlogDestinationTypeAsString().- Returns:
- The destination for the log data. Valid values:
-
cloudwatch- Exports audit logs to Amazon CloudWatch. This is the default. -
s3table- Publishes system tables to Amazon S3 Tables.
-
- See Also:
-
-
logDestinationTypeAsString
The destination for the log data. Valid values:
-
cloudwatch- Exports audit logs to Amazon CloudWatch. This is the default. -
s3table- Publishes system tables to Amazon S3 Tables.
If the service returns an enum value that is not available in the current SDK version,
logDestinationTypewill returnLogDestinationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlogDestinationTypeAsString().- Returns:
- The destination for the log data. Valid values:
-
cloudwatch- Exports audit logs to Amazon CloudWatch. This is the default. -
s3table- Publishes system tables to Amazon S3 Tables.
-
- See Also:
-
-
s3TableAction
Whether to enable or disable publishing system tables to Amazon S3 Tables. Valid values are
EnableandDisable, and they are case-sensitive. When omitted, defaults toEnable. Valid only whenlogDestinationTypeiss3table.If the service returns an enum value that is not available in the current SDK version,
s3TableActionwill returnS3TableAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available froms3TableActionAsString().- Returns:
- Whether to enable or disable publishing system tables to Amazon S3 Tables. Valid values are
EnableandDisable, and they are case-sensitive. When omitted, defaults toEnable. Valid only whenlogDestinationTypeiss3table. - See Also:
-
s3TableActionAsString
Whether to enable or disable publishing system tables to Amazon S3 Tables. Valid values are
EnableandDisable, and they are case-sensitive. When omitted, defaults toEnable. Valid only whenlogDestinationTypeiss3table.If the service returns an enum value that is not available in the current SDK version,
s3TableActionwill returnS3TableAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available froms3TableActionAsString().- Returns:
- Whether to enable or disable publishing system tables to Amazon S3 Tables. Valid values are
EnableandDisable, and they are case-sensitive. When omitted, defaults toEnable. Valid only whenlogDestinationTypeiss3table. - See Also:
-
hasS3TableNames
public final boolean hasS3TableNames()For responses, this returns true if the service returned a value for the S3TableNames 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. -
s3TableNames
The system tables to publish (on enable) or to stop publishing (on disable). Each value is either a system table view name that begins with
sys_or the keywordall, in lowercase. Omitting this field, passing an empty list, or includingalleach select every current and future system table. Each name must be 1-128 characters, and the list can contain up to 256 names. Valid only whenlogDestinationTypeiss3table.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
hasS3TableNames()method.- Returns:
- The system tables to publish (on enable) or to stop publishing (on disable). Each value is either a
system table view name that begins with
sys_or the keywordall, in lowercase. Omitting this field, passing an empty list, or includingalleach select every current and future system table. Each name must be 1-128 characters, and the list can contain up to 256 names. Valid only whenlogDestinationTypeiss3table.
-
s3TableKmsKeyId
The identifier of the Key Management Service key used to encrypt the published Amazon S3 Tables data. When omitted, the data is encrypted with SSE-S3 (Amazon S3 managed keys). Valid only when
logDestinationTypeiss3table.- Returns:
- The identifier of the Key Management Service key used to encrypt the published Amazon S3 Tables data.
When omitted, the data is encrypted with SSE-S3 (Amazon S3 managed keys). Valid only when
logDestinationTypeiss3table.
-
s3TableGranularity
The scope of the Amazon S3 Tables destination. Valid only when
logDestinationTypeiss3table. Valid values are case-sensitive:-
workgroup- Scopes the published tables to Amazon Redshift Serverless with express configuration. This is the default. -
account- Scopes the published tables to the Amazon Web Services account.
If the service returns an enum value that is not available in the current SDK version,
s3TableGranularitywill returnExpressS3TableGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available froms3TableGranularityAsString().- Returns:
- The scope of the Amazon S3 Tables destination. Valid only when
logDestinationTypeiss3table. Valid values are case-sensitive:-
workgroup- Scopes the published tables to Amazon Redshift Serverless with express configuration. This is the default. -
account- Scopes the published tables to the Amazon Web Services account.
-
- See Also:
-
-
s3TableGranularityAsString
The scope of the Amazon S3 Tables destination. Valid only when
logDestinationTypeiss3table. Valid values are case-sensitive:-
workgroup- Scopes the published tables to Amazon Redshift Serverless with express configuration. This is the default. -
account- Scopes the published tables to the Amazon Web Services account.
If the service returns an enum value that is not available in the current SDK version,
s3TableGranularitywill returnExpressS3TableGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available froms3TableGranularityAsString().- Returns:
- The scope of the Amazon S3 Tables destination. Valid only when
logDestinationTypeiss3table. Valid values are case-sensitive:-
workgroup- Scopes the published tables to Amazon Redshift Serverless with express configuration. This is the default. -
account- Scopes the published tables to the Amazon Web Services account.
-
- See Also:
-
-
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<LoggingConfiguration.Builder,LoggingConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-