update_cluster
async
¶
update_cluster(
cluster_id: ClusterId,
*,
config_overrides: Optional[AsyncSnowballClientConfig] = 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.
>>> await 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/async_snowball.py
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 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 | |