Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is subject to change. We recommend that you use this feature only with test scenarios, and not in production environments.
Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor object is a container that has the information required for token based access to your Ethereum nodes.
Synopsis
- data CreateAccessor = CreateAccessor' {}
- newCreateAccessor :: Text -> AccessorType -> CreateAccessor
- createAccessor_clientRequestToken :: Lens' CreateAccessor Text
- createAccessor_accessorType :: Lens' CreateAccessor AccessorType
- data CreateAccessorResponse = CreateAccessorResponse' {
- accessorId :: Maybe Text
- billingToken :: Maybe Text
- httpStatus :: Int
- newCreateAccessorResponse :: Int -> CreateAccessorResponse
- createAccessorResponse_accessorId :: Lens' CreateAccessorResponse (Maybe Text)
- createAccessorResponse_billingToken :: Lens' CreateAccessorResponse (Maybe Text)
- createAccessorResponse_httpStatus :: Lens' CreateAccessorResponse Int
Creating a Request
data CreateAccessor Source #
See: newCreateAccessor
smart constructor.
CreateAccessor' | |
|
Instances
:: Text | |
-> AccessorType | |
-> CreateAccessor |
Create a value of CreateAccessor
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientRequestToken:CreateAccessor'
, createAccessor_clientRequestToken
- 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.
$sel:accessorType:CreateAccessor'
, createAccessor_accessorType
- The type of accessor.
Currently accessor type is restricted to BILLING_TOKEN
.
Request Lenses
createAccessor_clientRequestToken :: Lens' CreateAccessor Text Source #
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.
createAccessor_accessorType :: Lens' CreateAccessor AccessorType Source #
The type of accessor.
Currently accessor type is restricted to BILLING_TOKEN
.
Destructuring the Response
data CreateAccessorResponse Source #
See: newCreateAccessorResponse
smart constructor.
CreateAccessorResponse' | |
|
Instances
newCreateAccessorResponse Source #
Create a value of CreateAccessorResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accessorId:CreateAccessorResponse'
, createAccessorResponse_accessorId
- The unique identifier of the accessor.
CreateAccessorResponse
, createAccessorResponse_billingToken
- 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.
$sel:httpStatus:CreateAccessorResponse'
, createAccessorResponse_httpStatus
- The response's http status code.
Response Lenses
createAccessorResponse_accessorId :: Lens' CreateAccessorResponse (Maybe Text) Source #
The unique identifier of the accessor.
createAccessorResponse_billingToken :: Lens' CreateAccessorResponse (Maybe Text) Source #
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.
createAccessorResponse_httpStatus :: Lens' CreateAccessorResponse Int Source #
The response's http status code.