CfnLocationHDFSProps

class aws_cdk.aws_datasync.CfnLocationHDFSProps(*, agent_arns, authentication_type, name_nodes, block_size=None, kerberos_keytab=None, kerberos_krb5_conf=None, kerberos_principal=None, kms_key_provider_uri=None, qop_configuration=None, replication_factor=None, simple_user=None, subdirectory=None, tags=None)

Bases: object

Properties for defining a CfnLocationHDFS.

Parameters:
  • agent_arns (Sequence[str]) – The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.

  • authentication_type (str) – The authentication mode used to determine identity of user.

  • name_nodes (Union[IResolvable, Sequence[Union[IResolvable, NameNodeProperty, Dict[str, Any]]]]) – The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.

  • block_size (Union[int, float, None]) – 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).

  • kerberos_keytab (Optional[str]) – The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. Provide the base64-encoded file text. If KERBEROS is specified for AuthType , this value is required.

  • kerberos_krb5_conf (Optional[str]) – The krb5.conf file that contains the Kerberos configuration information. You can load the krb5.conf by providing a string of the file’s contents or an Amazon S3 presigned URL of the file. If KERBEROS is specified for AuthType , this value is required.

  • kerberos_principal (Optional[str]) – The Kerberos principal with access to the files and folders on the HDFS cluster. .. epigraph:: If KERBEROS is specified for AuthenticationType , this parameter is required.

  • kms_key_provider_uri (Optional[str]) – The URI of the HDFS cluster’s Key Management Server (KMS).

  • qop_configuration (Union[IResolvable, QopConfigurationProperty, Dict[str, Any], None]) – The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster. If QopConfiguration isn’t specified, RpcProtection and DataTransferProtection default to PRIVACY . If you set RpcProtection or DataTransferProtection , the other parameter assumes the same value.

  • replication_factor (Union[int, float, None]) – The number of DataNodes to replicate the data to when writing to the HDFS cluster. By default, data is replicated to three DataNodes. Default: - 3

  • simple_user (Optional[str]) – The user name used to identify the client on the host operating system. .. epigraph:: If SIMPLE is specified for AuthenticationType , this parameter is required.

  • subdirectory (Optional[str]) – 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 / .

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync

cfn_location_hDFSProps = datasync.CfnLocationHDFSProps(
    agent_arns=["agentArns"],
    authentication_type="authenticationType",
    name_nodes=[datasync.CfnLocationHDFS.NameNodeProperty(
        hostname="hostname",
        port=123
    )],

    # the properties below are optional
    block_size=123,
    kerberos_keytab="kerberosKeytab",
    kerberos_krb5_conf="kerberosKrb5Conf",
    kerberos_principal="kerberosPrincipal",
    kms_key_provider_uri="kmsKeyProviderUri",
    qop_configuration=datasync.CfnLocationHDFS.QopConfigurationProperty(
        data_transfer_protection="dataTransferProtection",
        rpc_protection="rpcProtection"
    ),
    replication_factor=123,
    simple_user="simpleUser",
    subdirectory="subdirectory",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

agent_arns

The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-agentarns

authentication_type

The authentication mode used to determine identity of user.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-authenticationtype

block_size

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).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-blocksize

kerberos_keytab

The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys.

Provide the base64-encoded file text. If KERBEROS is specified for AuthType , this value is required.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-kerberoskeytab

kerberos_krb5_conf

The krb5.conf file that contains the Kerberos configuration information. You can load the krb5.conf by providing a string of the file’s contents or an Amazon S3 presigned URL of the file. If KERBEROS is specified for AuthType , this value is required.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-kerberoskrb5conf

kerberos_principal

The Kerberos principal with access to the files and folders on the HDFS cluster.

If KERBEROS is specified for AuthenticationType , this parameter is required.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-kerberosprincipal

kms_key_provider_uri

The URI of the HDFS cluster’s Key Management Server (KMS).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-kmskeyprovideruri

name_nodes

The NameNode that manages the HDFS namespace.

The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-namenodes

qop_configuration

The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster.

If QopConfiguration isn’t specified, RpcProtection and DataTransferProtection default to PRIVACY . If you set RpcProtection or DataTransferProtection , the other parameter assumes the same value.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-qopconfiguration

replication_factor

The number of DataNodes to replicate the data to when writing to the HDFS cluster.

By default, data is replicated to three DataNodes.

Default:
  • 3

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-replicationfactor

simple_user

The user name used to identify the client on the host operating system.

If SIMPLE is specified for AuthenticationType , this parameter is required.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-simpleuser

subdirectory

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 / .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-subdirectory

tags

The key-value pair that represents the tag that you want to add to the location.

The value can be an empty string. We recommend using tags to name your resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html#cfn-datasync-locationhdfs-tags