Snowball.Client.
describe_cluster
(**kwargs)¶Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
See also: AWS API Documentation
Request Syntax
response = client.describe_cluster(
ClusterId='string'
)
[REQUIRED]
The automatically generated ID for a cluster.
{
'ClusterMetadata': {
'ClusterId': 'string',
'Description': 'string',
'KmsKeyARN': 'string',
'RoleARN': 'string',
'ClusterState': 'AwaitingQuorum'|'Pending'|'InUse'|'Complete'|'Cancelled',
'JobType': 'IMPORT'|'EXPORT'|'LOCAL_USE',
'SnowballType': 'STANDARD'|'EDGE'|'EDGE_C'|'EDGE_CG'|'EDGE_S'|'SNC1_HDD'|'SNC1_SSD'|'V3_5C',
'CreationDate': datetime(2015, 1, 1),
'Resources': {
'S3Resources': [
{
'BucketArn': 'string',
'KeyRange': {
'BeginMarker': 'string',
'EndMarker': 'string'
},
'TargetOnDeviceServices': [
{
'ServiceName': 'NFS_ON_DEVICE_SERVICE'|'S3_ON_DEVICE_SERVICE',
'TransferOption': 'IMPORT'|'EXPORT'|'LOCAL_USE'
},
]
},
],
'LambdaResources': [
{
'LambdaArn': 'string',
'EventTriggers': [
{
'EventResourceARN': 'string'
},
]
},
],
'Ec2AmiResources': [
{
'AmiId': 'string',
'SnowballAmiId': 'string'
},
]
},
'AddressId': 'string',
'ShippingOption': 'SECOND_DAY'|'NEXT_DAY'|'EXPRESS'|'STANDARD',
'Notification': {
'SnsTopicARN': 'string',
'JobStatesToNotify': [
'New'|'PreparingAppliance'|'PreparingShipment'|'InTransitToCustomer'|'WithCustomer'|'InTransitToAWS'|'WithAWSSortingFacility'|'WithAWS'|'InProgress'|'Complete'|'Cancelled'|'Listing'|'Pending',
],
'NotifyAll': True|False
},
'ForwardingAddressId': 'string',
'TaxDocuments': {
'IND': {
'GSTIN': 'string'
}
},
'OnDeviceServiceConfiguration': {
'NFSOnDeviceService': {
'StorageLimit': 123,
'StorageUnit': 'TB'
},
'TGWOnDeviceService': {
'StorageLimit': 123,
'StorageUnit': 'TB'
},
'EKSOnDeviceService': {
'KubernetesVersion': 'string',
'EKSAnywhereVersion': 'string'
}
}
}
}
Response Structure
Information about a specific cluster, including shipping information, cluster status, and other important metadata.
The automatically generated ID for a cluster.
The optional description of the cluster.
The KmsKeyARN
Amazon Resource Name (ARN) associated with this cluster. This ARN was created using the CreateKey API action in Key Management Service (KMS.
The role ARN associated with this cluster. This ARN was created using the CreateRole API action in Identity and Access Management (IAM).
The current status of the cluster.
The type of job for this cluster. Currently, the only job type supported for clusters is LOCAL_USE
.
The type of Snowcone device to use for this cluster.
Note
For cluster jobs, Amazon Web Services Snow Family currently supports only the EDGE
device type.
The creation date for this cluster.
The arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.
An array of S3Resource
objects.
Each S3Resource
object represents an Amazon S3 bucket that your transferred data will be exported from or imported into. For export jobs, this object can have an optional KeyRange
value. The length of the range is defined at job creation, and has either an inclusive BeginMarker
, an inclusive EndMarker
, or both. Ranges are UTF-8 binary sorted.
The Amazon Resource Name (ARN) of an Amazon S3 bucket.
For export jobs, you can provide an optional KeyRange
within a specific Amazon S3 bucket. The length of the range is defined at job creation, and has either an inclusive BeginMarker
, an inclusive EndMarker
, or both. Ranges are UTF-8 binary sorted.
The key that starts an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
The key that ends an optional key range for an export job. Ranges are inclusive and UTF-8 binary sorted.
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 supports Amazon S3 and NFS (Network File System).
An object that represents 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 supports Amazon S3 and NFS (Network File System).
Specifies the name of the service on the Snow Family device that your transferred data will be exported from or imported into.
Specifies whether the data is being imported or exported. You can import or export the data, or use it locally on the device.
The Python-language Lambda functions for this job.
Identifies
An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
The container for the EventTriggerDefinition$EventResourceARN.
The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an Lambda function's event trigger associated with this job.
The Amazon Machine Images (AMIs) associated with this job.
A JSON-formatted object that contains the IDs for an Amazon Machine Image (AMI), including the Amazon EC2 AMI ID and the Snow device AMI ID. Each AMI has these two IDs to simplify identifying the AMI in both the Amazon Web Services Cloud and on the device.
The ID of the AMI in Amazon EC2.
The ID of the AMI on the Snow device.
The automatically generated ID for a specific address.
The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each device, rather it represents how quickly each device moves to its destination while in transit. Regional shipping speeds are as follows:
The Amazon Simple Notification Service (Amazon SNS) notification settings for this cluster.
The new SNS TopicArn
that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the Amazon Web Services Management Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
The list of job states that will trigger a notification for this job.
Any change in job state will trigger a notification for this job.
The ID of the address that you want a cluster shipped to, after it will be shipped to its primary address. This field is not supported in most regions.
The tax documents required in your Amazon Web Services Region.
The tax documents required in Amazon Web Services Region in India.
The Goods and Services Tax (GST) documents required in Amazon Web Services Region in India.
Represents metadata and configuration settings for services on an Amazon Web Services Snow Family device.
Represents the NFS (Network File System) service on a Snow Family device.
The maximum NFS storage for one Snow Family device.
The scale unit of the NFS storage on the device.
Valid values: TB.
Represents the Storage Gateway service Tape Gateway type on a Snow Family device.
The maximum number of virtual tapes to store on one Snow Family device. Due to physical resource limitations, this value must be set to 80 for Snowball Edge.
The scale unit of the virtual tapes on the device.
The configuration of EKS Anywhere on the Snow Family device.
The Kubernetes version for EKS Anywhere on the Snow Family device.
The version of EKS Anywhere on the Snow Family device.
Exceptions
Snowball.Client.exceptions.InvalidResourceException
Examples
Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
response = client.describe_cluster(
ClusterId='CID123e4567-e89b-12d3-a456-426655440000',
)
print(response)
Expected Output:
{
'ClusterMetadata': {
'AddressId': 'ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b',
'ClusterId': 'CID123e4567-e89b-12d3-a456-426655440000',
'ClusterState': 'Pending',
'CreationDate': datetime(2016, 11, 30, 3, 11, 57, 2, 335, 0),
'Description': 'MyCluster',
'JobType': 'LOCAL_USE',
'KmsKeyARN': 'arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456',
'Notification': {
'JobStatesToNotify': [
],
'NotifyAll': False,
},
'Resources': {
'S3Resources': [
{
'BucketArn': 'arn:aws:s3:::MyBucket',
'KeyRange': {
},
},
],
},
'RoleARN': 'arn:aws:iam::123456789012:role/snowball-import-S3-role',
'ShippingOption': 'SECOND_DAY',
},
'ResponseMetadata': {
'...': '...',
},
}