Skip to content

FMSClient#

Index > FMS > FMSClient

Auto-generated documentation for FMS type annotations stubs module mypy-boto3-fms.

FMSClient#

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

# FMSClient usage example

from boto3.session import Session
from mypy_boto3_fms.client import FMSClient

def get_fms_client() -> FMSClient:
    return Session().client("fms")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("fms")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.InternalErrorException,
    client.exceptions.InvalidInputException,
    client.exceptions.InvalidOperationException,
    client.exceptions.InvalidTypeException,
    client.exceptions.LimitExceededException,
    client.exceptions.ResourceNotFoundException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_fms.client import Exceptions

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

Methods#

associate_admin_account#

Sets a Firewall Manager default administrator account.

Type annotations and code completion for boto3.client("fms").associate_admin_account method. boto3 documentation

# associate_admin_account method definition

def associate_admin_account(
    self,
    *,
    AdminAccount: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# associate_admin_account method usage example with argument unpacking

kwargs: AssociateAdminAccountRequestRequestTypeDef = {  # (1)
    "AdminAccount": ...,
}

parent.associate_admin_account(**kwargs)
  1. See AssociateAdminAccountRequestRequestTypeDef

associate_third_party_firewall#

Sets the Firewall Manager policy administrator as a tenant administrator of a third-party firewall service.

Type annotations and code completion for boto3.client("fms").associate_third_party_firewall method. boto3 documentation

# associate_third_party_firewall method definition

def associate_third_party_firewall(
    self,
    *,
    ThirdPartyFirewall: ThirdPartyFirewallType,  # (1)
) -> AssociateThirdPartyFirewallResponseTypeDef:  # (2)
    ...
  1. See ThirdPartyFirewallType
  2. See AssociateThirdPartyFirewallResponseTypeDef
# associate_third_party_firewall method usage example with argument unpacking

kwargs: AssociateThirdPartyFirewallRequestRequestTypeDef = {  # (1)
    "ThirdPartyFirewall": ...,
}

parent.associate_third_party_firewall(**kwargs)
  1. See AssociateThirdPartyFirewallRequestRequestTypeDef

batch_associate_resource#

Associate resources to a Firewall Manager resource set.

Type annotations and code completion for boto3.client("fms").batch_associate_resource method. boto3 documentation

# batch_associate_resource method definition

def batch_associate_resource(
    self,
    *,
    ResourceSetIdentifier: str,
    Items: Sequence[str],
) -> BatchAssociateResourceResponseTypeDef:  # (1)
    ...
  1. See BatchAssociateResourceResponseTypeDef
# batch_associate_resource method usage example with argument unpacking

kwargs: BatchAssociateResourceRequestRequestTypeDef = {  # (1)
    "ResourceSetIdentifier": ...,
    "Items": ...,
}

parent.batch_associate_resource(**kwargs)
  1. See BatchAssociateResourceRequestRequestTypeDef

batch_disassociate_resource#

Disassociates resources from a Firewall Manager resource set.

Type annotations and code completion for boto3.client("fms").batch_disassociate_resource method.