Skip to content

ManagedBlockchainClient#

Index > ManagedBlockchain > ManagedBlockchainClient

Auto-generated documentation for ManagedBlockchain type annotations stubs module mypy-boto3-managedblockchain.

ManagedBlockchainClient#

Type annotations and code completion for boto3.client("managedblockchain"). boto3 documentation

# ManagedBlockchainClient usage example

from boto3.session import Session
from mypy_boto3_managedblockchain.client import ManagedBlockchainClient

def get_managedblockchain_client() -> ManagedBlockchainClient:
    return Session().client("managedblockchain")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("managedblockchain").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("managedblockchain")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.IllegalActionException,
    client.exceptions.InternalServiceErrorException,
    client.exceptions.InvalidRequestException,
    client.exceptions.ResourceAlreadyExistsException,
    client.exceptions.ResourceLimitExceededException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ResourceNotReadyException,
    client.exceptions.ThrottlingException,
    client.exceptions.TooManyTagsException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_managedblockchain.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("managedblockchain").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("managedblockchain").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_accessor#

Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access.

Type annotations and code completion for boto3.client("managedblockchain").create_accessor method. boto3 documentation

# create_accessor method definition

def create_accessor(
    self,
    *,
    ClientRequestToken: str,
    AccessorType: AccessorTypeType,  # (1)
    Tags: Mapping[str, str] = ...,
    NetworkType: AccessorNetworkTypeType = ...,  # (2)
) -> CreateAccessorOutputTypeDef:  # (3)
    ...
  1. See AccessorTypeType
  2. See AccessorNetworkTypeType
  3. See CreateAccessorOutputTypeDef
# create_accessor method usage example with argument unpacking

kwargs: CreateAccessorInputRequestTypeDef = {  # (1)
    "ClientRequestToken": ...,
    "AccessorType": ...,
}

parent.create_accessor(**kwargs)
  1. See CreateAccessorInputRequestTypeDef

create_member#

Creates a member within a Managed Blockchain network.

Type annotations and code completion for boto3.client("managedblockchain").create_member method. boto3 documentation

# create_member method definition

def create_member(
    self,
    *,
    ClientRequestToken: str,
    InvitationId: str,
    NetworkId: str,
    MemberConfiguration: MemberConfigurationTypeDef,  # (1)
) -> CreateMemberOutputTypeDef:  # (2)
    ...
  1. See MemberConfigurationTypeDef
  2. See CreateMemberOutputTypeDef
# create_member method usage example with argument unpacking

kwargs: CreateMemberInputRequestTypeDef = {  # (1)
    "ClientRequestToken": ...,
    "InvitationId": ...,
    "NetworkId": ...,
    "MemberConfiguration": ...,
}

parent.create_member(**kwargs)
  1. See CreateMemberInputRequestTypeDef

create_network#

Creates a new blockchain network using Amazon Managed Blockchain.

Type annotations and code completion for boto3.client("managedblockchain").create_network method. boto3 documentation

# create_network method definition

def create_network(
    self,
    *,
    ClientRequestToken: str,
    Name: str,
    Framework: FrameworkType,  # (1)
    FrameworkVersion: str,
    VotingPolicy: VotingPolicyTypeDef,  # (2)
    MemberConfiguration: MemberConfigurationTypeDef,  # (3)
    Description: str = ...,
    FrameworkConfiguration: NetworkFrameworkConfigurationTypeDef = ...,  # (4)
    Tags: Mapping[str, str] = ...,
) -> CreateNetworkOutputTypeDef:  # (5)
    ...
  1. See FrameworkType
  2. See VotingPolicyTypeDef
  3. See MemberConfigurationTypeDef
  4. See NetworkFrameworkConfigurationTypeDef
  5. See CreateNetworkOutputTypeDef
# create_network method usage example with argument unpacking

kwargs: CreateNetworkInputRequestTypeDef = {  # (1)
    "ClientRequestToken": ...,
    "Name": ...,
    "Framework": ...,
    "FrameworkVersion": ...,
    "VotingPolicy": ...,
    "MemberConfiguration": ...,
}

parent.create_network(**kwargs)
  1. See CreateNetworkInputRequestTypeDef

create_node#

Creates a node on the specified blockchain network.

Type annotations and code completion for boto3.client("managedblockchain").create_node method. boto3 documentation

# create_node method definition

def create_node(
    self,
    *,
    ClientRequestToken: str,
    NetworkId: str,
    NodeConfiguration: NodeConfigurationTypeDef,  # (1)
    MemberId: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateNodeOutputTypeDef:  # (2)
    ...
  1. See NodeConfigurationTypeDef
  2. See CreateNodeOutputTypeDef
# create_node method usage example with argument unpacking

kwargs: CreateNodeInputRequestTypeDef = {  # (1)
    "ClientRequestToken": ...,
    "NetworkId": ...,
    "NodeConfiguration": ...,
}

parent.create_node(**kwargs)
  1. See CreateNodeInputRequestTypeDef

create_proposal#

Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network.

Type annotations and code completion for boto3.client("managedblockchain").create_proposal method. boto3 documentation

# create_proposal method definition

def create_proposal(
    self,
    *,
    ClientRequestToken: str,
    NetworkId: str,
    MemberId: str,
    Actions: Union[ProposalActionsTypeDef, ProposalActionsOutputTypeDef],  # (1)
    Description: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateProposalOutputTypeDef:  # (2)
    ...
  1. See ProposalActionsTypeDef ProposalActionsOutputTypeDef
  2. See