Documentation ¶
Index ¶
- func CfnCapacityReservation_CFN_RESOURCE_TYPE_NAME() *string
- func CfnCapacityReservation_IsCfnElement(x interface{}) *bool
- func CfnCapacityReservation_IsCfnResource(x interface{}) *bool
- func CfnCapacityReservation_IsConstruct(x interface{}) *bool
- func CfnDataCatalog_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDataCatalog_IsCfnElement(x interface{}) *bool
- func CfnDataCatalog_IsCfnResource(x interface{}) *bool
- func CfnDataCatalog_IsConstruct(x interface{}) *bool
- func CfnNamedQuery_CFN_RESOURCE_TYPE_NAME() *string
- func CfnNamedQuery_IsCfnElement(x interface{}) *bool
- func CfnNamedQuery_IsCfnResource(x interface{}) *bool
- func CfnNamedQuery_IsConstruct(x interface{}) *bool
- func CfnPreparedStatement_CFN_RESOURCE_TYPE_NAME() *string
- func CfnPreparedStatement_IsCfnElement(x interface{}) *bool
- func CfnPreparedStatement_IsCfnResource(x interface{}) *bool
- func CfnPreparedStatement_IsConstruct(x interface{}) *bool
- func CfnWorkGroup_CFN_RESOURCE_TYPE_NAME() *string
- func CfnWorkGroup_IsCfnElement(x interface{}) *bool
- func CfnWorkGroup_IsCfnResource(x interface{}) *bool
- func CfnWorkGroup_IsConstruct(x interface{}) *bool
- func NewCfnCapacityReservation_Override(c CfnCapacityReservation, scope constructs.Construct, id *string, ...)
- func NewCfnDataCatalog_Override(c CfnDataCatalog, scope constructs.Construct, id *string, ...)
- func NewCfnNamedQuery_Override(c CfnNamedQuery, scope constructs.Construct, id *string, ...)
- func NewCfnPreparedStatement_Override(c CfnPreparedStatement, scope constructs.Construct, id *string, ...)
- func NewCfnWorkGroup_Override(c CfnWorkGroup, scope constructs.Construct, id *string, ...)
- type CfnCapacityReservation
- type CfnCapacityReservationProps
- type CfnCapacityReservation_CapacityAssignmentConfigurationProperty
- type CfnCapacityReservation_CapacityAssignmentProperty
- type CfnDataCatalog
- type CfnDataCatalogProps
- type CfnNamedQuery
- type CfnNamedQueryProps
- type CfnPreparedStatement
- type CfnPreparedStatementProps
- type CfnWorkGroup
- type CfnWorkGroupProps
- type CfnWorkGroup_AclConfigurationProperty
- type CfnWorkGroup_CustomerContentEncryptionConfigurationProperty
- type CfnWorkGroup_EncryptionConfigurationProperty
- type CfnWorkGroup_EngineVersionProperty
- type CfnWorkGroup_ResultConfigurationProperty
- type CfnWorkGroup_ResultConfigurationUpdatesProperty
- type CfnWorkGroup_WorkGroupConfigurationProperty
- type CfnWorkGroup_WorkGroupConfigurationUpdatesProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnCapacityReservation_CFN_RESOURCE_TYPE_NAME ¶ added in v2.85.0
func CfnCapacityReservation_CFN_RESOURCE_TYPE_NAME() *string
func CfnCapacityReservation_IsCfnElement ¶ added in v2.85.0
func CfnCapacityReservation_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnCapacityReservation_IsCfnResource ¶ added in v2.85.0
func CfnCapacityReservation_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnCapacityReservation_IsConstruct ¶ added in v2.85.0
func CfnCapacityReservation_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnDataCatalog_CFN_RESOURCE_TYPE_NAME ¶
func CfnDataCatalog_CFN_RESOURCE_TYPE_NAME() *string
func CfnDataCatalog_IsCfnElement ¶
func CfnDataCatalog_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnDataCatalog_IsCfnResource ¶
func CfnDataCatalog_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnDataCatalog_IsConstruct ¶
func CfnDataCatalog_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnNamedQuery_CFN_RESOURCE_TYPE_NAME ¶
func CfnNamedQuery_CFN_RESOURCE_TYPE_NAME() *string
func CfnNamedQuery_IsCfnElement ¶
func CfnNamedQuery_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnNamedQuery_IsCfnResource ¶
func CfnNamedQuery_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnNamedQuery_IsConstruct ¶
func CfnNamedQuery_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnPreparedStatement_CFN_RESOURCE_TYPE_NAME ¶
func CfnPreparedStatement_CFN_RESOURCE_TYPE_NAME() *string
func CfnPreparedStatement_IsCfnElement ¶
func CfnPreparedStatement_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnPreparedStatement_IsCfnResource ¶
func CfnPreparedStatement_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnPreparedStatement_IsConstruct ¶
func CfnPreparedStatement_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnWorkGroup_CFN_RESOURCE_TYPE_NAME ¶
func CfnWorkGroup_CFN_RESOURCE_TYPE_NAME() *string
func CfnWorkGroup_IsCfnElement ¶
func CfnWorkGroup_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnWorkGroup_IsCfnResource ¶
func CfnWorkGroup_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnWorkGroup_IsConstruct ¶
func CfnWorkGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NewCfnCapacityReservation_Override ¶ added in v2.85.0
func NewCfnCapacityReservation_Override(c CfnCapacityReservation, scope constructs.Construct, id *string, props *CfnCapacityReservationProps)
func NewCfnDataCatalog_Override ¶
func NewCfnDataCatalog_Override(c CfnDataCatalog, scope constructs.Construct, id *string, props *CfnDataCatalogProps)
func NewCfnNamedQuery_Override ¶
func NewCfnNamedQuery_Override(c CfnNamedQuery, scope constructs.Construct, id *string, props *CfnNamedQueryProps)
func NewCfnPreparedStatement_Override ¶
func NewCfnPreparedStatement_Override(c CfnPreparedStatement, scope constructs.Construct, id *string, props *CfnPreparedStatementProps)
func NewCfnWorkGroup_Override ¶
func NewCfnWorkGroup_Override(c CfnWorkGroup, scope constructs.Construct, id *string, props *CfnWorkGroupProps)
Types ¶
type CfnCapacityReservation ¶ added in v2.85.0
type CfnCapacityReservation interface { awscdk.CfnResource awscdk.IInspectable // The number of data processing units currently allocated. AttrAllocatedDpus() *float64 // The ARN of the capacity reservation. AttrArn() *string // The time in UTC epoch millis when the capacity reservation was created. AttrCreationTime() *string // The time of the most recent capacity allocation that succeeded. AttrLastSuccessfulAllocationTime() *string // The status of the capacity reservation. AttrStatus() *string // Assigns Athena workgroups (and hence their queries) to capacity reservations. CapacityAssignmentConfiguration() interface{} SetCapacityAssignmentConfiguration(val interface{}) // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the capacity reservation. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // An array of key-value pairs to apply to the capacity reservation. Tags() *[]*awscdk.CfnTag SetTags(val *[]*awscdk.CfnTag) // The number of data processing units requested. TargetDpus() *float64 SetTargetDpus(val *float64) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Specifies a capacity reservation with the provided name and number of requested data processing units.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnCapacityReservation := awscdk.Aws_athena.NewCfnCapacityReservation(this, jsii.String("MyCfnCapacityReservation"), &CfnCapacityReservationProps{ Name: jsii.String("name"), TargetDpus: jsii.Number(123), // the properties below are optional CapacityAssignmentConfiguration: &CapacityAssignmentConfigurationProperty{ CapacityAssignments: []interface{}{ &CapacityAssignmentProperty{ WorkgroupNames: []*string{ jsii.String("workgroupNames"), }, }, }, }, Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnCapacityReservation ¶ added in v2.85.0
func NewCfnCapacityReservation(scope constructs.Construct, id *string, props *CfnCapacityReservationProps) CfnCapacityReservation
type CfnCapacityReservationProps ¶ added in v2.85.0
type CfnCapacityReservationProps struct { // The name of the capacity reservation. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-capacityreservation.html#cfn-athena-capacityreservation-name // Name *string `field:"required" json:"name" yaml:"name"` // The number of data processing units requested. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-capacityreservation.html#cfn-athena-capacityreservation-targetdpus // TargetDpus *float64 `field:"required" json:"targetDpus" yaml:"targetDpus"` // Assigns Athena workgroups (and hence their queries) to capacity reservations. // // A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-capacityreservation.html#cfn-athena-capacityreservation-capacityassignmentconfiguration // CapacityAssignmentConfiguration interface{} `field:"optional" json:"capacityAssignmentConfiguration" yaml:"capacityAssignmentConfiguration"` // An array of key-value pairs to apply to the capacity reservation. // // For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-capacityreservation.html#cfn-athena-capacityreservation-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnCapacityReservation`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnCapacityReservationProps := &CfnCapacityReservationProps{ Name: jsii.String("name"), TargetDpus: jsii.Number(123), // the properties below are optional CapacityAssignmentConfiguration: &CapacityAssignmentConfigurationProperty{ CapacityAssignments: []interface{}{ &CapacityAssignmentProperty{ WorkgroupNames: []*string{ jsii.String("workgroupNames"), }, }, }, }, Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnCapacityReservation_CapacityAssignmentConfigurationProperty ¶ added in v2.85.0
type CfnCapacityReservation_CapacityAssignmentConfigurationProperty struct { // The list of assignments that make up the capacity assignment configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-capacityreservation-capacityassignmentconfiguration.html#cfn-athena-capacityreservation-capacityassignmentconfiguration-capacityassignments // CapacityAssignments interface{} `field:"required" json:"capacityAssignments" yaml:"capacityAssignments"` }
Assigns Athena workgroups (and hence their queries) to capacity reservations.
A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" capacityAssignmentConfigurationProperty := &CapacityAssignmentConfigurationProperty{ CapacityAssignments: []interface{}{ &CapacityAssignmentProperty{ WorkgroupNames: []*string{ jsii.String("workgroupNames"), }, }, }, }
type CfnCapacityReservation_CapacityAssignmentProperty ¶ added in v2.85.0
type CfnCapacityReservation_CapacityAssignmentProperty struct { // The list of workgroup names for the capacity assignment. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-capacityreservation-capacityassignment.html#cfn-athena-capacityreservation-capacityassignment-workgroupnames // WorkgroupNames *[]*string `field:"required" json:"workgroupNames" yaml:"workgroupNames"` }
A mapping between one or more workgroups and a capacity reservation.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" capacityAssignmentProperty := &CapacityAssignmentProperty{ WorkgroupNames: []*string{ jsii.String("workgroupNames"), }, }
type CfnDataCatalog ¶
type CfnDataCatalog interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // A description of the data catalog. Description() *string SetDescription(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the data catalog. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Specifies the Lambda function or functions to use for the data catalog. Parameters() interface{} SetParameters(val interface{}) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags (key-value pairs) to associate with this resource. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // The type of data catalog: `LAMBDA` for a federated catalog, `GLUE` for AWS Glue Catalog, or `HIVE` for an external hive metastore. Type() *string SetType(val *string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The AWS::Athena::DataCatalog resource specifies an Amazon Athena data catalog, which contains a name, description, type, parameters, and tags.
For more information, see [DataCatalog](https://docs.aws.amazon.com/athena/latest/APIReference/API_DataCatalog.html) in the *Amazon Athena API Reference* .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnDataCatalog := awscdk.Aws_athena.NewCfnDataCatalog(this, jsii.String("MyCfnDataCatalog"), &CfnDataCatalogProps{ Name: jsii.String("name"), Type: jsii.String("type"), // the properties below are optional Description: jsii.String("description"), Parameters: map[string]*string{ "parametersKey": jsii.String("parameters"), }, Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html
func NewCfnDataCatalog ¶
func NewCfnDataCatalog(scope constructs.Construct, id *string, props *CfnDataCatalogProps) CfnDataCatalog
type CfnDataCatalogProps ¶
type CfnDataCatalogProps struct { // The name of the data catalog. // // The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html#cfn-athena-datacatalog-name // Name *string `field:"required" json:"name" yaml:"name"` // The type of data catalog: `LAMBDA` for a federated catalog, `GLUE` for AWS Glue Catalog, or `HIVE` for an external hive metastore. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html#cfn-athena-datacatalog-type // Type *string `field:"required" json:"type" yaml:"type"` // A description of the data catalog. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html#cfn-athena-datacatalog-description // Description *string `field:"optional" json:"description" yaml:"description"` // Specifies the Lambda function or functions to use for the data catalog. // // The mapping used depends on the catalog type. // // - The `HIVE` data catalog type uses the following syntax. The `metadata-function` parameter is required. `The sdk-version` parameter is optional and defaults to the currently supported version. // // `metadata-function= *lambda_arn* , sdk-version= *version_number*` // - The `LAMBDA` data catalog type uses one of the following sets of required parameters, but not both. // // - When one Lambda function processes metadata and another Lambda function reads data, the following syntax is used. Both parameters are required. // // `metadata-function= *lambda_arn* , record-function= *lambda_arn*` // - A composite Lambda function that processes both metadata and data uses the following syntax. // // `function= *lambda_arn*` // - The `GLUE` type takes a catalog ID parameter and is required. The `*catalog_id*` is the account ID of the AWS account to which the Glue catalog belongs. // // `catalog-id= *catalog_id*` // // - The `GLUE` data catalog type also applies to the default `AwsDataCatalog` that already exists in your account, of which you can have only one and cannot modify. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html#cfn-athena-datacatalog-parameters // Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"` // The tags (key-value pairs) to associate with this resource. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html#cfn-athena-datacatalog-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnDataCatalog`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnDataCatalogProps := &CfnDataCatalogProps{ Name: jsii.String("name"), Type: jsii.String("type"), // the properties below are optional Description: jsii.String("description"), Parameters: map[string]*string{ "parametersKey": jsii.String("parameters"), }, Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html
type CfnNamedQuery ¶
type CfnNamedQuery interface { awscdk.CfnResource awscdk.IInspectable // The unique ID of the query. AttrNamedQueryId() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The database to which the query belongs. Database() *string SetDatabase(val *string) // The query description. Description() *string SetDescription(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The query name. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // The SQL statements that make up the query. QueryString() *string SetQueryString(val *string) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The name of the workgroup that contains the named query. WorkGroup() *string SetWorkGroup(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The `AWS::Athena::NamedQuery` resource specifies an Amazon Athena saved query, where `QueryString` contains the SQL query statements that make up the query.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnNamedQuery := awscdk.Aws_athena.NewCfnNamedQuery(this, jsii.String("MyCfnNamedQuery"), &CfnNamedQueryProps{ Database: jsii.String("database"), QueryString: jsii.String("queryString"), // the properties below are optional Description: jsii.String("description"), Name: jsii.String("name"), WorkGroup: jsii.String("workGroup"), })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html
func NewCfnNamedQuery ¶
func NewCfnNamedQuery(scope constructs.Construct, id *string, props *CfnNamedQueryProps) CfnNamedQuery
type CfnNamedQueryProps ¶
type CfnNamedQueryProps struct { // The database to which the query belongs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-database // Database *string `field:"required" json:"database" yaml:"database"` // The SQL statements that make up the query. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-querystring // QueryString *string `field:"required" json:"queryString" yaml:"queryString"` // The query description. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-description // Description *string `field:"optional" json:"description" yaml:"description"` // The query name. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-name // Name *string `field:"optional" json:"name" yaml:"name"` // The name of the workgroup that contains the named query. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html#cfn-athena-namedquery-workgroup // WorkGroup *string `field:"optional" json:"workGroup" yaml:"workGroup"` }
Properties for defining a `CfnNamedQuery`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnNamedQueryProps := &CfnNamedQueryProps{ Database: jsii.String("database"), QueryString: jsii.String("queryString"), // the properties below are optional Description: jsii.String("description"), Name: jsii.String("name"), WorkGroup: jsii.String("workGroup"), }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html
type CfnPreparedStatement ¶
type CfnPreparedStatement interface { awscdk.CfnResource awscdk.IInspectable // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The description of the prepared statement. Description() *string SetDescription(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // The query string for the prepared statement. QueryStatement() *string SetQueryStatement(val *string) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The name of the prepared statement. StatementName() *string SetStatementName(val *string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The workgroup to which the prepared statement belongs. WorkGroup() *string SetWorkGroup(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Specifies a prepared statement for use with SQL queries in Athena.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnPreparedStatement := awscdk.Aws_athena.NewCfnPreparedStatement(this, jsii.String("MyCfnPreparedStatement"), &CfnPreparedStatementProps{ QueryStatement: jsii.String("queryStatement"), StatementName: jsii.String("statementName"), WorkGroup: jsii.String("workGroup"), // the properties below are optional Description: jsii.String("description"), })
func NewCfnPreparedStatement ¶
func NewCfnPreparedStatement(scope constructs.Construct, id *string, props *CfnPreparedStatementProps) CfnPreparedStatement
type CfnPreparedStatementProps ¶
type CfnPreparedStatementProps struct { // The query string for the prepared statement. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-preparedstatement.html#cfn-athena-preparedstatement-querystatement // QueryStatement *string `field:"required" json:"queryStatement" yaml:"queryStatement"` // The name of the prepared statement. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-preparedstatement.html#cfn-athena-preparedstatement-statementname // StatementName *string `field:"required" json:"statementName" yaml:"statementName"` // The workgroup to which the prepared statement belongs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-preparedstatement.html#cfn-athena-preparedstatement-workgroup // WorkGroup *string `field:"required" json:"workGroup" yaml:"workGroup"` // The description of the prepared statement. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-preparedstatement.html#cfn-athena-preparedstatement-description // Description *string `field:"optional" json:"description" yaml:"description"` }
Properties for defining a `CfnPreparedStatement`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnPreparedStatementProps := &CfnPreparedStatementProps{ QueryStatement: jsii.String("queryStatement"), StatementName: jsii.String("statementName"), WorkGroup: jsii.String("workGroup"), // the properties below are optional Description: jsii.String("description"), }
type CfnWorkGroup ¶
type CfnWorkGroup interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // The date and time the workgroup was created, as a UNIX timestamp in seconds. // // For example: `1582761016` . AttrCreationTime() *string // Read only. // // The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a CreateWorkGroup or UpdateWorkGroup operation, the EffectiveEngineVersion field is ignored. AttrWorkGroupConfigurationEngineVersionEffectiveEngineVersion() *string // Read only. // // The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a `CreateWorkGroup` or `UpdateWorkGroup` operation, the `EffectiveEngineVersion` field is ignored. AttrWorkGroupConfigurationUpdatesEngineVersionEffectiveEngineVersion() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The workgroup description. Description() *string SetDescription(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The workgroup name. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // The option to delete a workgroup and its contents even if the workgroup contains any named queries. RecursiveDeleteOption() interface{} SetRecursiveDeleteOption(val interface{}) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The state of the workgroup: ENABLED or DISABLED. State() *string SetState(val *string) // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags (key-value pairs) to associate with this resource. TagsRaw() *[]*awscdk.CfnTag SetTagsRaw(val *[]*awscdk.CfnTag) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified. WorkGroupConfiguration() interface{} SetWorkGroupConfiguration(val interface{}) // The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified. // Deprecated: this property has been deprecated. WorkGroupConfigurationUpdates() interface{} // Deprecated: this property has been deprecated. SetWorkGroupConfigurationUpdates(val interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The AWS::Athena::WorkGroup resource specifies an Amazon Athena workgroup, which contains a name, description, creation time, state, and other configuration, listed under `WorkGroupConfiguration` .
Each workgroup enables you to isolate queries for you or your group from other queries in the same account. For more information, see [CreateWorkGroup](https://docs.aws.amazon.com/athena/latest/APIReference/API_CreateWorkGroup.html) in the *Amazon Athena API Reference* .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnWorkGroup := awscdk.Aws_athena.NewCfnWorkGroup(this, jsii.String("MyCfnWorkGroup"), &CfnWorkGroupProps{ Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), RecursiveDeleteOption: jsii.Boolean(false), State: jsii.String("state"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, WorkGroupConfiguration: &WorkGroupConfigurationProperty{ AdditionalConfiguration: jsii.String("additionalConfiguration"), BytesScannedCutoffPerQuery: jsii.Number(123), CustomerContentEncryptionConfiguration: &CustomerContentEncryptionConfigurationProperty{ KmsKey: jsii.String("kmsKey"), }, EnforceWorkGroupConfiguration: jsii.Boolean(false), EngineVersion: &EngineVersionProperty{ EffectiveEngineVersion: jsii.String("effectiveEngineVersion"), SelectedEngineVersion: jsii.String("selectedEngineVersion"), }, ExecutionRole: jsii.String("executionRole"), PublishCloudWatchMetricsEnabled: jsii.Boolean(false), RequesterPaysEnabled: jsii.Boolean(false), ResultConfiguration: &ResultConfigurationProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), }, }, WorkGroupConfigurationUpdates: &WorkGroupConfigurationUpdatesProperty{ AdditionalConfiguration: jsii.String("additionalConfiguration"), BytesScannedCutoffPerQuery: jsii.Number(123), CustomerContentEncryptionConfiguration: &CustomerContentEncryptionConfigurationProperty{ KmsKey: jsii.String("kmsKey"), }, EnforceWorkGroupConfiguration: jsii.Boolean(false), EngineVersion: &EngineVersionProperty{ EffectiveEngineVersion: jsii.String("effectiveEngineVersion"), SelectedEngineVersion: jsii.String("selectedEngineVersion"), }, ExecutionRole: jsii.String("executionRole"), PublishCloudWatchMetricsEnabled: jsii.Boolean(false), RemoveBytesScannedCutoffPerQuery: jsii.Boolean(false), RemoveCustomerContentEncryptionConfiguration: jsii.Boolean(false), RequesterPaysEnabled: jsii.Boolean(false), ResultConfigurationUpdates: &ResultConfigurationUpdatesProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), RemoveAclConfiguration: jsii.Boolean(false), RemoveEncryptionConfiguration: jsii.Boolean(false), RemoveExpectedBucketOwner: jsii.Boolean(false), RemoveOutputLocation: jsii.Boolean(false), }, }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html
func NewCfnWorkGroup ¶
func NewCfnWorkGroup(scope constructs.Construct, id *string, props *CfnWorkGroupProps) CfnWorkGroup
type CfnWorkGroupProps ¶
type CfnWorkGroupProps struct { // The workgroup name. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html#cfn-athena-workgroup-name // Name *string `field:"required" json:"name" yaml:"name"` // The workgroup description. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html#cfn-athena-workgroup-description // Description *string `field:"optional" json:"description" yaml:"description"` // The option to delete a workgroup and its contents even if the workgroup contains any named queries. // // The default is false. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html#cfn-athena-workgroup-recursivedeleteoption // RecursiveDeleteOption interface{} `field:"optional" json:"recursiveDeleteOption" yaml:"recursiveDeleteOption"` // The state of the workgroup: ENABLED or DISABLED. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html#cfn-athena-workgroup-state // State *string `field:"optional" json:"state" yaml:"state"` // The tags (key-value pairs) to associate with this resource. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html#cfn-athena-workgroup-tags // Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` // The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified. // // The `EnforceWorkGroupConfiguration` option determines whether workgroup settings override client-side query settings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html#cfn-athena-workgroup-workgroupconfiguration // WorkGroupConfiguration interface{} `field:"optional" json:"workGroupConfiguration" yaml:"workGroupConfiguration"` // The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html#cfn-athena-workgroup-workgroupconfigurationupdates // // Deprecated: this property has been deprecated. WorkGroupConfigurationUpdates interface{} `field:"optional" json:"workGroupConfigurationUpdates" yaml:"workGroupConfigurationUpdates"` }
Properties for defining a `CfnWorkGroup`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnWorkGroupProps := &CfnWorkGroupProps{ Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), RecursiveDeleteOption: jsii.Boolean(false), State: jsii.String("state"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, WorkGroupConfiguration: &WorkGroupConfigurationProperty{ AdditionalConfiguration: jsii.String("additionalConfiguration"), BytesScannedCutoffPerQuery: jsii.Number(123), CustomerContentEncryptionConfiguration: &CustomerContentEncryptionConfigurationProperty{ KmsKey: jsii.String("kmsKey"), }, EnforceWorkGroupConfiguration: jsii.Boolean(false), EngineVersion: &EngineVersionProperty{ EffectiveEngineVersion: jsii.String("effectiveEngineVersion"), SelectedEngineVersion: jsii.String("selectedEngineVersion"), }, ExecutionRole: jsii.String("executionRole"), PublishCloudWatchMetricsEnabled: jsii.Boolean(false), RequesterPaysEnabled: jsii.Boolean(false), ResultConfiguration: &ResultConfigurationProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), }, }, WorkGroupConfigurationUpdates: &WorkGroupConfigurationUpdatesProperty{ AdditionalConfiguration: jsii.String("additionalConfiguration"), BytesScannedCutoffPerQuery: jsii.Number(123), CustomerContentEncryptionConfiguration: &CustomerContentEncryptionConfigurationProperty{ KmsKey: jsii.String("kmsKey"), }, EnforceWorkGroupConfiguration: jsii.Boolean(false), EngineVersion: &EngineVersionProperty{ EffectiveEngineVersion: jsii.String("effectiveEngineVersion"), SelectedEngineVersion: jsii.String("selectedEngineVersion"), }, ExecutionRole: jsii.String("executionRole"), PublishCloudWatchMetricsEnabled: jsii.Boolean(false), RemoveBytesScannedCutoffPerQuery: jsii.Boolean(false), RemoveCustomerContentEncryptionConfiguration: jsii.Boolean(false), RequesterPaysEnabled: jsii.Boolean(false), ResultConfigurationUpdates: &ResultConfigurationUpdatesProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), RemoveAclConfiguration: jsii.Boolean(false), RemoveEncryptionConfiguration: jsii.Boolean(false), RemoveExpectedBucketOwner: jsii.Boolean(false), RemoveOutputLocation: jsii.Boolean(false), }, }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html
type CfnWorkGroup_AclConfigurationProperty ¶ added in v2.70.0
type CfnWorkGroup_AclConfigurationProperty struct { // The Amazon S3 canned ACL that Athena should specify when storing query results. // // Currently the only supported canned ACL is `BUCKET_OWNER_FULL_CONTROL` . If a query runs in a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL specified in the workgroup's settings is used for all queries that run in the workgroup. For more information about Amazon S3 canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl) in the *Amazon S3 User Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-aclconfiguration.html#cfn-athena-workgroup-aclconfiguration-s3acloption // S3AclOption *string `field:"required" json:"s3AclOption" yaml:"s3AclOption"` }
Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results.
When Athena stores query results in Amazon S3, the canned ACL is set with the `x-amz-acl` request header. For more information about S3 Object Ownership, see [Object Ownership settings](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html#object-ownership-overview) in the *Amazon S3 User Guide* .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" aclConfigurationProperty := &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }
type CfnWorkGroup_CustomerContentEncryptionConfigurationProperty ¶ added in v2.70.0
type CfnWorkGroup_CustomerContentEncryptionConfigurationProperty struct { // The customer managed KMS key that is used to encrypt the user's data stores in Athena. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-customercontentencryptionconfiguration.html#cfn-athena-workgroup-customercontentencryptionconfiguration-kmskey // KmsKey *string `field:"required" json:"kmsKey" yaml:"kmsKey"` }
Specifies the customer managed KMS key that is used to encrypt the user's data stores in Athena.
When an AWS managed key is used, this value is null. This setting does not apply to Athena SQL workgroups.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" customerContentEncryptionConfigurationProperty := &CustomerContentEncryptionConfigurationProperty{ KmsKey: jsii.String("kmsKey"), }
type CfnWorkGroup_EncryptionConfigurationProperty ¶
type CfnWorkGroup_EncryptionConfigurationProperty struct { // Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys ( `SSE_S3` ), server-side encryption with KMS-managed keys ( `SSE_KMS` ), or client-side encryption with KMS-managed keys ( `CSE_KMS` ) is used. // // If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-encryptionconfiguration.html#cfn-athena-workgroup-encryptionconfiguration-encryptionoption // EncryptionOption *string `field:"required" json:"encryptionOption" yaml:"encryptionOption"` // For `SSE_KMS` and `CSE_KMS` , this is the KMS key ARN or ID. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-encryptionconfiguration.html#cfn-athena-workgroup-encryptionconfiguration-kmskey // KmsKey *string `field:"optional" json:"kmsKey" yaml:"kmsKey"` }
If query results are encrypted in Amazon S3, indicates the encryption option used (for example, `SSE_KMS` or `CSE_KMS` ) and key information.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" encryptionConfigurationProperty := &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }
type CfnWorkGroup_EngineVersionProperty ¶
type CfnWorkGroup_EngineVersionProperty struct { // Read only. // // The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a `CreateWorkGroup` or `UpdateWorkGroup` operation, the `EffectiveEngineVersion` field is ignored. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-engineversion.html#cfn-athena-workgroup-engineversion-effectiveengineversion // EffectiveEngineVersion *string `field:"optional" json:"effectiveEngineVersion" yaml:"effectiveEngineVersion"` // The engine version requested by the user. // // Possible values are determined by the output of `ListEngineVersions` , including AUTO. The default is AUTO. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-engineversion.html#cfn-athena-workgroup-engineversion-selectedengineversion // SelectedEngineVersion *string `field:"optional" json:"selectedEngineVersion" yaml:"selectedEngineVersion"` }
The Athena engine version for running queries, or the PySpark engine version for running sessions.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" engineVersionProperty := &EngineVersionProperty{ EffectiveEngineVersion: jsii.String("effectiveEngineVersion"), SelectedEngineVersion: jsii.String("selectedEngineVersion"), }
type CfnWorkGroup_ResultConfigurationProperty ¶
type CfnWorkGroup_ResultConfigurationProperty struct { // 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. See `EnforceWorkGroupConfiguration` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-aclconfiguration // AclConfiguration interface{} `field:"optional" json:"aclConfiguration" yaml:"aclConfiguration"` // 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 `EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-encryptionconfiguration // EncryptionConfiguration interface{} `field:"optional" json:"encryptionConfiguration" yaml:"encryptionConfiguration"` // The 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` 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 `EnforceWorkGroupConfiguration` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-expectedbucketowner // ExpectedBucketOwner *string `field:"optional" json:"expectedBucketOwner" yaml:"expectedBucketOwner"` // The location in Amazon S3 where your query results are stored, such as `s3://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 [Working with Query Results, Output Files, and Query History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) and `EnforceWorkGroupConfiguration` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-outputlocation // OutputLocation *string `field:"optional" json:"outputLocation" yaml:"outputLocation"` }
The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results.
These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the workgroup settings.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" resultConfigurationProperty := &ResultConfigurationProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), }
type CfnWorkGroup_ResultConfigurationUpdatesProperty ¶
type CfnWorkGroup_ResultConfigurationUpdatesProperty struct { // The ACL configuration for the query results. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-aclconfiguration // AclConfiguration interface{} `field:"optional" json:"aclConfiguration" yaml:"aclConfiguration"` // The encryption configuration for the query results. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-encryptionconfiguration // EncryptionConfiguration interface{} `field:"optional" json:"encryptionConfiguration" yaml:"encryptionConfiguration"` // The AWS 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` 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. See `WorkGroupConfiguration$EnforceWorkGroupConfiguration` and [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-expectedbucketowner // ExpectedBucketOwner *string `field:"optional" json:"expectedBucketOwner" yaml:"expectedBucketOwner"` // The location in Amazon S3 where your query results are stored, such as `s3://path/to/query/bucket/` . // // For more information, see [Query Results](https://docs.aws.amazon.com/athena/latest/ug/querying.html) 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. See `EnforceWorkGroupConfiguration` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-outputlocation // OutputLocation *string `field:"optional" json:"outputLocation" yaml:"outputLocation"` // If set to `true` , indicates that the previously-specified ACL configuration 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 `AclConfiguration` of `ResultConfigurationUpdates` , the `AclConfiguration` in the workgroup's `ResultConfiguration` is updated with the new value. For more information, see [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeaclconfiguration // RemoveAclConfiguration interface{} `field:"optional" json:"removeAclConfiguration" yaml:"removeAclConfiguration"` // 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 [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeencryptionconfiguration // RemoveEncryptionConfiguration interface{} `field:"optional" json:"removeEncryptionConfiguration" yaml:"removeEncryptionConfiguration"` // If set to "true", removes the AWS account ID previously specified for `ResultConfiguration$ExpectedBucketOwner` . // // If set to "false" or not set, and a value is present in the `ExpectedBucketOwner` in `ResultConfigurationUpdates` (the client-side setting), the `ExpectedBucketOwner` in the workgroup's `ResultConfiguration` is updated with the new value. For more information, see [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeexpectedbucketowner // RemoveExpectedBucketOwner interface{} `field:"optional" json:"removeExpectedBucketOwner" yaml:"removeExpectedBucketOwner"` // 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 [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-resultconfigurationupdates.html#cfn-athena-workgroup-resultconfigurationupdates-removeoutputlocation // RemoveOutputLocation interface{} `field:"optional" json:"removeOutputLocation" yaml:"removeOutputLocation"` }
The information about the updates in the query results, such as output location and encryption configuration for the query results.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" resultConfigurationUpdatesProperty := &ResultConfigurationUpdatesProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), RemoveAclConfiguration: jsii.Boolean(false), RemoveEncryptionConfiguration: jsii.Boolean(false), RemoveExpectedBucketOwner: jsii.Boolean(false), RemoveOutputLocation: jsii.Boolean(false), }
type CfnWorkGroup_WorkGroupConfigurationProperty ¶
type CfnWorkGroup_WorkGroupConfigurationProperty struct { // Specifies a user defined JSON string that is passed to the session engine. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-additionalconfiguration // AdditionalConfiguration *string `field:"optional" json:"additionalConfiguration" yaml:"additionalConfiguration"` // The upper limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. // // No default is defined. // // > This property currently supports integer types. Support for long values is planned. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-bytesscannedcutoffperquery // BytesScannedCutoffPerQuery *float64 `field:"optional" json:"bytesScannedCutoffPerQuery" yaml:"bytesScannedCutoffPerQuery"` // Specifies the KMS key that is used to encrypt the user's data stores in Athena. // // This setting does not apply to Athena SQL workgroups. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-customercontentencryptionconfiguration // CustomerContentEncryptionConfiguration interface{} `field:"optional" json:"customerContentEncryptionConfiguration" yaml:"customerContentEncryptionConfiguration"` // If set to "true", the settings for the workgroup override client-side settings. // // If set to "false", client-side settings are used. For more information, see [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-enforceworkgroupconfiguration // EnforceWorkGroupConfiguration interface{} `field:"optional" json:"enforceWorkGroupConfiguration" yaml:"enforceWorkGroupConfiguration"` // The engine version that all queries running on the workgroup use. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-engineversion // EngineVersion interface{} `field:"optional" json:"engineVersion" yaml:"engineVersion"` // Role used to access user resources in an Athena for Apache Spark session. // // This property applies only to Spark-enabled workgroups in Athena. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-executionrole // ExecutionRole *string `field:"optional" json:"executionRole" yaml:"executionRole"` // Indicates that the Amazon CloudWatch metrics are enabled for the workgroup. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-publishcloudwatchmetricsenabled // PublishCloudWatchMetricsEnabled interface{} `field:"optional" json:"publishCloudWatchMetricsEnabled" yaml:"publishCloudWatchMetricsEnabled"` // If set to `true` , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. // // If set to `false` , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is `false` . For more information about Requester Pays buckets, see [Requester Pays Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) in the *Amazon Simple Storage Service Developer Guide* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-requesterpaysenabled // RequesterPaysEnabled interface{} `field:"optional" json:"requesterPaysEnabled" yaml:"requesterPaysEnabled"` // Specifies the location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. // // For more information, see [Working with Query Results, Output Files, and Query History](https://docs.aws.amazon.com/athena/latest/ug/querying.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-resultconfiguration // ResultConfiguration interface{} `field:"optional" json:"resultConfiguration" yaml:"resultConfiguration"` }
The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified.
The `EnforceWorkGroupConfiguration` option determines whether workgroup settings override client-side query settings.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" workGroupConfigurationProperty := &WorkGroupConfigurationProperty{ AdditionalConfiguration: jsii.String("additionalConfiguration"), BytesScannedCutoffPerQuery: jsii.Number(123), CustomerContentEncryptionConfiguration: &CustomerContentEncryptionConfigurationProperty{ KmsKey: jsii.String("kmsKey"), }, EnforceWorkGroupConfiguration: jsii.Boolean(false), EngineVersion: &EngineVersionProperty{ EffectiveEngineVersion: jsii.String("effectiveEngineVersion"), SelectedEngineVersion: jsii.String("selectedEngineVersion"), }, ExecutionRole: jsii.String("executionRole"), PublishCloudWatchMetricsEnabled: jsii.Boolean(false), RequesterPaysEnabled: jsii.Boolean(false), ResultConfiguration: &ResultConfigurationProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), }, }
type CfnWorkGroup_WorkGroupConfigurationUpdatesProperty ¶
type CfnWorkGroup_WorkGroupConfigurationUpdatesProperty struct { // Additional Configuration that are passed to Athena Spark Calculations running in this workgroup. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-additionalconfiguration // AdditionalConfiguration *string `field:"optional" json:"additionalConfiguration" yaml:"additionalConfiguration"` // The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-bytesscannedcutoffperquery // BytesScannedCutoffPerQuery *float64 `field:"optional" json:"bytesScannedCutoffPerQuery" yaml:"bytesScannedCutoffPerQuery"` // Indicates the KMS key for encrypting notebook content. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-customercontentencryptionconfiguration // CustomerContentEncryptionConfiguration interface{} `field:"optional" json:"customerContentEncryptionConfiguration" yaml:"customerContentEncryptionConfiguration"` // If set to "true", the settings for the workgroup override client-side settings. // // If set to "false", client-side settings are used. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-enforceworkgroupconfiguration // EnforceWorkGroupConfiguration interface{} `field:"optional" json:"enforceWorkGroupConfiguration" yaml:"enforceWorkGroupConfiguration"` // The Athena engine version for running queries. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-engineversion // EngineVersion interface{} `field:"optional" json:"engineVersion" yaml:"engineVersion"` // Execution Role ARN required to run Athena Spark Calculations. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-executionrole // ExecutionRole *string `field:"optional" json:"executionRole" yaml:"executionRole"` // Indicates that the Amazon CloudWatch metrics are enabled for the workgroup. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-publishcloudwatchmetricsenabled // PublishCloudWatchMetricsEnabled interface{} `field:"optional" json:"publishCloudWatchMetricsEnabled" yaml:"publishCloudWatchMetricsEnabled"` // Indicates that the data usage control limit per query is removed. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-removebytesscannedcutoffperquery // RemoveBytesScannedCutoffPerQuery interface{} `field:"optional" json:"removeBytesScannedCutoffPerQuery" yaml:"removeBytesScannedCutoffPerQuery"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-removecustomercontentencryptionconfiguration // RemoveCustomerContentEncryptionConfiguration interface{} `field:"optional" json:"removeCustomerContentEncryptionConfiguration" yaml:"removeCustomerContentEncryptionConfiguration"` // If set to true, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. // // If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-requesterpaysenabled // RequesterPaysEnabled interface{} `field:"optional" json:"requesterPaysEnabled" yaml:"requesterPaysEnabled"` // The result configuration information about the queries in this workgroup that will be updated. // // Includes the updated results location and an updated option for encrypting query results. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-resultconfigurationupdates // ResultConfigurationUpdates interface{} `field:"optional" json:"resultConfigurationUpdates" yaml:"resultConfigurationUpdates"` }
The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" workGroupConfigurationUpdatesProperty := &WorkGroupConfigurationUpdatesProperty{ AdditionalConfiguration: jsii.String("additionalConfiguration"), BytesScannedCutoffPerQuery: jsii.Number(123), CustomerContentEncryptionConfiguration: &CustomerContentEncryptionConfigurationProperty{ KmsKey: jsii.String("kmsKey"), }, EnforceWorkGroupConfiguration: jsii.Boolean(false), EngineVersion: &EngineVersionProperty{ EffectiveEngineVersion: jsii.String("effectiveEngineVersion"), SelectedEngineVersion: jsii.String("selectedEngineVersion"), }, ExecutionRole: jsii.String("executionRole"), PublishCloudWatchMetricsEnabled: jsii.Boolean(false), RemoveBytesScannedCutoffPerQuery: jsii.Boolean(false), RemoveCustomerContentEncryptionConfiguration: jsii.Boolean(false), RequesterPaysEnabled: jsii.Boolean(false), ResultConfigurationUpdates: &ResultConfigurationUpdatesProperty{ AclConfiguration: &AclConfigurationProperty{ S3AclOption: jsii.String("s3AclOption"), }, EncryptionConfiguration: &EncryptionConfigurationProperty{ EncryptionOption: jsii.String("encryptionOption"), // the properties below are optional KmsKey: jsii.String("kmsKey"), }, ExpectedBucketOwner: jsii.String("expectedBucketOwner"), OutputLocation: jsii.String("outputLocation"), RemoveAclConfiguration: jsii.Boolean(false), RemoveEncryptionConfiguration: jsii.Boolean(false), RemoveExpectedBucketOwner: jsii.Boolean(false), RemoveOutputLocation: jsii.Boolean(false), }, }
Source Files ¶
- CfnCapacityReservation.go
- CfnCapacityReservationProps.go
- CfnCapacityReservation_CapacityAssignmentConfigurationProperty.go
- CfnCapacityReservation_CapacityAssignmentProperty.go
- CfnCapacityReservation__checks.go
- CfnDataCatalog.go
- CfnDataCatalogProps.go
- CfnDataCatalog__checks.go
- CfnNamedQuery.go
- CfnNamedQueryProps.go
- CfnNamedQuery__checks.go
- CfnPreparedStatement.go
- CfnPreparedStatementProps.go
- CfnPreparedStatement__checks.go
- CfnWorkGroup.go
- CfnWorkGroupProps.go
- CfnWorkGroup_AclConfigurationProperty.go
- CfnWorkGroup_CustomerContentEncryptionConfigurationProperty.go
- CfnWorkGroup_EncryptionConfigurationProperty.go
- CfnWorkGroup_EngineVersionProperty.go
- CfnWorkGroup_ResultConfigurationProperty.go
- CfnWorkGroup_ResultConfigurationUpdatesProperty.go
- CfnWorkGroup_WorkGroupConfigurationProperty.go
- CfnWorkGroup_WorkGroupConfigurationUpdatesProperty.go
- CfnWorkGroup__checks.go
- main.go