aws_athena_workgroup

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// ForceDestroy: bool, optional
	ForceDestroy terra.BoolValue `hcl:"force_destroy,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// State: string, optional
	State terra.StringValue `hcl:"state,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// Configuration: optional
	Configuration *Configuration `hcl:"configuration,block"`
}

Args contains the configurations for aws_athena_workgroup.

type Configuration

type Configuration struct {
	// BytesScannedCutoffPerQuery: number, optional
	BytesScannedCutoffPerQuery terra.NumberValue `hcl:"bytes_scanned_cutoff_per_query,attr"`
	// EnforceWorkgroupConfiguration: bool, optional
	EnforceWorkgroupConfiguration terra.BoolValue `hcl:"enforce_workgroup_configuration,attr"`
	// ExecutionRole: string, optional
	ExecutionRole terra.StringValue `hcl:"execution_role,attr"`
	// PublishCloudwatchMetricsEnabled: bool, optional
	PublishCloudwatchMetricsEnabled terra.BoolValue `hcl:"publish_cloudwatch_metrics_enabled,attr"`
	// RequesterPaysEnabled: bool, optional
	RequesterPaysEnabled terra.BoolValue `hcl:"requester_pays_enabled,attr"`
	// ConfigurationEngineVersion: optional
	EngineVersion *ConfigurationEngineVersion `hcl:"engine_version,block"`
	// ConfigurationResultConfiguration: optional
	ResultConfiguration *ConfigurationResultConfiguration `hcl:"result_configuration,block"`
}

type ConfigurationAttributes

type ConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (ConfigurationAttributes) BytesScannedCutoffPerQuery

func (c ConfigurationAttributes) BytesScannedCutoffPerQuery() terra.NumberValue

func (ConfigurationAttributes) EnforceWorkgroupConfiguration

func (c ConfigurationAttributes) EnforceWorkgroupConfiguration() terra.BoolValue

func (ConfigurationAttributes) EngineVersion

func (ConfigurationAttributes) ExecutionRole

func (c ConfigurationAttributes) ExecutionRole() terra.StringValue

func (ConfigurationAttributes) InternalRef

func (c ConfigurationAttributes) InternalRef() (terra.Reference, error)

func (ConfigurationAttributes) InternalTokens

func (c ConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigurationAttributes) InternalWithRef

func (ConfigurationAttributes) PublishCloudwatchMetricsEnabled

func (c ConfigurationAttributes) PublishCloudwatchMetricsEnabled() terra.BoolValue

func (ConfigurationAttributes) RequesterPaysEnabled

func (c ConfigurationAttributes) RequesterPaysEnabled() terra.BoolValue

func (ConfigurationAttributes) ResultConfiguration

type ConfigurationEngineVersion

type ConfigurationEngineVersion struct {
	// SelectedEngineVersion: string, optional
	SelectedEngineVersion terra.StringValue `hcl:"selected_engine_version,attr"`
}

type ConfigurationEngineVersionAttributes

type ConfigurationEngineVersionAttributes struct {
	// contains filtered or unexported fields
}

func (ConfigurationEngineVersionAttributes) EffectiveEngineVersion

func (ev ConfigurationEngineVersionAttributes) EffectiveEngineVersion() terra.StringValue

func (ConfigurationEngineVersionAttributes) InternalRef

func (ConfigurationEngineVersionAttributes) InternalTokens

func (ConfigurationEngineVersionAttributes) InternalWithRef

func (ConfigurationEngineVersionAttributes) SelectedEngineVersion

func (ev ConfigurationEngineVersionAttributes) SelectedEngineVersion() terra.StringValue

type ConfigurationEngineVersionState

type ConfigurationEngineVersionState struct {
	EffectiveEngineVersion string `json:"effective_engine_version"`
	SelectedEngineVersion  string `json:"selected_engine_version"`
}

type ConfigurationResultConfiguration

type ConfigurationResultConfiguration struct {
	// ExpectedBucketOwner: string, optional
	ExpectedBucketOwner terra.StringValue `hcl:"expected_bucket_owner,attr"`
	// OutputLocation: string, optional
	OutputLocation terra.StringValue `hcl:"output_location,attr"`
	// ConfigurationResultConfigurationAclConfiguration: optional
	AclConfiguration *ConfigurationResultConfigurationAclConfiguration `hcl:"acl_configuration,block"`
	// ConfigurationResultConfigurationEncryptionConfiguration: optional
	EncryptionConfiguration *ConfigurationResultConfigurationEncryptionConfiguration `hcl:"encryption_configuration,block"`
}

