NAME

Paws::Athena::CreateDataCatalog - Arguments for method CreateDataCatalog on Paws::Athena

DESCRIPTION

This class represents the parameters used for calling the method CreateDataCatalog on the Amazon Athena service. Use the attributes of this class as arguments to method CreateDataCatalog.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDataCatalog.

SYNOPSIS

my $athena = Paws->service('Athena');
my $CreateDataCatalogOutput = $athena->CreateDataCatalog(
  Name        => 'MyCatalogNameString',
  Type        => 'LAMBDA',
  Description => 'MyDescriptionString',    # OPTIONAL
  Parameters  => {
    'MyKeyString' =>
      'MyParametersMapValue',    # key: min: 1, max: 255, value: max: 51200
  },    # OPTIONAL
  Tags => [
    {
      Key   => 'MyTagKey',      # min: 1, max: 128; OPTIONAL
      Value => 'MyTagValue',    # max: 256; OPTIONAL
    },
    ...
  ],    # OPTIONAL
);

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/athena/CreateDataCatalog

ATTRIBUTES

Description => Str

A description of the data catalog to be created.

REQUIRED Name => Str

The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.

Parameters => Paws::Athena::ParametersMap

Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.

  • For the HIVE data catalog type, use the following syntax. The metadata-function parameter is required. The sdk-version parameter is optional and defaults to the currently supported version.

    metadata-function=lambda_arn, sdk-version=version_number

  • For the LAMBDA data catalog type, use one of the following sets of required parameters, but not both.

    • If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.

      metadata-function=lambda_arn, record-function=lambda_arn

    • If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.

      function=lambda_arn

Tags => ArrayRef[Paws::Athena::Tag]

A list of comma separated tags to add to the data catalog that is created.

REQUIRED Type => Str

The type of data catalog to create: LAMBDA for a federated catalog or HIVE for an external hive metastore.

Do not use the GLUE type. This refers to the AwsDataCatalog that already exists in your account, of which you can have only one. Specifying the GLUE type will result in an INVALID_INPUT error.

Valid values are: "LAMBDA", "GLUE", "HIVE"

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateDataCatalog in Paws::Athena

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues