Documentation
¶
Overview ¶
This module is deprecated. All constructs are now available under aws-cdk-lib/aws-glue
Index ¶
- func CatalogBase_IsConstruct(x interface{}) *bool
- func CatalogBase_IsOwnedResource(construct constructs.IConstruct) *bool
- func CatalogBase_IsResource(construct constructs.IConstruct) *bool
- func Catalog_IsConstruct(x interface{}) *bool
- func Catalog_IsOwnedResource(construct constructs.IConstruct) *bool
- func Catalog_IsResource(construct constructs.IConstruct) *bool
- func Catalog_PROPERTY_INJECTION_ID() *string
- func Connection_IsConstruct(x interface{}) *bool
- func Connection_IsOwnedResource(construct constructs.IConstruct) *bool
- func Connection_IsResource(construct constructs.IConstruct) *bool
- func Connection_PROPERTY_INJECTION_ID() *string
- func DataQualityRuleset_IsConstruct(x interface{}) *bool
- func DataQualityRuleset_IsOwnedResource(construct constructs.IConstruct) *bool
- func DataQualityRuleset_IsResource(construct constructs.IConstruct) *bool
- func DataQualityRuleset_PROPERTY_INJECTION_ID() *string
- func Database_IsConstruct(x interface{}) *bool
- func Database_IsOwnedResource(construct constructs.IConstruct) *bool
- func Database_IsResource(construct constructs.IConstruct) *bool
- func Database_PROPERTY_INJECTION_ID() *string
- func ExternalTable_IsConstruct(x interface{}) *bool
- func ExternalTable_IsOwnedResource(construct constructs.IConstruct) *bool
- func ExternalTable_IsResource(construct constructs.IConstruct) *bool
- func ExternalTable_PROPERTY_INJECTION_ID() *string
- func JobBase_IsConstruct(x interface{}) *bool
- func JobBase_IsOwnedResource(construct constructs.IConstruct) *bool
- func JobBase_IsResource(construct constructs.IConstruct) *bool
- func Job_IsConstruct(x interface{}) *bool
- func Job_IsOwnedResource(construct constructs.IConstruct) *bool
- func Job_IsResource(construct constructs.IConstruct) *bool
- func NewAction_Override(a Action)
- func NewAssetCode_Override(a AssetCode, path *string, options *awss3assets.AssetOptions)
- func NewCatalogBase_Override(c CatalogBase, scope constructs.Construct, id *string, ...)
- func NewCatalog_Override(c Catalog, scope constructs.Construct, id *string, props *CatalogProps)
- func NewClassificationString_Override(c ClassificationString, value *string)
- func NewCode_Override(c Code)
- func NewCondition_Override(c Condition)
- func NewConnectionType_Override(c ConnectionType, name *string)
- func NewConnection_Override(c Connection, scope constructs.Construct, id *string, props *ConnectionProps)
- func NewDataFormat_Override(d DataFormat, props *DataFormatProps)
- func NewDataQualityRuleset_Override(d DataQualityRuleset, scope constructs.Construct, id *string, ...)
- func NewDatabase_Override(d Database, scope constructs.Construct, id *string, props *DatabaseProps)
- func NewExternalTable_Override(e ExternalTable, scope constructs.Construct, id *string, ...)
- func NewInputFormat_Override(i InputFormat, className *string)
- func NewJobBase_Override(j JobBase, scope constructs.Construct, id *string, props *awscdk.ResourceProps)
- func NewJob_Override(j Job, scope constructs.Construct, id *string, props *awscdk.ResourceProps)
- func NewOutputFormat_Override(o OutputFormat, className *string)
- func NewPySparkEtlJob_Override(p PySparkEtlJob, scope constructs.Construct, id *string, ...)
- func NewPySparkFlexEtlJob_Override(p PySparkFlexEtlJob, scope constructs.Construct, id *string, ...)
- func NewPySparkStreamingJob_Override(p PySparkStreamingJob, scope constructs.Construct, id *string, ...)
- func NewPythonShellJob_Override(p PythonShellJob, scope constructs.Construct, id *string, ...)
- func NewRayJob_Override(r RayJob, scope constructs.Construct, id *string, props *RayJobProps)
- func NewS3Code_Override(s S3Code, bucket awss3.IBucket, key *string)
- func NewS3Table_Override(s S3Table, scope constructs.Construct, id *string, props *S3TableProps)
- func NewScalaSparkEtlJob_Override(s ScalaSparkEtlJob, scope constructs.Construct, id *string, ...)
- func NewScalaSparkFlexEtlJob_Override(s ScalaSparkFlexEtlJob, scope constructs.Construct, id *string, ...)
- func NewScalaSparkStreamingJob_Override(s ScalaSparkStreamingJob, scope constructs.Construct, id *string, ...)
- func NewSchema_Override(s Schema)
- func NewSecurityConfiguration_Override(s SecurityConfiguration, scope constructs.Construct, id *string, ...)
- func NewSerializationLibrary_Override(s SerializationLibrary, className *string)
- func NewSparkJob_Override(s SparkJob, scope constructs.Construct, id *string, props *SparkJobProps)
- func NewStorageParameter_Override(s StorageParameter, key *string, value *string)
- func NewTableBase_Override(t TableBase, scope constructs.Construct, id *string, props *TableBaseProps)
- func NewWorkflowBase_Override(w WorkflowBase, scope constructs.Construct, id *string, ...)
- func NewWorkflow_Override(w Workflow, scope constructs.Construct, id *string, props *WorkflowProps)
- func PySparkEtlJob_IsConstruct(x interface{}) *bool
- func PySparkEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func PySparkEtlJob_IsResource(construct constructs.IConstruct) *bool
- func PySparkEtlJob_PROPERTY_INJECTION_ID() *string
- func PySparkFlexEtlJob_IsConstruct(x interface{}) *bool
- func PySparkFlexEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func PySparkFlexEtlJob_IsResource(construct constructs.IConstruct) *bool
- func PySparkFlexEtlJob_PROPERTY_INJECTION_ID() *string
- func PySparkStreamingJob_IsConstruct(x interface{}) *bool
- func PySparkStreamingJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func PySparkStreamingJob_IsResource(construct constructs.IConstruct) *bool
- func PySparkStreamingJob_PROPERTY_INJECTION_ID() *string
- func PythonShellJob_IsConstruct(x interface{}) *bool
- func PythonShellJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func PythonShellJob_IsResource(construct constructs.IConstruct) *bool
- func PythonShellJob_PROPERTY_INJECTION_ID() *string
- func RayJob_IsConstruct(x interface{}) *bool
- func RayJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func RayJob_IsResource(construct constructs.IConstruct) *bool
- func RayJob_PROPERTY_INJECTION_ID() *string
- func S3Table_IsConstruct(x interface{}) *bool
- func S3Table_IsOwnedResource(construct constructs.IConstruct) *bool
- func S3Table_IsResource(construct constructs.IConstruct) *bool
- func S3Table_PROPERTY_INJECTION_ID() *string
- func ScalaSparkEtlJob_IsConstruct(x interface{}) *bool
- func ScalaSparkEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func ScalaSparkEtlJob_IsResource(construct constructs.IConstruct) *bool
- func ScalaSparkEtlJob_PROPERTY_INJECTION_ID() *string
- func ScalaSparkFlexEtlJob_IsConstruct(x interface{}) *bool
- func ScalaSparkFlexEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func ScalaSparkFlexEtlJob_IsResource(construct constructs.IConstruct) *bool
- func ScalaSparkFlexEtlJob_PROPERTY_INJECTION_ID() *string
- func ScalaSparkStreamingJob_IsConstruct(x interface{}) *bool
- func ScalaSparkStreamingJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func ScalaSparkStreamingJob_IsResource(construct constructs.IConstruct) *bool
- func ScalaSparkStreamingJob_PROPERTY_INJECTION_ID() *string
- func SecurityConfiguration_IsConstruct(x interface{}) *bool
- func SecurityConfiguration_IsOwnedResource(construct constructs.IConstruct) *bool
- func SecurityConfiguration_IsResource(construct constructs.IConstruct) *bool
- func SecurityConfiguration_PROPERTY_INJECTION_ID() *string
- func SparkJob_IsConstruct(x interface{}) *bool
- func SparkJob_IsOwnedResource(construct constructs.IConstruct) *bool
- func SparkJob_IsResource(construct constructs.IConstruct) *bool
- func TableBase_IsConstruct(x interface{}) *bool
- func TableBase_IsOwnedResource(construct constructs.IConstruct) *bool
- func TableBase_IsResource(construct constructs.IConstruct) *bool
- func WorkflowBase_ExtractNameFromArn(scope constructs.Construct, workflowArn *string) *string
- func WorkflowBase_IsConstruct(x interface{}) *bool
- func WorkflowBase_IsOwnedResource(construct constructs.IConstruct) *bool
- func WorkflowBase_IsResource(construct constructs.IConstruct) *bool
- func Workflow_ExtractNameFromArn(scope constructs.Construct, workflowArn *string) *string
- func Workflow_IsConstruct(x interface{}) *bool
- func Workflow_IsOwnedResource(construct constructs.IConstruct) *bool
- func Workflow_IsResource(construct constructs.IConstruct) *bool
- func Workflow_PROPERTY_INJECTION_ID() *string
- type Action
- type AssetCode
- func AssetCode_FromAsset(path *string, options *awss3assets.AssetOptions) AssetCode
- func Code_FromAsset(path *string, options *awss3assets.AssetOptions) AssetCode
- func NewAssetCode(path *string, options *awss3assets.AssetOptions) AssetCode
- func S3Code_FromAsset(path *string, options *awss3assets.AssetOptions) AssetCode
- type Catalog
- type CatalogBase
- type CatalogEncryptionMode
- type CatalogEncryptionOptions
- type CatalogProps
- type ClassificationString
- func ClassificationString_AVRO() ClassificationString
- func ClassificationString_CSV() ClassificationString
- func ClassificationString_JSON() ClassificationString
- func ClassificationString_ORC() ClassificationString
- func ClassificationString_PARQUET() ClassificationString
- func ClassificationString_XML() ClassificationString
- func NewClassificationString(value *string) ClassificationString
- type CloudWatchEncryption
- type Code
- type CodeConfig
- type Column
- type ColumnCountMismatchHandlingAction
- type CompressionType
- type Condition
- type ConditionLogicalOperator
- type ConditionOptions
- type ConditionalTriggerOptions
- type Connection
- type ConnectionNetwork
- type ConnectionOptions
- type ConnectionPasswordEncryption
- type ConnectionProps
- type ConnectionType
- func ConnectionType_AZURECOSMOS() ConnectionType
- func ConnectionType_AZURESQL() ConnectionType
- func ConnectionType_BIGQUERY() ConnectionType
- func ConnectionType_CUSTOM() ConnectionType
- func ConnectionType_DYNAMODB() ConnectionType
- func ConnectionType_FACEBOOKADS() ConnectionType
- func ConnectionType_GOOGLEADS() ConnectionType
- func ConnectionType_GOOGLEANALYTICS4() ConnectionType
- func ConnectionType_GOOGLESHEETS() ConnectionType
- func ConnectionType_HUBSPOT() ConnectionType
- func ConnectionType_INSTAGRAMADS() ConnectionType
- func ConnectionType_INTERCOM() ConnectionType
- func ConnectionType_JDBC() ConnectionType
- func ConnectionType_JIRACLOUD() ConnectionType
- func ConnectionType_KAFKA() ConnectionType
- func ConnectionType_MARKETO() ConnectionType
- func ConnectionType_MARKETPLACE() ConnectionType
- func ConnectionType_MONGODB() ConnectionType
- func ConnectionType_MYSQL() ConnectionType
- func ConnectionType_NETSUITEERP() ConnectionType
- func ConnectionType_NETWORK() ConnectionType
- func ConnectionType_OPENSEARCH() ConnectionType
- func ConnectionType_ORACLE() ConnectionType
- func ConnectionType_POSTGRESQL() ConnectionType
- func ConnectionType_SALESFORCE() ConnectionType
- func ConnectionType_SALESFORCEMARKETINGCLOUD() ConnectionType
- func ConnectionType_SALESFORCEPARDOT() ConnectionType
- func ConnectionType_SAPHANA() ConnectionType
- func ConnectionType_SAPODATA() ConnectionType
- func ConnectionType_SERVICENOW() ConnectionType
- func ConnectionType_SLACK() ConnectionType
- func ConnectionType_SNAPCHATADS() ConnectionType
- func ConnectionType_SQLSERVER() ConnectionType
- func ConnectionType_STRIPE() ConnectionType
- func ConnectionType_TERADATA() ConnectionType
- func ConnectionType_VERTICA() ConnectionType
- func ConnectionType_VIEW_VALIDATION_ATHENA() ConnectionType
- func ConnectionType_VIEW_VALIDATION_REDSHIFT() ConnectionType
- func ConnectionType_ZENDESK() ConnectionType
- func ConnectionType_ZOHOCRM() ConnectionType
- func NewConnectionType(name *string) ConnectionType
- type ContinuousLoggingProps
- type CrawlerActionOptions
- type CrawlerState
- type DataCatalogEncryptionAtRest
- type DataFormat
- func DataFormat_APACHE_LOGS() DataFormat
- func DataFormat_AVRO() DataFormat
- func DataFormat_CLOUDTRAIL_LOGS() DataFormat
- func DataFormat_CSV() DataFormat
- func DataFormat_JSON() DataFormat
- func DataFormat_LOGSTASH() DataFormat
- func DataFormat_ORC() DataFormat
- func DataFormat_PARQUET() DataFormat
- func DataFormat_TSV() DataFormat
- func NewDataFormat(props *DataFormatProps) DataFormat
- type DataFormatProps
- type DataQualityRuleset
- type DataQualityRulesetProps
- type DataQualityTargetTable
- type Database
- type DatabaseProps
- type DateIntervalUnit
- type DatePartitionProjectionConfigurationProps
- type DateProjectionStep
- type Dqdl
- type EnumPartitionProjectionConfigurationProps
- type EventBatchingCondition
- type EventTriggerOptions
- type ExecutionClass
- type ExternalTable
- type ExternalTableProps
- type GlueVersion
- type ICatalog
- func Catalog_EncryptAccount(scope constructs.Construct, options *CatalogEncryptionOptions) ICatalog
- func Catalog_ForAccount(scope constructs.Construct) ICatalog
- func Catalog_FromCatalogArn(scope constructs.Construct, id *string, catalogArn *string) ICatalog
- func Catalog_FromCatalogId(scope constructs.Construct, id *string, catalogId *string) ICatalog
- type IConnection
- type IDataQualityRuleset
- type IDatabase
- type IJob
- func Job_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func PySparkEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func PySparkFlexEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func PySparkStreamingJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func PythonShellJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func RayJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func ScalaSparkEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func ScalaSparkFlexEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func ScalaSparkStreamingJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- func SparkJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
- type ISecurityConfiguration
- type ITable
- func ExternalTable_FromTableArn(scope constructs.Construct, id *string, tableArn *string) ITable
- func ExternalTable_FromTableAttributes(scope constructs.Construct, id *string, attrs *TableAttributes) ITable
- func S3Table_FromTableArn(scope constructs.Construct, id *string, tableArn *string) ITable
- func S3Table_FromTableAttributes(scope constructs.Construct, id *string, attrs *TableAttributes) ITable
- func TableBase_FromTableArn(scope constructs.Construct, id *string, tableArn *string) ITable
- func TableBase_FromTableAttributes(scope constructs.Construct, id *string, attrs *TableAttributes) ITable
- type IWorkflow
- func Workflow_FromWorkflowArn(scope constructs.Construct, id *string, workflowArn *string) IWorkflow
- func Workflow_FromWorkflowAttributes(scope constructs.Construct, id *string, attrs *WorkflowAttributes) IWorkflow
- func Workflow_FromWorkflowName(scope constructs.Construct, id *string, workflowName *string) IWorkflow
- type InputFormat
- type IntegerPartitionProjectionConfigurationProps
- type InvalidCharHandlingAction
- type Job
- type JobActionOptions
- type JobAttributes
- type JobBase
- type JobBookmarksEncryption
- type JobLanguage
- type JobProps
- type JobState
- type JobType
- type LibrarySet
- type MaxCapacity
- type MetricType
- type NumericOverflowHandlingAction
- type OnDemandTriggerOptions
- type OrcColumnMappingType
- type OutputFormat
- type PartitionIndex
- type PartitionProjectionConfiguration
- func PartitionProjectionConfiguration_Date(props *DatePartitionProjectionConfigurationProps) PartitionProjectionConfiguration
- func PartitionProjectionConfiguration_Enum(props *EnumPartitionProjectionConfigurationProps) PartitionProjectionConfiguration
- func PartitionProjectionConfiguration_Injected() PartitionProjectionConfiguration
- func PartitionProjectionConfiguration_Integer(props *IntegerPartitionProjectionConfigurationProps) PartitionProjectionConfiguration
- type PartitionProjectionType
- type Predicate
- type PredicateLogical
- type PySparkEtlJob
- type PySparkEtlJobProps
- type PySparkFlexEtlJob
- type PySparkFlexEtlJobProps
- type PySparkStreamingJob
- type PySparkStreamingJobProps
- type PythonShellJob
- type PythonShellJobProps
- type PythonVersion
- type RayJobdeprecated
- type RayJobPropsdeprecated
- type Runtime
- type S3Code
- type S3Encryption
- type S3EncryptionMode
- type S3Table
- type S3TableEncryption
- type S3TableProps
- type S3TableStorage
- type ScalaSparkEtlJob
- type ScalaSparkEtlJobProps
- type ScalaSparkFlexEtlJob
- type ScalaSparkFlexEtlJobProps
- type ScalaSparkStreamingJob
- type ScalaSparkStreamingJobProps
- type ScheduledTriggerOptions
- type Schema
- type SecurityConfiguration
- type SecurityConfigurationProps
- type SerializationLibrary
- func NewSerializationLibrary(className *string) SerializationLibrary
- func SerializationLibrary_AVRO() SerializationLibrary
- func SerializationLibrary_CLOUDTRAIL() SerializationLibrary
- func SerializationLibrary_GROK() SerializationLibrary
- func SerializationLibrary_HIVE_JSON() SerializationLibrary
- func SerializationLibrary_LAZY_SIMPLE() SerializationLibrary
- func SerializationLibrary_OPENX_JSON() SerializationLibrary
- func SerializationLibrary_OPEN_CSV() SerializationLibrary
- func SerializationLibrary_ORC() SerializationLibrary
- func SerializationLibrary_PARQUET() SerializationLibrary
- func SerializationLibrary_REGEXP() SerializationLibrary
- type SparkExtraCodeProps
- type SparkJob
- type SparkJobProps
- type SparkUILoggingLocation
- type SparkUIProps
- type StartableTriggerOptions
- type StorageParameter
- func NewStorageParameter(key *string, value *string) StorageParameter
- func StorageParameter_ColumnCountMismatchHandling(value ColumnCountMismatchHandlingAction) StorageParameter
- func StorageParameter_CompressionType(value CompressionType) StorageParameter
- func StorageParameter_Custom(key *string, value *string) StorageParameter
- func StorageParameter_DataCleansingEnabled(value *bool) StorageParameter
- func StorageParameter_InvalidCharHandling(value InvalidCharHandlingAction) StorageParameter
- func StorageParameter_NumRows(value *float64) StorageParameter
- func StorageParameter_NumericOverflowHandling(value NumericOverflowHandlingAction) StorageParameter
- func StorageParameter_OrcSchemaResolution(value OrcColumnMappingType) StorageParameter
- func StorageParameter_ReplacementChar(value *string) StorageParameter
- func StorageParameter_SerializationNullFormat(value *string) StorageParameter
- func StorageParameter_SkipHeaderLineCount(value *float64) StorageParameter
- func StorageParameter_SurplusBytesHandling(value SurplusBytesHandlingAction) StorageParameter
- func StorageParameter_SurplusCharHandling(value SurplusCharHandlingAction) StorageParameter
- func StorageParameter_WriteKmsKeyId(key interfacesawskms.IKeyRef) StorageParameter
- func StorageParameter_WriteMaxFileSizeMb(value *float64) StorageParameter
- func StorageParameter_WriteParallel(value WriteParallel) StorageParameter
- type StorageParameters
- type SurplusBytesHandlingAction
- type SurplusCharHandlingAction
- type TableAttributes
- type TableBase
- type TableBaseProps
- type TableClientSideEncryption
- type TriggerOptions
- type TriggerSchedule
- type Type
- func Schema_Array(itemType Type) Type
- func Schema_BIG_INT() Type
- func Schema_BINARY() Type
- func Schema_BOOLEAN() Type
- func Schema_Char(length *float64) Type
- func Schema_Custom(inputString *string, isPrimitive *bool) Type
- func Schema_DATE() Type
- func Schema_DOUBLE() Type
- func Schema_Decimal(precision *float64, scale *float64) Type
- func Schema_FLOAT() Type
- func Schema_INTEGER() Type
- func Schema_Map(keyType Type, valueType Type) Type
- func Schema_SMALL_INT() Type
- func Schema_STRING() Type
- func Schema_Struct(columns *[]*Column) Type
- func Schema_TIMESTAMP() Type
- func Schema_TINY_INT() Type
- func Schema_Varchar(length *float64) Type
- type WorkerConfiguration
- type WorkerType
- type Workflow
- type WorkflowAttributes
- type WorkflowBase
- type WorkflowProps
- type WriteParallel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatalogBase_IsConstruct ¶
func CatalogBase_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`. Deprecated.
func CatalogBase_IsOwnedResource ¶
func CatalogBase_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func CatalogBase_IsResource ¶
func CatalogBase_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func Catalog_IsConstruct ¶
func Catalog_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`. Deprecated.
func Catalog_IsOwnedResource ¶
func Catalog_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func Catalog_IsResource ¶
func Catalog_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func Catalog_PROPERTY_INJECTION_ID ¶
func Catalog_PROPERTY_INJECTION_ID() *string
func Connection_IsConstruct ¶
func Connection_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`. Deprecated.
func Connection_IsOwnedResource ¶
func Connection_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func Connection_IsResource ¶
func Connection_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func Connection_PROPERTY_INJECTION_ID ¶
func Connection_PROPERTY_INJECTION_ID() *string
func DataQualityRuleset_IsConstruct ¶
func DataQualityRuleset_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`. Deprecated.
func DataQualityRuleset_IsOwnedResource ¶
func DataQualityRuleset_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func DataQualityRuleset_IsResource ¶
func DataQualityRuleset_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func DataQualityRuleset_PROPERTY_INJECTION_ID ¶
func DataQualityRuleset_PROPERTY_INJECTION_ID() *string
func Database_IsConstruct ¶
func Database_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`. Deprecated.
func Database_IsOwnedResource ¶
func Database_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func Database_IsResource ¶
func Database_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func Database_PROPERTY_INJECTION_ID ¶
func Database_PROPERTY_INJECTION_ID() *string
func ExternalTable_IsConstruct ¶
func ExternalTable_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`. Deprecated.
func ExternalTable_IsOwnedResource ¶
func ExternalTable_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func ExternalTable_IsResource ¶
func ExternalTable_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func ExternalTable_PROPERTY_INJECTION_ID ¶
func ExternalTable_PROPERTY_INJECTION_ID() *string
func JobBase_IsConstruct ¶
func JobBase_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`. Deprecated.
func JobBase_IsOwnedResource ¶
func JobBase_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func JobBase_IsResource ¶
func JobBase_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func Job_IsConstruct ¶
func Job_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`. Deprecated.
func Job_IsOwnedResource ¶
func Job_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func Job_IsResource ¶
func Job_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func NewAssetCode_Override ¶
func NewAssetCode_Override(a AssetCode, path *string, options *awss3assets.AssetOptions)
Deprecated.
func NewCatalogBase_Override ¶
func NewCatalogBase_Override(c CatalogBase, scope constructs.Construct, id *string, props *awscdk.ResourceProps)
Deprecated.
func NewCatalog_Override ¶
func NewCatalog_Override(c Catalog, scope constructs.Construct, id *string, props *CatalogProps)
Deprecated.
func NewClassificationString_Override ¶
func NewClassificationString_Override(c ClassificationString, value *string)
Deprecated.
func NewConnectionType_Override ¶
func NewConnectionType_Override(c ConnectionType, name *string)
Deprecated.
func NewConnection_Override ¶
func NewConnection_Override(c Connection, scope constructs.Construct, id *string, props *ConnectionProps)
Deprecated.
func NewDataFormat_Override ¶
func NewDataFormat_Override(d DataFormat, props *DataFormatProps)
Deprecated.
func NewDataQualityRuleset_Override ¶
func NewDataQualityRuleset_Override(d DataQualityRuleset, scope constructs.Construct, id *string, props *DataQualityRulesetProps)
Deprecated.
func NewDatabase_Override ¶
func NewDatabase_Override(d Database, scope constructs.Construct, id *string, props *DatabaseProps)
Deprecated.
func NewExternalTable_Override ¶
func NewExternalTable_Override(e ExternalTable, scope constructs.Construct, id *string, props *ExternalTableProps)
Deprecated.
func NewInputFormat_Override ¶
func NewInputFormat_Override(i InputFormat, className *string)
Deprecated.
func NewJobBase_Override ¶
func NewJobBase_Override(j JobBase, scope constructs.Construct, id *string, props *awscdk.ResourceProps)
Deprecated.
func NewJob_Override ¶
func NewJob_Override(j Job, scope constructs.Construct, id *string, props *awscdk.ResourceProps)
Deprecated.
func NewOutputFormat_Override ¶
func NewOutputFormat_Override(o OutputFormat, className *string)
Deprecated.
func NewPySparkEtlJob_Override ¶
func NewPySparkEtlJob_Override(p PySparkEtlJob, scope constructs.Construct, id *string, props *PySparkEtlJobProps)
PySparkEtlJob constructor. Deprecated.
func NewPySparkFlexEtlJob_Override ¶
func NewPySparkFlexEtlJob_Override(p PySparkFlexEtlJob, scope constructs.Construct, id *string, props *PySparkFlexEtlJobProps)
PySparkFlexEtlJob constructor. Deprecated.
func NewPySparkStreamingJob_Override ¶
func NewPySparkStreamingJob_Override(p PySparkStreamingJob, scope constructs.Construct, id *string, props *PySparkStreamingJobProps)
PySparkStreamingJob constructor. Deprecated.
func NewPythonShellJob_Override ¶
func NewPythonShellJob_Override(p PythonShellJob, scope constructs.Construct, id *string, props *PythonShellJobProps)
PythonShellJob constructor. Deprecated.
func NewRayJob_Override ¶
func NewRayJob_Override(r RayJob, scope constructs.Construct, id *string, props *RayJobProps)
RayJob constructor. Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
func NewS3Code_Override ¶
Deprecated.
func NewS3Table_Override ¶
func NewS3Table_Override(s S3Table, scope constructs.Construct, id *string, props *S3TableProps)
Deprecated.
func NewScalaSparkEtlJob_Override ¶
func NewScalaSparkEtlJob_Override(s ScalaSparkEtlJob, scope constructs.Construct, id *string, props *ScalaSparkEtlJobProps)
ScalaSparkEtlJob constructor. Deprecated.
func NewScalaSparkFlexEtlJob_Override ¶
func NewScalaSparkFlexEtlJob_Override(s ScalaSparkFlexEtlJob, scope constructs.Construct, id *string, props *ScalaSparkFlexEtlJobProps)
ScalaSparkFlexEtlJob constructor. Deprecated.
func NewScalaSparkStreamingJob_Override ¶
func NewScalaSparkStreamingJob_Override(s ScalaSparkStreamingJob, scope constructs.Construct, id *string, props *ScalaSparkStreamingJobProps)
ScalaSparkStreamingJob constructor. Deprecated.
func NewSecurityConfiguration_Override ¶
func NewSecurityConfiguration_Override(s SecurityConfiguration, scope constructs.Construct, id *string, props *SecurityConfigurationProps)
Deprecated.
func NewSerializationLibrary_Override ¶
func NewSerializationLibrary_Override(s SerializationLibrary, className *string)
Deprecated.
func NewSparkJob_Override ¶
func NewSparkJob_Override(s SparkJob, scope constructs.Construct, id *string, props *SparkJobProps)
Deprecated.
func NewStorageParameter_Override ¶
func NewStorageParameter_Override(s StorageParameter, key *string, value *string)
Deprecated.
func NewTableBase_Override ¶
func NewTableBase_Override(t TableBase, scope constructs.Construct, id *string, props *TableBaseProps)
Deprecated.
func NewWorkflowBase_Override ¶
func NewWorkflowBase_Override(w WorkflowBase, scope constructs.Construct, id *string, props *awscdk.ResourceProps)
Deprecated.
func NewWorkflow_Override ¶
func NewWorkflow_Override(w Workflow, scope constructs.Construct, id *string, props *WorkflowProps)
Deprecated.
func PySparkEtlJob_IsConstruct ¶
func PySparkEtlJob_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`. Deprecated.
func PySparkEtlJob_IsOwnedResource ¶
func PySparkEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func PySparkEtlJob_IsResource ¶
func PySparkEtlJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func PySparkEtlJob_PROPERTY_INJECTION_ID ¶
func PySparkEtlJob_PROPERTY_INJECTION_ID() *string
func PySparkFlexEtlJob_IsConstruct ¶
func PySparkFlexEtlJob_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`. Deprecated.
func PySparkFlexEtlJob_IsOwnedResource ¶
func PySparkFlexEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func PySparkFlexEtlJob_IsResource ¶
func PySparkFlexEtlJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func PySparkFlexEtlJob_PROPERTY_INJECTION_ID ¶
func PySparkFlexEtlJob_PROPERTY_INJECTION_ID() *string
func PySparkStreamingJob_IsConstruct ¶
func PySparkStreamingJob_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`. Deprecated.
func PySparkStreamingJob_IsOwnedResource ¶
func PySparkStreamingJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func PySparkStreamingJob_IsResource ¶
func PySparkStreamingJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func PySparkStreamingJob_PROPERTY_INJECTION_ID ¶
func PySparkStreamingJob_PROPERTY_INJECTION_ID() *string
func PythonShellJob_IsConstruct ¶
func PythonShellJob_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`. Deprecated.
func PythonShellJob_IsOwnedResource ¶
func PythonShellJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func PythonShellJob_IsResource ¶
func PythonShellJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func PythonShellJob_PROPERTY_INJECTION_ID ¶
func PythonShellJob_PROPERTY_INJECTION_ID() *string
func RayJob_IsConstruct ¶
func RayJob_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`. Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
func RayJob_IsOwnedResource ¶
func RayJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
func RayJob_IsResource ¶
func RayJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
func RayJob_PROPERTY_INJECTION_ID ¶
func RayJob_PROPERTY_INJECTION_ID() *string
func S3Table_IsConstruct ¶
func S3Table_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`. Deprecated.
func S3Table_IsOwnedResource ¶
func S3Table_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func S3Table_IsResource ¶
func S3Table_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func S3Table_PROPERTY_INJECTION_ID ¶
func S3Table_PROPERTY_INJECTION_ID() *string
func ScalaSparkEtlJob_IsConstruct ¶
func ScalaSparkEtlJob_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`. Deprecated.
func ScalaSparkEtlJob_IsOwnedResource ¶
func ScalaSparkEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func ScalaSparkEtlJob_IsResource ¶
func ScalaSparkEtlJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func ScalaSparkEtlJob_PROPERTY_INJECTION_ID ¶
func ScalaSparkEtlJob_PROPERTY_INJECTION_ID() *string
func ScalaSparkFlexEtlJob_IsConstruct ¶
func ScalaSparkFlexEtlJob_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`. Deprecated.
func ScalaSparkFlexEtlJob_IsOwnedResource ¶
func ScalaSparkFlexEtlJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func ScalaSparkFlexEtlJob_IsResource ¶
func ScalaSparkFlexEtlJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func ScalaSparkFlexEtlJob_PROPERTY_INJECTION_ID ¶
func ScalaSparkFlexEtlJob_PROPERTY_INJECTION_ID() *string
func ScalaSparkStreamingJob_IsConstruct ¶
func ScalaSparkStreamingJob_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`. Deprecated.
func ScalaSparkStreamingJob_IsOwnedResource ¶
func ScalaSparkStreamingJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func ScalaSparkStreamingJob_IsResource ¶
func ScalaSparkStreamingJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func ScalaSparkStreamingJob_PROPERTY_INJECTION_ID ¶
func ScalaSparkStreamingJob_PROPERTY_INJECTION_ID() *string
func SecurityConfiguration_IsConstruct ¶
func SecurityConfiguration_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`. Deprecated.
func SecurityConfiguration_IsOwnedResource ¶
func SecurityConfiguration_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func SecurityConfiguration_IsResource ¶
func SecurityConfiguration_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func SecurityConfiguration_PROPERTY_INJECTION_ID ¶
func SecurityConfiguration_PROPERTY_INJECTION_ID() *string
func SparkJob_IsConstruct ¶
func SparkJob_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`. Deprecated.
func SparkJob_IsOwnedResource ¶
func SparkJob_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func SparkJob_IsResource ¶
func SparkJob_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func TableBase_IsConstruct ¶
func TableBase_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`. Deprecated.
func TableBase_IsOwnedResource ¶
func TableBase_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func TableBase_IsResource ¶
func TableBase_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func WorkflowBase_ExtractNameFromArn ¶
func WorkflowBase_ExtractNameFromArn(scope constructs.Construct, workflowArn *string) *string
Extract workflowName from arn. Deprecated.
func WorkflowBase_IsConstruct ¶
func WorkflowBase_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`. Deprecated.
func WorkflowBase_IsOwnedResource ¶
func WorkflowBase_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func WorkflowBase_IsResource ¶
func WorkflowBase_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func Workflow_ExtractNameFromArn ¶
func Workflow_ExtractNameFromArn(scope constructs.Construct, workflowArn *string) *string
Extract workflowName from arn. Deprecated.
func Workflow_IsConstruct ¶
func Workflow_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`. Deprecated.
func Workflow_IsOwnedResource ¶
func Workflow_IsOwnedResource(construct constructs.IConstruct) *bool
Returns true if the construct was created by CDK, and false otherwise. Deprecated.
func Workflow_IsResource ¶
func Workflow_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Deprecated.
func Workflow_PROPERTY_INJECTION_ID ¶
func Workflow_PROPERTY_INJECTION_ID() *string
Types ¶
type Action ¶
type Action interface {
}
An action initiated by a trigger.
An action runs exactly one target: use {@link Action.job} to run a job or {@link Action.crawler} to run a crawler. Because these are separate factory methods, an action can never target both or neither.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
// Create a job to run from the workflow
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
// Create a workflow and add a trigger that runs the job
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddOnDemandTrigger(jsii.String("OnDemandTrigger"), &OnDemandTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
})
Deprecated.
func Action_Crawler ¶
func Action_Crawler(crawler interfacesawsglue.ICrawlerRef, options *CrawlerActionOptions) Action
Create an action that runs a crawler. Deprecated.
func Action_Job ¶
func Action_Job(job interfacesawsglue.IJobRef, options *JobActionOptions) Action
Create an action that runs a job. Deprecated.
type AssetCode ¶
type AssetCode interface {
Code
// Called when the Job is initialized to allow this object to bind.
// Deprecated.
Bind(scope constructs.Construct, grantable awsiam.IGrantable) *CodeConfig
}
Job Code from a local file.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var dockerImage DockerImage
var grantable IGrantable
var keyRef IKeyRef
var localBundling ILocalBundling
assetCode := glue_alpha.NewAssetCode(jsii.String("path"), &AssetOptions{
AssetHash: jsii.String("assetHash"),
AssetHashType: cdk.AssetHashType_SOURCE,
Bundling: &BundlingOptions{
Image: dockerImage,
// the properties below are optional
BundlingFileAccess: cdk.BundlingFileAccess_VOLUME_COPY,
Command: []*string{
jsii.String("command"),
},
Entrypoint: []*string{
jsii.String("entrypoint"),
},
Environment: map[string]*string{
"environmentKey": jsii.String("environment"),
},
Local: localBundling,
Network: jsii.String("network"),
OutputType: cdk.BundlingOutput_ARCHIVED,
Platform: jsii.String("platform"),
SecurityOpt: jsii.String("securityOpt"),
User: jsii.String("user"),
Volumes: []DockerVolume{
&DockerVolume{
ContainerPath: jsii.String("containerPath"),
HostPath: jsii.String("hostPath"),
// the properties below are optional
Consistency: cdk.DockerVolumeConsistency_CONSISTENT,
},
},
VolumesFrom: []*string{
jsii.String("volumesFrom"),
},
WorkingDirectory: jsii.String("workingDirectory"),
},
DeployTime: jsii.Boolean(false),
DisplayName: jsii.String("displayName"),
Exclude: []*string{
jsii.String("exclude"),
},
FollowSymlinks: cdk.SymlinkFollowMode_NEVER,
IgnoreMode: cdk.IgnoreMode_GLOB,
Readers: []IGrantable{
grantable,
},
SourceKMSKey: keyRef,
})
Deprecated.
func AssetCode_FromAsset ¶
func AssetCode_FromAsset(path *string, options *awss3assets.AssetOptions) AssetCode
Job code from a local disk path. Deprecated.
func Code_FromAsset ¶
func Code_FromAsset(path *string, options *awss3assets.AssetOptions) AssetCode
Job code from a local disk path. Deprecated.
func NewAssetCode ¶
func NewAssetCode(path *string, options *awss3assets.AssetOptions) AssetCode
Deprecated.
func S3Code_FromAsset ¶
func S3Code_FromAsset(path *string, options *awss3assets.AssetOptions) AssetCode
Job code from a local disk path. Deprecated.
type Catalog ¶
type Catalog interface {
CatalogBase
// The ARN of the catalog.
// Deprecated.
CatalogArn() *string
// The id of the catalog (for the account-wide catalog, the AWS account id).
// Deprecated.
CatalogId() *string
// A reference to a Catalog resource.
// Deprecated.
CatalogRef() *interfacesawsglue.CatalogReference
// The customer-managed KMS key used to encrypt connection passwords, if one was configured.
//
// Undefined when password encryption uses an AWS-managed key or is not
// configured. Grant access to it via `KeyGrants`, e.g.
// `if (catalog.connectionPasswordKey) { KeyGrants.fromKey(catalog.connectionPasswordKey).encrypt(grantee); }`.
// Deprecated.
ConnectionPasswordKey() interfacesawskms.IKeyRef
// The customer-managed KMS key used for the catalog's encryption at rest, if one was configured.
//
// Undefined when encryption is disabled or an AWS-managed key is used. Grant
// access to it via `KeyGrants`, e.g.
// `if (catalog.encryptionKey) { KeyGrants.fromKey(catalog.encryptionKey).encrypt(grantee); }`.
// Deprecated.
EncryptionKey() interfacesawskms.IKeyRef
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Emit the catalog's encryption settings from the options fixed at construction.
//
// Subclasses call this once, after `catalogId`/`catalogArn` are
// assigned. When neither block is configured, no resource is emitted, avoiding
// an empty settings resource that would reset the catalog on deploy.
// Deprecated.
ConfigureEncryption(options *CatalogEncryptionOptions)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A Glue Data Catalog.
Use `Catalog.forAccount(scope)` to obtain the implicit account-wide catalog, `Catalog.encryptAccount(scope, options)` to configure its Data Catalog encryption, or `new Catalog(...)` to create an `AWS::Glue::Catalog` resource.
Example:
var key Key
glue.Catalog_EncryptAccount(this, &CatalogEncryptionOptions{
EncryptionAtRest: glue.DataCatalogEncryptionAtRest_Kms(key),
})
Deprecated.
func NewCatalog ¶
func NewCatalog(scope constructs.Construct, id *string, props *CatalogProps) Catalog
Deprecated.
type CatalogBase ¶
type CatalogBase interface {
awscdk.Resource
ICatalog
// The ARN of the catalog.
// Deprecated.
CatalogArn() *string
// The id of the catalog (for the account-wide catalog, the AWS account id).
// Deprecated.
CatalogId() *string
// A reference to a Catalog resource.
// Deprecated.
CatalogRef() *interfacesawsglue.CatalogReference
// The customer-managed KMS key used to encrypt connection passwords, if one was configured.
//
// Undefined when password encryption uses an AWS-managed key or is not
// configured. Grant access to it via `KeyGrants`, e.g.
// `if (catalog.connectionPasswordKey) { KeyGrants.fromKey(catalog.connectionPasswordKey).encrypt(grantee); }`.
// Deprecated.
ConnectionPasswordKey() interfacesawskms.IKeyRef
// The customer-managed KMS key used for the catalog's encryption at rest, if one was configured.
//
// Undefined when encryption is disabled or an AWS-managed key is used. Grant
// access to it via `KeyGrants`, e.g.
// `if (catalog.encryptionKey) { KeyGrants.fromKey(catalog.encryptionKey).encrypt(grantee); }`.
// Deprecated.
EncryptionKey() interfacesawskms.IKeyRef
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Emit the catalog's encryption settings from the options fixed at construction.
//
// Subclasses call this once, after `catalogId`/`catalogArn` are
// assigned. When neither block is configured, no resource is emitted, avoiding
// an empty settings resource that would reset the catalog on deploy.
// Deprecated.
ConfigureEncryption(options *CatalogEncryptionOptions)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Base class for all `ICatalog` implementations.
Materializes the single `CfnDataCatalogEncryptionSettings` resource (targeting its own `catalogId`) from the encryption options supplied at construction. Encryption is fixed at construction, so a catalog either carries settings or it does not. Deprecated.
type CatalogEncryptionMode ¶
type CatalogEncryptionMode string
The encryption-at-rest mode for a Glue Data Catalog. See: https://docs.aws.amazon.com/glue/latest/webapi/API_EncryptionAtRest.html#Glue-Type-EncryptionAtRest-CatalogEncryptionMode
Deprecated.
const ( // Encryption at rest is disabled. // Deprecated. CatalogEncryptionMode_DISABLED CatalogEncryptionMode = "DISABLED" // Server-side encryption (SSE) with an AWS KMS key. // Deprecated. CatalogEncryptionMode_SSE_KMS CatalogEncryptionMode = "SSE_KMS" // Server-side encryption (SSE) with an AWS KMS key, using a service role that AWS Glue assumes to access the key on your behalf. // Deprecated. CatalogEncryptionMode_SSE_KMS_WITH_SERVICE_ROLE CatalogEncryptionMode = "SSE_KMS_WITH_SERVICE_ROLE" )
type CatalogEncryptionOptions ¶
type CatalogEncryptionOptions struct {
// Connection-password encryption configuration for the catalog.
// Default: - connection-password encryption is not managed by CDK.
//
// Deprecated.
ConnectionPasswordEncryption *ConnectionPasswordEncryption `field:"optional" json:"connectionPasswordEncryption" yaml:"connectionPasswordEncryption"`
// Encryption-at-rest configuration for the catalog.
// Default: - encryption at rest is not managed by CDK (the catalog default applies).
//
// Deprecated.
EncryptionAtRest DataCatalogEncryptionAtRest `field:"optional" json:"encryptionAtRest" yaml:"encryptionAtRest"`
}
Encryption configuration for a Glue Data Catalog.
Encryption is fixed at construction: a catalog either carries encryption settings or it does not, which keeps its configuration easy to reason about and avoids order-dependent mutation after the catalog is created.
Example:
import iam "github.com/aws/aws-cdk-go/awscdk"
var key Key
var role IRole
glue.Catalog_EncryptAccount(this, &CatalogEncryptionOptions{
EncryptionAtRest: glue.DataCatalogEncryptionAtRest_KmsWithServiceRole(role, key),
})
Deprecated.
type CatalogProps ¶
type CatalogProps struct {
// Connection-password encryption configuration for the catalog.
// Default: - connection-password encryption is not managed by CDK.
//
// Deprecated.
ConnectionPasswordEncryption *ConnectionPasswordEncryption `field:"optional" json:"connectionPasswordEncryption" yaml:"connectionPasswordEncryption"`
// Encryption-at-rest configuration for the catalog.
// Default: - encryption at rest is not managed by CDK (the catalog default applies).
//
// Deprecated.
EncryptionAtRest DataCatalogEncryptionAtRest `field:"optional" json:"encryptionAtRest" yaml:"encryptionAtRest"`
// The name of the catalog.
// Deprecated.
CatalogName *string `field:"required" json:"catalogName" yaml:"catalogName"`
// A description of the catalog.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
}
Construction properties for a `Catalog`.
Example:
glue.NewCatalog(this, jsii.String("MyCatalog"), &CatalogProps{
CatalogName: jsii.String("my-catalog"),
Description: jsii.String("my catalog description"),
})
Deprecated.
type ClassificationString ¶
type ClassificationString interface {
// Deprecated.
Value() *string
}
Classification string given to tables with this data format.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha" classificationString := glue_alpha.ClassificationString_AVRO()
See: https://docs.aws.amazon.com/glue/latest/dg/add-classifier.html#classifier-built-in
Deprecated.
func ClassificationString_AVRO ¶
func ClassificationString_AVRO() ClassificationString
func ClassificationString_CSV ¶
func ClassificationString_CSV() ClassificationString
func ClassificationString_JSON ¶
func ClassificationString_JSON() ClassificationString
func ClassificationString_ORC ¶
func ClassificationString_ORC() ClassificationString
func ClassificationString_PARQUET ¶
func ClassificationString_PARQUET() ClassificationString
func ClassificationString_XML ¶
func ClassificationString_XML() ClassificationString
func NewClassificationString ¶
func NewClassificationString(value *string) ClassificationString
Deprecated.
type CloudWatchEncryption ¶
type CloudWatchEncryption interface {
}
CloudWatch Logs encryption configuration for a `SecurityConfiguration`.
CloudWatch Logs support only server-side encryption with a KMS key.
Example:
glue.NewSecurityConfiguration(this, jsii.String("MySecurityConfiguration"), &SecurityConfigurationProps{
CloudWatchEncryption: glue.CloudWatchEncryption_Kms(),
JobBookmarksEncryption: glue.JobBookmarksEncryption_ClientSideKms(),
S3Encryption: glue.S3Encryption_Kms(),
})
Deprecated.
func CloudWatchEncryption_Kms ¶
func CloudWatchEncryption_Kms(kmsKey interfacesawskms.IKeyRef) CloudWatchEncryption
Server-side encryption (SSE) with an AWS KMS key managed by the account owner. Deprecated.
type Code ¶
type Code interface {
// Called when the Job is initialized to allow this object to bind.
// Deprecated.
Bind(scope constructs.Construct, grantable awsiam.IGrantable) *CodeConfig
}
Represents a Glue Job's Code assets (an asset can be a scripts, a jar, a python file or any other file).
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
// Create a job to run from the workflow
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
// Create a workflow and add a trigger that runs the job
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddOnDemandTrigger(jsii.String("OnDemandTrigger"), &OnDemandTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
})
Deprecated.
type CodeConfig ¶
type CodeConfig struct {
// The location of the code in S3.
// Deprecated.
S3Location *awss3.Location `field:"required" json:"s3Location" yaml:"s3Location"`
}
Result of binding `Code` into a `Job`.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
codeConfig := &CodeConfig{
S3Location: &Location{
BucketName: jsii.String("bucketName"),
ObjectKey: jsii.String("objectKey"),
// the properties below are optional
ObjectVersion: jsii.String("objectVersion"),
},
}
Deprecated.
type Column ¶
type Column struct {
// Name of the column.
// Deprecated.
Name *string `field:"required" json:"name" yaml:"name"`
// Type of the column.
// Deprecated.
Type Type `field:"required" json:"type" yaml:"type"`
// Coment describing the column.
// Default: none.
//
// Deprecated.
Comment *string `field:"optional" json:"comment" yaml:"comment"`
}
A column of a table.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var type Type
column := &Column{
Name: jsii.String("name"),
Type: type,
// the properties below are optional
Comment: jsii.String("comment"),
}
Deprecated.
type ColumnCountMismatchHandlingAction ¶
type ColumnCountMismatchHandlingAction string
Identifies if the file contains less or more values for a row than the number of columns specified in the external table definition.
This property is only available for an uncompressed text file format. See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"column_count_mismatch_handling"_
Deprecated.
const ( // Column count mismatch handling is turned off. // Deprecated. ColumnCountMismatchHandlingAction_DISABLED ColumnCountMismatchHandlingAction = "DISABLED" // Fail the query if the column count mismatch is detected. // Deprecated. ColumnCountMismatchHandlingAction_FAIL ColumnCountMismatchHandlingAction = "FAIL" // Fill missing values with NULL and ignore the additional values in each row. // Deprecated. ColumnCountMismatchHandlingAction_SET_TO_NULL ColumnCountMismatchHandlingAction = "SET_TO_NULL" // Drop all rows that contain column count mismatch error from the scan. // Deprecated. ColumnCountMismatchHandlingAction_DROP_ROW ColumnCountMismatchHandlingAction = "DROP_ROW" )
type CompressionType ¶
type CompressionType string
The compression type.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
StorageParameters: []StorageParameter{
glue.StorageParameter_SkipHeaderLineCount(jsii.Number(1)),
glue.StorageParameter_CompressionType(glue.CompressionType_GZIP),
glue.StorageParameter_Custom(jsii.String("separatorChar"), jsii.String(",")),
},
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"compression_type"_
Deprecated.
const ( // No compression. // Deprecated. CompressionType_NONE CompressionType = "NONE" // Burrows-Wheeler compression. // Deprecated. CompressionType_BZIP2 CompressionType = "BZIP2" // Deflate compression. // Deprecated. CompressionType_GZIP CompressionType = "GZIP" // Compression algorithm focused on high compression and decompression speeds, rather than the maximum possible compression. // Deprecated. CompressionType_SNAPPY CompressionType = "SNAPPY" )
type Condition ¶
type Condition interface {
}
A condition that determines when a conditional trigger fires.
A condition watches exactly one target in exactly one state: use {@link Condition.job} to watch a job or {@link Condition.crawler} to watch a crawler. Because the state is a required argument of each factory, a condition can never reference a target without its state, or both a job and a crawler.
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/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var crawlerRef ICrawlerRef
condition := glue_alpha.Condition_Crawler(crawlerRef, glue_alpha.CrawlerState_RUNNING, &ConditionOptions{
LogicalOperator: glue_alpha.ConditionLogicalOperator_EQUALS,
})
Deprecated.
func Condition_Crawler ¶
func Condition_Crawler(crawler interfacesawsglue.ICrawlerRef, crawlState CrawlerState, options *ConditionOptions) Condition
Create a condition on the state of a crawler. Deprecated.
func Condition_Job ¶
func Condition_Job(job interfacesawsglue.IJobRef, state JobState, options *ConditionOptions) Condition
Create a condition on the state of a job. Deprecated.
type ConditionLogicalOperator ¶
type ConditionLogicalOperator string
Represents the logical operator for evaluating a single condition in the Glue Trigger API. Deprecated.
const ( // The condition is true if the values are equal. // Deprecated. ConditionLogicalOperator_EQUALS ConditionLogicalOperator = "EQUALS" )
type ConditionOptions ¶
type ConditionOptions struct {
// The logical operator for the condition.
// Default: ConditionLogicalOperator.EQUALS
//
// Deprecated.
LogicalOperator ConditionLogicalOperator `field:"optional" json:"logicalOperator" yaml:"logicalOperator"`
}
Options shared by all trigger conditions.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
conditionOptions := &ConditionOptions{
LogicalOperator: glue_alpha.ConditionLogicalOperator_EQUALS,
}
Deprecated.
type ConditionalTriggerOptions ¶
type ConditionalTriggerOptions struct {
// The actions initiated by this trigger.
// Deprecated.
Actions *[]Action `field:"required" json:"actions" yaml:"actions"`
// A description for the trigger.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A name for the trigger.
// Default: - no name is provided.
//
// Deprecated.
Name *string `field:"optional" json:"name" yaml:"name"`
// Whether to start the trigger on creation or not.
// Default: - false.
//
// Deprecated.
StartOnCreation *bool `field:"optional" json:"startOnCreation" yaml:"startOnCreation"`
// The predicate for the trigger.
// Deprecated.
Predicate *Predicate `field:"required" json:"predicate" yaml:"predicate"`
}
Properties for configuring a Condition (Predicate) based Glue Trigger.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var action Action
var condition Condition
conditionalTriggerOptions := &ConditionalTriggerOptions{
Actions: []Action{
action,
},
Predicate: &Predicate{
Conditions: []Condition{
condition,
},
Logical: glue_alpha.PredicateLogical_AND,
},
// the properties below are optional
Description: jsii.String("description"),
Name: jsii.String("name"),
StartOnCreation: jsii.Boolean(false),
}
Deprecated.
type Connection ¶
type Connection interface {
awscdk.Resource
IConnection
// The ARN of the connection.
// Deprecated.
ConnectionArn() *string
// The name of the connection.
// Deprecated.
ConnectionName() *string
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Add additional connection parameters.
// Deprecated.
AddProperty(key *string, value *string)
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
An AWS Glue connection to a data source.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkEtlJob(stack, jsii.String("PySparkETLJob"), &PySparkEtlJobProps{
JobName: jsii.String("PySparkETLJobCustomName"),
Description: jsii.String("This is a description"),
Role: Role,
Script: Script,
GlueVersion: glue.GlueVersion_V5_1,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
WorkerConfiguration: &WorkerConfiguration{
WorkerType: glue.WorkerType_G_2X,
NumberOfWorkers: jsii.Number(2),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
Deprecated.
func NewConnection ¶
func NewConnection(scope constructs.Construct, id *string, props *ConnectionProps) Connection
Deprecated.
type ConnectionNetwork ¶
type ConnectionNetwork interface {
}
VPC network placement for a Glue `Connection`.
A Glue connection targets a single subnet. Choose the placement with one of the mutually-exclusive factories — an explicit subnet, or a VPC to select one from — so a subnet paired with a VPC, or a subnet selection without a VPC, cannot be expressed.
Example:
var securityGroup SecurityGroup
var vpc Vpc
glue.NewConnection(this, jsii.String("MyConnection"), &ConnectionProps{
Type: glue.ConnectionType_NETWORK(),
SecurityGroups: []ISecurityGroup{
securityGroup,
},
// vpcSubnets is optional - defaults to private subnets
Network: glue.ConnectionNetwork_Vpc(vpc, &SubnetSelection{
SubnetType: ec2.SubnetType_PRIVATE_WITH_EGRESS,
}),
})
Deprecated.
func ConnectionNetwork_Subnet ¶
func ConnectionNetwork_Subnet(subnet awsec2.ISubnet) ConnectionNetwork
Pin the connection to a specific subnet. Deprecated.
func ConnectionNetwork_Vpc ¶
func ConnectionNetwork_Vpc(vpc awsec2.IVpc, vpcSubnets *awsec2.SubnetSelection) ConnectionNetwork
Select the connection's subnet from a VPC.
Since a Glue connection targets a single subnet, the first subnet of the selection is used. Default: vpcSubnets - private subnets.
Deprecated.
type ConnectionOptions ¶
type ConnectionOptions struct {
// The name of the connection.
// Default: cloudformation generated name.
//
// Deprecated.
ConnectionName *string `field:"optional" json:"connectionName" yaml:"connectionName"`
// The description of the connection.
// Default: no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A list of criteria that can be used in selecting this connection.
//
// This is useful for filtering the results of https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-connections.html
// Default: no match criteria.
//
// Deprecated.
MatchCriteria *[]*string `field:"optional" json:"matchCriteria" yaml:"matchCriteria"`
// The VPC network placement for this connection, so it can reach resources inside a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html.
//
// Build it with `ConnectionNetwork.subnet(subnet)` to pin a specific subnet,
// or `ConnectionNetwork.vpc(vpc, vpcSubnets?)` to let the CDK select one.
// Default: - no VPC network placement.
//
// Deprecated.
Network ConnectionNetwork `field:"optional" json:"network" yaml:"network"`
// Key-Value pairs that define parameters for the connection.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect.html
//
// Default: empty properties.
//
// Deprecated.
Properties *map[string]*string `field:"optional" json:"properties" yaml:"properties"`
// A reference to a Secrets Manager secret holding the credentials for this connection.
//
// The secret is referenced through the connection's `SECRET_ID` property, so
// Glue reads the credentials at runtime and the secret value never appears in
// the synthesized template. Prefer this over placing credentials directly in
// `properties`. Accepts any `secretsmanager.ISecret`.
// Default: - no secret; any credentials must be supplied via `properties`.
//
// Deprecated.
Secret interfacesawssecretsmanager.ISecretRef `field:"optional" json:"secret" yaml:"secret"`
// The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.
// Default: no security group.
//
// Deprecated.
SecurityGroups *[]awsec2.ISecurityGroup `field:"optional" json:"securityGroups" yaml:"securityGroups"`
}
Base Connection Options.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var connectionNetwork ConnectionNetwork
var secretRef ISecretRef
var securityGroup SecurityGroup
connectionOptions := &ConnectionOptions{
ConnectionName: jsii.String("connectionName"),
Description: jsii.String("description"),
MatchCriteria: []*string{
jsii.String("matchCriteria"),
},
Network: connectionNetwork,
Properties: map[string]*string{
"propertiesKey": jsii.String("properties"),
},
Secret: secretRef,
SecurityGroups: []ISecurityGroup{
securityGroup,
},
}
Deprecated.
type ConnectionPasswordEncryption ¶
type ConnectionPasswordEncryption struct {
// The KMS key used to encrypt connection passwords.
// Default: - an AWS-managed key is used and the key is not exposed as a grantable resource.
//
// Deprecated.
KmsKey interfacesawskms.IKeyRef `field:"optional" json:"kmsKey" yaml:"kmsKey"`
// Whether passwords remain encrypted in the responses of `GetConnection` and `GetConnections`.
//
// This takes effect independently from catalog encryption.
// Default: true.
//
// Deprecated.
ReturnConnectionPasswordEncrypted *bool `field:"optional" json:"returnConnectionPasswordEncrypted" yaml:"returnConnectionPasswordEncrypted"`
}
Connection-password encryption configuration for a Glue Data Catalog.
When enabled, the Data Catalog encrypts the password as part of `CreateConnection` or `UpdateConnection` and stores it in the `ENCRYPTED_PASSWORD` field of the connection properties. This is independent from catalog encryption at rest, and may use a different KMS key.
Example:
var key Key
glue.Catalog_EncryptAccount(this, &CatalogEncryptionOptions{
ConnectionPasswordEncryption: &ConnectionPasswordEncryption{
KmsKey: key,
// Whether GetConnection/GetConnections return the password encrypted (default: true)
ReturnConnectionPasswordEncrypted: jsii.Boolean(true),
},
})
See: https://docs.aws.amazon.com/glue/latest/webapi/API_ConnectionPasswordEncryption.html
Deprecated.
type ConnectionProps ¶
type ConnectionProps struct {
// The name of the connection.
// Default: cloudformation generated name.
//
// Deprecated.
ConnectionName *string `field:"optional" json:"connectionName" yaml:"connectionName"`
// The description of the connection.
// Default: no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A list of criteria that can be used in selecting this connection.
//
// This is useful for filtering the results of https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-connections.html
// Default: no match criteria.
//
// Deprecated.
MatchCriteria *[]*string `field:"optional" json:"matchCriteria" yaml:"matchCriteria"`
// The VPC network placement for this connection, so it can reach resources inside a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html.
//
// Build it with `ConnectionNetwork.subnet(subnet)` to pin a specific subnet,
// or `ConnectionNetwork.vpc(vpc, vpcSubnets?)` to let the CDK select one.
// Default: - no VPC network placement.
//
// Deprecated.
Network ConnectionNetwork `field:"optional" json:"network" yaml:"network"`
// Key-Value pairs that define parameters for the connection.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect.html
//
// Default: empty properties.
//
// Deprecated.
Properties *map[string]*string `field:"optional" json:"properties" yaml:"properties"`
// A reference to a Secrets Manager secret holding the credentials for this connection.
//
// The secret is referenced through the connection's `SECRET_ID` property, so
// Glue reads the credentials at runtime and the secret value never appears in
// the synthesized template. Prefer this over placing credentials directly in
// `properties`. Accepts any `secretsmanager.ISecret`.
// Default: - no secret; any credentials must be supplied via `properties`.
//
// Deprecated.
Secret interfacesawssecretsmanager.ISecretRef `field:"optional" json:"secret" yaml:"secret"`
// The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.
// Default: no security group.
//
// Deprecated.
SecurityGroups *[]awsec2.ISecurityGroup `field:"optional" json:"securityGroups" yaml:"securityGroups"`
// The type of the connection.
// Deprecated.
Type ConnectionType `field:"required" json:"type" yaml:"type"`
}
Construction properties for `Connection`.
Example:
var securityGroup SecurityGroup
var vpc Vpc
glue.NewConnection(this, jsii.String("MyConnection"), &ConnectionProps{
Type: glue.ConnectionType_NETWORK(),
SecurityGroups: []ISecurityGroup{
securityGroup,
},
// vpcSubnets is optional - defaults to private subnets
Network: glue.ConnectionNetwork_Vpc(vpc, &SubnetSelection{
SubnetType: ec2.SubnetType_PRIVATE_WITH_EGRESS,
}),
})
Deprecated.
type ConnectionType ¶
type ConnectionType interface {
// The name of this ConnectionType, as expected by Connection resource.
// Deprecated.
Name() *string
// The connection type name as expected by Connection resource.
// Deprecated.
ToString() *string
}
The type of the glue connection.
If you need to use a connection type that doesn't exist as a static member, you can instantiate a `ConnectionType` object, e.g: `new ConnectionType('NEW_TYPE')`.
Example:
var securityGroup SecurityGroup
var vpc Vpc
glue.NewConnection(this, jsii.String("MyConnection"), &ConnectionProps{
Type: glue.ConnectionType_NETWORK(),
SecurityGroups: []ISecurityGroup{
securityGroup,
},
// vpcSubnets is optional - defaults to private subnets
Network: glue.ConnectionNetwork_Vpc(vpc, &SubnetSelection{
SubnetType: ec2.SubnetType_PRIVATE_WITH_EGRESS,
}),
})
Deprecated.
func ConnectionType_AZURECOSMOS ¶
func ConnectionType_AZURECOSMOS() ConnectionType
func ConnectionType_AZURESQL ¶
func ConnectionType_AZURESQL() ConnectionType
func ConnectionType_BIGQUERY ¶
func ConnectionType_BIGQUERY() ConnectionType
func ConnectionType_CUSTOM ¶
func ConnectionType_CUSTOM() ConnectionType
func ConnectionType_DYNAMODB ¶
func ConnectionType_DYNAMODB() ConnectionType
func ConnectionType_FACEBOOKADS ¶
func ConnectionType_FACEBOOKADS() ConnectionType
func ConnectionType_GOOGLEADS ¶
func ConnectionType_GOOGLEADS() ConnectionType
func ConnectionType_GOOGLEANALYTICS4 ¶
func ConnectionType_GOOGLEANALYTICS4() ConnectionType
func ConnectionType_GOOGLESHEETS ¶
func ConnectionType_GOOGLESHEETS() ConnectionType
func ConnectionType_HUBSPOT ¶
func ConnectionType_HUBSPOT() ConnectionType
func ConnectionType_INSTAGRAMADS ¶
func ConnectionType_INSTAGRAMADS() ConnectionType
func ConnectionType_INTERCOM ¶
func ConnectionType_INTERCOM() ConnectionType
func ConnectionType_JDBC ¶
func ConnectionType_JDBC() ConnectionType
func ConnectionType_JIRACLOUD ¶
func ConnectionType_JIRACLOUD() ConnectionType
func ConnectionType_KAFKA ¶
func ConnectionType_KAFKA() ConnectionType
func ConnectionType_MARKETO ¶
func ConnectionType_MARKETO() ConnectionType
func ConnectionType_MARKETPLACE ¶
func ConnectionType_MARKETPLACE() ConnectionType
func ConnectionType_MONGODB ¶
func ConnectionType_MONGODB() ConnectionType
func ConnectionType_MYSQL ¶
func ConnectionType_MYSQL() ConnectionType
func ConnectionType_NETSUITEERP ¶
func ConnectionType_NETSUITEERP() ConnectionType
func ConnectionType_NETWORK ¶
func ConnectionType_NETWORK() ConnectionType
func ConnectionType_OPENSEARCH ¶
func ConnectionType_OPENSEARCH() ConnectionType
func ConnectionType_ORACLE ¶
func ConnectionType_ORACLE() ConnectionType
func ConnectionType_POSTGRESQL ¶
func ConnectionType_POSTGRESQL() ConnectionType
func ConnectionType_SALESFORCE ¶
func ConnectionType_SALESFORCE() ConnectionType
func ConnectionType_SALESFORCEMARKETINGCLOUD ¶
func ConnectionType_SALESFORCEMARKETINGCLOUD() ConnectionType
func ConnectionType_SALESFORCEPARDOT ¶
func ConnectionType_SALESFORCEPARDOT() ConnectionType
func ConnectionType_SAPHANA ¶
func ConnectionType_SAPHANA() ConnectionType
func ConnectionType_SAPODATA ¶
func ConnectionType_SAPODATA() ConnectionType
func ConnectionType_SERVICENOW ¶
func ConnectionType_SERVICENOW() ConnectionType
func ConnectionType_SLACK ¶
func ConnectionType_SLACK() ConnectionType
func ConnectionType_SNAPCHATADS ¶
func ConnectionType_SNAPCHATADS() ConnectionType
func ConnectionType_SQLSERVER ¶
func ConnectionType_SQLSERVER() ConnectionType
func ConnectionType_STRIPE ¶
func ConnectionType_STRIPE() ConnectionType
func ConnectionType_TERADATA ¶
func ConnectionType_TERADATA() ConnectionType
func ConnectionType_VERTICA ¶
func ConnectionType_VERTICA() ConnectionType
func ConnectionType_VIEW_VALIDATION_ATHENA ¶
func ConnectionType_VIEW_VALIDATION_ATHENA() ConnectionType
func ConnectionType_VIEW_VALIDATION_REDSHIFT ¶
func ConnectionType_VIEW_VALIDATION_REDSHIFT() ConnectionType
func ConnectionType_ZENDESK ¶
func ConnectionType_ZENDESK() ConnectionType
func ConnectionType_ZOHOCRM ¶
func ConnectionType_ZOHOCRM() ConnectionType
type ContinuousLoggingProps ¶
type ContinuousLoggingProps struct {
// Enable continuous logging.
// Deprecated.
Enabled *bool `field:"required" json:"enabled" yaml:"enabled"`
// Apply the provided conversion pattern.
//
// This is a Log4j Conversion Pattern to customize driver and executor logs.
// Default: `%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n`.
//
// Deprecated.
ConversionPattern *string `field:"optional" json:"conversionPattern" yaml:"conversionPattern"`
// Specify a custom CloudWatch log group name.
// Default: - a log group is created with name `/aws-glue/jobs/logs-v2/`.
//
// Deprecated.
LogGroup awslogs.ILogGroup `field:"optional" json:"logGroup" yaml:"logGroup"`
// Specify a custom CloudWatch log stream prefix.
// Default: - the job run ID.
//
// Deprecated.
LogStreamPrefix *string `field:"optional" json:"logStreamPrefix" yaml:"logStreamPrefix"`
// Filter out non-useful Apache Spark driver/executor and Apache Hadoop YARN heartbeat log messages.
// Default: true.
//
// Deprecated.
Quiet *bool `field:"optional" json:"quiet" yaml:"quiet"`
}
Properties for enabling Continuous Logging for Glue Jobs.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkEtlJob(stack, jsii.String("PySparkETLJob"), &PySparkEtlJobProps{
JobName: jsii.String("PySparkETLJobCustomName"),
Description: jsii.String("This is a description"),
Role: Role,
Script: Script,
GlueVersion: glue.GlueVersion_V5_1,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
WorkerConfiguration: &WorkerConfiguration{
WorkerType: glue.WorkerType_G_2X,
NumberOfWorkers: jsii.Number(2),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
Deprecated.
type CrawlerActionOptions ¶
type CrawlerActionOptions struct {
// The arguments used when this trigger fires.
// Default: - no arguments are passed to the job.
//
// Deprecated.
Arguments *map[string]*string `field:"optional" json:"arguments" yaml:"arguments"`
// The `SecurityConfiguration` to be used with this action.
// Default: - no security configuration is used.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// The run timeout.
//
// This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status.
// Default: - the default timeout value set in the job definition.
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
}
Options for the execution of a crawler.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
var securityConfiguration SecurityConfiguration
crawlerActionOptions := &CrawlerActionOptions{
Arguments: map[string]*string{
"argumentsKey": jsii.String("arguments"),
},
SecurityConfiguration: securityConfiguration,
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
}
Deprecated.
type CrawlerState ¶
type CrawlerState string
Represents the state of a crawler for a condition in the Glue Trigger API. Deprecated.
const ( // The crawler is currently running. // Deprecated. CrawlerState_RUNNING CrawlerState = "RUNNING" // The crawler is in the process of being cancelled. // Deprecated. CrawlerState_CANCELLING CrawlerState = "CANCELLING" // The crawler has been cancelled. // Deprecated. CrawlerState_CANCELLED CrawlerState = "CANCELLED" // The crawler has completed its operation successfully. // Deprecated. CrawlerState_SUCCEEDED CrawlerState = "SUCCEEDED" // The crawler has failed to complete its operation. // Deprecated. CrawlerState_FAILED CrawlerState = "FAILED" // The crawler encountered an error during its operation. // Deprecated. CrawlerState_ERROR CrawlerState = "ERROR" )
type DataCatalogEncryptionAtRest ¶
type DataCatalogEncryptionAtRest interface {
// The customer-managed KMS key used for encryption at rest, if any.
// Deprecated.
KmsKey() interfacesawskms.IKeyRef
// The encryption mode.
// Deprecated.
Mode() CatalogEncryptionMode
// The service role that AWS Glue assumes to access the KMS key, if any.
// Deprecated.
ServiceRole() awsiam.IRole
}
Encryption-at-rest configuration for a Glue Data Catalog.
The Data Catalog encryption at rest and the connection password encryption are independent: enabling one does not require the other, and each may use a different KMS key.
Example:
import iam "github.com/aws/aws-cdk-go/awscdk"
var key Key
var role IRole
glue.Catalog_EncryptAccount(this, &CatalogEncryptionOptions{
EncryptionAtRest: glue.DataCatalogEncryptionAtRest_KmsWithServiceRole(role, key),
})
See: https://docs.aws.amazon.com/glue/latest/webapi/API_EncryptionAtRest.html
Deprecated.
func DataCatalogEncryptionAtRest_Disabled ¶
func DataCatalogEncryptionAtRest_Disabled() DataCatalogEncryptionAtRest
Disable encryption at rest for the Data Catalog. Deprecated.
func DataCatalogEncryptionAtRest_Kms ¶
func DataCatalogEncryptionAtRest_Kms(key interfacesawskms.IKeyRef) DataCatalogEncryptionAtRest
Encrypt the Data Catalog at rest with an AWS KMS key. Deprecated.
func DataCatalogEncryptionAtRest_KmsWithServiceRole ¶
func DataCatalogEncryptionAtRest_KmsWithServiceRole(role awsiam.IRole, key interfacesawskms.IKeyRef) DataCatalogEncryptionAtRest
Encrypt the Data Catalog at rest with an AWS KMS key, accessed through a service role that AWS Glue assumes on your behalf.
When a customer-managed `key` is provided, the `role` is automatically granted `kms:Encrypt`/`kms:Decrypt`/`kms:GenerateDataKey*` on it. Deprecated.
type DataFormat ¶
type DataFormat interface {
// Classification string given to tables with this data format.
// Deprecated.
ClassificationString() ClassificationString
// `InputFormat` for this data format.
// Deprecated.
InputFormat() InputFormat
// `OutputFormat` for this data format.
// Deprecated.
OutputFormat() OutputFormat
// Serialization library for this data format.
// Deprecated.
SerializationLibrary() SerializationLibrary
}
Defines the input/output formats and ser/de for a single DataFormat.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("NOW-3YEARS"),
"max": jsii.String("NOW"),
"format": jsii.String("yyyy-MM-dd"),
}),
},
})
Deprecated.
func DataFormat_APACHE_LOGS ¶
func DataFormat_APACHE_LOGS() DataFormat
func DataFormat_AVRO ¶
func DataFormat_AVRO() DataFormat
func DataFormat_CLOUDTRAIL_LOGS ¶
func DataFormat_CLOUDTRAIL_LOGS() DataFormat
func DataFormat_CSV ¶
func DataFormat_CSV() DataFormat
func DataFormat_JSON ¶
func DataFormat_JSON() DataFormat
func DataFormat_LOGSTASH ¶
func DataFormat_LOGSTASH() DataFormat
func DataFormat_ORC ¶
func DataFormat_ORC() DataFormat
func DataFormat_PARQUET ¶
func DataFormat_PARQUET() DataFormat
func DataFormat_TSV ¶
func DataFormat_TSV() DataFormat
type DataFormatProps ¶
type DataFormatProps struct {
// `InputFormat` for this data format.
// Deprecated.
InputFormat InputFormat `field:"required" json:"inputFormat" yaml:"inputFormat"`
// `OutputFormat` for this data format.
// Deprecated.
OutputFormat OutputFormat `field:"required" json:"outputFormat" yaml:"outputFormat"`
// Serialization library for this data format.
// Deprecated.
SerializationLibrary SerializationLibrary `field:"required" json:"serializationLibrary" yaml:"serializationLibrary"`
// Classification string given to tables with this data format.
// Default: - No classification is specified.
//
// Deprecated.
ClassificationString ClassificationString `field:"optional" json:"classificationString" yaml:"classificationString"`
}
Properties of a DataFormat instance.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var classificationString ClassificationString
var inputFormat InputFormat
var outputFormat OutputFormat
var serializationLibrary SerializationLibrary
dataFormatProps := &DataFormatProps{
InputFormat: inputFormat,
OutputFormat: outputFormat,
SerializationLibrary: serializationLibrary,
// the properties below are optional
ClassificationString: classificationString,
}
Deprecated.
type DataQualityRuleset ¶
type DataQualityRuleset interface {
awscdk.Resource
IDataQualityRuleset
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// ARN of this ruleset.
// Deprecated.
RulesetArn() *string
// Name of this ruleset.
// Deprecated.
RulesetName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A Glue Data Quality ruleset.
Example:
var database IDatabase
glue.NewDataQualityRuleset(this, jsii.String("MyRuleset"), &DataQualityRulesetProps{
RulesetName: jsii.String("my_ruleset"),
Dqdl: glue.Dqdl_FromString(jsii.String("Rules = [ RowCount > 100, IsComplete \"order_id\" ]")),
TargetTable: glue.DataQualityTargetTable_FromTableName(database, jsii.String("my_table")),
})
Deprecated.
func NewDataQualityRuleset ¶
func NewDataQualityRuleset(scope constructs.Construct, id *string, props *DataQualityRulesetProps) DataQualityRuleset
Deprecated.
type DataQualityRulesetProps ¶
type DataQualityRulesetProps struct {
// The DQDL document defining the ruleset's data quality rules.
//
// Build it with `Dqdl.fromString(...)`.
// Deprecated.
Dqdl Dqdl `field:"required" json:"dqdl" yaml:"dqdl"`
// The name of the ruleset.
// Deprecated.
RulesetName *string `field:"required" json:"rulesetName" yaml:"rulesetName"`
// The target table of the ruleset.
// Deprecated.
TargetTable DataQualityTargetTable `field:"required" json:"targetTable" yaml:"targetTable"`
// The description of the ruleset.
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Policy to apply when the ruleset is removed from the stack.
// Default: - resource will be destroyed.
//
// Deprecated.
RemovalPolicy awscdk.RemovalPolicy `field:"optional" json:"removalPolicy" yaml:"removalPolicy"`
// Key-Value pairs that define tags for the ruleset.
// Default: empty tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
}
Construction properties for `DataQualityRuleset`.
Example:
var database IDatabase
glue.NewDataQualityRuleset(this, jsii.String("MyRuleset"), &DataQualityRulesetProps{
RulesetName: jsii.String("my_ruleset"),
Dqdl: glue.Dqdl_FromString(jsii.String("Rules = [ RowCount > 100, IsComplete \"order_id\" ]")),
TargetTable: glue.DataQualityTargetTable_FromTableName(database, jsii.String("my_table")),
})
Deprecated.
type DataQualityTargetTable ¶
type DataQualityTargetTable interface {
// The database name of the target table.
// Deprecated.
DatabaseName() *string
// The table name of the target table.
// Deprecated.
TableName() *string
}
The Glue table a `DataQualityRuleset` evaluates.
Example:
var database IDatabase
glue.NewDataQualityRuleset(this, jsii.String("MyRuleset"), &DataQualityRulesetProps{
RulesetName: jsii.String("my_ruleset"),
Dqdl: glue.Dqdl_FromString(jsii.String("Rules = [ RowCount > 100, IsComplete \"order_id\" ]")),
TargetTable: glue.DataQualityTargetTable_FromTableName(database, jsii.String("my_table")),
})
Deprecated.
func DataQualityTargetTable_FromTable ¶
func DataQualityTargetTable_FromTable(database interfacesawsglue.IDatabaseRef, table ITable) DataQualityTargetTable
Target an L2 table in a database. Deprecated.
func DataQualityTargetTable_FromTableName ¶
func DataQualityTargetTable_FromTableName(database interfacesawsglue.IDatabaseRef, tableName *string) DataQualityTargetTable
Target a table by name in a database.
Use this when the table is not modeled as an L2 construct (e.g. it is imported or created elsewhere). Deprecated.
type Database ¶
type Database interface {
awscdk.Resource
IDatabase
// The catalog this database belongs to.
//
// Defaults to the implicit, account-wide catalog, materialized on first
// access.
// Deprecated.
Catalog() ICatalog
// The ARN of the database.
// Deprecated.
DatabaseArn() *string
// The name of the database.
// Deprecated.
DatabaseName() *string
// A reference to a Database resource.
// Deprecated.
DatabaseRef() *interfacesawsglue.DatabaseReference
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// Location URI of this database.
// Deprecated.
LocationUri() *string
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A Glue database.
Example:
glue.NewDatabase(this, jsii.String("MyDatabase"), &DatabaseProps{
DatabaseName: jsii.String("my_database"),
Description: jsii.String("my_database_description"),
})
Deprecated.
func NewDatabase ¶
func NewDatabase(scope constructs.Construct, id *string, props *DatabaseProps) Database
Deprecated.
type DatabaseProps ¶
type DatabaseProps struct {
// The catalog in which the database will be placed.
// Default: The default, account-wide catalog.
//
// Deprecated.
Catalog ICatalog `field:"optional" json:"catalog" yaml:"catalog"`
// The name of the database.
// Default: - generated by CDK.
//
// Deprecated.
DatabaseName *string `field:"optional" json:"databaseName" yaml:"databaseName"`
// A description of the database.
// Default: - no database description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// The location of the database (for example, an HDFS path).
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html
//
// Default: undefined. This field is optional in AWS::Glue::Database DatabaseInput
//
// Deprecated.
LocationUri *string `field:"optional" json:"locationUri" yaml:"locationUri"`
// Policy to apply when the database is removed from the stack.
//
// A database is a container for tables and their metadata, so it is retained
// by default to avoid accidental data loss when it is removed from a stack.
// Default: RemovalPolicy.RETAIN
//
// Deprecated.
RemovalPolicy awscdk.RemovalPolicy `field:"optional" json:"removalPolicy" yaml:"removalPolicy"`
}
Example:
glue.NewDatabase(this, jsii.String("MyDatabase"), &DatabaseProps{
DatabaseName: jsii.String("my_database"),
Description: jsii.String("my_database_description"),
})
Deprecated.
type DateIntervalUnit ¶
type DateIntervalUnit string
Date interval unit for partition projection.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("2020-01-01"),
"max": jsii.String("2023-12-31"),
"format": jsii.String("yyyy-MM-dd"),
// `step` bundles interval + unit (supply both or neither). Optional at day
// precision or coarser; required when the format is sub-day (e.g. hours).
"step": &DateProjectionStep{
"interval": jsii.Number(1),
"intervalUnit": glue.DateIntervalUnit_DAYS,
},
}),
},
})
Deprecated.
const ( // Year interval. // Deprecated. DateIntervalUnit_YEARS DateIntervalUnit = "YEARS" // Month interval. // Deprecated. DateIntervalUnit_MONTHS DateIntervalUnit = "MONTHS" // Week interval. // Deprecated. DateIntervalUnit_WEEKS DateIntervalUnit = "WEEKS" // Day interval (default). // Deprecated. DateIntervalUnit_DAYS DateIntervalUnit = "DAYS" // Hour interval. // Deprecated. DateIntervalUnit_HOURS DateIntervalUnit = "HOURS" // Minute interval. // Deprecated. DateIntervalUnit_MINUTES DateIntervalUnit = "MINUTES" // Second interval. // Deprecated. DateIntervalUnit_SECONDS DateIntervalUnit = "SECONDS" )
type DatePartitionProjectionConfigurationProps ¶
type DatePartitionProjectionConfigurationProps struct {
// Date format for partition values.
//
// Uses Java SimpleDateFormat patterns.
// See: https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
//
// Deprecated.
Format *string `field:"required" json:"format" yaml:"format"`
// End date for the partition range (inclusive).
//
// Can be either:
// - Fixed date in the format specified by `format` property
// - Relative date using NOW syntax
//
// Same format constraints as `min`.
// Deprecated.
Max *string `field:"required" json:"max" yaml:"max"`
// Start date for the partition range (inclusive).
//
// Can be either:
// - Fixed date in the format specified by `format` property
// (e.g., '2020-01-01' for format 'yyyy-MM-dd')
// - Relative date using NOW syntax
// (e.g., 'NOW', 'NOW-3YEARS', 'NOW+1MONTH')
// See: https://docs.aws.amazon.com/athena/latest/ug/partition-projection-supported-types.html#partition-projection-date-type
//
// Deprecated.
Min *string `field:"required" json:"min" yaml:"min"`
// Interval step (`interval` + `intervalUnit`) between partition values.
//
// The two are supplied together, so a partial step cannot be expressed.
// Required when `format` carries sub-day precision — a field finer than a
// day, such as hours or AM/PM; at day or coarser precision Athena defaults
// the step, so it may be omitted.
// Default: - Athena's default step for the format's precision; required when `format` is sub-day precision.
//
// Deprecated.
Step *DateProjectionStep `field:"optional" json:"step" yaml:"step"`
}
Properties for DATE partition projection configuration.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("2020-01-01"),
"max": jsii.String("2023-12-31"),
"format": jsii.String("yyyy-MM-dd"),
// `step` bundles interval + unit (supply both or neither). Optional at day
// precision or coarser; required when the format is sub-day (e.g. hours).
"step": &DateProjectionStep{
"interval": jsii.Number(1),
"intervalUnit": glue.DateIntervalUnit_DAYS,
},
}),
},
})
Deprecated.
type DateProjectionStep ¶
type DateProjectionStep struct {
// Interval between partition values.
// Deprecated.
Interval *float64 `field:"required" json:"interval" yaml:"interval"`
// Unit for the interval.
// Deprecated.
IntervalUnit DateIntervalUnit `field:"required" json:"intervalUnit" yaml:"intervalUnit"`
}
A required-together interval step for DATE partition projection.
Bundling `interval` and `intervalUnit` into one value makes a partial step (one without the other) unrepresentable.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("2020-01-01"),
"max": jsii.String("2023-12-31"),
"format": jsii.String("yyyy-MM-dd"),
// `step` bundles interval + unit (supply both or neither). Optional at day
// precision or coarser; required when the format is sub-day (e.g. hours).
"step": &DateProjectionStep{
"interval": jsii.Number(1),
"intervalUnit": glue.DateIntervalUnit_DAYS,
},
}),
},
})
Deprecated.
type Dqdl ¶
type Dqdl interface {
}
The Data Quality Definition Language (DQDL) document for a `DataQualityRuleset`.
DQDL is an authored string that Glue parses and validates at deploy time. Build one from a raw DQDL string with {@link Dqdl.fromString}.
Example:
var database IDatabase
glue.NewDataQualityRuleset(this, jsii.String("MyRuleset"), &DataQualityRulesetProps{
RulesetName: jsii.String("my_ruleset"),
Dqdl: glue.Dqdl_FromString(jsii.String("Rules = [ RowCount > 100, IsComplete \"order_id\" ]")),
TargetTable: glue.DataQualityTargetTable_FromTableName(database, jsii.String("my_table")),
})
See: https://docs.aws.amazon.com/glue/latest/dg/dqdl.html
Deprecated.
func Dqdl_FromString ¶
Create a `Dqdl` from a raw DQDL string. Deprecated.
type EnumPartitionProjectionConfigurationProps ¶
type EnumPartitionProjectionConfigurationProps struct {
// Explicit list of partition values.
//
// Example:
// []*string{
// "us-east-1",
// "us-west-2",
// "eu-west-1",
// }
//
// Deprecated.
Values *[]*string `field:"required" json:"values" yaml:"values"`
}
Properties for ENUM partition projection configuration.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("region"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"region": glue.PartitionProjectionConfiguration_enum(&EnumPartitionProjectionConfigurationProps{
"values": []*string{
jsii.String("us-east-1"),
jsii.String("us-west-2"),
jsii.String("eu-west-1"),
},
}),
},
})
Deprecated.
type EventBatchingCondition ¶
type EventBatchingCondition struct {
// Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.
// Deprecated.
BatchSize *float64 `field:"required" json:"batchSize" yaml:"batchSize"`
// Window of time in seconds after which EventBridge event trigger fires.
// Default: - 900 seconds.
//
// Deprecated.
BatchWindow awscdk.Duration `field:"optional" json:"batchWindow" yaml:"batchWindow"`
}
Represents event trigger batch condition.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
eventBatchingCondition := &EventBatchingCondition{
BatchSize: jsii.Number(123),
// the properties below are optional
BatchWindow: cdk.Duration_Minutes(jsii.Number(30)),
}
Deprecated.
type EventTriggerOptions ¶
type EventTriggerOptions struct {
// The actions initiated by this trigger.
// Deprecated.
Actions *[]Action `field:"required" json:"actions" yaml:"actions"`
// A description for the trigger.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A name for the trigger.
// Default: - no name is provided.
//
// Deprecated.
Name *string `field:"optional" json:"name" yaml:"name"`
// Batch condition for the trigger.
// Default: - no batch condition.
//
// Deprecated.
EventBatchingCondition *EventBatchingCondition `field:"optional" json:"eventBatchingCondition" yaml:"eventBatchingCondition"`
}
Properties for configuring an Event Bridge based Glue Trigger.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
var action Action
eventTriggerOptions := &EventTriggerOptions{
Actions: []Action{
action,
},
// the properties below are optional
Description: jsii.String("description"),
EventBatchingCondition: &EventBatchingCondition{
BatchSize: jsii.Number(123),
// the properties below are optional
BatchWindow: cdk.Duration_Minutes(jsii.Number(30)),
},
Name: jsii.String("name"),
}
Deprecated.
type ExecutionClass ¶
type ExecutionClass string
The ExecutionClass whether the job is run with a standard or flexible execution class. See: https://docs.aws.amazon.com/glue/latest/dg/add-job.html
Deprecated.
const ( // The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary. // Deprecated. ExecutionClass_FLEX ExecutionClass = "FLEX" // The standard execution class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. // Deprecated. ExecutionClass_STANDARD ExecutionClass = "STANDARD" )
type ExternalTable ¶
type ExternalTable interface {
TableBase
// This table's columns.
// Deprecated.
Columns() *[]*Column
// Indicates whether the table's data is compressed or not.
// Deprecated.
Compressed() *bool
// The connection associated to this table.
// Deprecated.
Connection() IConnection
// Database this table belongs to.
// Deprecated.
Database() IDatabase
// Format of this table's data files.
// Deprecated.
DataFormat() DataFormat
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// Whether the data stored in the table is encrypted.
//
// Emitted as the
// `has_encrypted_data` table parameter.
// Deprecated.
HasEncryptedData() *bool
// The tree node.
// Deprecated.
Node() constructs.Node
// The tables' properties associated with the table.
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters
//
// Deprecated.
Parameters() *map[string]*string
// This table's partition indexes.
// Deprecated.
PartitionIndexes() *[]*PartitionIndex
// This table's partition keys if the table is partitioned.
// Deprecated.
PartitionKeys() *[]*Column
// This table's partition projection configuration if enabled.
// Deprecated.
PartitionProjection() *map[string]PartitionProjectionConfiguration
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// The tables' storage descriptor properties.
// Deprecated.
StorageParameters() *[]StorageParameter
// ARN of this table.
// Deprecated.
TableArn() *string
// Name of this table.
// Deprecated.
TableName() *string
// Deprecated.
TableResource() awsglue.CfnTable
// Add a partition index to the table.
//
// You can have a maximum of 3 partition
// indexes to a table. Partition index keys must be a subset of the table's
// partition keys.
// See: https://docs.aws.amazon.com/glue/latest/dg/partition-indexes.html
//
// Deprecated.
AddPartitionIndex(index *PartitionIndex)
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Grant the given identity custom permissions on this table.
//
// This is a low-level escape hatch: the `actions` are applied verbatim,
// scoped to this table's ARN. Prefer the intent-based `grantRead` /
// `grantWrite` / `grantReadWrite` methods, which grant a curated set of
// actions and also cover the underlying S3 data. Only pass the specific
// actions the grantee needs - avoid service wildcards such as `glue:*`.
// [disable-awslint:no-grants].
// Deprecated.
Grant(grantee awsiam.IGrantable, actions *[]*string) awsiam.Grant
// Grant read permissions to the table [disable-awslint:no-grants].
// Deprecated.
GrantRead(grantee awsiam.IGrantable) awsiam.Grant
// Grant read and write permissions to the table [disable-awslint:no-grants].
// Deprecated.
GrantReadWrite(grantee awsiam.IGrantable) awsiam.Grant
// Grant the given identity custom permissions on this table AND its parent catalog and database.
//
// This is a low-level escape hatch for actions (such as certain Lake
// Formation or crawler operations) that must be authorized against the
// catalog and database in addition to the table. The `actions` are applied
// verbatim to all three ARNs (table, catalog, database), so scope them
// tightly: pass only the specific actions the grantee needs and avoid
// service wildcards such as `glue:*`, which would grant broad access across
// every resource in the catalog and database.
// [disable-awslint:no-grants].
// Deprecated.
GrantToUnderlyingResources(grantee awsiam.IGrantable, actions *[]*string) awsiam.Grant
// Grant write permissions to the table [disable-awslint:no-grants].
// Deprecated.
GrantWrite(grantee awsiam.IGrantable) awsiam.Grant
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A Glue table that targets an external data location (e.g. A table in a Redshift Cluster).
Example:
var myConnection Connection
var myDatabase Database
glue.NewExternalTable(this, jsii.String("MyTable"), &ExternalTableProps{
Connection: myConnection,
ExternalDataLocation: jsii.String("default_db_public_example"),
// A table in Redshift
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
Deprecated.
func NewExternalTable ¶
func NewExternalTable(scope constructs.Construct, id *string, props *ExternalTableProps) ExternalTable
Deprecated.
type ExternalTableProps ¶
type ExternalTableProps struct {
// Columns of the table.
// Deprecated.
Columns *[]*Column `field:"required" json:"columns" yaml:"columns"`
// Database in which to store the table.
// Deprecated.
Database IDatabase `field:"required" json:"database" yaml:"database"`
// Storage type of the table's data.
// Deprecated.
DataFormat DataFormat `field:"required" json:"dataFormat" yaml:"dataFormat"`
// Indicates whether the table's data is compressed or not.
// Default: false.
//
// Deprecated.
Compressed *bool `field:"optional" json:"compressed" yaml:"compressed"`
// Description of the table.
// Default: generated.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Enables partition filtering.
// See: https://docs.aws.amazon.com/athena/latest/ug/glue-best-practices.html#glue-best-practices-partition-index
//
// Default: - The parameter is not defined.
//
// Deprecated.
EnablePartitionFiltering *bool `field:"optional" json:"enablePartitionFiltering" yaml:"enablePartitionFiltering"`
// Whether the data stored in the table is encrypted.
//
// This sets the `has_encrypted_data` table parameter. Athena reads it when
// querying client-side (CSE-KMS) encrypted datasets; for server-side
// encrypted (SSE-S3 / SSE-KMS) or unencrypted data it has no effect, since
// Amazon S3 decrypts server-side encrypted objects transparently.
//
// Do not also set `has_encrypted_data` through `parameters` - use this
// property instead. A conflicting value in `parameters` is rejected.
// See: https://docs.aws.amazon.com/athena/latest/ug/creating-tables-based-on-encrypted-datasets-in-s3.html
//
// Default: true.
//
// Deprecated.
HasEncryptedData *bool `field:"optional" json:"hasEncryptedData" yaml:"hasEncryptedData"`
// The key/value pairs define properties associated with the table.
//
// The key/value pairs that are allowed to be submitted are not limited, however their functionality is not guaranteed.
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters
//
// Default: - The parameter is not defined.
//
// Deprecated.
Parameters *map[string]*string `field:"optional" json:"parameters" yaml:"parameters"`
// Partition indexes on the table.
//
// A maximum of 3 indexes
// are allowed on a table. Keys in the index must be part
// of the table's partition keys.
// Default: table has no partition indexes.
//
// Deprecated.
PartitionIndexes *[]*PartitionIndex `field:"optional" json:"partitionIndexes" yaml:"partitionIndexes"`
// Partition columns of the table.
// Default: table is not partitioned.
//
// Deprecated.
PartitionKeys *[]*Column `field:"optional" json:"partitionKeys" yaml:"partitionKeys"`
// Partition projection configuration for this table.
//
// Partition projection allows Athena to automatically add new partitions
// without requiring `ALTER TABLE ADD PARTITION` statements.
// See: https://docs.aws.amazon.com/athena/latest/ug/partition-projection.html
//
// Default: - No partition projection.
//
// Deprecated.
PartitionProjection *map[string]PartitionProjectionConfiguration `field:"optional" json:"partitionProjection" yaml:"partitionProjection"`
// The user-supplied properties for the description of the physical storage of this table.
//
// These properties help describe the format of the data that is stored within the crawled data sources.
//
// The key/value pairs that are allowed to be submitted are not limited, however their functionality is not guaranteed.
//
// Some keys will be auto-populated by glue crawlers, however, you can override them by specifying the key and value in this property.
//
// Example:
// declare const glueDatabase: glue.IDatabase;
// const table = new glue.S3Table(this, 'Table', {
// storageParameters: [
// glue.StorageParameter.skipHeaderLineCount(1),
// glue.StorageParameter.compressionType(glue.CompressionType.GZIP),
// glue.StorageParameter.custom('foo', 'bar'), // Will have no effect
// glue.StorageParameter.custom('separatorChar', ','), // Will describe the separator char used in the data
// glue.StorageParameter.custom(glue.StorageParameters.WRITE_PARALLEL, 'off'),
// ],
// // ...
// database: glueDatabase,
// columns: [{
// name: 'col1',
// type: glue.Schema.STRING,
// }],
// dataFormat: glue.DataFormat.CSV,
// });
//
// See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_
//
// Default: - The parameter is not defined.
//
// Deprecated.
StorageParameters *[]StorageParameter `field:"optional" json:"storageParameters" yaml:"storageParameters"`
// Indicates whether the table data is stored in subdirectories.
// Default: false.
//
// Deprecated.
StoredAsSubDirectories *bool `field:"optional" json:"storedAsSubDirectories" yaml:"storedAsSubDirectories"`
// Name of the table.
// Default: - generated by CDK.
//
// Deprecated.
TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
// The connection the table will use when performing reads and writes.
// Default: - No connection.
//
// Deprecated.
Connection IConnection `field:"required" json:"connection" yaml:"connection"`
// The data source location of the glue table, (e.g. `default_db_public_example` for Redshift).
//
// If this property is set, it will override both `bucket` and `s3Prefix`.
// Default: - No outsourced data source location.
//
// Deprecated.
ExternalDataLocation *string `field:"required" json:"externalDataLocation" yaml:"externalDataLocation"`
}
Example:
var myConnection Connection
var myDatabase Database
glue.NewExternalTable(this, jsii.String("MyTable"), &ExternalTableProps{
Connection: myConnection,
ExternalDataLocation: jsii.String("default_db_public_example"),
// A table in Redshift
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
Deprecated.
type GlueVersion ¶
type GlueVersion string
AWS Glue version determines the versions of Apache Spark and Python that are available to the job.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkEtlJob(stack, jsii.String("PySparkETLJob"), &PySparkEtlJobProps{
JobName: jsii.String("PySparkETLJobCustomName"),
Description: jsii.String("This is a description"),
Role: Role,
Script: Script,
GlueVersion: glue.GlueVersion_V5_1,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
WorkerConfiguration: &WorkerConfiguration{
WorkerType: glue.WorkerType_G_2X,
NumberOfWorkers: jsii.Number(2),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
See: https://docs.aws.amazon.com/glue/latest/dg/add-job.html.
Deprecated.
const ( // Glue version using Spark 2.2.1 and Python 2.7. // Deprecated. GlueVersion_V0_9 GlueVersion = "V0_9" // Glue version using Spark 2.4.3, Python 2.7 and Python 3.6. // Deprecated. GlueVersion_V1_0 GlueVersion = "V1_0" // Glue version using Spark 2.4.3 and Python 3.7. // Deprecated. GlueVersion_V2_0 GlueVersion = "V2_0" // Glue version using Spark 3.1.1 and Python 3.7. // Deprecated. GlueVersion_V3_0 GlueVersion = "V3_0" // Glue version using Spark 3.3.0 and Python 3.10. // Deprecated. GlueVersion_V4_0 GlueVersion = "V4_0" // Glue version using Spark 3.5.4, Python 3.11, and Scala 2.12.18. // Deprecated. GlueVersion_V5_0 GlueVersion = "V5_0" // Glue version using Spark 3.5.6, Python 3.11, and Scala 2.12.18. // Deprecated. GlueVersion_V5_1 GlueVersion = "V5_1" )
type ICatalog ¶
type ICatalog interface {
interfacesawsglue.ICatalogRef
awscdk.IResource
// The ARN of the catalog.
// Deprecated.
CatalogArn() *string
// The id of the catalog (for the account-wide catalog, the AWS account id).
// Deprecated.
CatalogId() *string
// The customer-managed KMS key used to encrypt connection passwords, if one was configured.
//
// Undefined when password encryption uses an AWS-managed key or is not
// configured. Grant access to it via `KeyGrants`, e.g.
// `if (catalog.connectionPasswordKey) { KeyGrants.fromKey(catalog.connectionPasswordKey).encrypt(grantee); }`.
// Deprecated.
ConnectionPasswordKey() interfacesawskms.IKeyRef
// The customer-managed KMS key used for the catalog's encryption at rest, if one was configured.
//
// Undefined when encryption is disabled or an AWS-managed key is used. Grant
// access to it via `KeyGrants`, e.g.
// `if (catalog.encryptionKey) { KeyGrants.fromKey(catalog.encryptionKey).encrypt(grantee); }`.
// Deprecated.
EncryptionKey() interfacesawskms.IKeyRef
}
A Glue Data Catalog, either the implicit account-wide catalog or one created as an `AWS::Glue::Catalog` resource. Deprecated.
func Catalog_EncryptAccount ¶
func Catalog_EncryptAccount(scope constructs.Construct, options *CatalogEncryptionOptions) ICatalog
Configure Data Catalog encryption for the implicit, account-wide catalog and return it.
The account catalog's encryption is an account/region-wide setting, managed through the singleton `PutDataCatalogEncryptionSettings` API. Because encryption is fixed at construction, it must be configured before the account catalog is first used in the stack: calling this after the account catalog has already been materialized (for example by `Catalog.forAccount`, or by a `Database` that uses the account catalog) throws.
Configure it in exactly one stack. Configuring it from multiple stacks in the same account and region makes those stacks overwrite one another at deploy time, and the result is order-dependent. Unlike duplicate settings within a single stack (which CloudFormation rejects), this cross-stack conflict is not caught at synthesis time, because each stack synthesizes to its own template. Deprecated.
func Catalog_ForAccount ¶
func Catalog_ForAccount(scope constructs.Construct) ICatalog
Obtain the implicit, account-wide Data Catalog.
The account catalog is not a CloudFormation resource; it always exists. This returns a stack-scoped singleton, so repeated calls within the same stack return the same instance.
This returns the account catalog without managing its encryption. To configure Data Catalog encryption for the account, use `Catalog.encryptAccount(scope, options)` instead - it must be called before the account catalog is first used in the stack. Deprecated.
func Catalog_FromCatalogArn ¶
func Catalog_FromCatalogArn(scope constructs.Construct, id *string, catalogArn *string) ICatalog
Import an existing catalog by its ARN.
The ARN must be a Glue catalog ARN, either the account-wide catalog (`arn:aws:glue:<region>:<account>:catalog`, whose id is the account) or a named catalog (`arn:aws:glue:<region>:<account>:catalog/<name>`, whose id is the name).
The imported catalog is a pure identity handle and does not manage the catalog's encryption. To manage an existing catalog's Data Catalog encryption, add a `CfnDataCatalogEncryptionSettings` resource targeting its id. Deprecated.
func Catalog_FromCatalogId ¶
func Catalog_FromCatalogId(scope constructs.Construct, id *string, catalogId *string) ICatalog
Import an existing catalog by its id.
The imported catalog is a pure identity handle and does not manage the catalog's encryption. To manage an existing catalog's Data Catalog encryption, add a `CfnDataCatalogEncryptionSettings` resource targeting its id. Deprecated.
type IConnection ¶
type IConnection interface {
awscdk.IResource
// The ARN of the connection.
// Deprecated.
ConnectionArn() *string
// The name of the connection.
// Deprecated.
ConnectionName() *string
}
Interface representing a created or an imported `Connection`. Deprecated.
func Connection_FromConnectionArn ¶
func Connection_FromConnectionArn(scope constructs.Construct, id *string, connectionArn *string) IConnection
Creates a Connection construct that represents an external connection. Deprecated.
func Connection_FromConnectionName ¶
func Connection_FromConnectionName(scope constructs.Construct, id *string, connectionName *string) IConnection
Creates a Connection construct that represents an external connection. Deprecated.
type IDataQualityRuleset ¶
type IDataQualityRuleset interface {
awscdk.IResource
// The ARN of the ruleset.
// Deprecated.
RulesetArn() *string
// The name of the ruleset.
// Deprecated.
RulesetName() *string
}
Deprecated.
func DataQualityRuleset_FromRulesetArn ¶
func DataQualityRuleset_FromRulesetArn(scope constructs.Construct, id *string, rulesetArn *string) IDataQualityRuleset
Deprecated.
func DataQualityRuleset_FromRulesetName ¶
func DataQualityRuleset_FromRulesetName(scope constructs.Construct, id *string, rulesetName *string) IDataQualityRuleset
Deprecated.
type IDatabase ¶
type IDatabase interface {
interfacesawsglue.IDatabaseRef
awscdk.IResource
// The catalog this database belongs to.
// Deprecated.
Catalog() ICatalog
// The ARN of the database.
// Deprecated.
DatabaseArn() *string
// The name of the database.
// Deprecated.
DatabaseName() *string
}
Deprecated.
func Database_FromDatabaseArn ¶
func Database_FromDatabaseArn(scope constructs.Construct, id *string, databaseArn *string) IDatabase
Deprecated.
type IJob ¶
type IJob interface {
awsiam.IGrantable
interfacesawsglue.IJobRef
awscdk.IResource
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Create a CloudWatch Metric indicating job failure.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Create a CloudWatch Metric indicating job success.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Create a CloudWatch Metric indicating job timeout.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Defines a CloudWatch event rule triggered when something happens with this job.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Defines a CloudWatch event rule triggered when this job moves to the FAILED state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
}
Interface representing a new or an imported Glue Job. Deprecated.
func Job_FromJobAttributes ¶
func Job_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func PySparkEtlJob_FromJobAttributes ¶
func PySparkEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func PySparkFlexEtlJob_FromJobAttributes ¶
func PySparkFlexEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func PySparkStreamingJob_FromJobAttributes ¶
func PySparkStreamingJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func PythonShellJob_FromJobAttributes ¶
func PythonShellJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func RayJob_FromJobAttributes ¶
func RayJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
func ScalaSparkEtlJob_FromJobAttributes ¶
func ScalaSparkEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func ScalaSparkFlexEtlJob_FromJobAttributes ¶
func ScalaSparkFlexEtlJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func ScalaSparkStreamingJob_FromJobAttributes ¶
func ScalaSparkStreamingJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
func SparkJob_FromJobAttributes ¶
func SparkJob_FromJobAttributes(scope constructs.Construct, id *string, attrs *JobAttributes) IJob
Identifies an existing Glue Job from a subset of attributes that can be referenced from within another Stack or Construct. Deprecated.
type ISecurityConfiguration ¶
type ISecurityConfiguration interface {
awscdk.IResource
// The name of the security configuration.
// Deprecated.
SecurityConfigurationName() *string
}
Interface representing a created or an imported `SecurityConfiguration`. Deprecated.
func SecurityConfiguration_FromSecurityConfigurationName ¶
func SecurityConfiguration_FromSecurityConfigurationName(scope constructs.Construct, id *string, securityConfigurationName *string) ISecurityConfiguration
Creates a Connection construct that represents an external security configuration. Deprecated.
type ITable ¶
type ITable interface {
awscdk.IResource
// Deprecated.
TableArn() *string
// Deprecated.
TableName() *string
}
Deprecated.
func ExternalTable_FromTableArn ¶
func ExternalTable_FromTableArn(scope constructs.Construct, id *string, tableArn *string) ITable
Deprecated.
func ExternalTable_FromTableAttributes ¶
func ExternalTable_FromTableAttributes(scope constructs.Construct, id *string, attrs *TableAttributes) ITable
Creates a Table construct that represents an external table. Deprecated.
func S3Table_FromTableArn ¶
func S3Table_FromTableArn(scope constructs.Construct, id *string, tableArn *string) ITable
Deprecated.
func S3Table_FromTableAttributes ¶
func S3Table_FromTableAttributes(scope constructs.Construct, id *string, attrs *TableAttributes) ITable
Creates a Table construct that represents an external table. Deprecated.
func TableBase_FromTableArn ¶
func TableBase_FromTableArn(scope constructs.Construct, id *string, tableArn *string) ITable
Deprecated.
func TableBase_FromTableAttributes ¶
func TableBase_FromTableAttributes(scope constructs.Construct, id *string, attrs *TableAttributes) ITable
Creates a Table construct that represents an external table. Deprecated.
type IWorkflow ¶
type IWorkflow interface {
awscdk.IResource
// Add a conditional (predicate-based) trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddConditionalTrigger(id *string, options *ConditionalTriggerOptions) interfacesawsglue.ITriggerRef
// Add an EventBridge event-based trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddEventTrigger(id *string, options *EventTriggerOptions) interfacesawsglue.ITriggerRef
// Add an on-demand trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddOnDemandTrigger(id *string, options *OnDemandTriggerOptions) interfacesawsglue.ITriggerRef
// Add a scheduled trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddScheduledTrigger(id *string, options *ScheduledTriggerOptions) interfacesawsglue.ITriggerRef
// The ARN of the workflow.
// Deprecated.
WorkflowArn() *string
// The name of the workflow.
// Deprecated.
WorkflowName() *string
}
The base interface for Glue Workflow. See: https://docs.aws.amazon.com/glue/latest/dg/workflows_overview.html
Deprecated.
func Workflow_FromWorkflowArn ¶
func Workflow_FromWorkflowArn(scope constructs.Construct, id *string, workflowArn *string) IWorkflow
Import a workflow from its name. Deprecated.
func Workflow_FromWorkflowAttributes ¶
func Workflow_FromWorkflowAttributes(scope constructs.Construct, id *string, attrs *WorkflowAttributes) IWorkflow
Import an existing workflow. Deprecated.
func Workflow_FromWorkflowName ¶
func Workflow_FromWorkflowName(scope constructs.Construct, id *string, workflowName *string) IWorkflow
Import a workflow from its name. Deprecated.
type InputFormat ¶
type InputFormat interface {
// Deprecated.
ClassName() *string
}
Absolute class name of the Hadoop `InputFormat` to use when reading table files.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha" inputFormat := glue_alpha.InputFormat_AVRO()
Deprecated.
func InputFormat_AVRO ¶
func InputFormat_AVRO() InputFormat
func InputFormat_CLOUDTRAIL ¶
func InputFormat_CLOUDTRAIL() InputFormat
func InputFormat_ORC ¶
func InputFormat_ORC() InputFormat
func InputFormat_PARQUET ¶
func InputFormat_PARQUET() InputFormat
func InputFormat_TEXT ¶
func InputFormat_TEXT() InputFormat
type IntegerPartitionProjectionConfigurationProps ¶
type IntegerPartitionProjectionConfigurationProps struct {
// Maximum value for the integer partition range (inclusive).
// Deprecated.
Max *float64 `field:"required" json:"max" yaml:"max"`
// Minimum value for the integer partition range (inclusive).
// Deprecated.
Min *float64 `field:"required" json:"min" yaml:"min"`
// Number of digits to pad the partition value with leading zeros.
//
// With digits: 4, partition values: 0001, 0002, ..., 0100
// Default: - no static number of digits and no leading zeroes.
//
// Deprecated.
Digits *float64 `field:"optional" json:"digits" yaml:"digits"`
// Interval between partition values.
// Default: 1.
//
// Deprecated.
Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
}
Properties for INTEGER partition projection configuration.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("year"),
Type: glue.Schema_INTEGER(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"year": glue.PartitionProjectionConfiguration_integer(&IntegerPartitionProjectionConfigurationProps{
"min": jsii.Number(2020),
"max": jsii.Number(2023),
"interval": jsii.Number(1),
// optional, defaults to 1
"digits": jsii.Number(4),
}),
},
})
Deprecated.
type InvalidCharHandlingAction ¶
type InvalidCharHandlingAction string
Specifies the action to perform when query results contain invalid UTF-8 character values. See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"invalid_char_handling"_
Deprecated.
const ( // Doesn't perform invalid character handling. // Deprecated. InvalidCharHandlingAction_DISABLED InvalidCharHandlingAction = "DISABLED" // Cancels queries that return data containing invalid UTF-8 values. // Deprecated. InvalidCharHandlingAction_FAIL InvalidCharHandlingAction = "FAIL" // Replaces invalid UTF-8 values with null. // Deprecated. InvalidCharHandlingAction_SET_TO_NULL InvalidCharHandlingAction = "SET_TO_NULL" // Replaces each value in the row with null. // Deprecated. InvalidCharHandlingAction_DROP_ROW InvalidCharHandlingAction = "DROP_ROW" // Replaces the invalid character with the replacement character you specify using `REPLACEMENT_CHAR`. // Deprecated. InvalidCharHandlingAction_REPLACE InvalidCharHandlingAction = "REPLACE" )
type Job ¶
type Job interface {
JobBase
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A Glue Job.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var role Role
job := glue_alpha.Job_FromJobAttributes(this, jsii.String("MyJob"), &JobAttributes{
JobName: jsii.String("jobName"),
// the properties below are optional
Role: role,
})
Deprecated.
type JobActionOptions ¶
type JobActionOptions struct {
// The arguments used when this trigger fires.
// Default: - no arguments are passed to the job.
//
// Deprecated.
Arguments *map[string]*string `field:"optional" json:"arguments" yaml:"arguments"`
// The `SecurityConfiguration` to be used with this action.
// Default: - no security configuration is used.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// The run timeout.
//
// This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status.
// Default: - the default timeout value set in the job definition.
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
}
Options for the execution of a job.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
var securityConfiguration SecurityConfiguration
jobActionOptions := &JobActionOptions{
Arguments: map[string]*string{
"argumentsKey": jsii.String("arguments"),
},
SecurityConfiguration: securityConfiguration,
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
}
Deprecated.
type JobAttributes ¶
type JobAttributes struct {
// The name of the job.
// Deprecated.
JobName *string `field:"required" json:"jobName" yaml:"jobName"`
// The IAM role assumed by Glue to run this job.
// Default: - undefined.
//
// Deprecated.
Role awsiam.IRole `field:"optional" json:"role" yaml:"role"`
}
A subset of Job attributes are required for importing an existing job into a CDK project.
This is only used when using fromJobAttributes to identify and reference the existing job.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var role Role
jobAttributes := &JobAttributes{
JobName: jsii.String("jobName"),
// the properties below are optional
Role: role,
}
Deprecated.
type JobBase ¶
type JobBase interface {
awscdk.Resource
IJob
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A base class is needed to be able to import existing Jobs into a CDK app to reference as part of a larger stack or construct.
JobBase has the subset of attributes required to identify and reference an existing Glue Job, as well as some CloudWatch metric convenience functions to configure an event-driven flow using the job. Deprecated.
type JobBookmarksEncryption ¶
type JobBookmarksEncryption interface {
}
Job bookmarks encryption configuration for a `SecurityConfiguration`.
Job bookmarks support only client-side encryption with a KMS key.
Example:
glue.NewSecurityConfiguration(this, jsii.String("MySecurityConfiguration"), &SecurityConfigurationProps{
CloudWatchEncryption: glue.CloudWatchEncryption_Kms(),
JobBookmarksEncryption: glue.JobBookmarksEncryption_ClientSideKms(),
S3Encryption: glue.S3Encryption_Kms(),
})
Deprecated.
func JobBookmarksEncryption_ClientSideKms ¶
func JobBookmarksEncryption_ClientSideKms(kmsKey interfacesawskms.IKeyRef) JobBookmarksEncryption
Client-side encryption (CSE) with an AWS KMS key managed by the account owner. See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html
Deprecated.
type JobLanguage ¶
type JobLanguage string
Runtime language of the Glue job. Deprecated.
const ( // Scala. // Deprecated. JobLanguage_SCALA JobLanguage = "SCALA" // Python. // Deprecated. JobLanguage_PYTHON JobLanguage = "PYTHON" )
type JobProps ¶
type JobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
}
JobProps will be used to create new Glue Jobs using this L2 Construct.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
jobProps := &JobProps{
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
SecurityConfiguration: securityConfiguration,
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
}
Deprecated.
type JobState ¶
type JobState string
Job states emitted by Glue to CloudWatch Events. See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types for more information.
Deprecated.
const ( // State indicating job run succeeded. // Deprecated. JobState_SUCCEEDED JobState = "SUCCEEDED" // State indicating job run failed. // Deprecated. JobState_FAILED JobState = "FAILED" // State indicating job run timed out. // Deprecated. JobState_TIMEOUT JobState = "TIMEOUT" // State indicating job is starting. // Deprecated. JobState_STARTING JobState = "STARTING" // State indicating job is running. // Deprecated. JobState_RUNNING JobState = "RUNNING" // State indicating job is stopping. // Deprecated. JobState_STOPPING JobState = "STOPPING" // State indicating job stopped. // Deprecated. JobState_STOPPED JobState = "STOPPED" )
type JobType ¶
type JobType string
The job type. Deprecated.
const ( // Command for running a Glue Spark job. // Deprecated. JobType_ETL JobType = "ETL" // Command for running a Glue Spark streaming job. // Deprecated. JobType_STREAMING JobType = "STREAMING" // Command for running a Glue python shell job. // Deprecated. JobType_PYTHON_SHELL JobType = "PYTHON_SHELL" // Command for running a Glue Ray job. // Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. // Migrate to Amazon EKS with KubeRay Operator. See // https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html JobType_RAY JobType = "RAY" )
type LibrarySet ¶
type LibrarySet string
The set of pre-installed Python libraries available to a Python shell job running Python 3.9. See: https://docs.aws.amazon.com/glue/latest/dg/add-job-python.html#python-shell-supported-library
Deprecated.
const ( // Include the common analytics libraries for Python 3.9 (e.g. pandas, numpy, scikit-learn, awswrangler). // Deprecated. LibrarySet_ANALYTICS LibrarySet = "ANALYTICS" // Do not install the common library set. // // Use this when your libraries are custom or conflict // with the pre-installed ones. // Deprecated. LibrarySet_NONE LibrarySet = "NONE" )
type MaxCapacity ¶
type MaxCapacity string
The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.
A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
var extraPythonFile Code
glue.NewPythonShellJob(stack, jsii.String("PythonShellJob"), &PythonShellJobProps{
JobName: jsii.String("PythonShellJobCustomName"),
Description: jsii.String("This is a description"),
PythonVersion: glue.PythonVersion_THREE_NINE,
MaxCapacity: glue.MaxCapacity_DPU_1,
Role: Role,
Script: Script,
ExtraPythonFiles: []Code{
extraPythonFile,
},
GlueVersion: glue.GlueVersion_V3_0,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
Deprecated.
const ( // DPU value of 1/16th. // Deprecated. MaxCapacity_DPU_1_16TH MaxCapacity = "DPU_1_16TH" // DPU value of 1. // Deprecated. MaxCapacity_DPU_1 MaxCapacity = "DPU_1" )
type MetricType ¶
type MetricType string
The Glue CloudWatch metric type. See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
Deprecated.
const ( // A value at a point in time. // Deprecated. MetricType_GAUGE MetricType = "GAUGE" // An aggregate number. // Deprecated. MetricType_COUNT MetricType = "COUNT" )
type NumericOverflowHandlingAction ¶
type NumericOverflowHandlingAction string
Specifies the action to perform when ORC data contains an integer (for example, BIGINT or int64) that is larger than the column definition (for example, SMALLINT or int16). See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"numeric_overflow_handling"_
Deprecated.
const ( // Invalid character handling is turned off. // Deprecated. NumericOverflowHandlingAction_DISABLED NumericOverflowHandlingAction = "DISABLED" // Cancel the query when the data includes invalid characters. // Deprecated. NumericOverflowHandlingAction_FAIL NumericOverflowHandlingAction = "FAIL" // Set invalid characters to null. // Deprecated. NumericOverflowHandlingAction_SET_TO_NULL NumericOverflowHandlingAction = "SET_TO_NULL" // Set each value in the row to null. // Deprecated. NumericOverflowHandlingAction_DROP_ROW NumericOverflowHandlingAction = "DROP_ROW" )
type OnDemandTriggerOptions ¶
type OnDemandTriggerOptions struct {
// The actions initiated by this trigger.
// Deprecated.
Actions *[]Action `field:"required" json:"actions" yaml:"actions"`
// A description for the trigger.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A name for the trigger.
// Default: - no name is provided.
//
// Deprecated.
Name *string `field:"optional" json:"name" yaml:"name"`
}
Properties for configuring an on-demand Glue Trigger.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
// Create a job to run from the workflow
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
// Create a workflow and add a trigger that runs the job
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddOnDemandTrigger(jsii.String("OnDemandTrigger"), &OnDemandTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
})
Deprecated.
type OrcColumnMappingType ¶
type OrcColumnMappingType string
Specifies how to map columns when the table uses ORC data format. See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"orc.schema.resolution"_
Deprecated.
const ( // Map columns by name. // Deprecated. OrcColumnMappingType_NAME OrcColumnMappingType = "NAME" // Map columns by position. // Deprecated. OrcColumnMappingType_POSITION OrcColumnMappingType = "POSITION" )
type OutputFormat ¶
type OutputFormat interface {
// Deprecated.
ClassName() *string
}
Absolute class name of the Hadoop `OutputFormat` to use when writing table files.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha" outputFormat := glue_alpha.OutputFormat_AVRO()
Deprecated.
func OutputFormat_AVRO ¶
func OutputFormat_AVRO() OutputFormat
func OutputFormat_HIVE_IGNORE_KEY_TEXT ¶
func OutputFormat_HIVE_IGNORE_KEY_TEXT() OutputFormat
func OutputFormat_ORC ¶
func OutputFormat_ORC() OutputFormat
func OutputFormat_PARQUET ¶
func OutputFormat_PARQUET() OutputFormat
type PartitionIndex ¶
type PartitionIndex struct {
// The partition key names that comprise the partition index.
//
// The names must correspond to a name in the
// table's partition keys.
// Deprecated.
KeyNames *[]*string `field:"required" json:"keyNames" yaml:"keyNames"`
// The name of the partition index.
// Default: - a name will be generated for you.
//
// Deprecated.
IndexName *string `field:"optional" json:"indexName" yaml:"indexName"`
}
Properties of a Partition Index.
Example:
var myTable S3Table
myTable.AddPartitionIndex(&PartitionIndex{
IndexName: jsii.String("my-index"),
KeyNames: []*string{
jsii.String("year"),
},
})
Deprecated.
type PartitionProjectionConfiguration ¶
type PartitionProjectionConfiguration interface {
// The type of partition projection.
// Deprecated.
Type() PartitionProjectionType
}
Factory class for creating partition projection configurations.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("2020-01-01"),
"max": jsii.String("2023-12-31"),
"format": jsii.String("yyyy-MM-dd"),
// `step` bundles interval + unit (supply both or neither). Optional at day
// precision or coarser; required when the format is sub-day (e.g. hours).
"step": &DateProjectionStep{
"interval": jsii.Number(1),
"intervalUnit": glue.DateIntervalUnit_DAYS,
},
}),
},
})
Deprecated.
func PartitionProjectionConfiguration_Date ¶
func PartitionProjectionConfiguration_Date(props *DatePartitionProjectionConfigurationProps) PartitionProjectionConfiguration
Create a DATE partition projection configuration. Deprecated.
func PartitionProjectionConfiguration_Enum ¶
func PartitionProjectionConfiguration_Enum(props *EnumPartitionProjectionConfigurationProps) PartitionProjectionConfiguration
Create an ENUM partition projection configuration. Deprecated.
func PartitionProjectionConfiguration_Injected ¶
func PartitionProjectionConfiguration_Injected() PartitionProjectionConfiguration
Create an INJECTED partition projection configuration.
Partition values are injected at query time through the query statement. See: https://docs.aws.amazon.com/athena/latest/ug/partition-projection-supported-types.html#partition-projection-injected-type
Deprecated.
func PartitionProjectionConfiguration_Integer ¶
func PartitionProjectionConfiguration_Integer(props *IntegerPartitionProjectionConfigurationProps) PartitionProjectionConfiguration
Create an INTEGER partition projection configuration. Deprecated.
type PartitionProjectionType ¶
type PartitionProjectionType string
Partition projection type.
Determines how Athena projects partition values. See: https://docs.aws.amazon.com/athena/latest/ug/partition-projection-supported-types.html
Deprecated.
const ( // Project partition values as integers within a range. // Deprecated. PartitionProjectionType_INTEGER PartitionProjectionType = "INTEGER" // Project partition values as dates within a range. // Deprecated. PartitionProjectionType_DATE PartitionProjectionType = "DATE" // Project partition values from an explicit list of values. // Deprecated. PartitionProjectionType_ENUM PartitionProjectionType = "ENUM" // Project partition values that are injected at query time. // Deprecated. PartitionProjectionType_INJECTED PartitionProjectionType = "INJECTED" )
type Predicate ¶
type Predicate struct {
// A list of the conditions that determine when the trigger will fire.
// Default: - no conditions are provided.
//
// Deprecated.
Conditions *[]Condition `field:"optional" json:"conditions" yaml:"conditions"`
// The logical operator to be applied to the conditions.
// Default: - PredicateLogical.AND if multiple conditions are provided, no logical operator if only one condition
//
// Deprecated.
Logical PredicateLogical `field:"optional" json:"logical" yaml:"logical"`
}
Represents a trigger predicate.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var condition Condition
predicate := &Predicate{
Conditions: []Condition{
condition,
},
Logical: glue_alpha.PredicateLogical_AND,
}
Deprecated.
type PredicateLogical ¶
type PredicateLogical string
Deprecated.
const ( // All conditions must be true for the predicate to be true. // Deprecated. PredicateLogical_AND PredicateLogical = "AND" // At least one condition must be true for the predicate to be true. // Deprecated. PredicateLogical_ANY PredicateLogical = "ANY" )
type PySparkEtlJob ¶
type PySparkEtlJob interface {
SparkJob
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The Spark UI logs location if Spark UI monitoring and debugging is enabled.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
SparkUILoggingLocation() *SparkUILoggingLocation
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Register the arguments this construct manages for a Spark job.
//
// These are owned by the construct
// (derived from typed props). Each key is declared via {@link setManagedArgument} whether or not
// the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`)
// cannot be silently re-enabled through `defaultArguments`.
// Deprecated.
NonExecutableCommonArguments(props *SparkJobProps)
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Register the arguments for extra {@link Code}-related properties.
// Deprecated.
SetupExtraCodeArguments(props *SparkExtraCodeProps)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
PySpark ETL Jobs class.
ETL jobs support pySpark and Scala languages, for which there are separate but similar constructors. ETL jobs default to the G1 worker type, but you can override this default with other supported worker type values (G1, G2, G4 and G8). ETL jobs defaults to Glue version 4.0, which you can override to 3.0. The following ETL features are enabled by default: --enable-metrics, --enable-continuous-cloudwatch-log. The Spark UI (--enable-spark-ui) is off by default; enable it by setting the `sparkUI` prop. You can find more details about version, worker type and other features in Glue's public documentation.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
// Create a job to run from the workflow
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
// Create a workflow and add a trigger that runs the job
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddOnDemandTrigger(jsii.String("OnDemandTrigger"), &OnDemandTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
})
Deprecated.
func NewPySparkEtlJob ¶
func NewPySparkEtlJob(scope constructs.Construct, id *string, props *PySparkEtlJobProps) PySparkEtlJob
PySparkEtlJob constructor. Deprecated.
type PySparkEtlJobProps ¶
type PySparkEtlJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated.
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated.
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Enables the Spark UI debugging and monitoring with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - Spark UI debugging and monitoring is disabled.
//
// Deprecated.
SparkUI *SparkUIProps `field:"optional" json:"sparkUI" yaml:"sparkUI"`
// The worker type and the number of workers allocated when a job runs.
// Default: - the job runs with the G_1X worker type and 10 workers.
//
// Deprecated.
WorkerConfiguration *WorkerConfiguration `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"`
// Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra files specified.
//
// Deprecated.
ExtraFiles *[]Code `field:"optional" json:"extraFiles" yaml:"extraFiles"`
// Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.
// Default: - no extra jar files.
//
// Deprecated.
ExtraJars *[]Code `field:"optional" json:"extraJars" yaml:"extraJars"`
// Setting this value to true prioritizes the customer's extra JAR files in the classpath.
// See: `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: false - priority is not given to user-provided jars.
//
// Deprecated.
ExtraJarsFirst *bool `field:"optional" json:"extraJarsFirst" yaml:"extraJarsFirst"`
// Extra Python Files S3 URL (optional) S3 URL where additional python dependencies are located.
// Default: - no extra files.
//
// Deprecated.
ExtraPythonFiles *[]Code `field:"optional" json:"extraPythonFiles" yaml:"extraPythonFiles"`
// Specifies whether job run queuing is enabled for the job runs for this job.
//
// A value of true means job run queuing is enabled for the job runs.
// If false or not populated, the job runs will not be considered for queueing.
// If this field does not match the value set in the job run, then the value from
// the job run field will be used. This property must be set to false for flex jobs.
// If this property is enabled, maxRetries must be set to zero.
// Default: false.
//
// Deprecated.
JobRunQueuingEnabled *bool `field:"optional" json:"jobRunQueuingEnabled" yaml:"jobRunQueuingEnabled"`
// Specifies configuration properties of a notification (optional).
//
// After a job run starts, the number of minutes to wait before sending a job run delay notification.
// Default: - undefined.
//
// Deprecated.
NotifyDelayAfter awscdk.Duration `field:"optional" json:"notifyDelayAfter" yaml:"notifyDelayAfter"`
}
Properties for creating a Python Spark ETL job.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
// Create a job to run from the workflow
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
// Create a workflow and add a trigger that runs the job
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddOnDemandTrigger(jsii.String("OnDemandTrigger"), &OnDemandTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
})
Deprecated.
type PySparkFlexEtlJob ¶
type PySparkFlexEtlJob interface {
SparkJob
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The Spark UI logs location if Spark UI monitoring and debugging is enabled.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
SparkUILoggingLocation() *SparkUILoggingLocation
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Register the arguments this construct manages for a Spark job.
//
// These are owned by the construct
// (derived from typed props). Each key is declared via {@link setManagedArgument} whether or not
// the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`)
// cannot be silently re-enabled through `defaultArguments`.
// Deprecated.
NonExecutableCommonArguments(props *SparkJobProps)
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Register the arguments for extra {@link Code}-related properties.
// Deprecated.
SetupExtraCodeArguments(props *SparkExtraCodeProps)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Flex Jobs class.
Flex jobs supports Python and Scala language. The flexible execution class is appropriate for non-urgent jobs such as pre-production jobs, testing, and one-time data loads. Flexible job runs are supported for jobs using AWS Glue version 3.0 or later and G.1X or G.2X worker types but will default to the latest version of Glue (currently Glue 5.0.)
Similar to ETL, we’ll enable these features: --enable-metrics, --enable-continuous-cloudwatch-log. The Spark UI (--enable-spark-ui) is off by default; enable it by setting the `sparkUI` prop.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkFlexEtlJob(stack, jsii.String("ImportedJob"), &PySparkFlexEtlJobProps{
Role: Role,
Script: Script,
})
Deprecated.
func NewPySparkFlexEtlJob ¶
func NewPySparkFlexEtlJob(scope constructs.Construct, id *string, props *PySparkFlexEtlJobProps) PySparkFlexEtlJob
PySparkFlexEtlJob constructor. Deprecated.
type PySparkFlexEtlJobProps ¶
type PySparkFlexEtlJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated.
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated.
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Enables the Spark UI debugging and monitoring with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - Spark UI debugging and monitoring is disabled.
//
// Deprecated.
SparkUI *SparkUIProps `field:"optional" json:"sparkUI" yaml:"sparkUI"`
// The worker type and the number of workers allocated when a job runs.
// Default: - the job runs with the G_1X worker type and 10 workers.
//
// Deprecated.
WorkerConfiguration *WorkerConfiguration `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"`
// Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra files specified.
//
// Deprecated.
ExtraFiles *[]Code `field:"optional" json:"extraFiles" yaml:"extraFiles"`
// Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.
// Default: - no extra jar files.
//
// Deprecated.
ExtraJars *[]Code `field:"optional" json:"extraJars" yaml:"extraJars"`
// Setting this value to true prioritizes the customer's extra JAR files in the classpath.
// See: `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: false - priority is not given to user-provided jars.
//
// Deprecated.
ExtraJarsFirst *bool `field:"optional" json:"extraJarsFirst" yaml:"extraJarsFirst"`
// Extra Python Files S3 URL (optional) S3 URL where additional python dependencies are located.
// Default: - no extra files.
//
// Deprecated.
ExtraPythonFiles *[]Code `field:"optional" json:"extraPythonFiles" yaml:"extraPythonFiles"`
// Specifies configuration properties of a notification (optional).
//
// After a job run starts, the number of minutes to wait before sending a job run delay notification.
// Default: - undefined.
//
// Deprecated.
NotifyDelayAfter awscdk.Duration `field:"optional" json:"notifyDelayAfter" yaml:"notifyDelayAfter"`
}
Properties for PySparkFlexEtlJob.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkFlexEtlJob(stack, jsii.String("ImportedJob"), &PySparkFlexEtlJobProps{
Role: Role,
Script: Script,
})
Deprecated.
type PySparkStreamingJob ¶
type PySparkStreamingJob interface {
SparkJob
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The Spark UI logs location if Spark UI monitoring and debugging is enabled.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
SparkUILoggingLocation() *SparkUILoggingLocation
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Register the arguments this construct manages for a Spark job.
//
// These are owned by the construct
// (derived from typed props). Each key is declared via {@link setManagedArgument} whether or not
// the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`)
// cannot be silently re-enabled through `defaultArguments`.
// Deprecated.
NonExecutableCommonArguments(props *SparkJobProps)
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Register the arguments for extra {@link Code}-related properties.
// Deprecated.
SetupExtraCodeArguments(props *SparkExtraCodeProps)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Python Spark Streaming Jobs class.
A Streaming job is similar to an ETL job, except that it performs ETL on data streams using the Apache Spark Structured Streaming framework. These jobs will default to use Python 3.9.
Similar to ETL jobs, streaming job supports Scala and Python languages. Similar to ETL, it supports G1 and G2 worker type and 2.0, 3.0 and 4.0 version. We’ll default to G1 worker and 4.0 version for streaming jobs which developers can override. We will enable --enable-metrics, --enable-continuous-cloudwatch-log. The Spark UI (--enable-spark-ui) is off by default; enable it by setting the `sparkUI` prop.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkStreamingJob(stack, jsii.String("ImportedJob"), &PySparkStreamingJobProps{
Role: Role,
Script: Script,
})
Deprecated.
func NewPySparkStreamingJob ¶
func NewPySparkStreamingJob(scope constructs.Construct, id *string, props *PySparkStreamingJobProps) PySparkStreamingJob
PySparkStreamingJob constructor. Deprecated.
type PySparkStreamingJobProps ¶
type PySparkStreamingJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated.
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated.
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Enables the Spark UI debugging and monitoring with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - Spark UI debugging and monitoring is disabled.
//
// Deprecated.
SparkUI *SparkUIProps `field:"optional" json:"sparkUI" yaml:"sparkUI"`
// The worker type and the number of workers allocated when a job runs.
// Default: - the job runs with the G_1X worker type and 10 workers.
//
// Deprecated.
WorkerConfiguration *WorkerConfiguration `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"`
// Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra files specified.
//
// Deprecated.
ExtraFiles *[]Code `field:"optional" json:"extraFiles" yaml:"extraFiles"`
// Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.
// Default: - no extra jar files.
//
// Deprecated.
ExtraJars *[]Code `field:"optional" json:"extraJars" yaml:"extraJars"`
// Setting this value to true prioritizes the customer's extra JAR files in the classpath.
// See: `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: false - priority is not given to user-provided jars.
//
// Deprecated.
ExtraJarsFirst *bool `field:"optional" json:"extraJarsFirst" yaml:"extraJarsFirst"`
// Extra Python Files S3 URL (optional) S3 URL where additional python dependencies are located.
// Default: - no extra files.
//
// Deprecated.
ExtraPythonFiles *[]Code `field:"optional" json:"extraPythonFiles" yaml:"extraPythonFiles"`
// Specifies whether job run queuing is enabled for the job runs for this job.
//
// A value of true means job run queuing is enabled for the job runs.
// If false or not populated, the job runs will not be considered for queueing.
// If this field does not match the value set in the job run, then the value from
// the job run field will be used. This property must be set to false for flex jobs.
// If this property is enabled, maxRetries must be set to zero.
// Default: - no job run queuing.
//
// Deprecated.
JobRunQueuingEnabled *bool `field:"optional" json:"jobRunQueuingEnabled" yaml:"jobRunQueuingEnabled"`
}
Properties for creating a Python Spark ETL job.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkStreamingJob(stack, jsii.String("ImportedJob"), &PySparkStreamingJobProps{
Role: Role,
Script: Script,
})
Deprecated.
type PythonShellJob ¶
type PythonShellJob interface {
Job
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Python Shell Jobs class.
A Python shell job runs Python scripts as a shell and supports a Python version that depends on the AWS Glue version you are using. This can be used to schedule and run tasks that don't require an Apache Spark environment.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPythonShellJob(stack, jsii.String("ImportedJob"), &PythonShellJobProps{
Role: Role,
Script: Script,
})
Deprecated.
func NewPythonShellJob ¶
func NewPythonShellJob(scope constructs.Construct, id *string, props *PythonShellJobProps) PythonShellJob
PythonShellJob constructor. Deprecated.
type PythonShellJobProps ¶
type PythonShellJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Additional Python files that AWS Glue adds to the Python path before executing your script.
//
// Only individual files are supported, directories are not supported.
// Equivalent to the `--extra-py-files` job argument.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra Python files.
//
// Deprecated.
ExtraPythonFiles *[]Code `field:"optional" json:"extraPythonFiles" yaml:"extraPythonFiles"`
// Specifies whether job run queuing is enabled for the job runs for this job.
//
// A value of true means job run queuing is enabled for the job runs.
// If false or not populated, the job runs will not be considered for queueing.
// If this field does not match the value set in the job run, then the value from
// the job run field will be used. This property must be set to false for flex jobs.
// If this property is enabled, maxRetries must be set to zero.
// Default: false.
//
// Deprecated.
JobRunQueuingEnabled *bool `field:"optional" json:"jobRunQueuingEnabled" yaml:"jobRunQueuingEnabled"`
// The set of pre-installed Python libraries to make available to the job.
//
// Only applies to jobs running Python 3.9. Set to `LibrarySet.NONE` when your libraries are
// custom or conflict with the pre-installed ones.
// See: https://docs.aws.amazon.com/glue/latest/dg/add-job-python.html#python-shell-supported-library
//
// Default: LibrarySet.ANALYTICS when running Python 3.9, otherwise no library set is configured
//
// Deprecated.
LibrarySet LibrarySet `field:"optional" json:"librarySet" yaml:"librarySet"`
// The total number of DPU to assign to the Python Job.
// Default: 0.0625
//
// Deprecated.
MaxCapacity MaxCapacity `field:"optional" json:"maxCapacity" yaml:"maxCapacity"`
// The version of Python to use to execute this job.
//
// Python shell jobs only support `PythonVersion.THREE_NINE`. The older `PythonVersion.TWO`
// (Python 2.7) and `PythonVersion.THREE` (Python 3.6) runtimes have been retired by AWS Glue
// and are no longer available for Python shell jobs.
// Default: PythonVersion.THREE_NINE
//
// Deprecated.
PythonVersion PythonVersion `field:"optional" json:"pythonVersion" yaml:"pythonVersion"`
}
Properties for creating a Python Shell job.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPythonShellJob(stack, jsii.String("ImportedJob"), &PythonShellJobProps{
Role: Role,
Script: Script,
})
Deprecated.
type PythonVersion ¶
type PythonVersion string
Python version.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
var extraPythonFile Code
glue.NewPythonShellJob(stack, jsii.String("PythonShellJob"), &PythonShellJobProps{
JobName: jsii.String("PythonShellJobCustomName"),
Description: jsii.String("This is a description"),
PythonVersion: glue.PythonVersion_THREE_NINE,
MaxCapacity: glue.MaxCapacity_DPU_1,
Role: Role,
Script: Script,
ExtraPythonFiles: []Code{
extraPythonFile,
},
GlueVersion: glue.GlueVersion_V3_0,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
Deprecated.
const ( // Python 2 (the exact version depends on GlueVersion and JobCommand used). // Deprecated. PythonVersion_TWO PythonVersion = "TWO" // Python 3 (the exact version depends on GlueVersion and JobCommand used). // Deprecated. PythonVersion_THREE PythonVersion = "THREE" // Python 3.9 (the exact version depends on GlueVersion and JobCommand used). // Deprecated. PythonVersion_THREE_NINE PythonVersion = "THREE_NINE" )
type RayJob
deprecated
type RayJob interface {
Job
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
JobArn() *string
// The name of the job.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Role() awsiam.IRole
// The stack in which this resource is defined.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
CodeS3ObjectUrl(code Code) *string
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Returns a string representation of this construct.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Ray Jobs class.
Glue Ray jobs use worker type Z.2X and Glue version 4.0. These are not overrideable since these are the only configuration that Glue Ray jobs currently support. The runtime defaults to Ray2.4 and min workers defaults to 3.
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/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
rayJob := glue_alpha.NewRayJob(this, jsii.String("MyRayJob"), &RayJobProps{
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
JobRunQueuingEnabled: jsii.Boolean(false),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
NumberOfWorkers: jsii.Number(123),
Runtime: glue_alpha.Runtime_RAY_TWO_FOUR,
SecurityConfiguration: securityConfiguration,
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
})
Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
func NewRayJob ¶
func NewRayJob(scope constructs.Construct, id *string, props *RayJobProps) RayJob
RayJob constructor. Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
type RayJobProps
deprecated
type RayJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Specifies whether job run queuing is enabled for the job runs for this job.
//
// A value of true means job run queuing is enabled for the job runs.
// If false or not populated, the job runs will not be considered for queueing.
// If this field does not match the value set in the job run, then the value from
// the job run field will be used. This property must be set to false for flex jobs.
// If this property is enabled, maxRetries must be set to zero.
// Default: - no job run queuing.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
JobRunQueuingEnabled *bool `field:"optional" json:"jobRunQueuingEnabled" yaml:"jobRunQueuingEnabled"`
// The number of workers allocated when a job runs.
//
// Ray jobs only support the Z.2X worker type, so the worker type is not configurable.
// Default: 3.
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
NumberOfWorkers *float64 `field:"optional" json:"numberOfWorkers" yaml:"numberOfWorkers"`
// Sets the Ray runtime environment version.
// Default: - Runtime version will default to Ray2.4
//
// Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026.
// Migrate to Amazon EKS with KubeRay Operator. See
// https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
Runtime Runtime `field:"optional" json:"runtime" yaml:"runtime"`
}
Properties for creating a Ray Glue job.
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/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
rayJobProps := &RayJobProps{
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
JobRunQueuingEnabled: jsii.Boolean(false),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
NumberOfWorkers: jsii.Number(123),
Runtime: glue_alpha.Runtime_RAY_TWO_FOUR,
SecurityConfiguration: securityConfiguration,
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
}
Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
type Runtime ¶
type Runtime string
AWS Glue runtime determines the runtime engine of the job. Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. Migrate to Amazon EKS with KubeRay Operator. See https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html
const ( // Runtime for a Glue for Ray 2.4. // Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. // Migrate to Amazon EKS with KubeRay Operator. See // https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html Runtime_RAY_TWO_FOUR Runtime = "RAY_TWO_FOUR" )
type S3Code ¶
type S3Code interface {
Code
// Called when the Job is initialized to allow this object to bind.
// Deprecated.
Bind(scope constructs.Construct, grantable awsiam.IGrantable) *CodeConfig
}
Glue job Code from an S3 bucket.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
s3Code := glue_alpha.NewS3Code(bucket, jsii.String("key"))
Deprecated.
func AssetCode_FromBucket ¶
Job code as an S3 object. Deprecated.
func Code_FromBucket ¶
Job code as an S3 object. Deprecated.
type S3Encryption ¶
type S3Encryption interface {
}
S3 encryption configuration for a `SecurityConfiguration`.
Use {@link S3Encryption.s3Managed} for SSE-S3 or {@link S3Encryption.kms} for SSE-KMS. Because these are separate factories, a KMS key can never be paired with S3-managed encryption.
Example:
glue.NewSecurityConfiguration(this, jsii.String("MySecurityConfiguration"), &SecurityConfigurationProps{
CloudWatchEncryption: glue.CloudWatchEncryption_Kms(),
JobBookmarksEncryption: glue.JobBookmarksEncryption_ClientSideKms(),
S3Encryption: glue.S3Encryption_Kms(),
})
Deprecated.
func S3Encryption_Kms ¶
func S3Encryption_Kms(kmsKey interfacesawskms.IKeyRef) S3Encryption
Server-side encryption (SSE) with an AWS KMS key managed by the account owner. See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html
Deprecated.
func S3Encryption_S3Managed ¶
func S3Encryption_S3Managed() S3Encryption
Server-side encryption (SSE) with an Amazon S3-managed key. See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
Deprecated.
type S3EncryptionMode ¶
type S3EncryptionMode string
Encryption mode for S3. See: https://docs.aws.amazon.com/glue/latest/webapi/API_S3Encryption.html#Glue-Type-S3Encryption-S3EncryptionMode
Deprecated.
const ( // Server side encryption (SSE) with an Amazon S3-managed key. // See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html // // Deprecated. S3EncryptionMode_S3_MANAGED S3EncryptionMode = "S3_MANAGED" // Server-side encryption (SSE) with an AWS KMS key managed by the account owner. // See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html // // Deprecated. S3EncryptionMode_KMS S3EncryptionMode = "KMS" )
type S3Table ¶
type S3Table interface {
TableBase
// S3 bucket in which the table's data resides.
// Deprecated.
Bucket() awss3.IBucket
// The KMS key used for client-side encryption of the table's data, if `clientSideEncryption` was configured. Otherwise, `undefined`.
//
// For server-side (bucket) encryption, read `bucket.encryptionKey` instead.
// Deprecated.
ClientSideEncryptionKey() interfacesawskms.IKeyRef
// This table's columns.
// Deprecated.
Columns() *[]*Column
// Indicates whether the table's data is compressed or not.
// Deprecated.
Compressed() *bool
// Database this table belongs to.
// Deprecated.
Database() IDatabase
// Format of this table's data files.
// Deprecated.
DataFormat() DataFormat
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// Whether the data stored in the table is encrypted.
//
// Emitted as the
// `has_encrypted_data` table parameter.
// Deprecated.
HasEncryptedData() *bool
// The tree node.
// Deprecated.
Node() constructs.Node
// The tables' properties associated with the table.
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters
//
// Deprecated.
Parameters() *map[string]*string
// This table's partition indexes.
// Deprecated.
PartitionIndexes() *[]*PartitionIndex
// This table's partition keys if the table is partitioned.
// Deprecated.
PartitionKeys() *[]*Column
// This table's partition projection configuration if enabled.
// Deprecated.
PartitionProjection() *map[string]PartitionProjectionConfiguration
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// S3 Key Prefix under which this table's files are stored in S3.
// Deprecated.
S3Prefix() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// The tables' storage descriptor properties.
// Deprecated.
StorageParameters() *[]StorageParameter
// ARN of this table.
// Deprecated.
TableArn() *string
// Name of this table.
// Deprecated.
TableName() *string
// Deprecated.
TableResource() awsglue.CfnTable
// Add a partition index to the table.
//
// You can have a maximum of 3 partition
// indexes to a table. Partition index keys must be a subset of the table's
// partition keys.
// See: https://docs.aws.amazon.com/glue/latest/dg/partition-indexes.html
//
// Deprecated.
AddPartitionIndex(index *PartitionIndex)
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
GeneratePhysicalName() *string
// Deprecated.
GenerateS3PrefixForGrant() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Grant the given identity custom permissions on this table.
//
// This is a low-level escape hatch: the `actions` are applied verbatim,
// scoped to this table's ARN. Prefer the intent-based `grantRead` /
// `grantWrite` / `grantReadWrite` methods, which grant a curated set of
// actions and also cover the underlying S3 data. Only pass the specific
// actions the grantee needs - avoid service wildcards such as `glue:*`.
// [disable-awslint:no-grants].
// Deprecated.
Grant(grantee awsiam.IGrantable, actions *[]*string) awsiam.Grant
// Grant read permissions to the table and the underlying data stored in S3 to an IAM principal.
//
// [disable-awslint:no-grants].
// Deprecated.
GrantRead(grantee awsiam.IGrantable) awsiam.Grant
// Grant read and write permissions to the table and the underlying data stored in S3 to an IAM principal.
//
// [disable-awslint:no-grants].
// Deprecated.
GrantReadWrite(grantee awsiam.IGrantable) awsiam.Grant
// Grant the given identity custom permissions on this table AND its parent catalog and database.
//
// This is a low-level escape hatch for actions (such as certain Lake
// Formation or crawler operations) that must be authorized against the
// catalog and database in addition to the table. The `actions` are applied
// verbatim to all three ARNs (table, catalog, database), so scope them
// tightly: pass only the specific actions the grantee needs and avoid
// service wildcards such as `glue:*`, which would grant broad access across
// every resource in the catalog and database.
// [disable-awslint:no-grants].
// Deprecated.
GrantToUnderlyingResources(grantee awsiam.IGrantable, actions *[]*string) awsiam.Grant
// Grant write permissions to the table and the underlying data stored in S3 to an IAM principal.
//
// [disable-awslint:no-grants].
// Deprecated.
GrantWrite(grantee awsiam.IGrantable) awsiam.Grant
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A Glue table that targets a S3 dataset.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("NOW-3YEARS"),
"max": jsii.String("NOW"),
"format": jsii.String("yyyy-MM-dd"),
}),
},
})
Deprecated.
func NewS3Table ¶
func NewS3Table(scope constructs.Construct, id *string, props *S3TableProps) S3Table
Deprecated.
type S3TableEncryption ¶
type S3TableEncryption interface {
}
Server-side encryption for the S3 bucket that a managed `S3Table` creates.
Applies only when the table manages its own bucket (via `S3TableStorage.managedBucket`). An existing bucket keeps whatever encryption it was created with.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Storage: glue.S3TableStorage_ManagedBucket(glue.S3TableEncryption_S3Managed()),
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
Deprecated.
func S3TableEncryption_Kms ¶
func S3TableEncryption_Kms(key awskms.IKey) S3TableEncryption
Server-side encryption (SSE-KMS) with an AWS KMS key managed by the account owner. Deprecated.
func S3TableEncryption_KmsManaged ¶
func S3TableEncryption_KmsManaged() S3TableEncryption
Server-side encryption (SSE-KMS) with an AWS KMS key managed by the KMS service. Deprecated.
func S3TableEncryption_S3Managed ¶
func S3TableEncryption_S3Managed() S3TableEncryption
Server-side encryption (SSE-S3) with an Amazon S3-managed key. Deprecated.
type S3TableProps ¶
type S3TableProps struct {
// Columns of the table.
// Deprecated.
Columns *[]*Column `field:"required" json:"columns" yaml:"columns"`
// Database in which to store the table.
// Deprecated.
Database IDatabase `field:"required" json:"database" yaml:"database"`
// Storage type of the table's data.
// Deprecated.
DataFormat DataFormat `field:"required" json:"dataFormat" yaml:"dataFormat"`
// Indicates whether the table's data is compressed or not.
// Default: false.
//
// Deprecated.
Compressed *bool `field:"optional" json:"compressed" yaml:"compressed"`
// Description of the table.
// Default: generated.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Enables partition filtering.
// See: https://docs.aws.amazon.com/athena/latest/ug/glue-best-practices.html#glue-best-practices-partition-index
//
// Default: - The parameter is not defined.
//
// Deprecated.
EnablePartitionFiltering *bool `field:"optional" json:"enablePartitionFiltering" yaml:"enablePartitionFiltering"`
// Whether the data stored in the table is encrypted.
//
// This sets the `has_encrypted_data` table parameter. Athena reads it when
// querying client-side (CSE-KMS) encrypted datasets; for server-side
// encrypted (SSE-S3 / SSE-KMS) or unencrypted data it has no effect, since
// Amazon S3 decrypts server-side encrypted objects transparently.
//
// Do not also set `has_encrypted_data` through `parameters` - use this
// property instead. A conflicting value in `parameters` is rejected.
// See: https://docs.aws.amazon.com/athena/latest/ug/creating-tables-based-on-encrypted-datasets-in-s3.html
//
// Default: true.
//
// Deprecated.
HasEncryptedData *bool `field:"optional" json:"hasEncryptedData" yaml:"hasEncryptedData"`
// The key/value pairs define properties associated with the table.
//
// The key/value pairs that are allowed to be submitted are not limited, however their functionality is not guaranteed.
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters
//
// Default: - The parameter is not defined.
//
// Deprecated.
Parameters *map[string]*string `field:"optional" json:"parameters" yaml:"parameters"`
// Partition indexes on the table.
//
// A maximum of 3 indexes
// are allowed on a table. Keys in the index must be part
// of the table's partition keys.
// Default: table has no partition indexes.
//
// Deprecated.
PartitionIndexes *[]*PartitionIndex `field:"optional" json:"partitionIndexes" yaml:"partitionIndexes"`
// Partition columns of the table.
// Default: table is not partitioned.
//
// Deprecated.
PartitionKeys *[]*Column `field:"optional" json:"partitionKeys" yaml:"partitionKeys"`
// Partition projection configuration for this table.
//
// Partition projection allows Athena to automatically add new partitions
// without requiring `ALTER TABLE ADD PARTITION` statements.
// See: https://docs.aws.amazon.com/athena/latest/ug/partition-projection.html
//
// Default: - No partition projection.
//
// Deprecated.
PartitionProjection *map[string]PartitionProjectionConfiguration `field:"optional" json:"partitionProjection" yaml:"partitionProjection"`
// The user-supplied properties for the description of the physical storage of this table.
//
// These properties help describe the format of the data that is stored within the crawled data sources.
//
// The key/value pairs that are allowed to be submitted are not limited, however their functionality is not guaranteed.
//
// Some keys will be auto-populated by glue crawlers, however, you can override them by specifying the key and value in this property.
//
// Example:
// declare const glueDatabase: glue.IDatabase;
// const table = new glue.S3Table(this, 'Table', {
// storageParameters: [
// glue.StorageParameter.skipHeaderLineCount(1),
// glue.StorageParameter.compressionType(glue.CompressionType.GZIP),
// glue.StorageParameter.custom('foo', 'bar'), // Will have no effect
// glue.StorageParameter.custom('separatorChar', ','), // Will describe the separator char used in the data
// glue.StorageParameter.custom(glue.StorageParameters.WRITE_PARALLEL, 'off'),
// ],
// // ...
// database: glueDatabase,
// columns: [{
// name: 'col1',
// type: glue.Schema.STRING,
// }],
// dataFormat: glue.DataFormat.CSV,
// });
//
// See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_
//
// Default: - The parameter is not defined.
//
// Deprecated.
StorageParameters *[]StorageParameter `field:"optional" json:"storageParameters" yaml:"storageParameters"`
// Indicates whether the table data is stored in subdirectories.
// Default: false.
//
// Deprecated.
StoredAsSubDirectories *bool `field:"optional" json:"storedAsSubDirectories" yaml:"storedAsSubDirectories"`
// Name of the table.
// Default: - generated by CDK.
//
// Deprecated.
TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
// Client-side encryption (CSE-KMS) for the table's data.
//
// Independent of the bucket's server-side encryption, and valid whether the
// bucket is managed or provided.
// Default: - no client-side encryption.
//
// Deprecated.
ClientSideEncryption TableClientSideEncryption `field:"optional" json:"clientSideEncryption" yaml:"clientSideEncryption"`
// S3 prefix under which table objects are stored.
//
// When the table shares a bucket with other tables or consumers, set this so
// that the `grant*` methods scope S3 access to this table's data. Without a
// prefix, those grants cover the entire bucket.
// Default: - No prefix. The data will be stored under the root of the bucket.
//
// Deprecated.
S3Prefix *string `field:"optional" json:"s3Prefix" yaml:"s3Prefix"`
// Where the table's data is stored: a bucket created and managed by the table, or an existing bucket you provide.
// Default: - a managed bucket with S3-managed (SSE-S3) encryption.
//
// Deprecated.
Storage S3TableStorage `field:"optional" json:"storage" yaml:"storage"`
}
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("NOW-3YEARS"),
"max": jsii.String("NOW"),
"format": jsii.String("yyyy-MM-dd"),
}),
},
})
Deprecated.
type S3TableStorage ¶
type S3TableStorage interface {
}
Where an `S3Table` stores its data.
The two paths are mutually exclusive: a managed bucket may specify its server-side encryption, while an existing bucket keeps its own encryption — so an encryption choice can never be paired with a bring-your-own bucket.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Storage: glue.S3TableStorage_ManagedBucket(glue.S3TableEncryption_S3Managed()),
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
Deprecated.
func S3TableStorage_FromBucket ¶
func S3TableStorage_FromBucket(bucket awss3.IBucket) S3TableStorage
Store the table's data in an existing bucket. CDK does not manage the bucket's encryption.
The bucket can be one you don't own, imported with `Bucket.fromBucketArn()` or `Bucket.fromBucketAttributes()`. If that bucket is KMS-encrypted, import it with `Bucket.fromBucketAttributes()` and supply the `encryptionKey` attribute. Otherwise, CDK has no reference to the key, which means that `S3Table.grantRead()`/`grantWrite()` will correctly grant S3 access but silently skip the KMS permissions on the key. As a consequence, at runtime, reads and writes will fail with access denied on the key. Deprecated.
func S3TableStorage_ManagedBucket ¶
func S3TableStorage_ManagedBucket(encryption S3TableEncryption) S3TableStorage
Store the table's data in a bucket created and managed by the table. Default: - S3-managed (SSE-S3) encryption.
Deprecated.
type ScalaSparkEtlJob ¶
type ScalaSparkEtlJob interface {
SparkJob
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The Spark UI logs location if Spark UI monitoring and debugging is enabled.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
SparkUILoggingLocation() *SparkUILoggingLocation
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Register the arguments this construct manages for a Spark job.
//
// These are owned by the construct
// (derived from typed props). Each key is declared via {@link setManagedArgument} whether or not
// the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`)
// cannot be silently re-enabled through `defaultArguments`.
// Deprecated.
NonExecutableCommonArguments(props *SparkJobProps)
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Register the arguments for extra {@link Code}-related properties.
// Deprecated.
SetupExtraCodeArguments(props *SparkExtraCodeProps)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Spark ETL Jobs class.
ETL jobs support pySpark and Scala languages, for which there are separate but similar constructors. ETL jobs default to the G1 worker type, but you can override this default with other supported worker type values (G1, G2, G4 and G8). ETL jobs defaults to Glue version 4.0, which you can override to 3.0. The following ETL features are enabled by default: --enable-metrics, --enable-continuous-cloudwatch-log. The Spark UI (--enable-spark-ui) is off by default; enable it by setting the `sparkUI` prop. You can find more details about version, worker type and other features in Glue's public documentation.
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/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
scalaSparkEtlJob := glue_alpha.NewScalaSparkEtlJob(this, jsii.String("MyScalaSparkEtlJob"), &ScalaSparkEtlJobProps{
ClassName: jsii.String("className"),
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
ExtraFiles: []Code{
code,
},
ExtraJars: []Code{
code,
},
ExtraJarsFirst: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
JobRunQueuingEnabled: jsii.Boolean(false),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
NotifyDelayAfter: cdk.Duration_Minutes(jsii.Number(30)),
SecurityConfiguration: securityConfiguration,
SparkUI: &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_*Minutes(jsii.Number(30)),
WorkerConfiguration: &WorkerConfiguration{
NumberOfWorkers: jsii.Number(123),
WorkerType: glue_alpha.WorkerType_STANDARD,
},
})
Deprecated.
func NewScalaSparkEtlJob ¶
func NewScalaSparkEtlJob(scope constructs.Construct, id *string, props *ScalaSparkEtlJobProps) ScalaSparkEtlJob
ScalaSparkEtlJob constructor. Deprecated.
type ScalaSparkEtlJobProps ¶
type ScalaSparkEtlJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated.
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated.
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Enables the Spark UI debugging and monitoring with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - Spark UI debugging and monitoring is disabled.
//
// Deprecated.
SparkUI *SparkUIProps `field:"optional" json:"sparkUI" yaml:"sparkUI"`
// The worker type and the number of workers allocated when a job runs.
// Default: - the job runs with the G_1X worker type and 10 workers.
//
// Deprecated.
WorkerConfiguration *WorkerConfiguration `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"`
// Class name (required for Scala scripts) Package and class name for the entry point of Glue job execution for Java scripts.
// Deprecated.
ClassName *string `field:"required" json:"className" yaml:"className"`
// Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra files specified.
//
// Deprecated.
ExtraFiles *[]Code `field:"optional" json:"extraFiles" yaml:"extraFiles"`
// Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.
// Default: - no extra jar files.
//
// Deprecated.
ExtraJars *[]Code `field:"optional" json:"extraJars" yaml:"extraJars"`
// Setting this value to true prioritizes the customer's extra JAR files in the classpath.
// See: `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: false - priority is not given to user-provided jars.
//
// Deprecated.
ExtraJarsFirst *bool `field:"optional" json:"extraJarsFirst" yaml:"extraJarsFirst"`
// Specifies whether job run queuing is enabled for the job runs for this job.
//
// A value of true means job run queuing is enabled for the job runs.
// If false or not populated, the job runs will not be considered for queueing.
// If this field does not match the value set in the job run, then the value from
// the job run field will be used. This property must be set to false for flex jobs.
// If this property is enabled, maxRetries must be set to zero.
// Default: - no job run queuing.
//
// Deprecated.
JobRunQueuingEnabled *bool `field:"optional" json:"jobRunQueuingEnabled" yaml:"jobRunQueuingEnabled"`
// Specifies configuration properties of a notification (optional).
//
// After a job run starts, the number of minutes to wait before sending a job run delay notification.
// Default: - undefined.
//
// Deprecated.
NotifyDelayAfter awscdk.Duration `field:"optional" json:"notifyDelayAfter" yaml:"notifyDelayAfter"`
}
Properties for creating a Scala Spark ETL job.
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/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
scalaSparkEtlJobProps := &ScalaSparkEtlJobProps{
ClassName: jsii.String("className"),
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
ExtraFiles: []Code{
code,
},
ExtraJars: []Code{
code,
},
ExtraJarsFirst: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
JobRunQueuingEnabled: jsii.Boolean(false),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
NotifyDelayAfter: cdk.Duration_Minutes(jsii.Number(30)),
SecurityConfiguration: securityConfiguration,
SparkUI: &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_*Minutes(jsii.Number(30)),
WorkerConfiguration: &WorkerConfiguration{
NumberOfWorkers: jsii.Number(123),
WorkerType: glue_alpha.WorkerType_STANDARD,
},
}
Deprecated.
type ScalaSparkFlexEtlJob ¶
type ScalaSparkFlexEtlJob interface {
SparkJob
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The Spark UI logs location if Spark UI monitoring and debugging is enabled.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
SparkUILoggingLocation() *SparkUILoggingLocation
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Register the arguments this construct manages for a Spark job.
//
// These are owned by the construct
// (derived from typed props). Each key is declared via {@link setManagedArgument} whether or not
// the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`)
// cannot be silently re-enabled through `defaultArguments`.
// Deprecated.
NonExecutableCommonArguments(props *SparkJobProps)
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Register the arguments for extra {@link Code}-related properties.
// Deprecated.
SetupExtraCodeArguments(props *SparkExtraCodeProps)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Scala Spark Flex ETL Jobs class.
Flex jobs support Python and Scala languages. The flexible execution class is appropriate for non-urgent jobs such as pre-production jobs, testing, and one-time data loads. Flexible job runs are supported for jobs using AWS Glue version 3.0 or later and `G_1X` or `G_2X` worker types but will default to the latest version of Glue (currently Glue 5.0).
Similar to ETL, we’ll enable these features: --enable-metrics, --enable-continuous-cloudwatch-log. The Spark UI (--enable-spark-ui) is off by default; enable it by setting the `sparkUI` prop.
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/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
scalaSparkFlexEtlJob := glue_alpha.NewScalaSparkFlexEtlJob(this, jsii.String("MyScalaSparkFlexEtlJob"), &ScalaSparkFlexEtlJobProps{
ClassName: jsii.String("className"),
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
ExtraFiles: []Code{
code,
},
ExtraJars: []Code{
code,
},
ExtraJarsFirst: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
NotifyDelayAfter: cdk.Duration_Minutes(jsii.Number(30)),
SecurityConfiguration: securityConfiguration,
SparkUI: &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_*Minutes(jsii.Number(30)),
WorkerConfiguration: &WorkerConfiguration{
NumberOfWorkers: jsii.Number(123),
WorkerType: glue_alpha.WorkerType_STANDARD,
},
})
Deprecated.
func NewScalaSparkFlexEtlJob ¶
func NewScalaSparkFlexEtlJob(scope constructs.Construct, id *string, props *ScalaSparkFlexEtlJobProps) ScalaSparkFlexEtlJob
ScalaSparkFlexEtlJob constructor. Deprecated.
type ScalaSparkFlexEtlJobProps ¶
type ScalaSparkFlexEtlJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated.
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated.
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Enables the Spark UI debugging and monitoring with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - Spark UI debugging and monitoring is disabled.
//
// Deprecated.
SparkUI *SparkUIProps `field:"optional" json:"sparkUI" yaml:"sparkUI"`
// The worker type and the number of workers allocated when a job runs.
// Default: - the job runs with the G_1X worker type and 10 workers.
//
// Deprecated.
WorkerConfiguration *WorkerConfiguration `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"`
// The fully qualified Scala class name that serves as the entry point for the job.
// See: `--class` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
ClassName *string `field:"required" json:"className" yaml:"className"`
// Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra files specified.
//
// Deprecated.
ExtraFiles *[]Code `field:"optional" json:"extraFiles" yaml:"extraFiles"`
// Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.
// Default: - no extra jar files.
//
// Deprecated.
ExtraJars *[]Code `field:"optional" json:"extraJars" yaml:"extraJars"`
// Setting this value to true prioritizes the customer's extra JAR files in the classpath.
// See: `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: false - priority is not given to user-provided jars.
//
// Deprecated.
ExtraJarsFirst *bool `field:"optional" json:"extraJarsFirst" yaml:"extraJarsFirst"`
// Specifies configuration properties of a notification (optional).
//
// After a job run starts, the number of minutes to wait before sending a job run delay notification.
// Default: - undefined.
//
// Deprecated.
NotifyDelayAfter awscdk.Duration `field:"optional" json:"notifyDelayAfter" yaml:"notifyDelayAfter"`
}
Properties for a `ScalaSparkFlexEtlJob`.
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/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
scalaSparkFlexEtlJobProps := &ScalaSparkFlexEtlJobProps{
ClassName: jsii.String("className"),
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
ExtraFiles: []Code{
code,
},
ExtraJars: []Code{
code,
},
ExtraJarsFirst: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
NotifyDelayAfter: cdk.Duration_Minutes(jsii.Number(30)),
SecurityConfiguration: securityConfiguration,
SparkUI: &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_*Minutes(jsii.Number(30)),
WorkerConfiguration: &WorkerConfiguration{
NumberOfWorkers: jsii.Number(123),
WorkerType: glue_alpha.WorkerType_STANDARD,
},
}
Deprecated.
type ScalaSparkStreamingJob ¶
type ScalaSparkStreamingJob interface {
SparkJob
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The Spark UI logs location if Spark UI monitoring and debugging is enabled.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
SparkUILoggingLocation() *SparkUILoggingLocation
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Register the arguments this construct manages for a Spark job.
//
// These are owned by the construct
// (derived from typed props). Each key is declared via {@link setManagedArgument} whether or not
// the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`)
// cannot be silently re-enabled through `defaultArguments`.
// Deprecated.
NonExecutableCommonArguments(props *SparkJobProps)
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Register the arguments for extra {@link Code}-related properties.
// Deprecated.
SetupExtraCodeArguments(props *SparkExtraCodeProps)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Scala Streaming Jobs class.
A Streaming job is similar to an ETL job, except that it performs ETL on data streams using the Apache Spark Structured Streaming framework. These jobs will default to use Python 3.9.
Similar to ETL jobs, streaming job supports Scala and Python languages. Similar to ETL, it supports G1 and G2 worker type and 2.0, 3.0 and 4.0 version. We’ll default to G1 worker and 4.0 version for streaming jobs which developers can override. We will enable --enable-metrics, --enable-continuous-cloudwatch-log. The Spark UI (--enable-spark-ui) is off by default; enable it by setting the `sparkUI` prop.
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/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
scalaSparkStreamingJob := glue_alpha.NewScalaSparkStreamingJob(this, jsii.String("MyScalaSparkStreamingJob"), &ScalaSparkStreamingJobProps{
ClassName: jsii.String("className"),
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
ExtraFiles: []Code{
code,
},
ExtraJars: []Code{
code,
},
ExtraJarsFirst: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
JobRunQueuingEnabled: jsii.Boolean(false),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
SecurityConfiguration: securityConfiguration,
SparkUI: &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
WorkerConfiguration: &WorkerConfiguration{
NumberOfWorkers: jsii.Number(123),
WorkerType: glue_alpha.WorkerType_STANDARD,
},
})
Deprecated.
func NewScalaSparkStreamingJob ¶
func NewScalaSparkStreamingJob(scope constructs.Construct, id *string, props *ScalaSparkStreamingJobProps) ScalaSparkStreamingJob
ScalaSparkStreamingJob constructor. Deprecated.
type ScalaSparkStreamingJobProps ¶
type ScalaSparkStreamingJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated.
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated.
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Enables the Spark UI debugging and monitoring with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - Spark UI debugging and monitoring is disabled.
//
// Deprecated.
SparkUI *SparkUIProps `field:"optional" json:"sparkUI" yaml:"sparkUI"`
// The worker type and the number of workers allocated when a job runs.
// Default: - the job runs with the G_1X worker type and 10 workers.
//
// Deprecated.
WorkerConfiguration *WorkerConfiguration `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"`
// Class name (required for Scala scripts) Package and class name for the entry point of Glue job execution for Java scripts.
// Deprecated.
ClassName *string `field:"required" json:"className" yaml:"className"`
// Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra files specified.
//
// Deprecated.
ExtraFiles *[]Code `field:"optional" json:"extraFiles" yaml:"extraFiles"`
// Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.
// Default: - no extra jar files.
//
// Deprecated.
ExtraJars *[]Code `field:"optional" json:"extraJars" yaml:"extraJars"`
// Setting this value to true prioritizes the customer's extra JAR files in the classpath.
// See: `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: false - priority is not given to user-provided jars.
//
// Deprecated.
ExtraJarsFirst *bool `field:"optional" json:"extraJarsFirst" yaml:"extraJarsFirst"`
// Specifies whether job run queuing is enabled for the job runs for this job.
//
// A value of true means job run queuing is enabled for the job runs.
// If false or not populated, the job runs will not be considered for queueing.
// If this field does not match the value set in the job run, then the value from
// the job run field will be used. This property must be set to false for flex jobs.
// If this property is enabled, maxRetries must be set to zero.
// Default: - no job run queuing.
//
// Deprecated.
JobRunQueuingEnabled *bool `field:"optional" json:"jobRunQueuingEnabled" yaml:"jobRunQueuingEnabled"`
}
Properties for creating a Scala Spark ETL job.
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/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
scalaSparkStreamingJobProps := &ScalaSparkStreamingJobProps{
ClassName: jsii.String("className"),
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
ExtraFiles: []Code{
code,
},
ExtraJars: []Code{
code,
},
ExtraJarsFirst: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
JobRunQueuingEnabled: jsii.Boolean(false),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
SecurityConfiguration: securityConfiguration,
SparkUI: &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
WorkerConfiguration: &WorkerConfiguration{
NumberOfWorkers: jsii.Number(123),
WorkerType: glue_alpha.WorkerType_STANDARD,
},
}
Deprecated.
type ScheduledTriggerOptions ¶
type ScheduledTriggerOptions struct {
// The actions initiated by this trigger.
// Deprecated.
Actions *[]Action `field:"required" json:"actions" yaml:"actions"`
// A description for the trigger.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A name for the trigger.
// Default: - no name is provided.
//
// Deprecated.
Name *string `field:"optional" json:"name" yaml:"name"`
// Whether to start the trigger on creation or not.
// Default: - false.
//
// Deprecated.
StartOnCreation *bool `field:"optional" json:"startOnCreation" yaml:"startOnCreation"`
// The schedule on which this trigger fires.
//
// Build one with {@link TriggerSchedule.daily}, {@link TriggerSchedule.weekly},
// {@link TriggerSchedule.cron}, or {@link TriggerSchedule.expression}.
// Deprecated.
Schedule TriggerSchedule `field:"required" json:"schedule" yaml:"schedule"`
}
Properties for configuring a scheduled Glue Trigger.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddScheduledTrigger(jsii.String("WeeklyTrigger"), &ScheduledTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
Schedule: glue.TriggerSchedule_Weekly(),
})
Deprecated.
type Schema ¶
type Schema interface {
}
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("NOW-3YEARS"),
"max": jsii.String("NOW"),
"format": jsii.String("yyyy-MM-dd"),
}),
},
})
See: https://docs.aws.amazon.com/athena/latest/ug/data-types.html
Deprecated.
type SecurityConfiguration ¶
type SecurityConfiguration interface {
awscdk.Resource
ISecurityConfiguration
// The KMS key used in CloudWatch encryption if it requires a kms key.
// Deprecated.
CloudWatchEncryptionKey() interfacesawskms.IKeyRef
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The KMS key used in job bookmarks encryption if it requires a kms key.
// Deprecated.
JobBookmarksEncryptionKey() interfacesawskms.IKeyRef
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The KMS key used in S3 encryption if it requires a kms key.
// Deprecated.
S3EncryptionKey() interfacesawskms.IKeyRef
// The name of the security configuration.
// Deprecated.
SecurityConfigurationName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A security configuration is a set of security properties that can be used by AWS Glue to encrypt data at rest.
The following scenarios show some of the ways that you can use a security configuration. - Attach a security configuration to an AWS Glue crawler to write encrypted Amazon CloudWatch Logs. - Attach a security configuration to an extract, transform, and load (ETL) job to write encrypted Amazon Simple Storage Service (Amazon S3) targets and encrypted CloudWatch Logs. - Attach a security configuration to an ETL job to write its jobs bookmarks as encrypted Amazon S3 data. - Attach a security configuration to a development endpoint to write encrypted Amazon S3 targets.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkEtlJob(stack, jsii.String("PySparkETLJob"), &PySparkEtlJobProps{
JobName: jsii.String("PySparkETLJobCustomName"),
Description: jsii.String("This is a description"),
Role: Role,
Script: Script,
GlueVersion: glue.GlueVersion_V5_1,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
WorkerConfiguration: &WorkerConfiguration{
WorkerType: glue.WorkerType_G_2X,
NumberOfWorkers: jsii.Number(2),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
Deprecated.
func NewSecurityConfiguration ¶
func NewSecurityConfiguration(scope constructs.Construct, id *string, props *SecurityConfigurationProps) SecurityConfiguration
Deprecated.
type SecurityConfigurationProps ¶
type SecurityConfigurationProps struct {
// The encryption configuration for Amazon CloudWatch Logs.
// Default: no cloudwatch logs encryption.
//
// Deprecated.
CloudWatchEncryption CloudWatchEncryption `field:"optional" json:"cloudWatchEncryption" yaml:"cloudWatchEncryption"`
// The encryption configuration for Glue Job Bookmarks.
// Default: no job bookmarks encryption.
//
// Deprecated.
JobBookmarksEncryption JobBookmarksEncryption `field:"optional" json:"jobBookmarksEncryption" yaml:"jobBookmarksEncryption"`
// Policy to apply when the security configuration is removed from the stack.
// Default: - resource will be destroyed.
//
// Deprecated.
RemovalPolicy awscdk.RemovalPolicy `field:"optional" json:"removalPolicy" yaml:"removalPolicy"`
// The encryption configuration for Amazon Simple Storage Service (Amazon S3) data.
// Default: no s3 encryption.
//
// Deprecated.
S3Encryption S3Encryption `field:"optional" json:"s3Encryption" yaml:"s3Encryption"`
// The name of the security configuration.
// Default: - generated by CDK.
//
// Deprecated.
SecurityConfigurationName *string `field:"optional" json:"securityConfigurationName" yaml:"securityConfigurationName"`
}
Constructions properties of `SecurityConfiguration`.
Example:
glue.NewSecurityConfiguration(this, jsii.String("MySecurityConfiguration"), &SecurityConfigurationProps{
CloudWatchEncryption: glue.CloudWatchEncryption_Kms(),
JobBookmarksEncryption: glue.JobBookmarksEncryption_ClientSideKms(),
S3Encryption: glue.S3Encryption_Kms(),
})
Deprecated.
type SerializationLibrary ¶
type SerializationLibrary interface {
// Deprecated.
ClassName() *string
}
Serialization library to use when serializing/deserializing (SerDe) table records.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha" serializationLibrary := glue_alpha.SerializationLibrary_AVRO()
See: https://cwiki.apache.org/confluence/display/Hive/SerDe
Deprecated.
func NewSerializationLibrary ¶
func NewSerializationLibrary(className *string) SerializationLibrary
Deprecated.
func SerializationLibrary_AVRO ¶
func SerializationLibrary_AVRO() SerializationLibrary
func SerializationLibrary_CLOUDTRAIL ¶
func SerializationLibrary_CLOUDTRAIL() SerializationLibrary
func SerializationLibrary_GROK ¶
func SerializationLibrary_GROK() SerializationLibrary
func SerializationLibrary_HIVE_JSON ¶
func SerializationLibrary_HIVE_JSON() SerializationLibrary
func SerializationLibrary_LAZY_SIMPLE ¶
func SerializationLibrary_LAZY_SIMPLE() SerializationLibrary
func SerializationLibrary_OPENX_JSON ¶
func SerializationLibrary_OPENX_JSON() SerializationLibrary
func SerializationLibrary_OPEN_CSV ¶
func SerializationLibrary_OPEN_CSV() SerializationLibrary
func SerializationLibrary_ORC ¶
func SerializationLibrary_ORC() SerializationLibrary
func SerializationLibrary_PARQUET ¶
func SerializationLibrary_PARQUET() SerializationLibrary
func SerializationLibrary_REGEXP ¶
func SerializationLibrary_REGEXP() SerializationLibrary
type SparkExtraCodeProps ¶
type SparkExtraCodeProps struct {
// Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - no extra files specified.
//
// Deprecated.
ExtraFiles *[]Code `field:"optional" json:"extraFiles" yaml:"extraFiles"`
// Extra Jars S3 URL (optional) S3 URL where additional jar dependencies are located.
// Default: - no extra jar files.
//
// Deprecated.
ExtraJars *[]Code `field:"optional" json:"extraJars" yaml:"extraJars"`
// Setting this value to true prioritizes the customer's extra JAR files in the classpath.
// See: `--user-jars-first` in https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: false - priority is not given to user-provided jars.
//
// Deprecated.
ExtraJarsFirst *bool `field:"optional" json:"extraJarsFirst" yaml:"extraJarsFirst"`
// Extra Python Files S3 URL (optional) S3 URL where additional python dependencies are located.
// Default: - no extra files.
//
// Deprecated.
ExtraPythonFiles *[]Code `field:"optional" json:"extraPythonFiles" yaml:"extraPythonFiles"`
}
Code props for different {@link Code} assets used by different types of Spark jobs.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var code Code
sparkExtraCodeProps := &SparkExtraCodeProps{
ExtraFiles: []Code{
code,
},
ExtraJars: []Code{
code,
},
ExtraJarsFirst: jsii.Boolean(false),
ExtraPythonFiles: []Code{
code,
},
}
Deprecated.
type SparkJob ¶
type SparkJob interface {
Job
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The principal to grant permissions to.
// Deprecated.
GrantPrincipal() awsiam.IPrincipal
// The ARN of the job.
// Deprecated.
JobArn() *string
// The name of the job.
// Deprecated.
JobName() *string
// A reference to this Job resource, for use with the generated L1 ref interface.
// Deprecated.
JobRef() *interfacesawsglue.JobReference
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The IAM role Glue assumes to run this job.
// Deprecated.
Role() awsiam.IRole
// The Spark UI logs location if Spark UI monitoring and debugging is enabled.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
SparkUILoggingLocation() *SparkUILoggingLocation
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Returns the job arn.
// Deprecated.
BuildJobArn(scope constructs.Construct, jobName *string) *string
// Deprecated.
CodeS3ObjectUrl(code Code) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Merge the customer-supplied `defaultArguments` with the arguments this construct manages.
//
// The construct owns every argument it emits — whether the value comes from a dedicated typed
// prop (e.g. `continuousLogging`, `enableMetrics`, `sparkUI`) or from the job class itself
// (e.g. `--job-language`). Those arguments, plus the arguments Glue reserves for its own use,
// MUST be configured through their dedicated props rather than the untyped `defaultArguments`
// map, so there is exactly one way to express each intent. Passing such a key through
// `defaultArguments` therefore throws instead of silently winning or being silently dropped.
//
// A managed key whose supplied value is identical to the construct's value is not contradictory,
// so it is allowed rather than rejected (auto-correcting config is preferred over errors).
// Glue-reserved keys are never emitted by the construct, so there is no value to reconcile and
// they always throw.
//
// The reserved set is `_managedArgumentKeys` — every key the construct declared through
// {@link setManagedArgument}, whether or not a value was emitted for it. It is deliberately NOT
// derived from the keys that carry a value: a typed prop that turns a feature *off* (e.g.
// `enableMetrics: false`) emits no value but still reserves its key, so `defaultArguments` cannot
// silently re-enable it.
//
// Conflict detection relies on string equality of the argument keys, which cannot see through
// unresolved tokens (e.g. a key produced by `CfnJson` that only resolves at deploy time). If a
// key is a token, the check is skipped for that key and a synthesis-time warning is emitted, so
// the (rare) case where a token key resolves to a managed argument at deploy time — in which the
// construct-managed value would silently take precedence — is surfaced rather than hidden.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Deprecated.
MergeDefaultArguments(defaultArguments *map[string]*string) *map[string]*string
// Create a CloudWatch metric.
// See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
//
// Deprecated.
Metric(metricName *string, type_ MetricType, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job failure.
//
// This metric is based on the Rule returned by no-args onFailure() call.
// Deprecated.
MetricFailure(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job success.
//
// This metric is based on the Rule returned by no-args onSuccess() call.
// Deprecated.
MetricSuccess(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Return a CloudWatch Metric indicating job timeout.
//
// This metric is based on the Rule returned by no-args onTimeout() call.
// Deprecated.
MetricTimeout(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Register the arguments this construct manages for a Spark job.
//
// These are owned by the construct
// (derived from typed props). Each key is declared via {@link setManagedArgument} whether or not
// the current configuration emits a value, so a disabled feature (e.g. `enableMetrics: false`)
// cannot be silently re-enabled through `defaultArguments`.
// Deprecated.
NonExecutableCommonArguments(props *SparkJobProps)
// Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
//
// Deprecated.
OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching FAILED state.
// Deprecated.
OnFailure(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule for the transition into the input jobState.
// Deprecated.
OnStateChange(id *string, jobState JobState, options *awsevents.OnEventOptions) awsevents.Rule
// Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
// Deprecated.
OnSuccess(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Return a CloudWatch Event Rule matching TIMEOUT state.
// Deprecated.
OnTimeout(id *string, options *awsevents.OnEventOptions) awsevents.Rule
// Declare `key` as construct-managed and, when `value` is defined, emit it into the job's arguments.
//
// This is the single sink for every argument a job construct derives from its typed props (or
// from the job class itself). Call it once per managed key, passing `undefined` as the value when
// the corresponding feature is turned off or unset — the key is still reserved from
// `defaultArguments` either way, so a disabled feature cannot be re-enabled through the escape
// hatch. There is deliberately no other way for a subclass to emit a managed argument, so the
// reserved set can never drift from what is emitted.
// Deprecated.
SetManagedArgument(key *string, value *string)
// Register (and, when enabled, emit) the continuous-logging arguments this job manages.
//
// All five continuous-logging keys are reserved on every job type regardless of configuration:
// they are always registered through {@link setManagedArgument}, and carry a value only when
// logging is enabled. This keeps `defaultArguments` from re-enabling logging a user turned off.
// Deprecated.
SetupContinuousLogging(role awsiam.IRole, props *ContinuousLoggingProps, securityConfiguration ISecurityConfiguration)
// Register the arguments for extra {@link Code}-related properties.
// Deprecated.
SetupExtraCodeArguments(props *SparkExtraCodeProps)
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Base class for different types of Spark Jobs.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var role Role
sparkJob := glue_alpha.SparkJob_FromJobAttributes(this, jsii.String("MySparkJob"), &JobAttributes{
JobName: jsii.String("jobName"),
// the properties below are optional
Role: role,
})
Deprecated.
type SparkJobProps ¶
type SparkJobProps struct {
// IAM Role (required) IAM Role to use for Glue job execution Must be specified by the developer because the L2 doesn't have visibility into the actions the script(s) takes during the job execution The role must trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
// See: https://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html
//
// Deprecated.
Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
// Script Code Location (required) Script to run when the Glue job executes.
//
// Can be uploaded
// from the local directory structure using fromAsset
// or referenced via S3 location using fromBucket.
// Deprecated.
Script Code `field:"required" json:"script" yaml:"script"`
// Connections (optional) List of connections to use for this Glue job Connections are used to connect to other AWS Service or resources within a VPC.
// Default: [] - no connections are added to the job.
//
// Deprecated.
Connections *[]IConnection `field:"optional" json:"connections" yaml:"connections"`
// Enables continuous logging with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - continuous logging is enabled.
//
// Deprecated.
ContinuousLogging *ContinuousLoggingProps `field:"optional" json:"continuousLogging" yaml:"continuousLogging"`
// Default Arguments (optional) The default arguments for every run of this Glue job, specified as name-value pairs.
//
// This map is the escape hatch for Glue job arguments that this construct does not model. It
// MUST NOT be used to set arguments that already have a dedicated prop — configure those through
// the corresponding prop instead (`continuousLogging`, `enableMetrics`,
// `enableObservabilityMetrics`, `sparkUI`, `className`, `extraJars`, `extraJarsFirst`,
// `extraPythonFiles`, `extraFiles`). Passing a construct-managed argument (e.g.
// `--enable-continuous-cloudwatch-log`, `--enable-metrics`, `--enable-spark-ui`,
// `--job-language`) or a Glue-reserved argument (`--debug`, `--mode`, `--JOB_NAME`, `--endpoint`)
// here throws at synthesis time, so there is exactly one way to express each intent.
//
// Also note that these are emitted verbatim into the CloudFormation template, so avoid
// placing secrets here in plaintext. Pass secrets to the job at runtime
// through AWS Secrets Manager instead. A synthesis-time warning is emitted
// when an argument key looks like a credential and holds a plaintext literal.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
// for a list of reserved parameters.
//
// Default: - no arguments.
//
// Deprecated.
DefaultArguments *map[string]*string `field:"optional" json:"defaultArguments" yaml:"defaultArguments"`
// Description (optional) Developer-specified description of the Glue job.
// Default: - no value.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Glue Version The version of Glue to use to execute this job.
// Default: - determined by the job type: 4.0 for ETL and Streaming, 5.0 for Flex, 3.0 for Python Shell
//
// Deprecated.
GlueVersion GlueVersion `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// Name of the Glue job (optional) Developer-specified name of the Glue job.
// Default: - a name is automatically generated.
//
// Deprecated.
JobName *string `field:"optional" json:"jobName" yaml:"jobName"`
// Max Concurrent Runs (optional) The maximum number of runs this Glue job can concurrently run.
//
// An error is returned when this threshold is reached. The maximum value
// you can specify is controlled by a service limit.
// Default: 1.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Max Retries (optional) Maximum number of retry attempts Glue performs if the job fails.
// Default: 0.
//
// Deprecated.
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// Security Configuration (optional) Defines the encryption options for the Glue job.
// Default: - no security configuration.
//
// Deprecated.
SecurityConfiguration ISecurityConfiguration `field:"optional" json:"securityConfiguration" yaml:"securityConfiguration"`
// Tags (optional) A list of key:value pairs of tags to apply to this Glue job resources.
// Default: {} - no tags.
//
// Deprecated.
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
// Timeout (optional) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
//
// Specified in minutes.
// Default: 2880 (2 days for non-streaming).
//
// Deprecated.
Timeout awscdk.Duration `field:"optional" json:"timeout" yaml:"timeout"`
// Enable profiling metrics for the Glue job.
//
// When enabled, adds '--enable-metrics' to job arguments.
// Default: true.
//
// Deprecated.
EnableMetrics *bool `field:"optional" json:"enableMetrics" yaml:"enableMetrics"`
// Enable observability metrics for the Glue job.
//
// When enabled, adds '--enable-observability-metrics': 'true' to job arguments.
// Default: true.
//
// Deprecated.
EnableObservabilityMetrics *bool `field:"optional" json:"enableObservabilityMetrics" yaml:"enableObservabilityMetrics"`
// Enables the Spark UI debugging and monitoring with the specified props.
// See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
//
// Default: - Spark UI debugging and monitoring is disabled.
//
// Deprecated.
SparkUI *SparkUIProps `field:"optional" json:"sparkUI" yaml:"sparkUI"`
// The worker type and the number of workers allocated when a job runs.
// Default: - the job runs with the G_1X worker type and 10 workers.
//
// Deprecated.
WorkerConfiguration *WorkerConfiguration `field:"optional" json:"workerConfiguration" yaml:"workerConfiguration"`
}
Common properties for different types of Spark jobs.
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/awscdkgluealpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
var code Code
var connection Connection
var logGroup LogGroup
var role Role
var securityConfiguration SecurityConfiguration
sparkJobProps := &SparkJobProps{
Role: role,
Script: code,
// the properties below are optional
Connections: []IConnection{
connection,
},
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
// the properties below are optional
ConversionPattern: jsii.String("conversionPattern"),
LogGroup: logGroup,
LogStreamPrefix: jsii.String("logStreamPrefix"),
Quiet: jsii.Boolean(false),
},
DefaultArguments: map[string]*string{
"defaultArgumentsKey": jsii.String("defaultArguments"),
},
Description: jsii.String("description"),
EnableMetrics: jsii.Boolean(false),
EnableObservabilityMetrics: jsii.Boolean(false),
GlueVersion: glue_alpha.GlueVersion_V0_9,
JobName: jsii.String("jobName"),
MaxConcurrentRuns: jsii.Number(123),
MaxRetries: jsii.Number(123),
SecurityConfiguration: securityConfiguration,
SparkUI: &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
Timeout: cdk.Duration_Minutes(jsii.Number(30)),
WorkerConfiguration: &WorkerConfiguration{
NumberOfWorkers: jsii.Number(123),
WorkerType: glue_alpha.WorkerType_STANDARD,
},
}
Deprecated.
type SparkUILoggingLocation ¶
type SparkUILoggingLocation struct {
// The bucket where the Glue job stores the logs.
// Deprecated.
Bucket awss3.IBucket `field:"required" json:"bucket" yaml:"bucket"`
// The path inside the bucket (objects prefix) where the Glue job stores the logs.
// Default: '/' - the logs will be written at the root of the bucket.
//
// Deprecated.
Prefix *string `field:"optional" json:"prefix" yaml:"prefix"`
}
The Spark UI logging location.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
sparkUILoggingLocation := &SparkUILoggingLocation{
Bucket: bucket,
// the properties below are optional
Prefix: jsii.String("prefix"),
}
See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
Deprecated.
type SparkUIProps ¶
type SparkUIProps struct {
// The bucket where the Glue job stores the logs.
// Default: a new bucket will be created.
//
// Deprecated.
Bucket awss3.IBucket `field:"optional" json:"bucket" yaml:"bucket"`
// The path inside the bucket (objects prefix) where the Glue job stores the logs.
//
// Use format `'/foo/bar'`.
// Default: - the logs will be written at the root of the bucket.
//
// Deprecated.
Prefix *string `field:"optional" json:"prefix" yaml:"prefix"`
}
Properties for enabling Spark UI monitoring feature for Spark-based Glue jobs.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
import "github.com/aws/aws-cdk-go/awscdk"
var bucket Bucket
sparkUIProps := &SparkUIProps{
Bucket: bucket,
Prefix: jsii.String("prefix"),
}
See: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html
Deprecated.
type StartableTriggerOptions ¶
type StartableTriggerOptions struct {
// The actions initiated by this trigger.
// Deprecated.
Actions *[]Action `field:"required" json:"actions" yaml:"actions"`
// A description for the trigger.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A name for the trigger.
// Default: - no name is provided.
//
// Deprecated.
Name *string `field:"optional" json:"name" yaml:"name"`
// Whether to start the trigger on creation or not.
// Default: - false.
//
// Deprecated.
StartOnCreation *bool `field:"optional" json:"startOnCreation" yaml:"startOnCreation"`
}
Base options for triggers that can be started when they are created.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var action Action
startableTriggerOptions := &StartableTriggerOptions{
Actions: []Action{
action,
},
// the properties below are optional
Description: jsii.String("description"),
Name: jsii.String("name"),
StartOnCreation: jsii.Boolean(false),
}
Deprecated.
type StorageParameter ¶
A storage parameter. The list of storage parameters available is not exhaustive and other keys may be used.
If you would like to specify a storage parameter that is not available as a static member of this class, use the `StorageParameter.custom` method.
The list of storage parameters currently known within the CDK is listed.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
StorageParameters: []StorageParameter{
glue.StorageParameter_SkipHeaderLineCount(jsii.Number(1)),
glue.StorageParameter_CompressionType(glue.CompressionType_GZIP),
glue.StorageParameter_Custom(jsii.String("separatorChar"), jsii.String(",")),
},
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_
Deprecated.
func NewStorageParameter ¶
func NewStorageParameter(key *string, value *string) StorageParameter
Deprecated.
func StorageParameter_ColumnCountMismatchHandling ¶
func StorageParameter_ColumnCountMismatchHandling(value ColumnCountMismatchHandlingAction) StorageParameter
Identifies if the file contains less or more values for a row than the number of columns specified in the external table definition.
This property is only available for an uncompressed text file format. Deprecated.
func StorageParameter_CompressionType ¶
func StorageParameter_CompressionType(value CompressionType) StorageParameter
The type of compression used on the table, when the file name does not contain an extension.
This value overrides the compression type specified through the extension. Deprecated.
func StorageParameter_Custom ¶
func StorageParameter_Custom(key *string, value *string) StorageParameter
A custom storage parameter. Deprecated.
func StorageParameter_DataCleansingEnabled ¶
func StorageParameter_DataCleansingEnabled(value *bool) StorageParameter
Determines whether data handling is on for the table. Deprecated.
func StorageParameter_InvalidCharHandling ¶
func StorageParameter_InvalidCharHandling(value InvalidCharHandlingAction) StorageParameter
Specifies the action to perform when query results contain invalid UTF-8 character values. Deprecated.
func StorageParameter_NumRows ¶
func StorageParameter_NumRows(value *float64) StorageParameter
A property that sets the numRows value for the table definition.
To explicitly update an external table's statistics, set the numRows property to indicate the size of the table. Amazon Redshift doesn't analyze external tables to generate the table statistics that the query optimizer uses to generate a query plan. If table statistics aren't set for an external table, Amazon Redshift generates a query execution plan based on an assumption that external tables are the larger tables and local tables are the smaller tables. Deprecated.
func StorageParameter_NumericOverflowHandling ¶
func StorageParameter_NumericOverflowHandling(value NumericOverflowHandlingAction) StorageParameter
Specifies the action to perform when ORC data contains an integer (for example, BIGINT or int64) that is larger than the column definition (for example, SMALLINT or int16). Deprecated.
func StorageParameter_OrcSchemaResolution ¶
func StorageParameter_OrcSchemaResolution(value OrcColumnMappingType) StorageParameter
A property that sets the column mapping type for tables that use ORC data format.
This property is ignored for other data formats. If this property is omitted, columns are mapped by `OrcColumnMappingType.NAME` by default. Default: OrcColumnMappingType.NAME
Deprecated.
func StorageParameter_ReplacementChar ¶
func StorageParameter_ReplacementChar(value *string) StorageParameter
Specifies the replacement character to use when you set `INVALID_CHAR_HANDLING` to `REPLACE`. Deprecated.
func StorageParameter_SerializationNullFormat ¶
func StorageParameter_SerializationNullFormat(value *string) StorageParameter
A property that sets number of rows to skip at the beginning of each source file. Deprecated.
func StorageParameter_SkipHeaderLineCount ¶
func StorageParameter_SkipHeaderLineCount(value *float64) StorageParameter
The number of rows to skip at the top of a CSV file when the table is being created. Deprecated.
func StorageParameter_SurplusBytesHandling ¶
func StorageParameter_SurplusBytesHandling(value SurplusBytesHandlingAction) StorageParameter
Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARBYTE data.
By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column. Deprecated.
func StorageParameter_SurplusCharHandling ¶
func StorageParameter_SurplusCharHandling(value SurplusCharHandlingAction) StorageParameter
Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARCHAR, CHAR, or string data.
By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column. Deprecated.
func StorageParameter_WriteKmsKeyId ¶
func StorageParameter_WriteKmsKeyId(key interfacesawskms.IKeyRef) StorageParameter
Enables server-side encryption (SSE-KMS) with the given AWS KMS key on the files Redshift Spectrum writes for this table (via `CREATE EXTERNAL TABLE AS` or `INSERT`).
Redshift Spectrum accepts either the key's ARN or its bare key ID for the `write.kms.key.id` property, and encrypts the written objects with that key; this renders the ARN. To use the S3 bucket's default KMS key instead, set the literal value `auto` via `StorageParameter.custom('write.kms.key.id', 'auto')` — this typed factory cannot express `auto`. See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html
Deprecated.
func StorageParameter_WriteMaxFileSizeMb ¶
func StorageParameter_WriteMaxFileSizeMb(value *float64) StorageParameter
A property that sets the maximum size (in MB) of each file written to Amazon S3 by CREATE EXTERNAL TABLE AS.
The size must be a valid integer between 5 and 6200. The default maximum file size is 6,200 MB. This table property also applies to any subsequent INSERT statement into the same external table. Deprecated.
func StorageParameter_WriteParallel ¶
func StorageParameter_WriteParallel(value WriteParallel) StorageParameter
A property that sets whether CREATE EXTERNAL TABLE AS should write data in parallel.
When 'write.parallel' is set to off, CREATE EXTERNAL TABLE AS writes to one or more data files serially onto Amazon S3. This table property also applies to any subsequent INSERT statement into the same external table. Default: WriteParallel.ON
Deprecated.
type StorageParameters ¶
type StorageParameters string
The storage parameter keys that are currently known, this list is not exhaustive and other keys may be used.
Example:
var glueDatabase IDatabase
table := glue.NewS3Table(this, jsii.String("Table"), &S3TableProps{
StorageParameters: []StorageParameter{
glue.StorageParameter_SkipHeaderLineCount(jsii.Number(1)),
glue.StorageParameter_CompressionType(glue.CompressionType_GZIP),
glue.StorageParameter_Custom(jsii.String("foo"), jsii.String("bar")),
glue.StorageParameter_*Custom(jsii.String("separatorChar"), jsii.String(",")),
glue.StorageParameter_*Custom(glue.StorageParameters_WRITE_PARALLEL, jsii.String("off")),
},
// ...
Database: glueDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_CSV(),
})
Deprecated.
const ( // The number of rows to skip at the top of a CSV file when the table is being created. // Deprecated. StorageParameters_SKIP_HEADER_LINE_COUNT StorageParameters = "SKIP_HEADER_LINE_COUNT" // Determines whether data handling is on for the table. // Deprecated. StorageParameters_DATA_CLEANSING_ENABLED StorageParameters = "DATA_CLEANSING_ENABLED" // The type of compression used on the table, when the file name does not contain an extension. // // This value overrides the compression type specified through the extension. // Deprecated. StorageParameters_COMPRESSION_TYPE StorageParameters = "COMPRESSION_TYPE" // Specifies the action to perform when query results contain invalid UTF-8 character values. // Deprecated. StorageParameters_INVALID_CHAR_HANDLING StorageParameters = "INVALID_CHAR_HANDLING" // Specifies the replacement character to use when you set `INVALID_CHAR_HANDLING` to `REPLACE`. // Deprecated. StorageParameters_REPLACEMENT_CHAR StorageParameters = "REPLACEMENT_CHAR" // Specifies the action to perform when ORC data contains an integer (for example, BIGINT or int64) that is larger than the column definition (for example, SMALLINT or int16). // Deprecated. StorageParameters_NUMERIC_OVERFLOW_HANDLING StorageParameters = "NUMERIC_OVERFLOW_HANDLING" // Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARBYTE data. // // By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column. // Deprecated. StorageParameters_SURPLUS_BYTES_HANDLING StorageParameters = "SURPLUS_BYTES_HANDLING" // Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARCHAR, CHAR, or string data. // // By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column. // Deprecated. StorageParameters_SURPLUS_CHAR_HANDLING StorageParameters = "SURPLUS_CHAR_HANDLING" // Identifies if the file contains less or more values for a row than the number of columns specified in the external table definition. // // This property is only available for an uncompressed text file format. // Deprecated. StorageParameters_COLUMN_COUNT_MISMATCH_HANDLING StorageParameters = "COLUMN_COUNT_MISMATCH_HANDLING" // A property that sets the numRows value for the table definition. // // To explicitly update an external table's statistics, set the numRows property to indicate the size of the table. Amazon Redshift doesn't analyze external tables to generate the table statistics that the query optimizer uses to generate a query plan. If table statistics aren't set for an external table, Amazon Redshift generates a query execution plan based on an assumption that external tables are the larger tables and local tables are the smaller tables. // Deprecated. StorageParameters_NUM_ROWS StorageParameters = "NUM_ROWS" // A property that sets number of rows to skip at the beginning of each source file. // Deprecated. StorageParameters_SERIALIZATION_NULL_FORMAT StorageParameters = "SERIALIZATION_NULL_FORMAT" // A property that sets the column mapping type for tables that use ORC data format. // // This property is ignored for other data formats. // Deprecated. StorageParameters_ORC_SCHEMA_RESOLUTION StorageParameters = "ORC_SCHEMA_RESOLUTION" // A property that sets whether CREATE EXTERNAL TABLE AS should write data in parallel. // // When 'write.parallel' is set to off, CREATE EXTERNAL TABLE AS writes to one or more data files serially onto Amazon S3. This table property also applies to any subsequent INSERT statement into the same external table. // Deprecated. StorageParameters_WRITE_PARALLEL StorageParameters = "WRITE_PARALLEL" // A property that sets the maximum size (in MB) of each file written to Amazon S3 by CREATE EXTERNAL TABLE AS. // // The size must be a valid integer between 5 and 6200. The default maximum file size is 6,200 MB. This table property also applies to any subsequent INSERT statement into the same external table. // Deprecated. StorageParameters_WRITE_MAX_FILESIZE_MB StorageParameters = "WRITE_MAX_FILESIZE_MB" // You can specify an AWS Key Management Service key to enable Server–Side Encryption (SSE) for Amazon S3 objects. // Deprecated. StorageParameters_WRITE_KMS_KEY_ID StorageParameters = "WRITE_KMS_KEY_ID" )
type SurplusBytesHandlingAction ¶
type SurplusBytesHandlingAction string
Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARBYTE data.
By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column. See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"surplus_bytes_handling"_
Deprecated.
const ( // Replaces data that exceeds the column width with null. // Deprecated. SurplusBytesHandlingAction_SET_TO_NULL SurplusBytesHandlingAction = "SET_TO_NULL" // Doesn't perform surplus byte handling. // Deprecated. SurplusBytesHandlingAction_DISABLED SurplusBytesHandlingAction = "DISABLED" // Cancels queries that return data exceeding the column width. // Deprecated. SurplusBytesHandlingAction_FAIL SurplusBytesHandlingAction = "FAIL" // Drop all rows that contain data exceeding column width. // Deprecated. SurplusBytesHandlingAction_DROP_ROW SurplusBytesHandlingAction = "DROP_ROW" // Removes the characters that exceed the maximum number of characters defined for the column. // Deprecated. SurplusBytesHandlingAction_TRUNCATE SurplusBytesHandlingAction = "TRUNCATE" )
type SurplusCharHandlingAction ¶
type SurplusCharHandlingAction string
Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARCHAR, CHAR, or string data.
By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column. See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"surplus_char_handling"_
Deprecated.
const ( // Replaces data that exceeds the column width with null. // Deprecated. SurplusCharHandlingAction_SET_TO_NULL SurplusCharHandlingAction = "SET_TO_NULL" // Doesn't perform surplus character handling. // Deprecated. SurplusCharHandlingAction_DISABLED SurplusCharHandlingAction = "DISABLED" // Cancels queries that return data exceeding the column width. // Deprecated. SurplusCharHandlingAction_FAIL SurplusCharHandlingAction = "FAIL" // Replaces each value in the row with null. // Deprecated. SurplusCharHandlingAction_DROP_ROW SurplusCharHandlingAction = "DROP_ROW" // Removes the characters that exceed the maximum number of characters defined for the column. // Deprecated. SurplusCharHandlingAction_TRUNCATE SurplusCharHandlingAction = "TRUNCATE" )
type TableAttributes ¶
type TableAttributes struct {
// Deprecated.
TableArn *string `field:"required" json:"tableArn" yaml:"tableArn"`
// Deprecated.
TableName *string `field:"required" json:"tableName" yaml:"tableName"`
}
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
tableAttributes := &TableAttributes{
TableArn: jsii.String("tableArn"),
TableName: jsii.String("tableName"),
}
Deprecated.
type TableBase ¶
type TableBase interface {
awscdk.Resource
ITable
// This table's columns.
// Deprecated.
Columns() *[]*Column
// Indicates whether the table's data is compressed or not.
// Deprecated.
Compressed() *bool
// Database this table belongs to.
// Deprecated.
Database() IDatabase
// Format of this table's data files.
// Deprecated.
DataFormat() DataFormat
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// Whether the data stored in the table is encrypted.
//
// Emitted as the
// `has_encrypted_data` table parameter.
// Deprecated.
HasEncryptedData() *bool
// The tree node.
// Deprecated.
Node() constructs.Node
// The tables' properties associated with the table.
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters
//
// Deprecated.
Parameters() *map[string]*string
// Deprecated.
PartitionIndexes() *[]*PartitionIndex
// This table's partition keys if the table is partitioned.
// Deprecated.
PartitionKeys() *[]*Column
// This table's partition projection configuration if enabled.
// Deprecated.
PartitionProjection() *map[string]PartitionProjectionConfiguration
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// The tables' storage descriptor properties.
// Deprecated.
StorageParameters() *[]StorageParameter
// Deprecated.
TableArn() *string
// Deprecated.
TableName() *string
// Deprecated.
TableResource() awsglue.CfnTable
// Add a partition index to the table.
//
// You can have a maximum of 3 partition
// indexes to a table. Partition index keys must be a subset of the table's
// partition keys.
// See: https://docs.aws.amazon.com/glue/latest/dg/partition-indexes.html
//
// Deprecated.
AddPartitionIndex(index *PartitionIndex)
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Grant the given identity custom permissions on this table.
//
// This is a low-level escape hatch: the `actions` are applied verbatim,
// scoped to this table's ARN. Prefer the intent-based `grantRead` /
// `grantWrite` / `grantReadWrite` methods, which grant a curated set of
// actions and also cover the underlying S3 data. Only pass the specific
// actions the grantee needs - avoid service wildcards such as `glue:*`.
// [disable-awslint:no-grants].
// Deprecated.
Grant(grantee awsiam.IGrantable, actions *[]*string) awsiam.Grant
// Deprecated.
GrantRead(grantee awsiam.IGrantable) awsiam.Grant
// Deprecated.
GrantReadWrite(grantee awsiam.IGrantable) awsiam.Grant
// Grant the given identity custom permissions on this table AND its parent catalog and database.
//
// This is a low-level escape hatch for actions (such as certain Lake
// Formation or crawler operations) that must be authorized against the
// catalog and database in addition to the table. The `actions` are applied
// verbatim to all three ARNs (table, catalog, database), so scope them
// tightly: pass only the specific actions the grantee needs and avoid
// service wildcards such as `glue:*`, which would grant broad access across
// every resource in the catalog and database.
// [disable-awslint:no-grants].
// Deprecated.
GrantToUnderlyingResources(grantee awsiam.IGrantable, actions *[]*string) awsiam.Grant
// Deprecated.
GrantWrite(grantee awsiam.IGrantable) awsiam.Grant
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
A Glue table.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
tableBase := glue_alpha.TableBase_FromTableArn(this, jsii.String("MyTableBase"), jsii.String("tableArn"))
Deprecated.
type TableBaseProps ¶
type TableBaseProps struct {
// Columns of the table.
// Deprecated.
Columns *[]*Column `field:"required" json:"columns" yaml:"columns"`
// Database in which to store the table.
// Deprecated.
Database IDatabase `field:"required" json:"database" yaml:"database"`
// Storage type of the table's data.
// Deprecated.
DataFormat DataFormat `field:"required" json:"dataFormat" yaml:"dataFormat"`
// Indicates whether the table's data is compressed or not.
// Default: false.
//
// Deprecated.
Compressed *bool `field:"optional" json:"compressed" yaml:"compressed"`
// Description of the table.
// Default: generated.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// Enables partition filtering.
// See: https://docs.aws.amazon.com/athena/latest/ug/glue-best-practices.html#glue-best-practices-partition-index
//
// Default: - The parameter is not defined.
//
// Deprecated.
EnablePartitionFiltering *bool `field:"optional" json:"enablePartitionFiltering" yaml:"enablePartitionFiltering"`
// Whether the data stored in the table is encrypted.
//
// This sets the `has_encrypted_data` table parameter. Athena reads it when
// querying client-side (CSE-KMS) encrypted datasets; for server-side
// encrypted (SSE-S3 / SSE-KMS) or unencrypted data it has no effect, since
// Amazon S3 decrypts server-side encrypted objects transparently.
//
// Do not also set `has_encrypted_data` through `parameters` - use this
// property instead. A conflicting value in `parameters` is rejected.
// See: https://docs.aws.amazon.com/athena/latest/ug/creating-tables-based-on-encrypted-datasets-in-s3.html
//
// Default: true.
//
// Deprecated.
HasEncryptedData *bool `field:"optional" json:"hasEncryptedData" yaml:"hasEncryptedData"`
// The key/value pairs define properties associated with the table.
//
// The key/value pairs that are allowed to be submitted are not limited, however their functionality is not guaranteed.
// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters
//
// Default: - The parameter is not defined.
//
// Deprecated.
Parameters *map[string]*string `field:"optional" json:"parameters" yaml:"parameters"`
// Partition indexes on the table.
//
// A maximum of 3 indexes
// are allowed on a table. Keys in the index must be part
// of the table's partition keys.
// Default: table has no partition indexes.
//
// Deprecated.
PartitionIndexes *[]*PartitionIndex `field:"optional" json:"partitionIndexes" yaml:"partitionIndexes"`
// Partition columns of the table.
// Default: table is not partitioned.
//
// Deprecated.
PartitionKeys *[]*Column `field:"optional" json:"partitionKeys" yaml:"partitionKeys"`
// Partition projection configuration for this table.
//
// Partition projection allows Athena to automatically add new partitions
// without requiring `ALTER TABLE ADD PARTITION` statements.
// See: https://docs.aws.amazon.com/athena/latest/ug/partition-projection.html
//
// Default: - No partition projection.
//
// Deprecated.
PartitionProjection *map[string]PartitionProjectionConfiguration `field:"optional" json:"partitionProjection" yaml:"partitionProjection"`
// The user-supplied properties for the description of the physical storage of this table.
//
// These properties help describe the format of the data that is stored within the crawled data sources.
//
// The key/value pairs that are allowed to be submitted are not limited, however their functionality is not guaranteed.
//
// Some keys will be auto-populated by glue crawlers, however, you can override them by specifying the key and value in this property.
//
// Example:
// var glueDatabase IDatabase
//
// table := glue.NewS3Table(this, jsii.String("Table"), &S3TableProps{
// StorageParameters: []StorageParameter{
// glue.StorageParameter_SkipHeaderLineCount(jsii.Number(1)),
// glue.StorageParameter_CompressionType(glue.CompressionType_GZIP),
// glue.StorageParameter_Custom(jsii.String("foo"), jsii.String("bar")),
// glue.StorageParameter_*Custom(jsii.String("separatorChar"), jsii.String(",")),
// glue.StorageParameter_*Custom(glue.StorageParameters_WRITE_PARALLEL, jsii.String("off")),
// },
// // ...
// Database: glueDatabase,
// Columns: []Column{
// &Column{
// Name: jsii.String("col1"),
// Type: glue.Schema_STRING(),
// },
// },
// DataFormat: glue.DataFormat_CSV(),
// })
//
// See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_
//
// Default: - The parameter is not defined.
//
// Deprecated.
StorageParameters *[]StorageParameter `field:"optional" json:"storageParameters" yaml:"storageParameters"`
// Indicates whether the table data is stored in subdirectories.
// Default: false.
//
// Deprecated.
StoredAsSubDirectories *bool `field:"optional" json:"storedAsSubDirectories" yaml:"storedAsSubDirectories"`
// Name of the table.
// Default: - generated by CDK.
//
// Deprecated.
TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
}
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var database Database
var dataFormat DataFormat
var partitionProjectionConfiguration PartitionProjectionConfiguration
var storageParameter StorageParameter
var type Type
tableBaseProps := &TableBaseProps{
Columns: []Column{
&Column{
Name: jsii.String("name"),
Type: type,
// the properties below are optional
Comment: jsii.String("comment"),
},
},
Database: database,
DataFormat: dataFormat,
// the properties below are optional
Compressed: jsii.Boolean(false),
Description: jsii.String("description"),
EnablePartitionFiltering: jsii.Boolean(false),
HasEncryptedData: jsii.Boolean(false),
Parameters: map[string]*string{
"parametersKey": jsii.String("parameters"),
},
PartitionIndexes: []PartitionIndex{
&PartitionIndex{
KeyNames: []*string{
jsii.String("keyNames"),
},
// the properties below are optional
IndexName: jsii.String("indexName"),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("name"),
Type: type,
// the properties below are optional
Comment: jsii.String("comment"),
},
},
PartitionProjection: map[string]PartitionProjectionConfiguration{
"partitionProjectionKey": partitionProjectionConfiguration,
},
StorageParameters: []StorageParameter{
storageParameter,
},
StoredAsSubDirectories: jsii.Boolean(false),
TableName: jsii.String("tableName"),
}
Deprecated.
type TableClientSideEncryption ¶
type TableClientSideEncryption interface {
}
Client-side encryption for an `S3Table`'s data.
Independent of the bucket's server-side encryption and of who owns the bucket: the data is encrypted by the client before it is written to S3. When set, the `grant*` methods also grant the relevant KMS permissions on the key.
Example:
var myDatabase Database
// KMS key is created automatically
// KMS key is created automatically
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
ClientSideEncryption: glue.TableClientSideEncryption_Kms(),
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
// with an explicit KMS key
// with an explicit KMS key
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
ClientSideEncryption: glue.TableClientSideEncryption_*Kms(kms.NewKey(this, jsii.String("MyKey"))),
// ...
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("col1"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
})
Deprecated.
func TableClientSideEncryption_Kms ¶
func TableClientSideEncryption_Kms(key interfacesawskms.IKeyRef) TableClientSideEncryption
Client-side encryption (CSE-KMS) with an AWS KMS key managed by the account owner. Deprecated.
type TriggerOptions ¶
type TriggerOptions struct {
// The actions initiated by this trigger.
// Deprecated.
Actions *[]Action `field:"required" json:"actions" yaml:"actions"`
// A description for the trigger.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// A name for the trigger.
// Default: - no name is provided.
//
// Deprecated.
Name *string `field:"optional" json:"name" yaml:"name"`
}
Properties for configuring a Glue Trigger.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
var action Action
triggerOptions := &TriggerOptions{
Actions: []Action{
action,
},
// the properties below are optional
Description: jsii.String("description"),
Name: jsii.String("name"),
}
Deprecated.
type TriggerSchedule ¶
type TriggerSchedule interface {
// The expression string for the schedule.
// Deprecated.
ExpressionString() *string
}
Represents a trigger schedule.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddScheduledTrigger(jsii.String("WeeklyTrigger"), &ScheduledTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
Schedule: glue.TriggerSchedule_Weekly(),
})
Deprecated.
func TriggerSchedule_Cron ¶
func TriggerSchedule_Cron(options *awsevents.CronOptions) TriggerSchedule
Creates a new TriggerSchedule instance with a cron expression.
Returns: A new TriggerSchedule instance. Deprecated.
func TriggerSchedule_Daily ¶
func TriggerSchedule_Daily() TriggerSchedule
Creates a schedule that fires once a day, at midnight UTC.
Returns: A new TriggerSchedule instance. Deprecated.
func TriggerSchedule_Expression ¶
func TriggerSchedule_Expression(expression *string) TriggerSchedule
Creates a new TriggerSchedule instance with a custom expression.
Returns: A new TriggerSchedule instance. Deprecated.
func TriggerSchedule_Weekly ¶
func TriggerSchedule_Weekly() TriggerSchedule
Creates a schedule that fires once a week, at midnight UTC on Sunday.
Returns: A new TriggerSchedule instance. Deprecated.
type Type ¶
type Type interface {
// Glue InputString for this type.
// Deprecated.
InputString() *string
// Indicates whether this type is a primitive data type.
// Deprecated.
IsPrimitive() *bool
}
The type of a column in a table schema.
Instances are opaque: obtain one from a `Schema` factory (for example `Schema.STRING`, `Schema.decimal(...)`, `Schema.array(...)`) or, for a type the `Schema` factories don't model, from `Schema.custom(...)`.
Example:
var myDatabase Database
glue.NewS3Table(this, jsii.String("MyTable"), &S3TableProps{
Database: myDatabase,
Columns: []Column{
&Column{
Name: jsii.String("data"),
Type: glue.Schema_STRING(),
},
},
PartitionKeys: []Column{
&Column{
Name: jsii.String("date"),
Type: glue.Schema_STRING(),
},
},
DataFormat: glue.DataFormat_JSON(),
PartitionProjection: map[string]PartitionProjectionConfiguration{
"date": glue.PartitionProjectionConfiguration_date(&DatePartitionProjectionConfigurationProps{
"min": jsii.String("NOW-3YEARS"),
"max": jsii.String("NOW"),
"format": jsii.String("yyyy-MM-dd"),
}),
},
})
Deprecated.
func Schema_Array ¶
Creates an array of some other type. Deprecated.
func Schema_BIG_INT ¶
func Schema_BIG_INT() Type
func Schema_BINARY ¶
func Schema_BINARY() Type
func Schema_BOOLEAN ¶
func Schema_BOOLEAN() Type
func Schema_Char ¶
Fixed length character data, with a specified length between 1 and 255. Deprecated.
func Schema_Custom ¶
Creates a custom type from a raw Glue input string.
Escape hatch for column types the other `Schema` factories don't model. The `inputString` is emitted verbatim and is not validated. Deprecated.
func Schema_DATE ¶
func Schema_DATE() Type
func Schema_DOUBLE ¶
func Schema_DOUBLE() Type
func Schema_Decimal ¶
Creates a decimal type. See: https://docs.aws.amazon.com/athena/latest/ug/data-types.html
Deprecated.
func Schema_FLOAT ¶
func Schema_FLOAT() Type
func Schema_INTEGER ¶
func Schema_INTEGER() Type
func Schema_Map ¶
Creates a map of some primitive key type to some value type. Deprecated.
func Schema_SMALL_INT ¶
func Schema_SMALL_INT() Type
func Schema_STRING ¶
func Schema_STRING() Type
func Schema_Struct ¶
Creates a nested structure containing individually named and typed columns. Deprecated.
func Schema_TIMESTAMP ¶
func Schema_TIMESTAMP() Type
func Schema_TINY_INT ¶
func Schema_TINY_INT() Type
func Schema_Varchar ¶
Variable length character data, with a specified length between 1 and 65535. Deprecated.
type WorkerConfiguration ¶
type WorkerConfiguration struct {
// The number of workers of the given `workerType` that are allocated when a job runs.
// Deprecated.
NumberOfWorkers *float64 `field:"required" json:"numberOfWorkers" yaml:"numberOfWorkers"`
// The type of predefined worker that is allocated when a job runs.
//
// Enum options: Standard, G_1X, G_2X, G_025X, G_4X, G_8X, Z_2X.
// Deprecated.
WorkerType WorkerType `field:"required" json:"workerType" yaml:"workerType"`
}
The worker configuration for a Spark job.
The worker type and the number of workers are set together: providing this configuration requires both values, so a Spark job can never be given one without the other.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkEtlJob(stack, jsii.String("PySparkETLJob"), &PySparkEtlJobProps{
JobName: jsii.String("PySparkETLJobCustomName"),
Description: jsii.String("This is a description"),
Role: Role,
Script: Script,
GlueVersion: glue.GlueVersion_V5_1,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
WorkerConfiguration: &WorkerConfiguration{
WorkerType: glue.WorkerType_G_2X,
NumberOfWorkers: jsii.Number(2),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
Deprecated.
type WorkerType ¶
type WorkerType string
The type of predefined worker that is allocated when a job runs.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
glue.NewPySparkEtlJob(stack, jsii.String("PySparkETLJob"), &PySparkEtlJobProps{
JobName: jsii.String("PySparkETLJobCustomName"),
Description: jsii.String("This is a description"),
Role: Role,
Script: Script,
GlueVersion: glue.GlueVersion_V5_1,
ContinuousLogging: &ContinuousLoggingProps{
Enabled: jsii.Boolean(false),
},
WorkerConfiguration: &WorkerConfiguration{
WorkerType: glue.WorkerType_G_2X,
NumberOfWorkers: jsii.Number(2),
},
MaxConcurrentRuns: jsii.Number(100),
Timeout: cdk.Duration_Hours(jsii.Number(2)),
Connections: []IConnection{
glue.Connection_FromConnectionName(stack, jsii.String("Connection"), jsii.String("connectionName")),
},
SecurityConfiguration: glue.SecurityConfiguration_FromSecurityConfigurationName(stack, jsii.String("SecurityConfig"), jsii.String("securityConfigName")),
Tags: map[string]*string{
"FirstTagName": jsii.String("FirstTagValue"),
"SecondTagName": jsii.String("SecondTagValue"),
"XTagName": jsii.String("XTagValue"),
},
MaxRetries: jsii.Number(2),
})
Deprecated.
const ( // Standard Worker Type 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. // Deprecated. WorkerType_STANDARD WorkerType = "STANDARD" // G.1X Worker Type 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for memory-intensive jobs. // Deprecated. WorkerType_G_1X WorkerType = "G_1X" // G.2X Worker Type 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. Suitable for memory-intensive jobs. // Deprecated. WorkerType_G_2X WorkerType = "G_2X" // G.4X Worker Type 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs. // Deprecated. WorkerType_G_4X WorkerType = "G_4X" // G.8X Worker Type 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs. // Deprecated. WorkerType_G_8X WorkerType = "G_8X" // G.12X Worker Type 12 DPU (48 vCPU, 192 GB of memory, 768 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs with very large and resource-intensive workloads that require significant compute capacity. This worker type is available only for AWS Glue version 3.0 or later jobs. // Deprecated. WorkerType_G_12X WorkerType = "G_12X" // G.16X Worker Type 16 DPU (64 vCPU, 256 GB of memory, 1024 GB disk), and provides 1 executor per worker. We recommend this worker type for jobs with the largest and most resource-intensive workloads that require maximum compute capacity. This worker type is available only for AWS Glue version 3.0 or later jobs. // Deprecated. WorkerType_G_16X WorkerType = "G_16X" // G.025X Worker Type 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs. // Deprecated. WorkerType_G_025X WorkerType = "G_025X" // Z.2X Worker Type. // Deprecated: AWS Glue for Ray is closed to new customers as of April 30, 2026. // This worker type was only used for Ray jobs. See // https://docs.aws.amazon.com/glue/latest/dg/awsglue-ray-jobs-availability-change.html WorkerType_Z_2X WorkerType = "Z_2X" // R.1X Worker Type 1 M-DPU (4 vCPUs, 32 GB memory), We recommend this worker type for memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios. // Deprecated. WorkerType_R_1X WorkerType = "R_1X" // R.2X Worker Type 2 M-DPU (8 vCPUs, 64 GB memory), We recommend this worker type for memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios. // Deprecated. WorkerType_R_2X WorkerType = "R_2X" // R.4X Worker Type 4 M-DPU (16 vCPUs, 128 GB memory), We recommend this worker type for large memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios. // Deprecated. WorkerType_R_4X WorkerType = "R_4X" // R.8X Worker Type 8 M-DPU (32 vCPUs, 256 GB memory), We recommend this worker type for very large memory-intensive workloads that frequently encounter out-of-memory errors or require high memory-to-CPU ratios. // Deprecated. WorkerType_R_8X WorkerType = "R_8X" )
type Workflow ¶
type Workflow interface {
WorkflowBase
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// The ARN of the workflow.
// Deprecated.
WorkflowArn() *string
// The name of the workflow.
// Deprecated.
WorkflowName() *string
// Add a conditional (predicate-based) trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddConditionalTrigger(id *string, options *ConditionalTriggerOptions) interfacesawsglue.ITriggerRef
// Add an EventBridge event-based trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddEventTrigger(id *string, options *EventTriggerOptions) interfacesawsglue.ITriggerRef
// Add an on-demand trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddOnDemandTrigger(id *string, options *OnDemandTriggerOptions) interfacesawsglue.ITriggerRef
// Add a scheduled trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddScheduledTrigger(id *string, options *ScheduledTriggerOptions) interfacesawsglue.ITriggerRef
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
BuildWorkflowArn(scope constructs.Construct, workflowName *string) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
This module defines a construct for creating and managing AWS Glue Workflows and Triggers.
AWS Glue Workflows are orchestration services that allow you to create, manage, and monitor complex extract, transform, and load (ETL) activities involving multiple crawlers, jobs, and triggers. Workflows are designed to allow you to manage interdependent jobs and crawlers as a single unit, making it easier to orchestrate and monitor complex ETL pipelines.
Triggers are used to initiate an AWS Glue Workflow. You can configure different types of triggers, such as on-demand, scheduled, event-based, or conditional triggers, to start your Workflow based on specific conditions or events.
Example:
import cdk "github.com/aws/aws-cdk-go/awscdk"
import iam "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var role IRole
var script Code
// Create a job to run from the workflow
job := glue.NewPySparkEtlJob(stack, jsii.String("Job"), &PySparkEtlJobProps{
Role: Role,
Script: Script,
})
// Create a workflow and add a trigger that runs the job
workflow := glue.NewWorkflow(stack, jsii.String("Workflow"))
workflow.AddOnDemandTrigger(jsii.String("OnDemandTrigger"), &OnDemandTriggerOptions{
Actions: []Action{
glue.Action_Job(job),
},
})
See: https://docs.aws.amazon.com/glue/latest/dg/about-triggers.html
## Usage Example
```ts const app = new App(); const stack = new Stack(app, 'TestStack');
// Create a Glue Job declare const role: iam.IRole; declare const script: glue.Code; const job = new glue.PySparkStreamingJob(stack, 'ImportedJob', { role, script });
// Create a Glue Workflow const workflow = new glue.Workflow(stack, 'TestWorkflow');
// Add an on-demand trigger to the Workflow workflow.addOnDemandTrigger('OnDemandTrigger', { actions: [glue.Action.job(job)], }); ```.
Deprecated.
func NewWorkflow ¶
func NewWorkflow(scope constructs.Construct, id *string, props *WorkflowProps) Workflow
Deprecated.
type WorkflowAttributes ¶
type WorkflowAttributes struct {
// The name of the workflow to import.
// Deprecated.
WorkflowName *string `field:"required" json:"workflowName" yaml:"workflowName"`
// The ARN of the workflow to import.
// Default: - derived from the workflow name.
//
// Deprecated.
WorkflowArn *string `field:"optional" json:"workflowArn" yaml:"workflowArn"`
}
Properties for importing a Workflow using its attributes.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
workflowAttributes := &WorkflowAttributes{
WorkflowName: jsii.String("workflowName"),
// the properties below are optional
WorkflowArn: jsii.String("workflowArn"),
}
Deprecated.
type WorkflowBase ¶
type WorkflowBase interface {
awscdk.Resource
IWorkflow
// The environment this resource belongs to.
//
// For resources that are created and managed in a Stack (those created by
// creating new class instances like `new Role()`, `new Bucket()`, etc.), this
// is always the same as the environment of the stack they belong to.
//
// For referenced resources (those obtained from referencing methods like
// `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
// different than the stack they were imported into.
// Deprecated.
Env() *interfaces.ResourceEnvironment
// The tree node.
// Deprecated.
Node() constructs.Node
// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
//
// This value will resolve to one of the following:
// - a concrete value (e.g. `"my-awesome-bucket"`)
// - `undefined`, when a name should be generated by CloudFormation
// - a concrete name generated automatically during synthesis, in
// cross-environment scenarios.
// Deprecated.
PhysicalName() *string
// The stack in which this resource is defined.
// Deprecated.
Stack() awscdk.Stack
// The ARN of the workflow.
// Deprecated.
WorkflowArn() *string
// The name of the workflow.
// Deprecated.
WorkflowName() *string
// Add a conditional (predicate-based) trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddConditionalTrigger(id *string, options *ConditionalTriggerOptions) interfacesawsglue.ITriggerRef
// Add an EventBridge event-based trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddEventTrigger(id *string, options *EventTriggerOptions) interfacesawsglue.ITriggerRef
// Add an on-demand trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddOnDemandTrigger(id *string, options *OnDemandTriggerOptions) interfacesawsglue.ITriggerRef
// Add a scheduled trigger to the workflow.
//
// Returns: a reference to the created trigger.
// Deprecated.
AddScheduledTrigger(id *string, options *ScheduledTriggerOptions) interfacesawsglue.ITriggerRef
// Override the cross-stack reference strength for this resource.
//
// When set, any cross-stack reference to this resource will use the specified
// mechanism instead of the global default determined by the
// `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
// selectively weakening specific references to avoid the "deadly embrace" problem
// without changing the app-wide default.
// Deprecated.
ApplyCrossStackReferenceStrength(strength awscdk.ReferenceStrength)
// Apply the given removal policy to this resource.
//
// 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`).
// Deprecated.
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
// Deprecated.
BuildWorkflowArn(scope constructs.Construct, workflowName *string) *string
// Deprecated.
GeneratePhysicalName() *string
// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
//
// Normally, this token will resolve to `arnAttr`, but if the resource is
// referenced across environments, `arnComponents` will be used to synthesize
// a concrete ARN with the resource's physical name. Make sure to reference
// `this.physicalName` in `arnComponents`.
// Deprecated.
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
//
// Normally, this token will resolve to `nameAttr`, but if the resource is
// referenced across environments, it will be resolved to `this.physicalName`,
// which will be a concrete name.
// Deprecated.
GetResourceNameAttribute(nameAttr *string) *string
// Returns a string representation of this construct.
// Deprecated.
ToString() *string
// Applies one or more mixins to this construct.
//
// Mixins are applied in order. The list of constructs is captured at the
// start of the call, so constructs added by a mixin will not be visited.
// Use multiple `with()` calls if subsequent mixins should apply to added
// constructs.
// Deprecated.
With(mixins ...constructs.IMixin) constructs.IConstruct
}
Base abstract class for Workflow. See: https://docs.aws.amazon.com/glue/latest/dg/about-triggers.html
Deprecated.
type WorkflowProps ¶
type WorkflowProps struct {
// A map of properties to use when this workflow is executed.
// Default: - no default run properties.
//
// Deprecated.
DefaultRunProperties *map[string]*string `field:"optional" json:"defaultRunProperties" yaml:"defaultRunProperties"`
// A description of the workflow.
// Default: - no description.
//
// Deprecated.
Description *string `field:"optional" json:"description" yaml:"description"`
// The maximum number of concurrent runs allowed for the workflow.
// Default: - no limit.
//
// Deprecated.
MaxConcurrentRuns *float64 `field:"optional" json:"maxConcurrentRuns" yaml:"maxConcurrentRuns"`
// Name of the workflow.
// Default: - a name will be generated.
//
// Deprecated.
WorkflowName *string `field:"optional" json:"workflowName" yaml:"workflowName"`
}
Properties for defining a Workflow.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import glue_alpha "github.com/aws/aws-cdk-go/awscdkgluealpha"
workflowProps := &WorkflowProps{
DefaultRunProperties: map[string]*string{
"defaultRunPropertiesKey": jsii.String("defaultRunProperties"),
},
Description: jsii.String("description"),
MaxConcurrentRuns: jsii.Number(123),
WorkflowName: jsii.String("workflowName"),
}
Deprecated.
type WriteParallel ¶
type WriteParallel string
Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARCHAR, CHAR, or string data.
By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column. See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under _"TABLE PROPERTIES"_ > _"surplus_char_handling"_
Deprecated.
const ( // Write data in parallel. // Deprecated. WriteParallel_ON WriteParallel = "ON" // Write data serially. // Deprecated. WriteParallel_OFF WriteParallel = "OFF" )
Source Files
¶
- Action.go
- Action__checks.go
- AssetCode.go
- AssetCode__checks.go
- Catalog.go
- CatalogBase.go
- CatalogBase__checks.go
- CatalogEncryptionMode.go
- CatalogEncryptionOptions.go
- CatalogProps.go
- Catalog__checks.go
- ClassificationString.go
- ClassificationString__checks.go
- CloudWatchEncryption.go
- Code.go
- CodeConfig.go
- Code__checks.go
- Column.go
- ColumnCountMismatchHandlingAction.go
- CompressionType.go
- Condition.go
- ConditionLogicalOperator.go
- ConditionOptions.go
- Condition__checks.go
- ConditionalTriggerOptions.go
- Connection.go
- ConnectionNetwork.go
- ConnectionNetwork__checks.go
- ConnectionOptions.go
- ConnectionPasswordEncryption.go
- ConnectionProps.go
- ConnectionType.go
- ConnectionType__checks.go
- Connection__checks.go
- ContinuousLoggingProps.go
- CrawlerActionOptions.go
- CrawlerState.go
- DataCatalogEncryptionAtRest.go
- DataCatalogEncryptionAtRest__checks.go
- DataFormat.go
- DataFormatProps.go
- DataFormat__checks.go
- DataQualityRuleset.go
- DataQualityRulesetProps.go
- DataQualityRuleset__checks.go
- DataQualityTargetTable.go
- DataQualityTargetTable__checks.go
- Database.go
- DatabaseProps.go
- Database__checks.go
- DateIntervalUnit.go
- DatePartitionProjectionConfigurationProps.go
- DateProjectionStep.go
- Dqdl.go
- Dqdl__checks.go
- EnumPartitionProjectionConfigurationProps.go
- EventBatchingCondition.go
- EventTriggerOptions.go
- ExecutionClass.go
- ExternalTable.go
- ExternalTableProps.go
- ExternalTable__checks.go
- GlueVersion.go
- ICatalog.go
- ICatalog__checks.go
- IConnection.go
- IDataQualityRuleset.go
- IDatabase.go
- IDatabase__checks.go
- IJob.go
- IJob__checks.go
- ISecurityConfiguration.go
- ITable.go
- IWorkflow.go
- IWorkflow__checks.go
- InputFormat.go
- InputFormat__checks.go
- IntegerPartitionProjectionConfigurationProps.go
- InvalidCharHandlingAction.go
- Job.go
- JobActionOptions.go
- JobAttributes.go
- JobBase.go
- JobBase__checks.go
- JobBookmarksEncryption.go
- JobLanguage.go
- JobProps.go
- JobState.go
- JobType.go
- Job__checks.go
- LibrarySet.go
- MaxCapacity.go
- MetricType.go
- NumericOverflowHandlingAction.go
- OnDemandTriggerOptions.go
- OrcColumnMappingType.go
- OutputFormat.go
- OutputFormat__checks.go
- PartitionIndex.go
- PartitionProjectionConfiguration.go
- PartitionProjectionConfiguration__checks.go
- PartitionProjectionType.go
- Predicate.go
- PredicateLogical.go
- PySparkEtlJob.go
- PySparkEtlJobProps.go
- PySparkEtlJob__checks.go
- PySparkFlexEtlJob.go
- PySparkFlexEtlJobProps.go
- PySparkFlexEtlJob__checks.go
- PySparkStreamingJob.go
- PySparkStreamingJobProps.go
- PySparkStreamingJob__checks.go
- PythonShellJob.go
- PythonShellJobProps.go
- PythonShellJob__checks.go
- PythonVersion.go
- RayJob.go
- RayJobProps.go
- RayJob__checks.go
- Runtime.go
- S3Code.go
- S3Code__checks.go
- S3Encryption.go
- S3EncryptionMode.go
- S3Table.go
- S3TableEncryption.go
- S3TableProps.go
- S3TableStorage.go
- S3TableStorage__checks.go
- S3Table__checks.go
- ScalaSparkEtlJob.go
- ScalaSparkEtlJobProps.go
- ScalaSparkEtlJob__checks.go
- ScalaSparkFlexEtlJob.go
- ScalaSparkFlexEtlJobProps.go
- ScalaSparkFlexEtlJob__checks.go
- ScalaSparkStreamingJob.go
- ScalaSparkStreamingJobProps.go
- ScalaSparkStreamingJob__checks.go
- ScheduledTriggerOptions.go
- Schema.go
- Schema__checks.go
- SecurityConfiguration.go
- SecurityConfigurationProps.go
- SecurityConfiguration__checks.go
- SerializationLibrary.go
- SerializationLibrary__checks.go
- SparkExtraCodeProps.go
- SparkJob.go
- SparkJobProps.go
- SparkJob__checks.go
- SparkUILoggingLocation.go
- SparkUIProps.go
- StartableTriggerOptions.go
- StorageParameter.go
- StorageParameter__checks.go
- StorageParameters.go
- SurplusBytesHandlingAction.go
- SurplusCharHandlingAction.go
- TableAttributes.go
- TableBase.go
- TableBaseProps.go
- TableBase__checks.go
- TableClientSideEncryption.go
- TriggerOptions.go
- TriggerSchedule.go
- TriggerSchedule__checks.go
- Type.go
- WorkerConfiguration.go
- WorkerType.go
- Workflow.go
- WorkflowAttributes.go
- WorkflowBase.go
- WorkflowBase__checks.go
- WorkflowProps.go
- Workflow__checks.go
- WriteParallel.go
- main.go