# CfnAccessorProps

Properties for defining a `CfnAccessor`.

Used as props by: [CfnAccessor](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_managedblockchain.CfnAccessor.html)

- Source: Generated at build time
- Type last changed: v2.113.0 · 1 Dec 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_managedblockchain as managedblockchain } from 'aws-cdk-lib';
const cfnAccessorProps: managedblockchain.CfnAccessorProps = {
  accessorType: 'accessorType',

  // the properties below are optional
  networkType: 'networkType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_managedblockchain as managedblockchain

cfn_accessor_props = managedblockchain.CfnAccessorProps(
    accessor_type="accessorType",

    # the properties below are optional
    network_type="networkType",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.managedblockchain.*;

CfnAccessorProps cfnAccessorProps = CfnAccessorProps.builder()
        .accessorType("accessorType")

        // the properties below are optional
        .networkType("networkType")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ManagedBlockchain;

var cfnAccessorProps = new CfnAccessorProps {
    AccessorType = "accessorType",

    // the properties below are optional
    NetworkType = "networkType",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAccessorProps := &CfnAccessorProps{
	AccessorType: jsii.String("accessorType"),

	// the properties below are optional
	NetworkType: jsii.String("networkType"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `accessorType`: string (required) — The type of the accessor.

  > Currently, accessor type is restricted to `BILLING_TOKEN` .

- `networkType`: string — The blockchain network that the `Accessor` token is created for.

  > We recommend using the appropriate `networkType` value for the blockchain network that you are creating the `Accessor` token for. You cannot use the value `ETHEREUM_MAINNET_AND_GOERLI` to specify a `networkType` for your Accessor token.
  >
  > The default value of `ETHEREUM_MAINNET_AND_GOERLI` is only applied:
  >
  > - when the `CreateAccessor` action does not set a `networkType` .
  > - to all existing `Accessor` tokens that were created before the `networkType` property was introduced.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags assigned to the Accessor.

  For more information about tags, see [Tagging Resources](https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html) in the *Amazon Managed Blockchain Ethereum Developer Guide* , or [Tagging Resources](https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html) in the *Amazon Managed Blockchain Hyperledger Fabric Developer Guide* .
