import * as core from "@terrascript/core"; export interface QopConfigurationArgs extends core.SchemaArgs { dataTransferProtection?: string | core.StringOut; rpcProtection?: string | core.StringOut; } export class QopConfiguration extends core.Schema { @core.attr(String) public dataTransferProtection?: string | core.StringOut; @core.attr(String) public rpcProtection?: string | core.StringOut; } export interface NameNodeArgs extends core.SchemaArgs { hostname: string | core.StringOut; port: number | core.NumberOut; } export class NameNode extends core.Schema { @core.attr(String) public hostname!: string | core.StringOut; @core.attr(Number) public port!: number | core.NumberOut; } export interface LocationHdfsArgs extends core.ResourceArgs { /** * (Required) A list of DataSync Agent ARNs with which this location will be associated. */ agentArns: core.Array | core.ArrayOut; /** * (Required) The type of authentication used to determine the identity of the user. Valid values are ` * SIMPLE` and `KERBEROS`. */ authenticationType?: string | core.StringOut; /** * (Optional) The size of data blocks to write into the HDFS cluster. The block size must be a multiple * of 512 bytes. The default block size is 128 mebibytes (MiB). */ blockSize?: number | core.NumberOut; /** * (Optional) The Kerberos key table (keytab) that contains mappings between the defined Kerberos princ * ipal and the encrypted keys. If `KERBEROS` is specified for `authentication_type`, this parameter is * required. */ kerberosKeytab?: string | core.StringOut; /** * (Optional) The krb5.conf file that contains the Kerberos configuration information. If `KERBEROS` is * specified for `authentication_type`, this parameter is required. */ kerberosKrb5Conf?: string | core.StringOut; /** * (Optional) The Kerberos principal with access to the files and folders on the HDFS cluster. If `KERB * EROS` is specified for `authentication_type`, this parameter is required. */ kerberosPrincipal?: string | core.StringOut; /** * (Optional) The URI of the HDFS cluster's Key Management Server (KMS). */ kmsKeyProviderUri?: string | core.StringOut; /** * (Required) The NameNode that manages the HDFS namespace. The NameNode performs operations such as o * pening, closing, and renaming files and directories. The NameNode contains the information to map bl * ocks of data to the DataNodes. You can use only one NameNode. See configuration below. */ nameNode: core.Array | core.ArrayOut; /** * (Optional) The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) a * nd data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster * . If `qop_configuration` isn't specified, `rpc_protection` and `data_transfer_protection` default to * PRIVACY`. If you set RpcProtection or DataTransferProtection, the other parameter assumes the same * value. See configuration below. */ qopConfiguration?: QopConfiguration; /** * (Optional) The number of DataNodes to replicate the data to when writing to the HDFS cluster. By def * ault, data is replicated to three DataNodes. */ replicationFactor?: number | core.NumberOut; /** * (Optional) The user name used to identify the client on the host operating system. If `SIMPLE` is sp * ecified for `authentication_type`, this parameter is required. */ simpleUser?: string | core.StringOut; /** * (Optional) A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write * data to the HDFS cluster. If the subdirectory isn't specified, it will default to /. */ subdirectory?: string | core.StringOut; /** * (Optional) Key-value pairs of resource tags to assign to the DataSync Location. If configured with a * provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws * /latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those * defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class LocationHdfs extends core.Resource { /** * (Required) A list of DataSync Agent ARNs with which this location will be associated. */ @core.attr(String, { kind: "array" }) public agentArns!: core.Array | core.ArrayOut; /** * Amazon Resource Name (ARN) of the DataSync Location. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The type of authentication used to determine the identity of the user. Valid values are ` * SIMPLE` and `KERBEROS`. */ @core.attr(String) public authenticationType?: string | core.StringOut; /** * (Optional) The size of data blocks to write into the HDFS cluster. The block size must be a multiple * of 512 bytes. The default block size is 128 mebibytes (MiB). */ @core.attr(Number) public blockSize?: number | core.NumberOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The Kerberos key table (keytab) that contains mappings between the defined Kerberos princ * ipal and the encrypted keys. If `KERBEROS` is specified for `authentication_type`, this parameter is * required. */ @core.attr(String) public kerberosKeytab?: string | core.StringOut; /** * (Optional) The krb5.conf file that contains the Kerberos configuration information. If `KERBEROS` is * specified for `authentication_type`, this parameter is required. */ @core.attr(String) public kerberosKrb5Conf?: string | core.StringOut; /** * (Optional) The Kerberos principal with access to the files and folders on the HDFS cluster. If `KERB * EROS` is specified for `authentication_type`, this parameter is required. */ @core.attr(String) public kerberosPrincipal?: string | core.StringOut; /** * (Optional) The URI of the HDFS cluster's Key Management Server (KMS). */ @core.attr(String) public kmsKeyProviderUri?: string | core.StringOut; /** * (Required) The NameNode that manages the HDFS namespace. The NameNode performs operations such as o * pening, closing, and renaming files and directories. The NameNode contains the information to map bl * ocks of data to the DataNodes. You can use only one NameNode. See configuration below. */ @core.attr(NameNode, { kind: "array" }) public nameNode!: core.Array | core.ArrayOut; /** * (Optional) The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) a * nd data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster * . If `qop_configuration` isn't specified, `rpc_protection` and `data_transfer_protection` default to * PRIVACY`. If you set RpcProtection or DataTransferProtection, the other parameter assumes the same * value. See configuration below. */ @core.attr(QopConfiguration) public qopConfiguration?: QopConfiguration; /** * (Optional) The number of DataNodes to replicate the data to when writing to the HDFS cluster. By def * ault, data is replicated to three DataNodes. */ @core.attr(Number) public replicationFactor?: number | core.NumberOut; /** * (Optional) The user name used to identify the client on the host operating system. If `SIMPLE` is sp * ecified for `authentication_type`, this parameter is required. */ @core.attr(String) public simpleUser?: string | core.StringOut; /** * (Optional) A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write * data to the HDFS cluster. If the subdirectory isn't specified, it will default to /. */ @core.attr(String) public subdirectory?: string | core.StringOut; /** * (Optional) Key-value pairs of resource tags to assign to the DataSync Location. If configured with a * provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws * /latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those * defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; @core.attr(String, { computed: true }) public uri!: string | core.StringOut; constructor(name: string, args?: LocationHdfsArgs) { super(name, "aws_datasync_location_hdfs", args); } public override getNamespace(): string { return "aws_datasync"; } }