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. IfKERBEROS
is specified forAuthType
, this value is required.kerberos_krb5_conf (
Optional
[str
]) – Thekrb5.conf
file that contains the Kerberos configuration information. You can load thekrb5.conf
by providing a string of the file’s contents or an Amazon S3 presigned URL of the file. IfKERBEROS
is specified forAuthType
, this value is required.kerberos_principal (
Optional
[str
]) – The Kerberos principal with access to the files and folders on the HDFS cluster. .. epigraph:: IfKERBEROS
is specified forAuthenticationType
, 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. IfQopConfiguration
isn’t specified,RpcProtection
andDataTransferProtection
default toPRIVACY
. If you setRpcProtection
orDataTransferProtection
, 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: - 3simple_user (
Optional
[str
]) – The user name used to identify the client on the host operating system. .. epigraph:: IfSIMPLE
is specified forAuthenticationType
, 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:
- 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.
- authentication_type
The authentication mode used to determine identity of user.
- 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).
- 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 forAuthType
, this value is required.
- kerberos_krb5_conf
The
krb5.conf
file that contains the Kerberos configuration information. You can load thekrb5.conf
by providing a string of the file’s contents or an Amazon S3 presigned URL of the file. IfKERBEROS
is specified forAuthType
, this value is required.
- kerberos_principal
The Kerberos principal with access to the files and folders on the HDFS cluster.
If
KERBEROS
is specified forAuthenticationType
, this parameter is required.
- kms_key_provider_uri
The URI of the HDFS cluster’s Key Management Server (KMS).
- 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.
- 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
andDataTransferProtection
default toPRIVACY
. If you setRpcProtection
orDataTransferProtection
, the other parameter assumes the same value.
- 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.
- simple_user
The user name used to identify the client on the host operating system.
If
SIMPLE
is specified forAuthenticationType
, this parameter is required.
- 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
/
.
- 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.