Panorama / Client / create_package_import_job

create_package_import_job#

Panorama.Client.create_package_import_job(**kwargs)#

Imports a node package.

See also: AWS API Documentation

Request Syntax

response = client.create_package_import_job(
    ClientToken='string',
    InputConfig={
        'PackageVersionInputConfig': {
            'S3Location': {
                'BucketName': 'string',
                'ObjectKey': 'string',
                'Region': 'string'
            }
        }
    },
    JobTags=[
        {
            'ResourceType': 'PACKAGE',
            'Tags': {
                'string': 'string'
            }
        },
    ],
    JobType='NODE_PACKAGE_VERSION'|'MARKETPLACE_NODE_PACKAGE_VERSION',
    OutputConfig={
        'PackageVersionOutputConfig': {
            'MarkLatest': True|False,
            'PackageName': 'string',
            'PackageVersion': 'string'
        }
    }
)
Parameters:
  • ClientToken (string) –

    [REQUIRED]

    A client token for the package import job.

  • InputConfig (dict) –

    [REQUIRED]

    An input config for the package import job.

    • PackageVersionInputConfig (dict) –

      The package version’s input configuration.

      • S3Location (dict) – [REQUIRED]

        A location in Amazon S3.

        • BucketName (string) – [REQUIRED]

          A bucket name.

        • ObjectKey (string) – [REQUIRED]

          An object key.

        • Region (string) –

          The bucket’s Region.

  • JobTags (list) –

    Tags for the package import job.

    • (dict) –

      Tags for a job.

      • ResourceType (string) – [REQUIRED]

        The job’s type.

      • Tags (dict) – [REQUIRED]

        The job’s tags.

        • (string) –

          • (string) –

  • JobType (string) –

    [REQUIRED]

    A job type for the package import job.

  • OutputConfig (dict) –

    [REQUIRED]

    An output config for the package import job.

    • PackageVersionOutputConfig (dict) –

      The package version’s output configuration.

      • MarkLatest (boolean) –

        Indicates that the version is recommended for all users.

      • PackageName (string) – [REQUIRED]

        The output’s package name.

      • PackageVersion (string) – [REQUIRED]

        The output’s package version.

Return type:

dict

Returns:

Response Syntax

{
    'JobId': 'string'
}

Response Structure

  • (dict) –

    • JobId (string) –

      The job’s ID.

Exceptions