Interface S3ExportDestination.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<S3ExportDestination.Builder,,S3ExportDestination> SdkBuilder<S3ExportDestination.Builder,,S3ExportDestination> SdkPojo
- Enclosing class:
S3ExportDestination
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the Amazon S3 bucket that Security Hub writes the export to.The ARN of the Amazon Web Services KMS key that Security Hub uses to encrypt the export objects with server-side encryption.objectPrefix(String objectPrefix) An optional key prefix that Security Hub prepends to the Amazon S3 object keys of the export output.Methods 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
-
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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-