CfnLocationHDFSPropsMixin

class aws_cdk.cfn_property_mixins.aws_datasync.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.cfn_property_mixins import aws_datasync as datasync
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_location_hDFSProps_mixin = datasync.CfnLocationHDFSPropsMixin(datasync.CfnLocationHDFSMixinProps(
    agent_arns=["agentArns"],
    authentication_type="authenticationType",
    block_size=123,
    cmk_secret_config=datasync.CfnLocationHDFSPropsMixin.CmkSecretConfigProperty(
        kms_key_arn="kmsKeyArn",
        secret_arn="secretArn"
    ),
    custom_secret_config=datasync.CfnLocationHDFSPropsMixin.CustomSecretConfigProperty(
        secret_access_role_arn="secretAccessRoleArn",
        secret_arn="secretArn"
    ),
    kerberos_keytab="kerberosKeytab",
    kerberos_krb5_conf="kerberosKrb5Conf",
    kerberos_principal="kerberosPrincipal",
    kms_key_provider_uri="kmsKeyProviderUri",
    name_nodes=[datasync.CfnLocationHDFSPropsMixin.NameNodeProperty(
        hostname="hostname",
        port=123
    )],
    qop_configuration=datasync.CfnLocationHDFSPropsMixin.QopConfigurationProperty(
        data_transfer_protection="dataTransferProtection",
        rpc_protection="rpcProtection"
    ),
    replication_factor=123,
    simple_user="simpleUser",
    subdirectory="subdirectory",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

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

Parameters:
  • props (Union[CfnLocationHDFSMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

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

Static Methods

classmethod is_mixin(x)

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.

CmkSecretConfigProperty

class CfnLocationHDFSPropsMixin.CmkSecretConfigProperty(*, kms_key_arn=None, secret_arn=None)

Bases: object

Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed AWS KMS key.

Parameters:
  • kms_key_arn (Optional[str]) – Specifies the ARN for the customer-managed AWS KMS key used to encrypt the secret specified for SecretArn. DataSync provides this key to AWS Secrets Manager.

  • secret_arn (Optional[str]) – Specifies the ARN for an AWS Secrets Manager secret, managed by DataSync.

See:

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

cmk_secret_config_property = datasync.CfnLocationHDFSPropsMixin.CmkSecretConfigProperty(
    kms_key_arn="kmsKeyArn",
    secret_arn="secretArn"
)

Attributes

kms_key_arn

Specifies the ARN for the customer-managed AWS KMS key used to encrypt the secret specified for SecretArn.

DataSync provides this key to AWS Secrets Manager.

See:

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

secret_arn

Specifies the ARN for an AWS Secrets Manager secret, managed by DataSync.

See:

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

CustomSecretConfigProperty

class CfnLocationHDFSPropsMixin.CustomSecretConfigProperty(*, secret_access_role_arn=None, secret_arn=None)

Bases: object

Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and an IAM role that DataSync can assume and access the customer-managed secret.

Parameters:
  • secret_access_role_arn (Optional[str]) – Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.

  • secret_arn (Optional[str]) – Specifies the ARN for a customer created AWS Secrets Manager secret.

See:

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

custom_secret_config_property = datasync.CfnLocationHDFSPropsMixin.CustomSecretConfigProperty(
    secret_access_role_arn="secretAccessRoleArn",
    secret_arn="secretArn"
)

Attributes

secret_access_role_arn

Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.

See:

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

secret_arn

Specifies the ARN for a customer created AWS Secrets Manager secret.

See:

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

ManagedSecretConfigProperty

class CfnLocationHDFSPropsMixin.ManagedSecretConfigProperty(*, secret_arn=None)

Bases: object

Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location.

DataSync uses the default AWS-managed KMS key to encrypt this secret in AWS Secrets Manager.

Parameters:

secret_arn (Optional[str]) – Specifies the ARN for an AWS Secrets Manager secret.

See:

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

managed_secret_config_property = datasync.CfnLocationHDFSPropsMixin.ManagedSecretConfigProperty(
    secret_arn="secretArn"
)

Attributes

secret_arn

Specifies the ARN for an AWS Secrets Manager secret.

See:

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

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.cfn_property_mixins import aws_datasync as datasync

name_node_property = datasync.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.cfn_property_mixins import aws_datasync as datasync

qop_configuration_property = datasync.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