1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAccessor`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_request_token(impl ::std::convert::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): <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>
    ///   - [`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): <p>The type of accessor.</p> <note>   <p>Currently, accessor type is restricted to <code>BILLING_TOKEN</code>.</p>  </note>
    ///   - [`tags(HashMap<String, String>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::set_tags): <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>
    /// - On success, responds with [`CreateAccessorOutput`](crate::operation::create_accessor::CreateAccessorOutput) with field(s):
    ///   - [`accessor_id(Option<String>)`](crate::operation::create_accessor::CreateAccessorOutput::accessor_id): <p>The unique identifier of the accessor.</p>
    ///   - [`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 make Ethereum API calls to your Ethereum node. The billing token is used to track your accessor object for billing Ethereum API requests made to your Ethereum nodes.</p>
    /// - On failure, responds with [`SdkError<CreateAccessorError>`](crate::operation::create_accessor::CreateAccessorError)
    pub fn create_accessor(
        &self,
    ) -> crate::operation::create_accessor::builders::CreateAccessorFluentBuilder {
        crate::operation::create_accessor::builders::CreateAccessorFluentBuilder::new(
            self.handle.clone(),
        )
    }
}