Skip to content
v2.278.0

CfnAccessorProps Struct ​

Properties for defining a CfnAccessor.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

accessorTypestringaccessor_typestraccessorTypeStringAccessorTypestringAccessorType*string required #
The type of the accessor.

Currently, accessor type is restricted to BILLING_TOKEN .

networkTypeoptionalstringnetwork_typeoptionalstrnetworkTypeoptionalStringNetworkTypeoptionalstringNetworkTypeoptional*string #
The blockchain network that the `Accessor` token is created for.
notes

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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags assigned to the Accessor.
notes

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide , or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide .