Class CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroup.ResultConfigurationUpdatesProperty>
- Enclosing interface:
CfnWorkGroup.ResultConfigurationUpdatesProperty
@Stability(Stable)
public static final class CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroup.ResultConfigurationUpdatesProperty>
A builder for
CfnWorkGroup.ResultConfigurationUpdatesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaclConfiguration
(IResolvable aclConfiguration) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getAclConfiguration()
aclConfiguration
(CfnWorkGroup.AclConfigurationProperty aclConfiguration) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getAclConfiguration()
build()
Builds the configured instance.encryptionConfiguration
(IResolvable encryptionConfiguration) encryptionConfiguration
(CfnWorkGroup.EncryptionConfigurationProperty encryptionConfiguration) expectedBucketOwner
(String expectedBucketOwner) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getExpectedBucketOwner()
outputLocation
(String outputLocation) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getOutputLocation()
removeAclConfiguration
(Boolean removeAclConfiguration) removeAclConfiguration
(IResolvable removeAclConfiguration) removeEncryptionConfiguration
(Boolean removeEncryptionConfiguration) removeEncryptionConfiguration
(IResolvable removeEncryptionConfiguration) removeExpectedBucketOwner
(Boolean removeExpectedBucketOwner) removeExpectedBucketOwner
(IResolvable removeExpectedBucketOwner) removeOutputLocation
(Boolean removeOutputLocation) removeOutputLocation
(IResolvable removeOutputLocation)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aclConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder aclConfiguration(IResolvable aclConfiguration) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getAclConfiguration()
- Parameters:
aclConfiguration
- The ACL configuration for the query results.- Returns:
this
-
aclConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder aclConfiguration(CfnWorkGroup.AclConfigurationProperty aclConfiguration) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getAclConfiguration()
- Parameters:
aclConfiguration
- The ACL configuration for the query results.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder encryptionConfiguration(IResolvable encryptionConfiguration) - Parameters:
encryptionConfiguration
- The encryption configuration for the query results.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder encryptionConfiguration(CfnWorkGroup.EncryptionConfigurationProperty encryptionConfiguration) - Parameters:
encryptionConfiguration
- The encryption configuration for the query results.- Returns:
this
-
expectedBucketOwner
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getExpectedBucketOwner()
- Parameters:
expectedBucketOwner
- The AWS account ID that you expect to be the owner of the Amazon S3 bucket specified byResultConfiguration$OutputLocation
. If set, Athena uses the value forExpectedBucketOwner
when it makes Amazon S3 calls to your specified output location. If theExpectedBucketOwner
AWS account ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error.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. SeeWorkGroupConfiguration$EnforceWorkGroupConfiguration
and Workgroup Settings Override Client-Side Settings .- Returns:
this
-
outputLocation
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder outputLocation(String outputLocation) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getOutputLocation()
- Parameters:
outputLocation
- The location in Amazon S3 where your query results are stored, such ass3://path/to/query/bucket/
. For more information, see Query Results If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup. The "workgroup settings override" is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. SeeEnforceWorkGroupConfiguration
.- Returns:
this
-
removeAclConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeAclConfiguration(Boolean removeAclConfiguration) - Parameters:
removeAclConfiguration
- If set totrue
, indicates that the previously-specified ACL configuration for queries in this workgroup should be ignored and set to null. If set tofalse
or not set, and a value is present in theAclConfiguration
ofResultConfigurationUpdates
, theAclConfiguration
in the workgroup'sResultConfiguration
is updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .- Returns:
this
-
removeAclConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeAclConfiguration(IResolvable removeAclConfiguration) - Parameters:
removeAclConfiguration
- If set totrue
, indicates that the previously-specified ACL configuration for queries in this workgroup should be ignored and set to null. If set tofalse
or not set, and a value is present in theAclConfiguration
ofResultConfigurationUpdates
, theAclConfiguration
in the workgroup'sResultConfiguration
is updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .- Returns:
this
-
removeEncryptionConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeEncryptionConfiguration(Boolean removeEncryptionConfiguration) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getRemoveEncryptionConfiguration()
- Parameters:
removeEncryptionConfiguration
- If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .- Returns:
this
-
removeEncryptionConfiguration
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeEncryptionConfiguration(IResolvable removeEncryptionConfiguration) Sets the value ofCfnWorkGroup.ResultConfigurationUpdatesProperty.getRemoveEncryptionConfiguration()
- Parameters:
removeEncryptionConfiguration
- If set to "true", indicates that the previously-specified encryption configuration (also known as the client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .- Returns:
this
-
removeExpectedBucketOwner
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeExpectedBucketOwner(Boolean removeExpectedBucketOwner) - Parameters:
removeExpectedBucketOwner
- If set to "true", removes the AWS account ID previously specified forResultConfiguration$ExpectedBucketOwner
. If set to "false" or not set, and a value is present in theExpectedBucketOwner
inResultConfigurationUpdates
(the client-side setting), theExpectedBucketOwner
in the workgroup'sResultConfiguration
is updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .- Returns:
this
-
removeExpectedBucketOwner
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeExpectedBucketOwner(IResolvable removeExpectedBucketOwner) - Parameters:
removeExpectedBucketOwner
- If set to "true", removes the AWS account ID previously specified forResultConfiguration$ExpectedBucketOwner
. If set to "false" or not set, and a value is present in theExpectedBucketOwner
inResultConfigurationUpdates
(the client-side setting), theExpectedBucketOwner
in the workgroup'sResultConfiguration
is updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .- Returns:
this
-
removeOutputLocation
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeOutputLocation(Boolean removeOutputLocation) - Parameters:
removeOutputLocation
- If set to "true", indicates that the previously-specified query results location (also known as a client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .- Returns:
this
-
removeOutputLocation
@Stability(Stable) public CfnWorkGroup.ResultConfigurationUpdatesProperty.Builder removeOutputLocation(IResolvable removeOutputLocation) - Parameters:
removeOutputLocation
- If set to "true", indicates that the previously-specified query results location (also known as a client-side setting) for queries in this workgroup should be ignored and set to null. If set to "false" or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup's ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkGroup.ResultConfigurationUpdatesProperty>
- Returns:
- a new instance of
CfnWorkGroup.ResultConfigurationUpdatesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-