Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.datasync.kotlin
import com.pulumi.aws.datasync.LocationHdfsArgs.builder
import com.pulumi.aws.datasync.kotlin.inputs.LocationHdfsNameNodeArgs
import com.pulumi.aws.datasync.kotlin.inputs.LocationHdfsNameNodeArgsBuilder
import com.pulumi.aws.datasync.kotlin.inputs.LocationHdfsQopConfigurationArgs
import com.pulumi.aws.datasync.kotlin.inputs.LocationHdfsQopConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an HDFS Location within AWS DataSync.
* > **NOTE:** The DataSync Agents must be available before creating this resource.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.datasync.LocationHdfs("example", {
* agentArns: [exampleAwsDatasyncAgent.arn],
* authenticationType: "SIMPLE",
* simpleUser: "example",
* nameNodes: [{
* hostname: exampleAwsInstance.privateDns,
* port: 80,
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.datasync.LocationHdfs("example",
* agent_arns=[example_aws_datasync_agent["arn"]],
* authentication_type="SIMPLE",
* simple_user="example",
* name_nodes=[{
* "hostname": example_aws_instance["privateDns"],
* "port": 80,
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.DataSync.LocationHdfs("example", new()
* {
* AgentArns = new[]
* {
* exampleAwsDatasyncAgent.Arn,
* },
* AuthenticationType = "SIMPLE",
* SimpleUser = "example",
* NameNodes = new[]
* {
* new Aws.DataSync.Inputs.LocationHdfsNameNodeArgs
* {
* Hostname = exampleAwsInstance.PrivateDns,
* Port = 80,
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datasync"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datasync.NewLocationHdfs(ctx, "example", &datasync.LocationHdfsArgs{
* AgentArns: pulumi.StringArray{
* exampleAwsDatasyncAgent.Arn,
* },
* AuthenticationType: pulumi.String("SIMPLE"),
* SimpleUser: pulumi.String("example"),
* NameNodes: datasync.LocationHdfsNameNodeArray{
* &datasync.LocationHdfsNameNodeArgs{
* Hostname: pulumi.Any(exampleAwsInstance.PrivateDns),
* Port: pulumi.Int(80),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.datasync.LocationHdfs;
* import com.pulumi.aws.datasync.LocationHdfsArgs;
* import com.pulumi.aws.datasync.inputs.LocationHdfsNameNodeArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new LocationHdfs("example", LocationHdfsArgs.builder()
* .agentArns(exampleAwsDatasyncAgent.arn())
* .authenticationType("SIMPLE")
* .simpleUser("example")
* .nameNodes(LocationHdfsNameNodeArgs.builder()
* .hostname(exampleAwsInstance.privateDns())
* .port(80)
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:datasync:LocationHdfs
* properties:
* agentArns:
* - ${exampleAwsDatasyncAgent.arn}
* authenticationType: SIMPLE
* simpleUser: example
* nameNodes:
* - hostname: ${exampleAwsInstance.privateDns}
* port: 80
* ```
*
* ### Kerberos Authentication
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* import * as std from "@pulumi/std";
* const example = new aws.datasync.LocationHdfs("example", {
* agentArns: [exampleAwsDatasyncAgent.arn],
* authenticationType: "KERBEROS",
* nameNodes: [{
* hostname: exampleAwsInstance.privateDns,
* port: 80,
* }],
* kerberosPrincipal: "[email protected]",
* kerberosKeytabBase64: std.filebase64({
* input: "user.keytab",
* }).then(invoke => invoke.result),
* kerberosKrb5Conf: std.file({
* input: "krb5.conf",
* }).then(invoke => invoke.result),
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* import pulumi_std as std
* example = aws.datasync.LocationHdfs("example",
* agent_arns=[example_aws_datasync_agent["arn"]],
* authentication_type="KERBEROS",
* name_nodes=[{
* "hostname": example_aws_instance["privateDns"],
* "port": 80,
* }],
* kerberos_principal="[email protected]",
* kerberos_keytab_base64=std.filebase64(input="user.keytab").result,
* kerberos_krb5_conf=std.file(input="krb5.conf").result)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* using Std = Pulumi.Std;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.DataSync.LocationHdfs("example", new()
* {
* AgentArns = new[]
* {
* exampleAwsDatasyncAgent.Arn,
* },
* AuthenticationType = "KERBEROS",
* NameNodes = new[]
* {
* new Aws.DataSync.Inputs.LocationHdfsNameNodeArgs
* {
* Hostname = exampleAwsInstance.PrivateDns,
* Port = 80,
* },
* },
* KerberosPrincipal = "[email protected]",
* KerberosKeytabBase64 = Std.Filebase64.Invoke(new()
* {
* Input = "user.keytab",
* }).Apply(invoke => invoke.Result),
* KerberosKrb5Conf = Std.File.Invoke(new()
* {
* Input = "krb5.conf",
* }).Apply(invoke => invoke.Result),
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datasync"
* "github.com/pulumi/pulumi-std/sdk/go/std"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{
* Input: "user.keytab",
* }, nil)
* if err != nil {
* return err
* }
* invokeFile1, err := std.File(ctx, &std.FileArgs{
* Input: "krb5.conf",
* }, nil)
* if err != nil {
* return err
* }
* _, err = datasync.NewLocationHdfs(ctx, "example", &datasync.LocationHdfsArgs{
* AgentArns: pulumi.StringArray{
* exampleAwsDatasyncAgent.Arn,
* },
* AuthenticationType: pulumi.String("KERBEROS"),
* NameNodes: datasync.LocationHdfsNameNodeArray{
* &datasync.LocationHdfsNameNodeArgs{
* Hostname: pulumi.Any(exampleAwsInstance.PrivateDns),
* Port: pulumi.Int(80),
* },
* },
* KerberosPrincipal: pulumi.String("[email protected]"),
* KerberosKeytabBase64: pulumi.String(invokeFilebase64.Result),
* KerberosKrb5Conf: pulumi.String(invokeFile1.Result),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.datasync.LocationHdfs;
* import com.pulumi.aws.datasync.LocationHdfsArgs;
* import com.pulumi.aws.datasync.inputs.LocationHdfsNameNodeArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new LocationHdfs("example", LocationHdfsArgs.builder()
* .agentArns(exampleAwsDatasyncAgent.arn())
* .authenticationType("KERBEROS")
* .nameNodes(LocationHdfsNameNodeArgs.builder()
* .hostname(exampleAwsInstance.privateDns())
* .port(80)
* .build())
* .kerberosPrincipal("[email protected]")
* .kerberosKeytabBase64(StdFunctions.filebase64(Filebase64Args.builder()
* .input("user.keytab")
* .build()).result())
* .kerberosKrb5Conf(StdFunctions.file(FileArgs.builder()
* .input("krb5.conf")
* .build()).result())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:datasync:LocationHdfs
* properties:
* agentArns:
* - ${exampleAwsDatasyncAgent.arn}
* authenticationType: KERBEROS
* nameNodes:
* - hostname: ${exampleAwsInstance.privateDns}
* port: 80
* kerberosPrincipal: [email protected]
* kerberosKeytabBase64:
* fn::invoke:
* Function: std:filebase64
* Arguments:
* input: user.keytab
* Return: result
* kerberosKrb5Conf:
* fn::invoke:
* Function: std:file
* Arguments:
* input: krb5.conf
* Return: result
* ```
*
* ## Import
* Using `pulumi import`, import `aws_datasync_location_hdfs` using the Amazon Resource Name (ARN). For example:
* ```sh
* $ pulumi import aws:datasync/locationHdfs:LocationHdfs example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567
* ```
* @property agentArns A list of DataSync Agent ARNs with which this location will be associated.
* @property authenticationType The type of authentication used to determine the identity of the user. Valid values are `SIMPLE` and `KERBEROS`.
* @property blockSize 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).
* @property kerberosKeytab The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. Use `kerberos_keytab_base64` instead whenever the value is not a valid UTF-8 string. If `KERBEROS` is specified for `authentication_type`, this parameter (or `kerberos_keytab_base64`) is required.
* @property kerberosKeytabBase64 Use instead of `kerberos_keytab` to pass base64-encoded binary data directly. If `KERBEROS` is specified for `authentication_type`, this parameter (or `kerberos_keytab`) is required.
* @property kerberosKrb5Conf The krb5.conf file that contains the Kerberos configuration information. Use `kerberos_krb5_conf_base64` instead whenever the value is not a valid UTF-8 string. If `KERBEROS` is specified for `authentication_type`, this parameter (or `kerberos_krb5_conf_base64`) is required.
* @property kerberosKrb5ConfBase64 Use instead of `kerberos_krb5_conf` to pass base64-encoded binary data directly. If `KERBEROS` is specified for `authentication_type`, this parameter (or `kerberos_krb5_conf`) is required.
* @property kerberosPrincipal The Kerberos principal with access to the files and folders on the HDFS cluster. If `KERBEROS` is specified for `authentication_type`, this parameter is required.
* @property kmsKeyProviderUri The URI of the HDFS cluster's Key Management Server (KMS).
* @property nameNodes 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 configuration below.
* @property qopConfiguration 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 `qop_configuration` isn't specified, `rpc_protection` and `data_transfer_protection` default to `PRIVACY`. If you set RpcProtection or DataTransferProtection, the other parameter assumes the same value. See configuration below.
* @property replicationFactor The number of DataNodes to replicate the data to when writing to the HDFS cluster. By default, data is replicated to three DataNodes.
* @property simpleUser The user name used to identify the client on the host operating system. If `SIMPLE` is specified for `authentication_type`, this parameter is required.
* @property 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 /.
* @property tags Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public data class LocationHdfsArgs(
public val agentArns: Output>? = null,
public val authenticationType: Output? = null,
public val blockSize: Output? = null,
public val kerberosKeytab: Output? = null,
public val kerberosKeytabBase64: Output? = null,
public val kerberosKrb5Conf: Output? = null,
public val kerberosKrb5ConfBase64: Output? = null,
public val kerberosPrincipal: Output? = null,
public val kmsKeyProviderUri: Output? = null,
public val nameNodes: Output>? = null,
public val qopConfiguration: Output? = null,
public val replicationFactor: Output? = null,
public val simpleUser: Output? = null,
public val subdirectory: Output? = null,
public val tags: Output