aws_sdk_managedblockchain/client/
create_accessor.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateAccessor`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::set_client_request_token):<br>required: **true**<br><p>This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than once. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon Web Services CLI.</p><br>
7    ///   - [`accessor_type(AccessorType)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::accessor_type) / [`set_accessor_type(Option<AccessorType>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::set_accessor_type):<br>required: **true**<br><p>The type of accessor.</p><note>  <p>Currently, accessor type is restricted to <code>BILLING_TOKEN</code>.</p> </note><br>
8    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to assign to the Accessor.</p> <p>Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per resource.</p> <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p><br>
9    ///   - [`network_type(AccessorNetworkType)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::network_type) / [`set_network_type(Option<AccessorNetworkType>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::set_network_type):<br>required: **false**<br><p>The blockchain network that the <code>Accessor</code> token is created for.</p><note>  <ul>   <li>    <p>Use the actual <code>networkType</code> value for the blockchain network that you are creating the <code>Accessor</code> token for.</p></li>   <li>    <p>With the shut down of the <i>Ethereum Goerli</i> and <i>Polygon Mumbai Testnet</i> networks the following <code>networkType</code> values are no longer available for selection and use.</p>    <ul>     <li>      <p><code>ETHEREUM_MAINNET_AND_GOERLI</code></p></li>     <li>      <p><code>ETHEREUM_GOERLI</code></p></li>     <li>      <p><code>POLYGON_MUMBAI</code></p></li>    </ul>    <p>However, your existing <code>Accessor</code> tokens with these <code>networkType</code> values will remain unchanged.</p></li>  </ul> </note><br>
10    /// - On success, responds with [`CreateAccessorOutput`](crate::operation::create_accessor::CreateAccessorOutput) with field(s):
11    ///   - [`accessor_id(Option<String>)`](crate::operation::create_accessor::CreateAccessorOutput::accessor_id): <p>The unique identifier of the accessor.</p>
12    ///   - [`billing_token(Option<String>)`](crate::operation::create_accessor::CreateAccessorOutput::billing_token): <p>The billing token is a property of the Accessor. Use this token to when making calls to the blockchain network. The billing token is used to track your accessor token for billing requests.</p>
13    ///   - [`network_type(Option<AccessorNetworkType>)`](crate::operation::create_accessor::CreateAccessorOutput::network_type): <p>The blockchain network that the accessor token is created for.</p>
14    /// - On failure, responds with [`SdkError<CreateAccessorError>`](crate::operation::create_accessor::CreateAccessorError)
15    pub fn create_accessor(&self) -> crate::operation::create_accessor::builders::CreateAccessorFluentBuilder {
16        crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::new(self.handle.clone())
17    }
18}