Class CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.athena.mixins.CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroupPropsMixin.ResultConfigurationProperty>
- Enclosing interface:
CfnWorkGroupPropsMixin.ResultConfigurationProperty
@Stability(Stable)
public static final class CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroupPropsMixin.ResultConfigurationProperty>
A builder for
CfnWorkGroupPropsMixin.ResultConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaclConfiguration(IResolvable aclConfiguration) Sets the value ofCfnWorkGroupPropsMixin.ResultConfigurationProperty.getAclConfiguration()aclConfiguration(CfnWorkGroupPropsMixin.AclConfigurationProperty aclConfiguration) Sets the value ofCfnWorkGroupPropsMixin.ResultConfigurationProperty.getAclConfiguration()build()Builds the configured instance.encryptionConfiguration(IResolvable encryptionConfiguration) encryptionConfiguration(CfnWorkGroupPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) expectedBucketOwner(String expectedBucketOwner) outputLocation(String outputLocation) Sets the value ofCfnWorkGroupPropsMixin.ResultConfigurationProperty.getOutputLocation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aclConfiguration
@Stability(Stable) public CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder aclConfiguration(IResolvable aclConfiguration) Sets the value ofCfnWorkGroupPropsMixin.ResultConfigurationProperty.getAclConfiguration()- Parameters:
aclConfiguration- Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results. Currently the only supported canned ACL isBUCKET_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. SeeEnforceWorkGroupConfiguration.- Returns:
this
-
aclConfiguration
@Stability(Stable) public CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder aclConfiguration(CfnWorkGroupPropsMixin.AclConfigurationProperty aclConfiguration) Sets the value ofCfnWorkGroupPropsMixin.ResultConfigurationProperty.getAclConfiguration()- Parameters:
aclConfiguration- Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results. Currently the only supported canned ACL isBUCKET_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. SeeEnforceWorkGroupConfiguration.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder encryptionConfiguration(IResolvable encryptionConfiguration) - Parameters:
encryptionConfiguration- If query results are encrypted in Amazon S3, indicates the encryption option used (for example,SSE_KMSorCSE_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. SeeEnforceWorkGroupConfigurationand Override client-side settings .- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder encryptionConfiguration(CfnWorkGroupPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) - Parameters:
encryptionConfiguration- If query results are encrypted in Amazon S3, indicates the encryption option used (for example,SSE_KMSorCSE_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. SeeEnforceWorkGroupConfigurationand Override client-side settings .- Returns:
this
-
expectedBucketOwner
@Stability(Stable) public CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder expectedBucketOwner(String expectedBucketOwner) - Parameters:
expectedBucketOwner- The account ID that you expect to be the owner of the Amazon S3 bucket specified byResultConfiguration:OutputLocation. If set, Athena uses the value forExpectedBucketOwnerwhen it makes Amazon S3 calls to your specified output location. If theExpectedBucketOwneraccount 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
ExpectedBucketOwnersetting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. SeeEnforceWorkGroupConfiguration.- Returns:
this
-
outputLocation
@Stability(Stable) public CfnWorkGroupPropsMixin.ResultConfigurationProperty.Builder outputLocation(String outputLocation) Sets the value ofCfnWorkGroupPropsMixin.ResultConfigurationProperty.getOutputLocation()- Parameters:
outputLocation- The location in Amazon S3 where your query results are stored, such ass3://path/to/query/bucket/. To run a query, you must specify the query results location using either a client-side setting for individual queries or a location specified by the workgroup. If workgroup settings override client-side settings, then the query uses the location specified for the workgroup. If no query location is set, Athena issues an error. For more information, see Work with query results and recent queries andEnforceWorkGroupConfiguration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkGroupPropsMixin.ResultConfigurationProperty>- Returns:
- a new instance of
CfnWorkGroupPropsMixin.ResultConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-