import * as cdk from "../../core/lib"; import * as constructs from "constructs"; import * as cfn_parse from "../../core/lib/helpers-internal"; import { DatasetReference, IDatasetRef } from "../../interfaces/generated/aws-cognitosync-interfaces.generated"; /** * Resource type definition for a Cognito Sync Dataset. * * A dataset is a collection of key-value pairs per identity that can store up to 1 MB of data and sync across devices. * * @cloudformationResource AWS::CognitoSync::Dataset * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognitosync-dataset.html */ export declare class CfnDataset extends cdk.CfnResource implements cdk.IInspectable, IDatasetRef { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnDataset from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnDataset; /** * Checks whether the given object is a CfnDataset */ static isCfnDataset(x: any): x is CfnDataset; static arnForDataset(resource: IDatasetRef): string; /** * A string of up to 128 characters. */ private _datasetName?; /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. */ private _identityId?; /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. */ private _identityPoolId?; protected readonly cfnPropertyNames: Record; /** * Create a new `AWS::CognitoSync::Dataset`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props?: CfnDatasetProps); get datasetRef(): DatasetReference; /** * A string of up to 128 characters. */ get datasetName(): string | undefined; /** * A string of up to 128 characters. */ set datasetName(value: string | undefined); /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. */ get identityId(): string | undefined; /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. */ set identityId(value: string | undefined); /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. */ get identityPoolId(): string | undefined; /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. */ set identityPoolId(value: string | undefined); /** * The Amazon Resource Name (ARN) of the dataset. * * @cloudformationAttribute Arn */ get attrArn(): string; /** * Date on which the dataset was created. * * @cloudformationAttribute CreationDate */ get attrCreationDate(): string; /** * Total size in bytes of the records in this dataset. * * @cloudformationAttribute DataStorage */ get attrDataStorage(): number; /** * The device that made the last change to this dataset. * * @cloudformationAttribute LastModifiedBy */ get attrLastModifiedBy(): string; /** * Date when the dataset was last modified. * * @cloudformationAttribute LastModifiedDate */ get attrLastModifiedDate(): string; /** * Number of records in this dataset. * * @cloudformationAttribute NumRecords */ get attrNumRecords(): number; protected get cfnProperties(): Record; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record): Record; } /** * Properties for defining a `CfnDataset` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognitosync-dataset.html */ export interface CfnDatasetProps { /** * A string of up to 128 characters. * * Allowed characters are a-z, A-Z, 0-9, underscore, dash, and dot. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognitosync-dataset.html#cfn-cognitosync-dataset-datasetname */ readonly datasetName?: string; /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognitosync-dataset.html#cfn-cognitosync-dataset-identityid */ readonly identityId?: string; /** * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognitosync-dataset.html#cfn-cognitosync-dataset-identitypoolid */ readonly identityPoolId?: string; } export type { IDatasetRef, DatasetReference };