moto の API リファレンス
moto (getmoto/moto) の公開 API 400 件 —— クラス 193、関数 58、メソッド 149。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: getmoto/moto
| 種別 | 件数 |
|---|---|
| クラス | 193 |
| 関数 | 58 |
| メソッド | 149 |
API 一覧
class
moto.acmpca.models.ACMPCABackendImplementation of ACMPCA APIs.
method
moto.acmpca.models.ACMPCABackend.delete_policy(resource_arn:str) -> NoneDeletes the resource-based policy attached to a private CA.
method
moto.acmpca.models.ACMPCABackend.get_policy(resource_arn:str) -> strRetrieves the resource-based policy attached to a private CA.
method
moto.acmpca.models.ACMPCABackend.list_tags(certificate_authority_arn:str) -> dict[str, list[dict[str, str]]]Pagination is not yet implemented
method
moto.acmpca.models.ACMPCABackend.put_policy(resource_arn:str, policy:str) -> NoneAttaches a resource-based policy to a private CA.
class
moto.acmpca.responses.ACMPCAResponseHandler for ACMPCA requests and responses.
method
moto.acmpca.responses.ACMPCAResponse.acmpca_backend() -> ACMPCABackendReturn backend instance specific for this region.
method
moto.acmpca.responses.ACMPCAResponse.list_certificate_authorities() -> strHandler for ListCertificateAuthorities API request
class
moto.amp.models.PrometheusServiceBackendImplementation of PrometheusService APIs.
method
moto.amp.models.PrometheusServiceBackend.create_workspace(alias:str, tags:dict[str, str]) -> WorkspaceThe ClientToken-parameter is not yet implemented
method
moto.amp.models.PrometheusServiceBackend.delete_rule_groups_namespace(name:str, workspace_id:str) -> NoneThe ClientToken-parameter is not yet implemented
method
moto.amp.models.PrometheusServiceBackend.delete_workspace(workspace_id:str) -> NoneThe ClientToken-parameter is not yet implemented
method
moto.amp.models.PrometheusServiceBackend.put_rule_groups_namespace(data:str, name:str, workspace_id:str) -> RuleGroupNamespaceThe ClientToken-parameter is not yet implemented
method
moto.amp.models.PrometheusServiceBackend.update_workspace_alias(alias:str, workspace_id:str) -> NoneThe ClientToken-parameter is not yet implemented
class
moto.amp.responses.PrometheusServiceResponseHandler for PrometheusService requests and responses.
class
moto.apigateway.models.APIGatewayBackendAPI Gateway mock.
method
moto.apigateway.models.APIGatewayBackend.export_api(rest_api_id:str, export_type:str) -> dict[str, Any]Not all fields are implemented yet.
method
moto.apigateway.models.APIGatewayBackend.get_gateway_responses(rest_api_id:str) -> list[GatewayResponse]Pagination is not yet implemented
method
moto.apigateway.models.APIGatewayBackend.get_vpc_links() -> list[VpcLink]Pagination has not yet been implemented
class
moto.apigatewayv2.models.ApiGatewayV2BackendImplementation of ApiGatewayV2 APIs.
method
moto.apigatewayv2.models.ApiGatewayV2Backend.get_apis() -> list[Api]Pagination is not yet implemented
method
moto.apigatewayv2.models.ApiGatewayV2Backend.get_domain_names() -> list[DomainName]Pagination is not yet implemented
method
moto.apigatewayv2.models.ApiGatewayV2Backend.get_integrations(api_id:str) -> list[Integration]Pagination is not yet implemented
method
moto.apigatewayv2.models.ApiGatewayV2Backend.get_routes(api_id:str) -> list[Route]Pagination is not yet implemented
method
moto.apigatewayv2.models.ApiGatewayV2Backend.reimport_api(api_id:str, body:str, fail_on_warnings:bool) -> ApiOnly YAML is supported at the moment.
class
moto.apigatewayv2.responses.ApiGatewayV2ResponseHandler for ApiGatewayV2 requests and responses.
class
moto.appconfig.models.AppConfigBackendImplementation of AppConfig APIs.
class
moto.appmesh.models.AppMeshBackendImplementation of AppMesh APIs.
class
moto.appmesh.responses.AppMeshResponseHandler for AppMesh requests and responses.
method
moto.appmesh.responses.AppMeshResponse.appmesh_backend() -> AppMeshBackendReturn backend instance specific for this region.
class
moto.appsync.models.AppSyncBackendImplementation of AppSync APIs.
class
moto.appsync.responses.AppSyncResponseHandler for AppSync requests and responses.
method
moto.appsync.responses.AppSyncResponse.appsync_backend() -> AppSyncBackendReturn backend instance specific for this region.
class
moto.awslambda.models.LambdaBackendImplementation of the AWS Lambda endpoint.
method
moto.awslambda.models.LambdaBackend.create_function(spec:dict[str, Any]) -> LambdaFunctionThe Code.ImageUri is not validated by default.
method
moto.awslambda.models.LambdaBackend.create_function_url_config(name_or_arn:str, config:dict[str, Any]) -> FunctionUrlConfigThe Qualifier-parameter is not yet implemented.
method
moto.awslambda.models.LambdaBackend.delete_function_url_config(name_or_arn:str) -> NoneThe Qualifier-parameter is not yet implemented
method
moto.awslambda.models.LambdaBackend.get_function_url_config(name_or_arn:str) -> FunctionUrlConfigThe Qualifier-parameter is not yet implemented
method
moto.awslambda.models.LambdaBackend.update_alias(name:str, function_name:str, function_version:str, description:str, routing_config:str) -> LambdaAliasThe RevisionId parameter is not yet implemented
method
moto.awslambda.models.LambdaBackend.update_function_url_config(name_or_arn:str, config:dict[str, Any]) -> FunctionUrlConfigThe Qualifier-parameter is not yet implemented
class
moto.backup.models.BackupBackendImplementation of Backup APIs.
method
moto.backup.models.BackupBackend.list_backup_plans(include_deleted:Any) -> list[Plan]Pagination is not yet implemented
method
moto.backup.models.BackupBackend.list_backup_vaults() -> list[Vault]Pagination is not yet implemented
method
moto.backup.models.BackupBackend.list_report_plans() -> list[ReportPlan]Pagination is not yet implemented
method
moto.backup.models.BackupBackend.list_tags(resource_arn:str) -> dict[str, str]Pagination is not yet implemented
class
moto.backup.responses.BackupResponseHandler for Backup requests and responses.
method
moto.backup.responses.BackupResponse.backup_backend() -> BackupBackendReturn backend instance specific for this region.
class
moto.batch.models.BatchBackendBatch-jobs are executed inside a Docker-container.
method
moto.batch.models.BatchBackend.describe_compute_environments(environments:list[str] | None=None) -> list[dict[str, Any]]Pagination is not yet implemented
method
moto.batch.models.BatchBackend.describe_job_definitions(job_def_name:str | None=None, job_def_list:list[str] | None=None, status:str | None=None) -> list[JobDefinition]Pagination is not yet implemented
method
moto.batch.models.BatchBackend.describe_job_queues(job_queues:list[str] | None=None) -> list[dict[str, Any]]Pagination is not yet implemented
method
moto.batch.models.BatchBackend.ec2_backend() -> EC2Backend:return: EC2 Backend :rtype: moto.ec2.models.EC2Backend
method
moto.batch.models.BatchBackend.iam_backend() -> IAMBackend:return: IAM Backend :rtype: moto.iam.models.IAMBackend
method
moto.batch.models.BatchBackend.list_scheduling_policies() -> list[str]Pagination is not yet implemented
method
moto.batch.models.Job.run() -> NoneRun the container.
class
moto.bedrock.models.BedrockBackendImplementation of Bedrock APIs.
class
moto.bedrock.responses.BedrockResponseHandler for Bedrock requests and responses.
method
moto.bedrock.responses.BedrockResponse.bedrock_backend() -> BedrockBackendReturn backend instance specific for this region.
class
moto.bedrockagent.models.AgentsforBedrockBackendImplementation of AgentsforBedrock APIs.
class
moto.bedrockagent.responses.AgentsforBedrockResponseHandler for AgentsforBedrock requests and responses.
class
moto.bedrockruntime.models.BedrockRuntimeBackendImplementation of BedrockRuntime APIs.
class
moto.bedrockruntime.responses.BedrockRuntimeResponseHandler for BedrockRuntime requests and responses.
class
moto.budgets.models.BudgetsBackendImplementation of Budgets APIs.
method
moto.budgets.models.BudgetsBackend.describe_budgets(account_id:str) -> Iterable[dict[str, Any]]Pagination is not yet implemented
method
moto.budgets.models.BudgetsBackend.describe_notifications_for_budget(account_id:str, budget_name:str) -> Iterable[dict[str, Any]]Pagination has not yet been implemented
class
moto.ce.models.CostExplorerBackendImplementation of CostExplorer APIs.
method
moto.ce.models.CostExplorerBackend.delete_cost_category_definition(cost_category_arn:str) -> tuple[str, str]The EffectiveOn-parameter is not yet implemented
method
moto.ce.models.CostExplorerBackend.describe_cost_category_definition(cost_category_arn:str) -> CostCategoryDefinitionThe EffectiveOn-parameter is not yet implemented
method
moto.ce.models.CostExplorerBackend.get_cost_and_usage(body:str) -> dict[str, Any]There is no validation yet on any of the input parameters.
class
moto.ce.responses.CostExplorerResponseHandler for CostExplorer requests and responses.
method
moto.ce.responses.CostExplorerResponse.ce_backend() -> CostExplorerBackendReturn backend instance specific for this region.
class
moto.clouddirectory.models.CloudDirectoryBackendImplementation of CloudDirectory APIs.
class
moto.clouddirectory.responses.CloudDirectoryResponseHandler for CloudDirectory requests and responses.
class
moto.cloudformation.parsing.ResourceMapThis is a lazy loading map for resources.
func
moto.cloudformation.parsing.clean_json(resource_json:Any, resources_map:'ResourceMap') -> AnyCleanup a resource dict.
func
moto.cloudformation.utils.yaml_tag_constructor(loader:Any, tag:Any, node:Any) -> Anyconvert shorthand intrinsic function to full name
class
moto.cloudhsmv2.exceptions.CloudHSMv2ClientErrorBase class for CloudHSMv2 errors.
class
moto.cloudhsmv2.models.CloudHSMV2BackendImplementation of CloudHSMV2 APIs.
method
moto.cloudhsmv2.models.CloudHSMV2Backend.list_tags(resource_id:str, next_token:str, max_results:int) -> tuple[list[dict[str, str]], str | None]Pagination is not yet implemented
class
moto.cloudhsmv2.responses.CloudHSMV2ResponseHandler for CloudHSMV2 requests and responses.
class
moto.cloudtrail.models.CloudTrailBackendImplementation of CloudTrail APIs.
method
moto.cloudtrail.models.CloudTrailBackend.list_tags(resource_id_list:list[str]) -> list[dict[str, Any]]Pagination is not yet implemented
class
moto.cloudtrail.responses.CloudTrailResponseHandler for CloudTrail requests and responses.
class
moto.codedeploy.models.CodeDeployBackendImplementation of CodeDeploy APIs.
class
moto.codedeploy.responses.CodeDeployResponseHandler for CodeDeploy requests and responses.
method
moto.codedeploy.responses.CodeDeployResponse.list_tags_for_resource() -> strHandler for list_tags_for_resource API call.
method
moto.codedeploy.responses.CodeDeployResponse.tag_resource() -> strHandler for tag_resource API call.
method
moto.codedeploy.responses.CodeDeployResponse.untag_resource() -> strHandler for untag_resource API call.
class
moto.cognitoidp.models.CognitoIdpBackendMoto mocks the JWK uris.
class
moto.comprehend.models.ComprehendBackendImplementation of Comprehend APIs.
method
moto.comprehend.models.ComprehendBackend.list_entity_recognizers(_filter:dict[str, Any]) -> Iterable[EntityRecognizer]Pagination is not yet implemented.
class
moto.comprehend.models.ComprehendJobGeneric model for any Comprehend asynchronous job.
class
moto.comprehend.responses.ComprehendResponseHandler for Comprehend requests and responses.
class
moto.config.models.ConfigEmptyDictableBase class to make serialization easy.
class
moto.config.models.ScopeDefines resources that can trigger an evaluation for the rule.
class
moto.config.models.SourceDefines rule owner, id and notification for triggering evaluation.
method
moto.config.models.Source.to_dict() -> dict[str, Any]Format the SourceDetails properly.
func
moto.config.models.validate_tag_key(tag_key:str, exception_param:str='tags.X.member.key') -> NoneValidates the tag key.
class
moto.connect.models.ConnectBackendBackend for Amazon Connect API.
method
moto.connect.models.ConnectBackend.create_instance(identity_management_type:str, inbound_calls_enabled:bool, outbound_calls_enabled:bool, instance_alias:str | None=None, tags:dict[str, str] | None=None) -> dict[str, str]Create a new Connect instance.
method
moto.connect.models.ConnectBackend.describe_instance(instance_id:str) -> dict[str, Any]Describe a Connect instance.
method
moto.connect.models.Instance.to_dict() -> dict[str, Any]Return full instance details for DescribeInstance.
method
moto.connect.models.Instance.to_summary_dict() -> dict[str, Any]Return summary for ListInstances.
class
moto.connect.responses.ConnectResponseHandler for Connect requests and responses.
method
moto.connect.responses.ConnectResponse.connect_backend() -> ConnectBackendReturn backend instance specific for this region.
class
moto.connectcampaigns.exceptions.ResourceNotFoundExceptionWhen a resource is not found.
class
moto.connectcampaigns.exceptions.ValidationExceptionWhen validation fails on input parameters.
func
moto.core.authorization.disable_iam_authentication() -> Generator[None, None, None]Inverse of enable().
method
moto.core.base_backend.BaseBackend.url_bases() -> list[str]A list containing the url_bases extracted from urls.py
class
moto.core.custom_responses_mock.CallbackResponseNeed to subclass so we can change a couple things
method
moto.core.custom_responses_mock.CallbackResponse.get_response(request:Any) -> responses.HTTPResponseNeed to override this so we can pass decode_content=False
class
moto.core.eventstream.EncodeUtilsPacking utility functions used in the encoder.
class
moto.core.eventstream.EventStreamEncoderEncodes Amazon event-stream binary messages.
class
moto.core.exceptions.InvalidNextTokenExceptionFor AWS Config resource listing.
class
moto.core.exceptions.ServiceExceptionThe base class for all (serializable) Moto service exceptions.
func
moto.core.models.patch_client(client:botocore.client.BaseClient) -> NoneExplicitly patch a boto3-client
func
moto.core.models.patch_resource(resource:Any) -> NoneExplicitly patch a boto3-resource
class
moto.core.parse.XFormedDictA Pascal/Snake case-insensitive ``dict``-like object.
func
moto.core.parse.default_timestamp_parser(value:str) -> datetimeParse a timestamp and return a naive datetime object in UTC.
func
moto.core.resource_tagging.match_resource_type(resource_type:str, resource_type_filters:list[str] | None) -> boolReturn True if `resource_type` (e.g.
class
moto.core.responses.ActionResultWrapper class for serializable results returned from `responses.py` methods.
class
moto.core.responses.EmptyResultA special ActionResult that represents an empty result.
class
moto.core.serialize.AttributeAliasProviderAbstract base class for providing attribute key aliases.
method
moto.core.serialize.AttributeAliasProvider.get_alias(key:str) -> strGet the key alias for the given context.
method
moto.core.serialize.AttributeAliasProvider.has_alias(key:str) -> boolCheck if a key alias exists for the given context.
class
moto.core.serialize.NoAliasProvides the key as is, without any aliasing.
class
moto.core.types.Base64EncodedStringA type to encapsulate a Base64 encoded string.
func
moto.core.utils.aws_api_matches(pattern:str, string:Any) -> boolAWS API can match a value based on a glob, or an exact match
func
moto.core.utils.camelcase_to_pascal(argument:str) -> strConverts a camelCase param to the PascalCase equivalent
func
moto.core.utils.convert_regex_to_flask_path(url_path:str) -> strConverts a regex matching url to one that can be used with flask
func
moto.core.utils.get_value(obj:Any, key:int | str, default:Any=MISSING) -> AnyHelper for pulling a keyed value off various types of objects.
func
moto.core.utils.pascal_to_camelcase(argument:str) -> strConverts a PascalCase param to the camelCase equivalent
func
moto.core.utils.set_value(obj:Any, key:str, value:Any) -> NoneHelper for adding a keyed value to various types of objects.
class
moto.directconnect.models.DirectConnectBackendImplementation of DirectConnect APIs.
class
moto.directconnect.responses.DirectConnectResponseHandler for DirectConnect requests and responses.
class
moto.ds.exceptions.ClientExceptionClient exception has occurred.
class
moto.ds.exceptions.DirectoryLimitExceededExceptionMaximum number of directories in region has been reached.
class
moto.ds.exceptions.DsValidationExceptionReport one of more parameter validation errors.
class
moto.ds.exceptions.EntityAlreadyExistsExceptionThe specified entity already exists.
class
moto.ds.exceptions.EntityDoesNotExistExceptionThe specified entity could not be found.
class
moto.ds.exceptions.InvalidParameterExceptionInvalid parameter.
class
moto.ds.exceptions.TagLimitExceededExceptionThe maximum allowed number of tags was exceeded.
class
moto.ds.exceptions.UnsupportedOperationExceptionUnsupported Operation
class
moto.ds.exceptions.ValidationExceptionTag validation failed.
class
moto.ds.models.DirectoryRepresentation of a Simple AD Directory.
method
moto.ds.models.Directory.create_security_group(vpc_id:str) -> strCreate security group for the network interface.
method
moto.ds.models.Directory.delete_eni() -> NoneDelete ENI for each subnet and the security group.
method
moto.ds.models.Directory.delete_security_group() -> NoneDelete the given security group.
method
moto.ds.models.Directory.disable_radius() -> NoneClear RADIUS settings and status.
method
moto.ds.models.Directory.enable_ldaps(enable:bool) -> NoneEnable/disable ldaps based on whether new_state is True or False.
method
moto.ds.models.Directory.enable_radius(radius_settings:dict[str, Any]) -> NoneStore RADIUS settings and mark as completed.
method
moto.ds.models.Directory.enable_sso(new_state:bool) -> NoneEnable/disable sso based on whether new_state is True or False.
method
moto.ds.models.Directory.to_dict() -> dict[str, Any]Create a dictionary of attributes for Directory.
method
moto.ds.models.Directory.update_alias(alias:str) -> NoneChange default alias to given alias.
class
moto.ds.models.DirectoryServiceBackendImplementation of DirectoryService APIs.
method
moto.ds.models.DirectoryServiceBackend.connect_directory(region:str, name:str, short_name:str, password:str, description:str, size:str, connect_settings:dict[str, Any], tags:list[dict[str, str]]) -> strCreate a fake AD Connector.
method
moto.ds.models.DirectoryServiceBackend.create_alias(directory_id:str, alias:str) -> dict[str, str]Create and assign an alias to a directory.
method
moto.ds.models.DirectoryServiceBackend.create_directory(region:str, name:str, short_name:str, password:str, description:str, size:str, vpc_settings:dict[str, Any], tags:list[dict[str, str]]) -> strCreate a fake Simple Ad Directory.
method
moto.ds.models.DirectoryServiceBackend.delete_directory(directory_id:str) -> strDelete directory with the matching ID.
method
moto.ds.models.DirectoryServiceBackend.describe_ldaps_settings(directory_id:str, type:str) -> list[LdapsSettingInfo]Describe LDAPS settings for a Directory
method
moto.ds.models.DirectoryServiceBackend.describe_settings(directory_id:str, status:str | None) -> list[dict[str, str]]Describe settings for a Directory
method
moto.ds.models.DirectoryServiceBackend.disable_ldaps(directory_id:str, type:str) -> NoneDisable LDAPS for a Directory
method
moto.ds.models.DirectoryServiceBackend.disable_radius(directory_id:str) -> NoneDisable RADIUS for a directory.
method
moto.ds.models.DirectoryServiceBackend.disable_sso(directory_id:str, username:str | None=None, password:str | None=None) -> NoneDisable single-sign on for a directory.
method
moto.ds.models.DirectoryServiceBackend.enable_ldaps(directory_id:str, type:str) -> NoneEnable LDAPS for a Directory
method
moto.ds.models.DirectoryServiceBackend.enable_radius(directory_id:str, radius_settings:dict[str, Any]) -> NoneEnable RADIUS for a directory.
method
moto.ds.models.DirectoryServiceBackend.enable_sso(directory_id:str, username:str | None=None, password:str | None=None) -> NoneEnable single-sign on for a directory.
method
moto.ds.models.DirectoryServiceBackend.get_directory_limits() -> dict[str, Any]Return hard-coded limits for the directories.
method
moto.ds.models.DirectoryServiceBackend.list_tags_for_resource(resource_id:str) -> list[dict[str, str]]List all tags on a directory.
method
moto.ds.models.DirectoryServiceBackend.remove_tags_from_resource(resource_id:str, tag_keys:list[str]) -> NoneRemoves tags from a directory.
class
moto.ds.responses.DirectoryServiceResponseHandler for DirectoryService requests and responses.
method
moto.ds.responses.DirectoryServiceResponse.create_alias() -> strCreate an alias and assign the alias to the directory.
method
moto.ds.responses.DirectoryServiceResponse.create_directory() -> strCreate a Simple AD directory.
method
moto.ds.responses.DirectoryServiceResponse.create_microsoft_ad() -> strCreate a Microsoft AD directory.
method
moto.ds.responses.DirectoryServiceResponse.delete_directory() -> strDelete a Directory Service directory.
method
moto.ds.responses.DirectoryServiceResponse.describe_directories() -> strReturn directory info for the given IDs or all IDs.
method
moto.ds.responses.DirectoryServiceResponse.disable_sso() -> strDisable single-sign on for a directory.
method
moto.ds.responses.DirectoryServiceResponse.enable_sso() -> strEnable single-sign on for a directory.
method
moto.ds.responses.DirectoryServiceResponse.list_tags_for_resource() -> strLists all tags on a directory.
method
moto.ds.responses.DirectoryServiceResponse.remove_tags_from_resource() -> strRemoves tags from a directory.
func
moto.ds.validations.validate_alias(value:str) -> strRaise exception if alias fails to conform to length and constraints.
func
moto.ds.validations.validate_args(validators:Any) -> NoneRaise exception if any of the validations fails.
func
moto.ds.validations.validate_description(value:str) -> strRaise exception if description exceeds length.
func
moto.ds.validations.validate_directory_id(value:str) -> strRaise exception if the directory id is invalid.
func
moto.ds.validations.validate_dns_ips(value:str) -> strRaise exception if DNS IPs fail to match constraints.
func
moto.ds.validations.validate_edition(value:str) -> strRaise exception if edition not one of the allowed values.
func
moto.ds.validations.validate_name(value:str) -> strRaise exception if name fails to match constraints.
func
moto.ds.validations.validate_password(value:str) -> strRaise exception if password fails to match constraints.
func
moto.ds.validations.validate_remote_domain_name(value:str) -> strRaise exception if remote domain name fails to match constraints.
func
moto.ds.validations.validate_short_name(value:str) -> strRaise exception if short name fails to match constraints.
func
moto.ds.validations.validate_size(value:str) -> strRaise exception if size fails to match constraints.
func
moto.ds.validations.validate_sso_password(value:str) -> strRaise exception is SSO password exceeds length.
func
moto.ds.validations.validate_subnet_ids(value:str) -> strRaise exception is subnet IDs fail to match constraints.
func
moto.ds.validations.validate_trust_direction(value:str) -> strRaise exception if trust direction fails to match constraints.
func
moto.ds.validations.validate_user_name(value:str) -> strRaise exception is username fails to match constraints.
class
moto.dsql.models.AuroraDSQLBackendImplementation of AuroraDSQL APIs.
class
moto.dsql.models.ClusterModel for an AuroraDSQL cluster.
class
moto.dsql.responses.AuroraDSQLResponseHandler for AuroraDSQL requests and responses.
method
moto.dsql.responses.AuroraDSQLResponse.dsql_backend() -> AuroraDSQLBackendReturn backend instance specific for this region.
class
moto.dynamodb.comparisons.ConditionExpressionParser.KindEnum defining types of nodes in the syntax tree.
class
moto.dynamodb.comparisons.ConditionExpressionParser.NonterminalEnum defining nonterminals for productions.
class
moto.dynamodb.comparisons.FuncBase class for a FilterExpression function
class
moto.dynamodb.comparisons.OpBase class for a FilterExpression operator
func
moto.dynamodb.comparisons.get_expected(expected:dict[str, Any]) -> Op | FuncParse a filter expression into an Op.
func
moto.dynamodb.comparisons.get_filter_expression(expr:str | None, names:dict[str, str] | None, values:dict[str, dict[str, str]] | None) -> Op | FuncParse a filter expression into an Op.
method
moto.dynamodb.models.DynamoDBBackend.default_vpc_endpoint_service(service_region:str, zones:list[str]) -> list[dict[str, str]]Default VPC endpoint service.
method
moto.dynamodb.models.DynamoDBBackend.execute_statement(statement:str, parameters:list[dict[str, Any]]) -> list[dict[str, Any]]Pagination is not yet implemented.
method
moto.dynamodb.models.DynamoDBBackend.get_table_keys_name(table_name:str, keys:dict[str, Any]) -> tuple[str | None, str | None]Given a set of keys, extracts the key and range key
func
moto.dynamodb.models.utilities.dynamo_to_dict(obj:Any) -> AnyRecursively convert DynamoDB model objects to plain Python types.
class
moto.dynamodb.parsing.ast_nodes.DDBTypedValueA node representing a DDBTyped value.
class
moto.dynamodb.parsing.ast_nodes.ExpressionAttributeAn attribute identifier as used in the DDB item
class
moto.dynamodb.parsing.ast_nodes.ExpressionAttributeValueAn ExpressionAttributeValue is an alias for an value
class
moto.dynamodb.parsing.ast_nodes.ExpressionSelectorNode identifying selector [selection_index] in expresion
class
moto.dynamodb.parsing.ast_nodes.NodeDepthLeftTypeFetcherHelper class to fetch a node of a specific type.
class
moto.dynamodb.parsing.ast_nodes.NoneExistingPathA placeholder for Paths that did not exist in the Item.
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionAddActionAddAction => Path Value
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionAddClauseUpdateExpressionAddClause => ADD AddActions
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionDeleteActionDeleteAction => Path Value
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionDeleteClauseUpdateExpressionDeleteClause => DELETE DeleteActions
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionFunctionA Node representing a function of an Update Expression.
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionGroupedValueGroupedValue => ( Value )
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionRemoveActionRemoveAction => Path
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionRemoveClauseUpdateExpressionRemoveClause => REMOVE RemoveActions
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionSetActionSetAction => Path = Value
class
moto.dynamodb.parsing.ast_nodes.UpdateExpressionSetClauseUpdateExpressionSetClause => SET SetActions
class
moto.dynamodb.parsing.expressions.ExpressionParserAbstract class
class
moto.dynamodb.parsing.expressions.NestableExpressionParserMixinFor nodes that can be nested in themselves (recursive).
class
moto.dynamodb.parsing.expressions.UpdateExpressionActionsParserUpdateExpressionSetActions
class
moto.dynamodb.parsing.expressions.UpdateExpressionAddActionsParserUpdateExpressionSetActions
class
moto.dynamodb.parsing.expressions.UpdateExpressionDeleteActionsParserUpdateExpressionSetActions
class
moto.dynamodb.parsing.expressions.UpdateExpressionParserParser to create update expressions
class
moto.dynamodb.parsing.expressions.UpdateExpressionRemoveActionsParserUpdateExpressionSetActions
class
moto.dynamodb.parsing.expressions.UpdateExpressionSetActionsParserUpdateExpressionSetActions
class
moto.dynamodb.parsing.expressions.UpdateExpressionSetClauseParserUpdateExpressionSetClause => SET SetActions
func
moto.dynamodb.parsing.key_condition_expression.get_keys(schema:list[dict[str, str]], key_type:str) -> list[str]Get all keys of the specified type in schema order.
class
moto.dynamodb.parsing.reserved_keywords.ReservedKeywordsDynamoDB has an extensive list of keywords.
class
moto.dynamodb.parsing.tokens.ExpressionTokenizerTakes a string and returns a list of tokens.
func
moto.dynamodb.responses.validate_put_has_empty_keys(field_updates:dict[str, Any], table:Table, custom_error_msg:str | None=None) -> NoneError if any keys have an empty value.
class
moto.ebs.models.EBSBackendImplementation of EBS APIs.
method
moto.ebs.models.EBSBackend.get_snapshot_block(snapshot_id:str, block_index:str) -> BlockThe BlockToken-parameter is not yet implemented
class
moto.ebs.responses.EBSResponseHandler for EBS requests and responses.
method
moto.ebs.responses.EBSResponse.ebs_backend() -> EBSBackendReturn backend instance specific for this region.
method
moto.ec2.models.instances.Instance.get_block_device_status(volume_status:str) -> strConvert volume status to attachment status
class
moto.ecs.models.EC2ContainerServiceBackendECS resources use the new ARN format by default.
method
moto.ecs.models.EC2ContainerServiceBackend.delete_task_set(cluster:str, service:str, task_set:str) -> TaskSetThe Force-parameter is not yet implemented
method
moto.ecs.models.EC2ContainerServiceBackend.describe_tasks(cluster_str:str, tasks:list[str]) -> list[Task]Only include=TAGS is currently supported.
method
moto.ecs.models.EC2ContainerServiceBackend.list_attributes(target_type:str, cluster_name:str | None=None, attr_name:str | None=None, attr_value:str | None=None) -> AnyPagination is not yet implemented
method
moto.ecs.models.EC2ContainerServiceBackend.list_clusters() -> list[str]maxSize and pagination not implemented
method
moto.ecs.models.EC2ContainerServiceBackend.update_cluster_resources(cluster:Cluster, task_num:int, task_state:str | None='RUNNING') -> NoneModify the number tasks running on the cluster.
class
moto.efs.models.EFSBackendThe backend manager of EFS resources.
method
moto.efs.models.EFSBackend.delete_file_system(file_system_id:str) -> NoneDelete the file system specified by the given file_system_id.
method
moto.efs.models.EFSBackend.delete_mount_target(mount_target_id:str) -> NoneDelete a mount target specified by the given mount_target_id.
method
moto.efs.models.EFSBackend.describe_access_points(access_point_id:str | None, file_system_id:str | None) -> list[AccessPoint]Pagination is not yet implemented
class
moto.efs.models.FileSystemA model for an EFS File System Volume.
class
moto.efs.models.MountTargetA model for an EFS Mount Target.
class
moto.elasticache.models.ElastiCacheBackendImplementation of ElastiCache APIs.
method
moto.elasticache.models.ElastiCacheBackend.describe_users(user_id:str | None) -> list[User]Only the `user_id` parameter is currently supported.
class
moto.elasticache.responses.ElastiCacheResponseHandler for ElastiCache requests and responses.
method
moto.elb.models.LoadBalancer.delete(account_id:str, region:str) -> NoneNot exposed as part of the ELB API - used for CloudFormation.
method
moto.elb.models.LoadBalancer.instance_ids() -> list[str]Return all the instances attached to the ELB
class
moto.emrcontainers.models.EMRContainersBackendImplementation of EMRContainers APIs.
class
moto.emrcontainers.responses.EMRContainersResponseHandler for EMRContainers requests and responses.
class
moto.emrserverless.models.EMRServerlessBackendImplementation of EMRServerless APIs.
class
moto.emrserverless.responses.EMRServerlessResponseHandler for EMRServerless requests and responses.
method
moto.events.models.Connection.describe() -> dict[str, Any]Create a complete description for the Connection object.
class
moto.firehose.exceptions.InvalidArgumentExceptionThe specified input parameter has a value that is not valid.
class
moto.firehose.exceptions.ResourceNotFoundExceptionThe specified resource could not be found.
class
moto.firehose.exceptions.ValidationExceptionThe tag key or tag value is not valid.
class
moto.firehose.models.FirehoseBackendImplementation of Firehose APIs.
method
moto.firehose.models.FirehoseBackend.default_vpc_endpoint_service(service_region:str, zones:list[str]) -> list[dict[str, str]]Default VPC endpoint service.
method
moto.firehose.models.FirehoseBackend.delete_delivery_stream(delivery_stream_name:str) -> NoneDelete a delivery stream and its data.
method
moto.firehose.models.FirehoseBackend.list_tags_for_delivery_stream(delivery_stream_name:str, exclusive_start_tag_key:str, limit:int | None) -> dict[str, Any]Return list of tags.
method
moto.firehose.models.FirehoseBackend.lookup_name_from_arn(arn:str) -> DeliveryStream | NoneGiven an ARN, return the associated delivery stream name.
method
moto.firehose.models.FirehoseBackend.put_http_records(http_destination:dict[str, Any], records:list[dict[str, bytes]]) -> list[dict[str, str]]Put records to a HTTP destination.
method
moto.firehose.models.FirehoseBackend.tag_delivery_stream(delivery_stream_name:str, tags:list[dict[str, str]]) -> NoneAdd/update tags for specified delivery stream.
method
moto.firehose.models.FirehoseBackend.untag_delivery_stream(delivery_stream_name:str, tag_keys:list[str]) -> NoneRemoves tags from specified delivery stream.
func
moto.firehose.models.find_destination_config_in_args(api_args:dict[str, Any]) -> tuple[str, Any]Return (config_name, config) tuple for destination config.
class
moto.firehose.responses.FirehoseResponseHandler for Firehose requests and responses.
method
moto.firehose.responses.FirehoseResponse.firehose_backend() -> FirehoseBackendReturn backend instance specific to this region.
method
moto.firehose.responses.FirehoseResponse.put_record() -> ActionResultPrepare arguments and response to PutRecord().
class
moto.fsx.models.FSxBackendImplementation of FSx APIs.
method
moto.fsx.models.FSxBackend.list_tags_for_resource(resource_arn:str) -> list[dict[str, str]]Pagination is not yet implemented
class
moto.fsx.responses.FSxResponseHandler for FSx requests and responses.
method
moto.fsx.responses.FSxResponse.fsx_backend() -> FSxBackendReturn backend instance specific for this region.
class
moto.iam.models.AWSManagedPolicyAWS-managed policy.
class
moto.iam.models.MFADeviceMFA Device class.
class
moto.iam.models.ManagedPolicyManaged policy.
class
moto.iam.policy_conditions.TrustConditionSingle condition object
class
moto.iam.policy_conditions.TrustRelationShipConditionsTrust relationship conditions segment model
func
moto.iam.utils.generate_access_key_id_from_account_id(account_id:str, prefix:str, total_length:int=20) -> strGenerates a key id (e.g.
class
moto.identitystore.models.IdentityStoreBackendImplementation of IdentityStore APIs.
class
moto.identitystore.responses.IdentityStoreResponseHandler for IdentityStore requests and responses.
class
moto.ivs.models.IVSBackendImplementation of IVS APIs.
class
moto.ivs.responses.IVSResponseHandler for IVS requests and responses.
method
moto.ivs.responses.IVSResponse.ivs_backend() -> IVSBackendReturn backend instance specific for this region.
class
moto.kafka.models.KafkaBackendImplementation of Kafka APIs.
class
moto.kafka.responses.KafkaResponseHandler for Kafka requests and responses.
method
moto.kafka.responses.KafkaResponse.kafka_backend() -> KafkaBackendReturn backend instance specific for this region.
class
moto.kinesisanalyticsv2.models.KinesisAnalyticsV2BackendImplementation of KinesisAnalyticsV2 APIs.
func
moto.kms.utils.decrypt(master_keys:dict[str, Any], ciphertext_blob:bytes, encryption_context:dict[str, str]) -> tuple[bytes, str]Decrypt a ciphertext blob using a master key material.
func
moto.kms.utils.encrypt(master_keys:dict[str, Any], key_id:str, plaintext:bytes, encryption_context:dict[str, str]) -> bytesEncrypt data using a master key material.
func
moto.kms.utils.generate_data_key(number_of_bytes:int) -> bytesGenerate a data key.
func
moto.kms.utils.generate_hmac(key:bytes, message:bytes, mac_algorithm:str) -> strReturns a base64 encoded HMAC
func
moto.kms.utils.generate_master_key() -> bytesGenerate a master key.
func
moto.kms.utils.generate_private_key(key_spec:str) -> AbstractPrivateKeyGenerate a private key to be used on asymmetric sign/verify.
class
moto.lakeformation.responses.LakeFormationResponseHandler for LakeFormation requests and responses.
class
moto.lexv2models.models.LexModelsV2BackendImplementation of LexModelsV2 APIs.
class
moto.lexv2models.responses.LexModelsV2ResponseHandler for LexModelsV2 requests and responses.
class
moto.macie2.responses.MacieResponseHandles API requests for the Macie service.
class
moto.mediapackagev2.responses.mediapackagev2ResponseHandler for mediapackagev2 requests and responses.
class
moto.memorydb.models.MemoryDBBackendImplementation of MemoryDB APIs.
class
moto.memorydb.responses.MemoryDBResponseHandler for MemoryDB requests and responses.
method
moto.memorydb.responses.MemoryDBResponse.memorydb_backend() -> MemoryDBBackendReturn backend instance specific for this region.
class
moto.moto_api._internal.managed_state_model.ManagedStateSubclass this class to configure state-transitions
class
moto.moto_api._internal.moto_random.MotoRandomClass used for all sources of random-ness in Moto.
method
moto.moto_api._internal.state_manager.StateManager.get_transition(model_name:str) -> dict[str, Any]Return the configuration for a specific model.
method
moto.moto_api._internal.state_manager.StateManager.set_transition(model_name:str, transition:dict[str, Any]) -> NoneSet a transition for a specific model.
method
moto.moto_api._internal.state_manager.StateManager.unset_transition(model_name:str) -> NoneUnset (remove) a custom transition that was set.
class
moto.mq.responses.MQResponseHandler for MQ requests and responses.
method
moto.mq.responses.MQResponse.mq_backend() -> MQBackendReturn backend instance specific for this region.
class
moto.networkfirewall.models.NetworkFirewallBackendImplementation of NetworkFirewall APIs.
class
moto.networkfirewall.responses.NetworkFirewallResponseHandler for NetworkFirewall requests and responses.
class
moto.networkmanager.models.NetworkManagerBackendImplementation of NetworkManager APIs.
class
moto.networkmanager.responses.NetworkManagerResponseHandler for NetworkManager requests and responses.
class
moto.opensearch.models.OpenSearchServiceBackendImplementation of OpenSearchService APIs.
class
moto.opensearch.responses.OpenSearchServiceResponseHandler for OpenSearchService requests and responses.
method
moto.opensearchserverless.models.OpenSearchServiceServerlessBackend.list_collections(collection_filters:dict[str, str]) -> list[Collection]Pagination is not yet implemented
method
moto.opensearchserverless.models.OpenSearchServiceServerlessBackend.list_security_policies(resource:list[str], type:str) -> list[SecurityPolicy]Pagination is not yet implemented
class
moto.organizations.models.OrganizationsBackendDictSpecialised to keep track of master accounts.
func
moto.organizations.utils.fullmatch(regex:Pattern[str] | str, s:str, flags:int=0) -> boolEmulate python-3.4 re.fullmatch().
class
moto.osis.models.OpenSearchIngestionBackendImplementation of OpenSearchIngestion APIs.
class
moto.osis.responses.OpenSearchIngestionResponseHandler for OpenSearchIngestion requests and responses.
class
moto.packages.boto.ec2.blockdevicemapping.BlockDeviceTypeRepresents parameters for a block device.
class
moto.packages.boto.ec2.instance.InstanceRepresents an instance.
class
moto.packages.boto.ec2.instance.InstancePlacementThe location where the instance launched.
class
moto.packages.boto.ec2.instance.ReservationRepresents a Reservation response object.
class
moto.personalize.models.PersonalizeBackendImplementation of Personalize APIs.
method
moto.personalize.models.PersonalizeBackend.list_schemas() -> Iterable[Schema]Pagination is not yet implemented
class
moto.personalize.responses.PersonalizeResponseHandler for Personalize requests and responses.
class
moto.pinpoint.models.PinpointBackendImplementation of Pinpoint APIs.
method
moto.pinpoint.models.PinpointBackend.get_apps() -> Iterable[App]Pagination is not yet implemented
class
moto.pinpoint.responses.PinpointResponseHandler for Pinpoint requests and responses.
method
moto.pinpoint.responses.PinpointResponse.pinpoint_backend() -> PinpointBackendReturn backend instance specific for this region.
class
moto.pipes.models.EventBridgePipesBackendImplementation of EventBridgePipes APIs.
class
moto.pipes.models.PipeRepresents an EventBridge Pipe.
class
moto.pipes.responses.EventBridgePipesResponseHandler for EventBridgePipes requests and responses.
class
moto.quicksight.models.QuickSightBackendImplementation of QuickSight APIs.
class
moto.quicksight.utils.QuicksightBaseSearchFilterBase Search Filter.
class
moto.quicksight.utils.QuicksightGroupSearchFilterGroup Search Filter.
class
moto.quicksight.utils.QuicksightSearchFilterFactoryCreates the appropriate search filter.
class
moto.quicksight.utils.QuicksightSearchFilterListGeneric QuickSight Search Filter List.
func
moto.rds.utils.apply_filter(resources:Any, filters:Any, filter_defs:dict[str, FilterDef]) -> AnyApply an arbitrary filter to a group of resources.
func
moto.rds.utils.get_object_value(obj:Any, attr:str) -> AnyRetrieves an arbitrary attribute value from an object.
func
moto.rds.utils.validate_filters(filters:dict[str, Any], filter_defs:dict[str, FilterDef]) -> NoneValidates filters against a set of filter definitions.
class
moto.rekognition.models.RekognitionBackendImplementation of Rekognition APIs.
class
moto.rekognition.responses.RekognitionResponseHandler for Rekognition requests and responses.
class
moto.route53.exceptions.ConflictingDomainExistsDomain already exists.
class
moto.route53.exceptions.HostedZoneNotEmptyHostedZone does not exist.
class
moto.route53.exceptions.InvalidInputMalformed ARN for the CloudWatch log group.
class
moto.route53.exceptions.InvalidVPCIdMissing/Invalid VPC ID
class
moto.route53.exceptions.LastVPCAssociationLast VPC can't be disassociate.
class
moto.route53.exceptions.NoSuchHealthCheckHealthCheck does not exist.
class
moto.route53.exceptions.NoSuchHostedZoneHostedZone does not exist.
class
moto.route53.exceptions.NoSuchQueryLoggingConfigQuery log config does not exist.
class
moto.route53.exceptions.PublicZoneVPCAssociationPublic hosted zone can't be associated.
class
moto.route53.exceptions.QueryLoggingConfigAlreadyExistsQuery log config exists for the hosted zone.
class
moto.route53.exceptions.Route53ClientErrorBase class for Route53 errors.
class
moto.route53.exceptions.UnsupportedCharacterMalformed ARN for the CloudWatch log group.
class
moto.route53.models.ChangeListContains a 'clean' list of ResourceRecordChangeSets
method
moto.route53.models.RecordSet.delete(account_id:str, region:str) -> NoneNot exposed as part of the Route 53 API - used for CloudFormation
class
moto.route53.responses.Route53Handler for Route53 requests and responses.
class
moto.route53domains.models.Route53DomainsBackendImplementation of Route53Domains APIs.
class
moto.route53resolver.models.ResolverDnssecConfigRepresentation of a configuration for DNSSEC validation.
class
moto.route53resolver.models.ResolverEndpointRepresentation of a fake Route53 Resolver Endpoint.
method
moto.route53resolver.models.ResolverEndpoint.create_eni() -> list[str]Create a VPC ENI for each combo of AZ, subnet and IP.
method
moto.route53resolver.models.ResolverEndpoint.update_name(name:str) -> NoneReplace existing name with new name.
class
moto.route53resolver.models.ResolverRuleRepresentation of a fake Route53 Resolver Rule.
class
moto.route53resolver.models.Route53ResolverBackendImplementation of Route53Resolver APIs.
method
moto.route53resolver.models.Route53ResolverBackend.get_resolver_dnssec_config(resource_id:str) -> ResolverDnssecConfigGet information about a resolver DNSSEC config.
method
moto.route53resolver.models.Route53ResolverBackend.get_resolver_rule(resolver_rule_id:str) -> ResolverRuleReturn info for specified resolver rule.
class
moto.route53resolver.responses.Route53ResolverResponseHandler for Route53Resolver requests and responses.
method
moto.route53resolver.responses.Route53ResolverResponse.associate_resolver_rule() -> strAssociate a Resolver rule with a VPC.
method
moto.route53resolver.responses.Route53ResolverResponse.delete_resolver_endpoint() -> strDelete a Resolver endpoint.
method
moto.route53resolver.responses.Route53ResolverResponse.delete_resolver_rule() -> strDelete a Resolver rule.
method
moto.route53resolver.responses.Route53ResolverResponse.get_resolver_rule() -> strReturn info about a specific Resolver rule.
method
moto.route53resolver.responses.Route53ResolverResponse.list_tags_for_resource() -> strLists all tags for the given resource.
method
moto.route53resolver.responses.Route53ResolverResponse.tag_resource() -> strAdd one or more tags to a specified resource.
method
moto.route53resolver.responses.Route53ResolverResponse.update_resolver_endpoint() -> strUpdate name of Resolver endpoint.
func
moto.route53resolver.validations.validate_args(validators:list[tuple[str, Any]]) -> NoneRaise exception if any of the validations fails.
func
moto.route53resolver.validations.validate_creator_request_id(value:str | None) -> strRaise exception if the creator_request_id has invalid length.
func
moto.route53resolver.validations.validate_direction(value:str | None) -> strRaise exception if direction not one of the allowed values.
func
moto.route53resolver.validations.validate_domain_name(value:str) -> strRaise exception if the domain_name has invalid length.
func
moto.route53resolver.validations.validate_endpoint_id(value:str | None) -> strRaise exception if resolver endpoint id has invalid length.
func
moto.route53resolver.validations.validate_ip_addresses(value:str) -> strRaise exception if IPs fail to match length constraint.
func
moto.route53resolver.validations.validate_max_results(value:int | None) -> strRaise exception if number of endpoints or IPs is too large.
func
moto.route53resolver.validations.validate_name(value:str | None) -> strRaise exception if name fails to match constraints.
func
moto.route53resolver.validations.validate_rule_id(value:str | None) -> strRaise exception if resolver rule id has invalid length.
func
moto.route53resolver.validations.validate_rule_type(value:str | None) -> strRaise exception if rule_type not one of the allowed values.
func
moto.route53resolver.validations.validate_security_group_ids(value:list[str]) -> strRaise exception if IPs fail to match length constraint.
func
moto.route53resolver.validations.validate_subnets(value:list[dict[str, Any]]) -> strRaise exception if subnets fail to match length constraint.
この情報について
掲載しているシグネチャは getmoto/moto の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。