@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:32.088Z") public class CfnLocationHDFS extends CfnResource implements IInspectable
The AWS::DataSync::LocationHDFS
resource specifies an endpoint for a Hadoop Distributed File System (HDFS).
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.datasync.*; CfnLocationHDFS cfnLocationHDFS = CfnLocationHDFS.Builder.create(this, "MyCfnLocationHDFS") .agentArns(List.of("agentArns")) .authenticationType("authenticationType") .nameNodes(List.of(NameNodeProperty.builder() .hostname("hostname") .port(123) .build())) // the properties below are optional .blockSize(123) .kerberosKeytab("kerberosKeytab") .kerberosKrb5Conf("kerberosKrb5Conf") .kerberosPrincipal("kerberosPrincipal") .kmsKeyProviderUri("kmsKeyProviderUri") .qopConfiguration(QopConfigurationProperty.builder() .dataTransferProtection("dataTransferProtection") .rpcProtection("rpcProtection") .build()) .replicationFactor(123) .simpleUser("simpleUser") .subdirectory("subdirectory") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnLocationHDFS.Builder
A fluent builder for
CfnLocationHDFS . |
static interface |
CfnLocationHDFS.NameNodeProperty
The NameNode of the Hadoop Distributed File System (HDFS).
|
static interface |
CfnLocationHDFS.QopConfigurationProperty
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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnLocationHDFS(Construct scope,
java.lang.String id,
CfnLocationHDFSProps props)
Create a new `AWS::DataSync::LocationHDFS`.
|
protected |
CfnLocationHDFS(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLocationHDFS(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAgentArns()
The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster.
|
java.lang.String |
getAttrLocationArn()
The Amazon Resource Name (ARN) of the HDFS cluster location to describe.
|
java.lang.String |
getAttrLocationUri()
The URI of the HDFS cluster location.
|
java.lang.String |
getAuthenticationType()
`AWS::DataSync::LocationHDFS.AuthenticationType`.
|
java.lang.Number |
getBlockSize()
The size of data blocks to write into the HDFS cluster.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getKerberosKeytab()
The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys.
|
java.lang.String |
getKerberosKrb5Conf()
The `krb5.conf` file that contains the Kerberos configuration information.
|
java.lang.String |
getKerberosPrincipal()
The Kerberos principal with access to the files and folders on the HDFS cluster.
|
java.lang.String |
getKmsKeyProviderUri()
The URI of the HDFS cluster's Key Management Server (KMS).
|
java.lang.Object |
getNameNodes()
The NameNode that manages the HDFS namespace.
|
java.lang.Object |
getQopConfiguration()
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.
|
java.lang.Number |
getReplicationFactor()
The number of DataNodes to replicate the data to when writing to the HDFS cluster.
|
java.lang.String |
getSimpleUser()
The user name used to identify the client on the host operating system.
|
java.lang.String |
getSubdirectory()
A subdirectory in the HDFS cluster.
|
TagManager |
getTags()
The key-value pair that represents the tag that you want to add to the location.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAgentArns(java.util.List<java.lang.String> value)
The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster.
|
void |
setAuthenticationType(java.lang.String value)
`AWS::DataSync::LocationHDFS.AuthenticationType`.
|
void |
setBlockSize(java.lang.Number value)
The size of data blocks to write into the HDFS cluster.
|
void |
setKerberosKeytab(java.lang.String value)
The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys.
|
void |
setKerberosKrb5Conf(java.lang.String value)
The `krb5.conf` file that contains the Kerberos configuration information.
|
void |
setKerberosPrincipal(java.lang.String value)
The Kerberos principal with access to the files and folders on the HDFS cluster.
|
void |
setKmsKeyProviderUri(java.lang.String value)
The URI of the HDFS cluster's Key Management Server (KMS).
|
void |
setNameNodes(IResolvable value)
The NameNode that manages the HDFS namespace.
|
void |
setNameNodes(java.util.List<java.lang.Object> value)
The NameNode that manages the HDFS namespace.
|
void |
setQopConfiguration(CfnLocationHDFS.QopConfigurationProperty value)
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.
|
void |
setQopConfiguration(IResolvable value)
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.
|
void |
setReplicationFactor(java.lang.Number value)
The number of DataNodes to replicate the data to when writing to the HDFS cluster.
|
void |
setSimpleUser(java.lang.String value)
The user name used to identify the client on the host operating system.
|
void |
setSubdirectory(java.lang.String value)
A subdirectory in the HDFS cluster.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnLocationHDFS(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLocationHDFS(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnLocationHDFS(Construct scope, java.lang.String id, CfnLocationHDFSProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrLocationArn()
public java.lang.String getAttrLocationUri()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
The value can be an empty string. We recommend using tags to name your resources.
public java.util.List<java.lang.String> getAgentArns()
public void setAgentArns(java.util.List<java.lang.String> value)
public java.lang.String getAuthenticationType()
public void setAuthenticationType(java.lang.String value)
public java.lang.Object getNameNodes()
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.
public void setNameNodes(IResolvable value)
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.
public void setNameNodes(java.util.List<java.lang.Object> value)
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.
public java.lang.Number getBlockSize()
The block size must be a multiple of 512 bytes. The default block size is 128 mebibytes (MiB).
public void setBlockSize(java.lang.Number value)
The block size must be a multiple of 512 bytes. The default block size is 128 mebibytes (MiB).
public java.lang.String getKerberosKeytab()
Provide the base64-encoded file text. If KERBEROS
is specified for AuthType
, this value is required.
public void setKerberosKeytab(java.lang.String value)
Provide the base64-encoded file text. If KERBEROS
is specified for AuthType
, this value is required.
public java.lang.String getKerberosKrb5Conf()
public void setKerberosKrb5Conf(java.lang.String value)
public java.lang.String getKerberosPrincipal()
If
KERBEROS
is specified forAuthenticationType
, this parameter is required.
public void setKerberosPrincipal(java.lang.String value)
If
KERBEROS
is specified forAuthenticationType
, this parameter is required.
public java.lang.String getKmsKeyProviderUri()
public void setKmsKeyProviderUri(java.lang.String value)
public java.lang.Object getQopConfiguration()
If QopConfiguration
isn't specified, RpcProtection
and DataTransferProtection
default to PRIVACY
. If you set RpcProtection
or DataTransferProtection
, the other parameter assumes the same value.
public void setQopConfiguration(IResolvable value)
If QopConfiguration
isn't specified, RpcProtection
and DataTransferProtection
default to PRIVACY
. If you set RpcProtection
or DataTransferProtection
, the other parameter assumes the same value.
public void setQopConfiguration(CfnLocationHDFS.QopConfigurationProperty value)
If QopConfiguration
isn't specified, RpcProtection
and DataTransferProtection
default to PRIVACY
. If you set RpcProtection
or DataTransferProtection
, the other parameter assumes the same value.
public java.lang.Number getReplicationFactor()
By default, data is replicated to three DataNodes.
public void setReplicationFactor(java.lang.Number value)
By default, data is replicated to three DataNodes.
public java.lang.String getSimpleUser()
If
SIMPLE
is specified forAuthenticationType
, this parameter is required.
public void setSimpleUser(java.lang.String value)
If
SIMPLE
is specified forAuthenticationType
, this parameter is required.
public java.lang.String getSubdirectory()
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 /
.
public void setSubdirectory(java.lang.String value)
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 /
.