Class ExternalTable
(experimental) A Glue table that targets an external data location (e.g. A table in a Redshift Cluster).
Inherited Members
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class ExternalTable : TableBase, ITable, IResource
Syntax (vb)
Public Class ExternalTable
Inherits TableBase
Implements ITable, IResource
Remarks
Stability: Experimental
Resource: AWS::Glue::Table
ExampleMetadata: infused
Examples
Connection myConnection;
Database myDatabase;
new ExternalTable(this, "MyTable", new ExternalTableProps {
Connection = myConnection,
ExternalDataLocation = "default_db_public_example", // A table in Redshift
// ...
Database = myDatabase,
Columns = new [] { new Column {
Name = "col1",
Type = Schema.STRING
} },
DataFormat = DataFormat.JSON
});
Synopsis
Constructors
ExternalTable(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ExternalTable(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ExternalTable(Construct, String, IExternalTableProps) |
Properties
Connection | (experimental) The connection associated to this table. |
PartitionIndexes | (experimental) This table's partition indexes. |
TableArn | (experimental) ARN of this table. |
TableName | (experimental) Name of this table. |
TableResource |
Methods
GrantRead(IGrantable) | (experimental) Grant read permissions to the table. |
GrantReadWrite(IGrantable) | (experimental) Grant read and write permissions to the table. |
GrantWrite(IGrantable) | (experimental) Grant write permissions to the table. |
Constructors
ExternalTable(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ExternalTable(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ExternalTable(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ExternalTable(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ExternalTable(Construct, String, IExternalTableProps)
public ExternalTable(Construct scope, string id, IExternalTableProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IExternalTableProps
Remarks
Stability: Experimental
Properties
Connection
(experimental) The connection associated to this table.
public virtual IConnection Connection { get; }
Property Value
Remarks
Stability: Experimental
PartitionIndexes
(experimental) This table's partition indexes.
public override IPartitionIndex[] PartitionIndexes { get; }
Property Value
Overrides
Remarks
Stability: Experimental
TableArn
(experimental) ARN of this table.
public override string TableArn { get; }
Property Value
System.String
Overrides
Remarks
Stability: Experimental
TableName
(experimental) Name of this table.
public override string TableName { get; }
Property Value
System.String
Overrides
Remarks
Stability: Experimental
TableResource
protected override CfnTable TableResource { get; }
Property Value
Overrides
Remarks
Stability: Experimental
Methods
GrantRead(IGrantable)
(experimental) Grant read permissions to the table.
public override Grant GrantRead(IGrantable grantee)
Parameters
- grantee IGrantable
the principal.
Returns
Overrides
Remarks
Stability: Experimental
GrantReadWrite(IGrantable)
(experimental) Grant read and write permissions to the table.
public override Grant GrantReadWrite(IGrantable grantee)
Parameters
- grantee IGrantable
the principal.
Returns
Overrides
Remarks
Stability: Experimental
GrantWrite(IGrantable)
(experimental) Grant write permissions to the table.
public override Grant GrantWrite(IGrantable grantee)
Parameters
- grantee IGrantable
the principal.
Returns
Overrides
Remarks
Stability: Experimental