Class S3ExportDestination
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<S3ExportDestination.Builder,S3ExportDestination>
The Amazon S3 destination for an export, including the bucket, the Amazon Web Services KMS key used for encryption, and an optional object key prefix.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Amazon Resource Name (ARN) of the Amazon S3 bucket that Security Hub writes the export to.static S3ExportDestination.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 StringThe ARN of the Amazon Web Services KMS key that Security Hub uses to encrypt the export objects with server-side encryption.final StringAn optional key prefix that Security Hub prepends to the Amazon S3 object keys of the export output.static Class<? extends S3ExportDestination.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
-
bucketArn
The Amazon Resource Name (ARN) of the Amazon S3 bucket that Security Hub writes the export to. You must own the bucket, and its bucket policy must grant the Security Hub service principal (
exportv2.securityhub.amazonaws.com) permission to write objects. For the required bucket policy, see the Examples section ofStartExportJobV2.- Returns:
- The Amazon Resource Name (ARN) of the Amazon S3 bucket that Security Hub writes the export to. You must
own the bucket, and its bucket policy must grant the Security Hub service principal (
exportv2.securityhub.amazonaws.com) permission to write objects. For the required bucket policy, see the Examples section ofStartExportJobV2.
-
kmsKeyArn
The ARN of the Amazon Web Services KMS key that Security Hub uses to encrypt the export objects with server-side encryption. The key policy must allow the Security Hub service principal (
exportv2.securityhub.amazonaws.com) to use the key through Amazon S3. For the required key policy, see the Examples section ofStartExportJobV2.The key must meet all of the following requirements:
-
It must be a symmetric key with a key usage of
ENCRYPT_DECRYPT. -
It must be a single-Region key. Multi-Region keys, whose key IDs begin with
mrk-, are rejected. -
You must specify the full key ARN. Key IDs and aliases are rejected.
-
The key must be in the same Amazon Web Services account as the export job.
-
The key must be in the same Amazon Web Services Region as the export job.
-
The key must be in the
aws,aws-cn, oraws-us-govpartition.
- Returns:
- The ARN of the Amazon Web Services KMS key that Security Hub uses to encrypt the export objects with
server-side encryption. The key policy must allow the Security Hub service principal (
exportv2.securityhub.amazonaws.com) to use the key through Amazon S3. For the required key policy, see the Examples section ofStartExportJobV2.The key must meet all of the following requirements:
-
It must be a symmetric key with a key usage of
ENCRYPT_DECRYPT. -
It must be a single-Region key. Multi-Region keys, whose key IDs begin with
mrk-, are rejected. -
You must specify the full key ARN. Key IDs and aliases are rejected.
-
The key must be in the same Amazon Web Services account as the export job.
-
The key must be in the same Amazon Web Services Region as the export job.
-
The key must be in the
aws,aws-cn, oraws-us-govpartition.
-
-
-
objectPrefix
An optional key prefix that Security Hub prepends to the Amazon S3 object keys of the export output. Use a prefix to organize exports within the bucket. The value can be up to 512 characters.
- Returns:
- An optional key prefix that Security Hub prepends to the Amazon S3 object keys of the export output. Use a prefix to organize exports within the bucket. The value can be up to 512 characters.
-
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<S3ExportDestination.Builder,S3ExportDestination> - 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.
-