CfnLocationHDFSPropsMixin

class aws_cdk.mixins_preview.aws_datasync.mixins.CfnLocationHDFSPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::DataSync::LocationHDFS resource specifies an endpoint for a Hadoop Distributed File System (HDFS).

See:

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

CloudformationResource:

AWS::DataSync::LocationHDFS

Mixin:

true

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_datasync import mixins as datasync_mixins

cfn_location_hDFSProps_mixin = datasync_mixins.CfnLocationHDFSPropsMixin(datasync_mixins.CfnLocationHDFSMixinProps(
    agent_arns=["agentArns"],
    authentication_type="authenticationType",
    block_size=123,
    kerberos_keytab="kerberosKeytab",
    kerberos_krb5_conf="kerberosKrb5Conf",
    kerberos_principal="kerberosPrincipal",
    kms_key_provider_uri="kmsKeyProviderUri",
    name_nodes=[datasync_mixins.CfnLocationHDFSPropsMixin.NameNodeProperty(
        hostname="hostname",
        port=123
    )],
    qop_configuration=datasync_mixins.CfnLocationHDFSPropsMixin.QopConfigurationProperty(
        data_transfer_protection="dataTransferProtection",
        rpc_protection="rpcProtection"
    ),
    replication_factor=123,
    simple_user="simpleUser",
    subdirectory="subdirectory",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::DataSync::LocationHDFS.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['agentArns', 'authenticationType', 'blockSize', 'kerberosKeytab', 'kerberosKrb5Conf', 'kerberosPrincipal', 'kmsKeyProviderUri', 'nameNodes', 'qopConfiguration', 'replicationFactor', 'simpleUser', 'subdirectory', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

NameNodeProperty

class CfnLocationHDFSPropsMixin.NameNodeProperty(*, hostname=None, port=None)

Bases: object

The NameNode of the Hadoop Distributed File System (HDFS).

The NameNode manages the file system’s namespace and performs operations such as opening, closing, and renaming files and directories. The NameNode also contains the information to map blocks of data to the DataNodes.

Parameters:
  • hostname (Optional[str]) – The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that’s installed on-premises uses this hostname to communicate with the NameNode in the network.

  • port (Union[int, float, None]) – The port that the NameNode uses to listen to client requests.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationhdfs-namenode.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.mixins_preview.aws_datasync import mixins as datasync_mixins

name_node_property = datasync_mixins.CfnLocationHDFSPropsMixin.NameNodeProperty(
    hostname="hostname",
    port=123
)

Attributes

hostname

The hostname of the NameNode in the HDFS cluster.

This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that’s installed on-premises uses this hostname to communicate with the NameNode in the network.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationhdfs-namenode.html#cfn-datasync-locationhdfs-namenode-hostname

port

The port that the NameNode uses to listen to client requests.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationhdfs-namenode.html#cfn-datasync-locationhdfs-namenode-port

QopConfigurationProperty

class CfnLocationHDFSPropsMixin.QopConfigurationProperty(*, data_transfer_protection=None, rpc_protection=None)

Bases: object

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

Parameters:
  • data_transfer_protection (Optional[str]) – The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your dfs.data.transfer.protection setting in the hdfs-site.xml file on your Hadoop cluster. Default: - “PRIVACY”

  • rpc_protection (Optional[str]) – The Remote Procedure Call (RPC) protection setting configured on the HDFS cluster. This setting corresponds to your hadoop.rpc.protection setting in your core-site.xml file on your Hadoop cluster. Default: - “PRIVACY”

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationhdfs-qopconfiguration.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.mixins_preview.aws_datasync import mixins as datasync_mixins

qop_configuration_property = datasync_mixins.CfnLocationHDFSPropsMixin.QopConfigurationProperty(
    data_transfer_protection="dataTransferProtection",
    rpc_protection="rpcProtection"
)

Attributes

data_transfer_protection

The data transfer protection setting configured on the HDFS cluster.

This setting corresponds to your dfs.data.transfer.protection setting in the hdfs-site.xml file on your Hadoop cluster.

Default:
  • “PRIVACY”

See:

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

rpc_protection

The Remote Procedure Call (RPC) protection setting configured on the HDFS cluster.

This setting corresponds to your hadoop.rpc.protection setting in your core-site.xml file on your Hadoop cluster.

Default:
  • “PRIVACY”

See:

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