type ConfigurationResultConfigurationAclConfiguration

type ConfigurationResultConfigurationAclConfiguration struct {
	// S3AclOption: string, required
	S3AclOption terra.StringValue `hcl:"s3_acl_option,attr" validate:"required"`
}

type ConfigurationResultConfigurationAclConfigurationAttributes

type ConfigurationResultConfigurationAclConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (ConfigurationResultConfigurationAclConfigurationAttributes) InternalRef

func (ConfigurationResultConfigurationAclConfigurationAttributes) InternalTokens

func (ConfigurationResultConfigurationAclConfigurationAttributes) InternalWithRef

func (ConfigurationResultConfigurationAclConfigurationAttributes) S3AclOption

type ConfigurationResultConfigurationAclConfigurationState

type ConfigurationResultConfigurationAclConfigurationState struct {
	S3AclOption string `json:"s3_acl_option"`
}

type ConfigurationResultConfigurationAttributes

type ConfigurationResultConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (ConfigurationResultConfigurationAttributes) ExpectedBucketOwner

func (ConfigurationResultConfigurationAttributes) InternalRef

func (ConfigurationResultConfigurationAttributes) InternalTokens

func (ConfigurationResultConfigurationAttributes) InternalWithRef

func (ConfigurationResultConfigurationAttributes) OutputLocation

type ConfigurationResultConfigurationEncryptionConfiguration

type ConfigurationResultConfigurationEncryptionConfiguration struct {
	// EncryptionOption: string, optional
	EncryptionOption terra.StringValue `hcl:"encryption_option,attr"`
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
}

type ConfigurationResultConfigurationEncryptionConfigurationAttributes

type ConfigurationResultConfigurationEncryptionConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (ConfigurationResultConfigurationEncryptionConfigurationAttributes) EncryptionOption

func (ConfigurationResultConfigurationEncryptionConfigurationAttributes) InternalRef

func (ConfigurationResultConfigurationEncryptionConfigurationAttributes) InternalTokens

func (ConfigurationResultConfigurationEncryptionConfigurationAttributes) InternalWithRef

func (ConfigurationResultConfigurationEncryptionConfigurationAttributes) KmsKeyArn

type ConfigurationResultConfigurationEncryptionConfigurationState

type ConfigurationResultConfigurationEncryptionConfigurationState struct {
	EncryptionOption string `json:"encryption_option"`
	KmsKeyArn        string `json:"kms_key_arn"`
}

type ConfigurationResultConfigurationState

type ConfigurationResultConfigurationState struct {
	ExpectedBucketOwner     string                                                         `json:"expected_bucket_owner"`
	OutputLocation          string                                                         `json:"output_location"`
	AclConfiguration        []ConfigurationResultConfigurationAclConfigurationState        `json:"acl_configuration"`
	EncryptionConfiguration []ConfigurationResultConfigurationEncryptionConfigurationState `json:"encryption_configuration"`
}

type ConfigurationState

type ConfigurationState struct {
	BytesScannedCutoffPerQuery      float64                                 `json:"bytes_scanned_cutoff_per_query"`
	EnforceWorkgroupConfiguration   bool                                    `json:"enforce_workgroup_configuration"`
	ExecutionRole                   string                                  `json:"execution_role"`
	PublishCloudwatchMetricsEnabled bool                                    `json:"publish_cloudwatch_metrics_enabled"`
	RequesterPaysEnabled            bool                                    `json:"requester_pays_enabled"`
	EngineVersion                   []ConfigurationEngineVersionState       `json:"engine_version"`
	ResultConfiguration             []ConfigurationResultConfigurationState `json:"result_configuration"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_athena_workgroup.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aaw *Resource) Attributes() awsAthenaWorkgroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (aaw *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (aaw *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (aaw *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (aaw *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (aaw *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aaw *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aaw *Resource) State() (*awsAthenaWorkgroupState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (aaw *Resource) StateMust() *awsAthenaWorkgroupState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (aaw *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL