create_cluster
¶
create_cluster(
job_type: JobType,
address_id: AddressId,
snowball_type: SnowballType,
shipping_option: ShippingOption,
*,
config_overrides: Optional[SnowballClientConfig] = None,
resources: Optional[JobResource] = None,
on_device_service_configuration: Optional[OnDeviceServiceConfiguration] = None,
description: Optional[String] = None,
kms_key_arn: Optional[KmsKeyARN] = None,
role_arn: Optional[RoleARN] = None,
notification: Optional[Notification] = None,
forwarding_address_id: Optional[AddressId] = None,
tax_documents: Optional[TaxDocuments] = None,
remote_management: Optional[RemoteManagement] = None,
initial_cluster_size: Optional[InitialClusterSize] = None,
force_create_jobs: Optional[Boolean] = None,
long_term_pricing_ids: Optional[LongTermPricingIdList] = None,
snowball_capacity_preference: Optional[SnowballCapacity] = None,
) -> CreateClusterResult
Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.
Parameters:
-
job_type(JobType) –The type of job for this cluster. Currently, the only job type supported for clusters is
LOCAL_USE.For more information, see "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide or "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide.
-
resources(Optional[JobResource], default:None) –The resources associated with the cluster job. These resources include Amazon S3 buckets and optional Lambda functions written in the Python language.
-
on_device_service_configuration(Optional[OnDeviceServiceConfiguration], default:None) –Specifies the service or services on the Snow Family device that your transferred data will be exported from or imported into. Amazon Web Services Snow Family device clusters support Amazon S3 and NFS (Network File System).
-
description(Optional[String], default:None) –An optional description of this specific cluster, for example
Environmental Data Cluster-01. -
address_id(AddressId) –The ID for the address that you want the cluster shipped to.
-
kms_key_arn(Optional[KmsKeyARN], default:None) –The
KmsKeyARNvalue that you want to associate with this cluster.KmsKeyARNvalues are created by using the CreateKey API action in Key Management Service (KMS). -
role_arn(Optional[RoleARN], default:None) –The
RoleARNthat you want to associate with this cluster.RoleArnvalues are created by using the CreateRole API action in Identity and Access Management (IAM). -
snowball_type(SnowballType) –The type of Snow Family devices to use for this cluster.
For cluster jobs, Amazon Web Services Snow Family currently supports only the
EDGEdevice type.For more information, see "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide or "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide.
-
shipping_option(ShippingOption) –The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each Snowball Edge device, rather it represents how quickly each device moves to its destination while in transit. Regional shipping speeds are as follows:
-
In Australia, you have access to express shipping. Typically, Snow devices shipped express are delivered in about a day.
-
In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.
-
In India, Snow devices are delivered in one to seven days.
-
In the United States of America (US), you have access to one-day shipping and two-day shipping.
-
In Australia, you have access to express shipping. Typically, devices shipped express are delivered in about a day.
-
In the European Union (EU), you have access to express shipping. Typically, Snow devices shipped express are delivered in about a day. In addition, most countries in the EU have access to standard shipping, which typically takes less than a week, one way.
-
In India, Snow devices are delivered in one to seven days.
-
In the US, you have access to one-day shipping and two-day shipping.
-
-
notification(Optional[Notification], default:None) –The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.
-
forwarding_address_id(Optional[AddressId], default:None) –The forwarding address ID for a cluster. This field is not supported in most regions.
-
tax_documents(Optional[TaxDocuments], default:None) –The tax documents required in your Amazon Web Services Region.
-
remote_management(Optional[RemoteManagement], default:None) –Allows you to securely operate and manage Snow devices in a cluster remotely from outside of your internal network. When set to
INSTALLED_AUTOSTART, remote management will automatically be available when the device arrives at your location. Otherwise, you need to use the Snowball Client to manage the device. -
initial_cluster_size(Optional[InitialClusterSize], default:None) –If provided, each job will be automatically created and associated with the new cluster. If not provided, will be treated as 0.
-
force_create_jobs(Optional[Boolean], default:None) –Force to create cluster when user attempts to overprovision or underprovision a cluster. A cluster is overprovisioned or underprovisioned if the initial size of the cluster is more (overprovisioned) or less (underprovisioned) than what needed to meet capacity requirement specified with
OnDeviceServiceConfiguration. -
long_term_pricing_ids(Optional[LongTermPricingIdList], default:None) –Lists long-term pricing id that will be used to associate with jobs automatically created for the new cluster.
-
snowball_capacity_preference(Optional[SnowballCapacity], default:None) –If your job is being created in one of the US regions, you have the option of specifying what size Snow device you'd like for this job. In all other regions, Snowballs come with 80 TB in storage capacity.
For more information, see "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide or "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide.
Raises:
-
Ec2RequestFailedException–Your user lacks the necessary Amazon EC2 permissions to perform the attempted action.
-
InvalidInputCombinationException–Job or cluster creation failed. One or more inputs were invalid. Confirm that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, and try again.
-
InvalidResourceException–The specified resource can't be found. Check the information you provided in your last request, and try again.
-
KMSRequestFailedException– -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a cluster Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.
>>> client.create_cluster(job_type='LOCAL_USE', resources={'S3Resources': [{'BucketArn': 'arn:aws:s3:::MyBucket', 'KeyRange': {}}]}, description='MyCluster', address_id='ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b', kms_key_arn='arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456', role_arn='arn:aws:iam::123456789012:role/snowball-import-S3-role', snowball_type='EDGE', shipping_option='SECOND_DAY', notification={'NotifyAll': False, 'JobStatesToNotify': []})
Source code in docs_src/capo_snowball/_services/snowball.py
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 | |