update_cluster
¶
update_cluster(
cluster_id: ClusterId,
*,
config_overrides: Optional[SnowballClientConfig] = None,
role_arn: Optional[RoleARN] = None,
description: Optional[String] = None,
resources: Optional[JobResource] = None,
on_device_service_configuration: Optional[OnDeviceServiceConfiguration] = None,
address_id: Optional[AddressId] = None,
shipping_option: Optional[ShippingOption] = None,
notification: Optional[Notification] = None,
forwarding_address_id: Optional[AddressId] = None,
) -> UpdateClusterResult
While a cluster's ClusterState value is in the AwaitingQuorum state, you can update some of the information associated with a cluster. Once the cluster changes to a different job state, usually 60 minutes after the cluster being created, this action is no longer available.
Parameters:
-
cluster_id(ClusterId) –The cluster ID of the cluster that you want to update, for example
CID123e4567-e89b-12d3-a456-426655440000. -
role_arn(Optional[RoleARN], default:None) –The new role Amazon Resource Name (ARN) that you want to associate with this cluster. To create a role ARN, use the CreateRole API action in Identity and Access Management (IAM).
-
description(Optional[String], default:None) –The updated description of this cluster.
-
resources(Optional[JobResource], default:None) –The updated arrays of JobResource objects that can include updated S3Resource objects or LambdaResource objects.
-
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).
-
address_id(Optional[AddressId], default:None) –The ID of the updated Address object.
-
shipping_option(Optional[ShippingOption], default:None) –The updated shipping option value of this cluster's ShippingDetails object.
-
notification(Optional[Notification], default:None) –The new or updated Notification object.
-
forwarding_address_id(Optional[AddressId], default:None) –The updated ID for the forwarding address for a cluster. This field is not supported in most regions.
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.
-
InvalidJobStateException–The action can't be performed because the job's current state doesn't allow that action to be performed.
-
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 update a cluster This action allows you to update certain parameters for a cluster. Once the cluster changes to a different state, usually within 60 minutes of it being created, this action is no longer available.
>>> client.update_cluster(cluster_id='CID123e4567-e89b-12d3-a456-426655440000', description='updated-cluster-name', address_id='ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b')
Source code in docs_src/capo_snowball/_services/snowball.py
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 | |