Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ResultConfiguration = ResultConfiguration' {}
- newResultConfiguration :: ResultConfiguration
- resultConfiguration_aclConfiguration :: Lens' ResultConfiguration (Maybe AclConfiguration)
- resultConfiguration_encryptionConfiguration :: Lens' ResultConfiguration (Maybe EncryptionConfiguration)
- resultConfiguration_expectedBucketOwner :: Lens' ResultConfiguration (Maybe Text)
- resultConfiguration_outputLocation :: Lens' ResultConfiguration (Maybe Text)
Documentation
data ResultConfiguration Source #
The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the workgroup settings.
See: newResultConfiguration
smart constructor.
ResultConfiguration' | |
|
Instances
newResultConfiguration :: ResultConfiguration Source #
Create a value of ResultConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:aclConfiguration:ResultConfiguration'
, resultConfiguration_aclConfiguration
- Indicates that an Amazon S3 canned ACL should be set to control
ownership of stored query results. Currently the only supported canned
ACL is BUCKET_OWNER_FULL_CONTROL
. This is a client-side setting. If
workgroup settings override client-side settings, then the query uses
the ACL configuration that is specified for the workgroup, and also uses
the location for storing query results specified in the workgroup. For
more information, see
WorkGroupConfiguration$EnforceWorkGroupConfiguration and
Workgroup Settings Override Client-Side Settings.
$sel:encryptionConfiguration:ResultConfiguration'
, resultConfiguration_encryptionConfiguration
- If query results are encrypted in Amazon S3, indicates the encryption
option used (for example, SSE_KMS
or CSE_KMS
) and key information.
This is a client-side setting. If workgroup settings override
client-side settings, then the query uses the encryption configuration
that is specified for the workgroup, and also uses the location for
storing query results specified in the workgroup. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration and
Workgroup Settings Override Client-Side Settings.
$sel:expectedBucketOwner:ResultConfiguration'
, resultConfiguration_expectedBucketOwner
- The Amazon Web Services account ID that you expect to be the owner of
the Amazon S3 bucket specified by ResultConfiguration$OutputLocation. If
set, Athena uses the value for ExpectedBucketOwner
when it makes
Amazon S3 calls to your specified output location. If the
ExpectedBucketOwner
Amazon Web Services account ID does not match the
actual owner of the Amazon S3 bucket, the call fails with a permissions
error.
This is a client-side setting. If workgroup settings override
client-side settings, then the query uses the ExpectedBucketOwner
setting that is specified for the workgroup, and also uses the location
for storing query results specified in the workgroup. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration and
Workgroup Settings Override Client-Side Settings.
$sel:outputLocation:ResultConfiguration'
, resultConfiguration_outputLocation
- The location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. To run the query, you must specify
the query results location using one of the ways: either for individual
queries using either this setting (client-side), or in the workgroup,
using WorkGroupConfiguration. If none of them is set, Athena issues an
error that no output location is provided. For more information, see
Query Results.
If workgroup settings override client-side settings, then the query uses
the settings specified for the workgroup. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration.
resultConfiguration_aclConfiguration :: Lens' ResultConfiguration (Maybe AclConfiguration) Source #
Indicates that an Amazon S3 canned ACL should be set to control
ownership of stored query results. Currently the only supported canned
ACL is BUCKET_OWNER_FULL_CONTROL
. This is a client-side setting. If
workgroup settings override client-side settings, then the query uses
the ACL configuration that is specified for the workgroup, and also uses
the location for storing query results specified in the workgroup. For
more information, see
WorkGroupConfiguration$EnforceWorkGroupConfiguration and
Workgroup Settings Override Client-Side Settings.
resultConfiguration_encryptionConfiguration :: Lens' ResultConfiguration (Maybe EncryptionConfiguration) Source #
If query results are encrypted in Amazon S3, indicates the encryption
option used (for example, SSE_KMS
or CSE_KMS
) and key information.
This is a client-side setting. If workgroup settings override
client-side settings, then the query uses the encryption configuration
that is specified for the workgroup, and also uses the location for
storing query results specified in the workgroup. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration and
Workgroup Settings Override Client-Side Settings.
resultConfiguration_expectedBucketOwner :: Lens' ResultConfiguration (Maybe Text) Source #
The Amazon Web Services account ID that you expect to be the owner of
the Amazon S3 bucket specified by ResultConfiguration$OutputLocation. If
set, Athena uses the value for ExpectedBucketOwner
when it makes
Amazon S3 calls to your specified output location. If the
ExpectedBucketOwner
Amazon Web Services account ID does not match the
actual owner of the Amazon S3 bucket, the call fails with a permissions
error.
This is a client-side setting. If workgroup settings override
client-side settings, then the query uses the ExpectedBucketOwner
setting that is specified for the workgroup, and also uses the location
for storing query results specified in the workgroup. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration and
Workgroup Settings Override Client-Side Settings.
resultConfiguration_outputLocation :: Lens' ResultConfiguration (Maybe Text) Source #
The location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. To run the query, you must specify
the query results location using one of the ways: either for individual
queries using either this setting (client-side), or in the workgroup,
using WorkGroupConfiguration. If none of them is set, Athena issues an
error that no output location is provided. For more information, see
Query Results.
If workgroup settings override client-side settings, then the query uses
the settings specified for the workgroup. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration.