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: ProposalActionsTypeDef,  # (1)
    Description: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateProposalOutputTypeDef:  # (2)
    ...
  1. See ProposalActionsTypeDef
  2. See CreateProposalOutputTypeDef
# create_proposal method usage example with argument unpacking

kwargs: CreateProposalInputRequestTypeDef = {  # (1)
    "ClientRequestToken": ...,
    "NetworkId": ...,
    "MemberId": ...,
    "Actions": ...,
}

parent.create_proposal(**kwargs)
  1. See CreateProposalInputRequestTypeDef

delete_accessor#

Deletes an accessor that your Amazon Web Services account owns.

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

# delete_accessor method definition

def delete_accessor(
    self,
    *,
    AccessorId: str,
) -> Dict[str, Any]:
    ...
# delete_accessor method usage example with argument unpacking

kwargs: DeleteAccessorInputRequestTypeDef = {  # (1)
    "AccessorId": ...,
}

parent.delete_accessor(**kwargs)
  1. See DeleteAccessorInputRequestTypeDef

delete_member#

Deletes a member.

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

# delete_member method definition

def delete_member(
    self,
    *,
    NetworkId: str,
    MemberId: str,
) -> Dict[str, Any]:
    ...
# delete_member method usage example with argument unpacking

kwargs: DeleteMemberInputRequestTypeDef = {  # (1)
    "NetworkId": ...,
    "MemberId": ...,
}

parent.delete_member(**kwargs)
  1. See DeleteMemberInputRequestTypeDef

delete_node#

Deletes a node that your Amazon Web Services account owns.

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

# delete_node method definition

def delete_node(
    self,
    *,
    NetworkId: str,
    NodeId: str,
    MemberId: str = ...,
) -> Dict[str, Any]:
    ...
# delete_node method usage example with argument unpacking

kwargs: DeleteNodeInputRequestTypeDef = {  # (1)
    "NetworkId": ...,
    "NodeId": ...,
}

parent.delete_node(**kwargs)
  1. See DeleteNodeInputRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

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

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_accessor#

Returns detailed information about an accessor.

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

# get_accessor method definition

def get_accessor(
    self,
    *,
    AccessorId: str,
) -> GetAccessorOutputTypeDef:  # (1)
    ...
  1. See GetAccessorOutputTypeDef
# get_accessor method usage example with argument unpacking

kwargs: GetAccessorInputRequestTypeDef = {  # (1)
    "AccessorId": ...,
}

parent.get_accessor(**kwargs)
  1. See GetAccessorInputRequestTypeDef

get_member#

Returns detailed information about a member.

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

# get_member method definition

def get_member(
    self,
    *,
    NetworkId: str,
    MemberId: str,
) -> GetMemberOutputTypeDef:  # (1)
    ...
  1. See GetMemberOutputTypeDef
# get_member method usage example with argument unpacking

kwargs: GetMemberInputRequestTypeDef = {  # (1)
    "NetworkId": ...,
    "MemberId": ...,
}

parent.get_member(**kwargs)
  1. See GetMemberInputRequestTypeDef

get_network#

Returns detailed information about a network.

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

# get_network method definition

def get_network(
    self,
    *,
    NetworkId: str,
) -> GetNetworkOutputTypeDef:  # (1)
    ...
  1. See GetNetworkOutputTypeDef
# get_network method usage example with argument unpacking

kwargs: GetNetworkInputRequestTypeDef = {  # (1)
    "NetworkId": ...,
}

parent.get_network(**kwargs)
  1. See GetNetworkInputRequestTypeDef

get_node#

Returns detailed information about a node.

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

# get_node method definition

def get_node(
    self,
    *,
    NetworkId: str,
    NodeId: str,
    MemberId: str = ...,
) -> GetNodeOutputTypeDef:  # (1)
    ...
  1. See GetNodeOutputTypeDef
# get_node method usage example with argument unpacking

kwargs: GetNodeInputRequestTypeDef = {  # (1)
    "NetworkId": ...,
    "NodeId": ...,
}

parent.get_node(**kwargs)
  1. See GetNodeInputRequestTypeDef

get_proposal#

Returns detailed information about a proposal.

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

# get_proposal method definition

def get_proposal(
    self,
    *,
    NetworkId: str,
    ProposalId: str,
) -> GetProposalOutputTypeDef:  # (1)
    ...
  1. See GetProposalOutputTypeDef
# get_proposal method usage example with argument unpacking

kwargs: GetProposalInputRequestTypeDef = {  # (1)
    "NetworkId": ...,
    "ProposalId": ...,
}

parent.get_proposal(**kwargs)
  1. See GetProposalInputRequestTypeDef

list_accessors#

Returns a list of the accessors and their properties.

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

# list_accessors method definition

def list_accessors(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    NetworkType: AccessorNetworkTypeType = ...,  # (1)
) -> ListAccessorsOutputTypeDef:  # (2)
    ...
  1. See AccessorNetworkTypeType
  2. See ListAccessorsOutputTypeDef
# list_accessors method usage example with argument unpacking

kwargs: ListAccessorsInputRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_accessors(**kwargs)
  1. See ListAccessorsInputRequestTypeDef

list_invitations#

Returns a list of all invitations for the current Amazon Web Services account.

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