Class CfnDataset
Represents an AWS Supply Chain data lake dataset.
Inherited Members
Namespace: Amazon.CDK.AWS.SCN
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDataset : CfnResource, IInspectable, IDatasetRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnDataset Inherits CfnResource Implements IInspectable, IDatasetRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SCN;
var cfnDataset = new CfnDataset(this, "MyCfnDataset", new CfnDatasetProps {
InstanceId = "instanceId",
Name = "name",
Namespace = "namespace",
// the properties below are optional
Description = "description",
PartitionSpec = new PartitionSpecProperty {
Fields = new [] { new DataLakeDatasetPartitionFieldProperty {
Name = "name",
Transform = new TransformProperty {
Type = "type"
}
} }
},
Schema = new SchemaProperty {
Fields = new [] { new DataLakeDatasetSchemaFieldProperty {
IsRequired = false,
Name = "name",
Type = "type"
} },
Name = "name",
// the properties below are optional
PrimaryKeys = new [] { new DataLakeDatasetPrimaryKeyFieldProperty {
Name = "name"
} }
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
| CfnDataset(Construct, string, ICfnDatasetProps) | Create a new |
Properties
| AttrArn | The Amazon Resource Name (ARN) of the dataset. |
| AttrCreatedTime | The creation time of the dataset. |
| AttrLastModifiedTime | The last modified time of the dataset. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | Represents an AWS Supply Chain data lake dataset. |
| CfnPropertyNames | Represents an AWS Supply Chain data lake dataset. |
| DatasetRef | A reference to a Dataset resource. |
| Description | The description of the dataset. |
| InstanceId | The Amazon Web Services Supply Chain instance identifier. |
| Name | The name of the dataset. |
| Namespace | The namespace of the dataset. |
| PartitionSpec | The partition specification of the dataset. |
| Schema | The schema of the dataset. |
| Tags | The tags for the dataset. |
Methods
| ArnForDataset(IDatasetRef) | Represents an AWS Supply Chain data lake dataset. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnDataset(object) | Checks whether the given object is a CfnDataset. |
| RenderProperties(IDictionary<string, object>) | Represents an AWS Supply Chain data lake dataset. |
Constructors
CfnDataset(Construct, string, ICfnDatasetProps)
Create a new AWS::SCN::Dataset.
public CfnDataset(Construct scope, string id, ICfnDatasetProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnDatasetProps
Resource properties.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
Properties
AttrArn
The Amazon Resource Name (ARN) of the dataset.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrCreatedTime
The creation time of the dataset.
public virtual string AttrCreatedTime { get; }
Property Value
Remarks
CloudformationAttribute: CreatedTime
AttrLastModifiedTime
The last modified time of the dataset.
public virtual string AttrLastModifiedTime { get; }
Property Value
Remarks
CloudformationAttribute: LastModifiedTime
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
CfnProperties
Represents an AWS Supply Chain data lake dataset.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
CfnPropertyNames
Represents an AWS Supply Chain data lake dataset.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
DatasetRef
A reference to a Dataset resource.
public virtual IDatasetReference DatasetRef { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
Description
The description of the dataset.
public virtual string? Description { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
InstanceId
The Amazon Web Services Supply Chain instance identifier.
public virtual string InstanceId { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
Name
The name of the dataset.
public virtual string Name { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
Namespace
The namespace of the dataset.
public virtual string Namespace { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
PartitionSpec
The partition specification of the dataset.
public virtual object? PartitionSpec { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDataset.IPartitionSpecProperty
Schema
The schema of the dataset.
public virtual object? Schema { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDataset.ISchemaProperty
Tags
The tags for the dataset.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
Methods
ArnForDataset(IDatasetRef)
Represents an AWS Supply Chain data lake dataset.
public static string ArnForDataset(IDatasetRef resource)
Parameters
- resource IDatasetRef
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SCN;
var cfnDataset = new CfnDataset(this, "MyCfnDataset", new CfnDatasetProps {
InstanceId = "instanceId",
Name = "name",
Namespace = "namespace",
// the properties below are optional
Description = "description",
PartitionSpec = new PartitionSpecProperty {
Fields = new [] { new DataLakeDatasetPartitionFieldProperty {
Name = "name",
Transform = new TransformProperty {
Type = "type"
}
} }
},
Schema = new SchemaProperty {
Fields = new [] { new DataLakeDatasetSchemaFieldProperty {
IsRequired = false,
Name = "name",
Type = "type"
} },
Name = "name",
// the properties below are optional
PrimaryKeys = new [] { new DataLakeDatasetPrimaryKeyFieldProperty {
Name = "name"
} }
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
IsCfnDataset(object)
Checks whether the given object is a CfnDataset.
public static bool IsCfnDataset(object x)
Parameters
- x object
Returns
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Represents an AWS Supply Chain data lake dataset.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-scn-dataset.html
CloudformationResource: AWS::SCN::Dataset
ExampleMetadata: fixture=_generated