Skip to content

EventBridgeClient

Index > EventBridge > EventBridgeClient

Auto-generated documentation for EventBridge type annotations stubs module mypy-boto3-events.

EventBridgeClient

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

Usage example
from boto3.session import Session
from mypy_boto3_events.client import EventBridgeClient

def get_events_client() -> EventBridgeClient:
    return Session().client("events")

Exceptions

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

Usage example
client = boto3.client("events")

try:
    do_something(client)
except (
    client.ClientError,
    client.ConcurrentModificationException,
    client.IllegalStatusException,
    client.InternalException,
    client.InvalidEventPatternException,
    client.InvalidStateException,
    client.LimitExceededException,
    client.ManagedRuleException,
    client.OperationDisabledException,
    client.PolicyLengthExceededException,
    client.ResourceAlreadyExistsException,
    client.ResourceNotFoundException,
) as e:
    print(e)
Type checking example
from mypy_boto3_events.client import Exceptions

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

Methods

activate_event_source

Activates a partner event source that has been deactivated.

Type annotations and code completion for boto3.client("events").activate_event_source method. boto3 documentation

Method definition
def activate_event_source(
    self,
    *,
    Name: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: ActivateEventSourceRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.activate_event_source(**kwargs)
  1. See ActivateEventSourceRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

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

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

cancel_replay

Cancels the specified replay.

Type annotations and code completion for boto3.client("events").cancel_replay method. boto3 documentation

Method definition
def cancel_replay(
    self,
    *,
    ReplayName: str,
) -> CancelReplayResponseTypeDef:  # (1)
    ...
  1. See CancelReplayResponseTypeDef
Usage example with kwargs
kwargs: CancelReplayRequestRequestTypeDef = {  # (1)
    "ReplayName": ...,
}

parent.cancel_replay(**kwargs)
  1. See CancelReplayRequestRequestTypeDef

close

Closes underlying endpoint connections.

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

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

create_api_destination

Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.

Type annotations and code completion for boto3.client("events").create_api_destination method. boto3 documentation

Method definition
def create_api_destination(
    self,
    *,
    Name: str,
    ConnectionArn: str,
    InvocationEndpoint: str,
    HttpMethod: ApiDestinationHttpMethodType,  # (1)
    Description: str = ...,
    InvocationRateLimitPerSecond: int = ...,
) -> CreateApiDestinationResponseTypeDef:  # (2)
    ...
  1. See ApiDestinationHttpMethodType
  2. See CreateApiDestinationResponseTypeDef
Usage example with kwargs
kwargs: CreateApiDestinationRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "ConnectionArn": ...,
    "InvocationEndpoint": ...,
    "HttpMethod": ...,
}

parent.create_api_destination(**kwargs)
  1. See CreateApiDestinationRequestRequestTypeDef

create_archive

Creates an archive of events with the specified settings.

Type annotations and code completion for boto3.client("events").create_archive method. boto3 documentation

Method definition
def create_archive(
    self,
    *,
    ArchiveName: str,
    EventSourceArn: str,
    Description: str = ...,
    EventPattern: str = ...,
    RetentionDays: int = ...,
) -> CreateArchiveResponseTypeDef:  # (1)
    ...
  1. See CreateArchiveResponseTypeDef
Usage example with kwargs
kwargs: CreateArchiveRequestRequestTypeDef = {  # (1)
    "ArchiveName": ...,
    "EventSourceArn": ...,
}

parent.create_archive(**kwargs)
  1. See CreateArchiveRequestRequestTypeDef

create_connection

Creates a connection.

Type annotations and code completion for boto3.client("events").create_connection method. boto3 documentation

Method definition
def create_connection(
    self,
    *,
    Name: str,
    AuthorizationType: ConnectionAuthorizationTypeType,  # (1)
    AuthParameters: CreateConnectionAuthRequestParametersTypeDef,  # (2)
    Description: str = ...,
) -> CreateConnectionResponseTypeDef:  # (3)
    ...
  1. See ConnectionAuthorizationTypeType
  2. See CreateConnectionAuthRequestParametersTypeDef
  3. See CreateConnectionResponseTypeDef
Usage example with kwargs
kwargs: CreateConnectionRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "AuthorizationType": ...,
    "AuthParameters": ...,
}

parent.create_connection(**kwargs)
  1. See CreateConnectionRequestRequestTypeDef

create_endpoint

Creates a global endpoint.

Type annotations and code completion for boto3.client("events").create_endpoint method. boto3 documentation

Method definition
def create_endpoint(
    self,
    *,
    Name: str,
    RoutingConfig: RoutingConfigTypeDef,  # (1)
    EventBuses: Sequence[EndpointEventBusTypeDef],  # (2)
    Description: str = ...,
    ReplicationConfig: ReplicationConfigTypeDef = ...,  # (3)
    RoleArn: str = ...,
) -> CreateEndpointResponseTypeDef:  # (4)
    ...
  1. See RoutingConfigTypeDef
  2. See EndpointEventBusTypeDef
  3. See ReplicationConfigTypeDef
  4. See CreateEndpointResponseTypeDef
Usage example with kwargs
kwargs: CreateEndpointRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "RoutingConfig": ...,
    "EventBuses": ...,
}

parent.create_endpoint(**kwargs)
  1. See CreateEndpointRequestRequestTypeDef

create_event_bus

Creates a new event bus within your account.

Type annotations and code completion for boto3.client("events").create_event_bus method. boto3 documentation

Method definition
def create_event_bus(
    self,
    *,
    Name: str,
    EventSourceName: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateEventBusResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateEventBusResponseTypeDef
Usage example with kwargs
kwargs: CreateEventBusRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.create_event_bus(**kwargs)
  1. See CreateEventBusRequestRequestTypeDef

create_partner_event_source

Called by an SaaS partner to create a partner event source.

Type annotations and code completion for boto3.client("events").create_partner_event_source method. boto3 documentation

Method definition
def create_partner_event_source(
    self,
    *,
    Name: str,
    Account: str,
) -> CreatePartnerEventSourceResponseTypeDef:  # (1)
    ...
  1. See CreatePartnerEventSourceResponseTypeDef
Usage example with kwargs
kwargs: CreatePartnerEventSourceRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "Account": ...,
}

parent.create_partner_event_source(**kwargs)
  1. See CreatePartnerEventSourceRequestRequestTypeDef

deactivate_event_source

You can use this operation to temporarily stop receiving events from the specified partner event source.

Type annotations and code completion for boto3.client("events").deactivate_event_source method. boto3 documentation

Method definition
def deactivate_event_source(
    self,
    *,
    Name: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeactivateEventSourceRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.deactivate_event_source(**kwargs)
  1. See DeactivateEventSourceRequestRequestTypeDef

deauthorize_connection

Removes all authorization parameters from the connection.

Type annotations and code completion for boto3.client("events").deauthorize_connection method. boto3 documentation

Method definition
def deauthorize_connection(
    self,
    *,
    Name: str,
) -> DeauthorizeConnectionResponseTypeDef:  # (1)
    ...
  1. See DeauthorizeConnectionResponseTypeDef
Usage example with kwargs
kwargs: DeauthorizeConnectionRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.deauthorize_connection(**kwargs)
  1. See DeauthorizeConnectionRequestRequestTypeDef

delete_api_destination

Deletes the specified API destination.

Type annotations and code completion for boto3.client("events").delete_api_destination method. boto3 documentation

Method definition
def delete_api_destination(
    self,
    *,
    Name: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteApiDestinationRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.delete_api_destination(**kwargs)
  1. See DeleteApiDestinationRequestRequestTypeDef

delete_archive

Deletes the specified archive.

Type annotations and code completion for boto3.client("events").delete_archive method. boto3 documentation

Method definition
def delete_archive(
    self,
    *,
    ArchiveName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteArchiveRequestRequestTypeDef = {  # (1)
    "ArchiveName": ...,
}

parent.delete_archive(**kwargs)
  1. See DeleteArchiveRequestRequestTypeDef

delete_connection

Deletes a connection.

Type annotations and code completion for boto3.client("events").delete_connection method. boto3 documentation

Method definition
def delete_connection(
    self,
    *,
    Name: str,
) -> DeleteConnectionResponseTypeDef:  # (1)
    ...
  1. See DeleteConnectionResponseTypeDef
Usage example with kwargs
kwargs: DeleteConnectionRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.delete_connection(**kwargs)
  1. See DeleteConnectionRequestRequestTypeDef

delete_endpoint

Delete an existing global endpoint.

Type annotations and code completion for boto3.client("events").delete_endpoint method. boto3 documentation

Method definition
def delete_endpoint(
    self,
    *,
    Name: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteEndpointRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.delete_endpoint(**kwargs)
  1. See DeleteEndpointRequestRequestTypeDef

delete_event_bus

Deletes the specified custom event bus or partner event bus.

Type annotations and code completion for boto3.client("events").delete_event_bus method. boto3 documentation

Method definition
def delete_event_bus(
    self,
    *,
    Name: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteEventBusRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.delete_event_bus(**kwargs)
  1. See DeleteEventBusRequestRequestTypeDef

delete_partner_event_source

This operation is used by SaaS partners to delete a partner event source.

Type annotations and code completion for boto3.client("events").delete_partner_event_source method. boto3 documentation

Method definition
def delete_partner_event_source(
    self,
    *,
    Name: str,
    Account: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeletePartnerEventSourceRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "Account": ...,
}

parent.delete_partner_event_source(**kwargs)
  1. See DeletePartnerEventSourceRequestRequestTypeDef

delete_rule

Deletes the specified rule.

Type annotations and code completion for boto3.client("events").delete_rule method. boto3 documentation

Method definition
def delete_rule(
    self,
    *,
    Name: str,
    EventBusName: str = ...,
    Force: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteRuleRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.delete_rule(**kwargs)
  1. See DeleteRuleRequestRequestTypeDef

describe_api_destination

Retrieves details about an API destination.

Type annotations and code completion for boto3.client("events").describe_api_destination method. boto3 documentation

Method definition
def describe_api_destination(
    self,
    *,
    Name: str,
) -> DescribeApiDestinationResponseTypeDef:  # (1)
    ...
  1. See DescribeApiDestinationResponseTypeDef
Usage example with kwargs
kwargs: DescribeApiDestinationRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.describe_api_destination(**kwargs)
  1. See DescribeApiDestinationRequestRequestTypeDef

describe_archive

Retrieves details about an archive.

Type annotations and code completion for boto3.client("events").describe_archive method. boto3 documentation

Method definition
def describe_archive(
    self,
    *,
    ArchiveName: str,
) -> DescribeArchiveResponseTypeDef:  # (1)
    ...
  1. See DescribeArchiveResponseTypeDef
Usage example with kwargs
kwargs: DescribeArchiveRequestRequestTypeDef = {  # (1)
    "ArchiveName": ...,
}

parent.describe_archive(**kwargs)
  1. See DescribeArchiveRequestRequestTypeDef

describe_connection

Retrieves details about a connection.

Type annotations and code completion for boto3.client("events").describe_connection method. boto3 documentation

Method definition
def describe_connection(
    self,
    *,
    Name: str,
) -> DescribeConnectionResponseTypeDef:  # (1)
    ...
  1. See DescribeConnectionResponseTypeDef
Usage example with kwargs
kwargs: DescribeConnectionRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.describe_connection(**kwargs)
  1. See DescribeConnectionRequestRequestTypeDef

describe_endpoint

Get the information about an existing global endpoint.

Type annotations and code completion for boto3.client("events").describe_endpoint method. boto3 documentation

Method definition
def describe_endpoint(
    self,
    *,
    Name: str,
    HomeRegion: str = ...,
) -> DescribeEndpointResponseTypeDef:  # (1)
    ...
  1. See DescribeEndpointResponseTypeDef
Usage example with kwargs
kwargs: DescribeEndpointRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.describe_endpoint(**kwargs)
  1. See DescribeEndpointRequestRequestTypeDef

describe_event_bus

Displays details about an event bus in your account.

Type annotations and code completion for boto3.client("events").describe_event_bus method. boto3 documentation

Method definition
def describe_event_bus(
    self,
    *,
    Name: str = ...,
) -> DescribeEventBusResponseTypeDef:  # (1)
    ...
  1. See DescribeEventBusResponseTypeDef
Usage example with kwargs
kwargs: DescribeEventBusRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.describe_event_bus(**kwargs)
  1. See DescribeEventBusRequestRequestTypeDef

describe_event_source

This operation lists details about a partner event source that is shared with your account.

Type annotations and code completion for boto3.client("events").describe_event_source method. boto3 documentation

Method definition
def describe_event_source(
    self,
    *,
    Name: str,
) -> DescribeEventSourceResponseTypeDef:  # (1)
    ...
  1. See DescribeEventSourceResponseTypeDef
Usage example with kwargs
kwargs: DescribeEventSourceRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.describe_event_source(**kwargs)
  1. See DescribeEventSourceRequestRequestTypeDef

describe_partner_event_source

An SaaS partner can use this operation to list details about a partner event source that they have created.

Type annotations and code completion for boto3.client("events").describe_partner_event_source method. boto3 documentation

Method definition
def describe_partner_event_source(
    self,
    *,
    Name: str,
) -> DescribePartnerEventSourceResponseTypeDef:  # (1)
    ...
  1. See DescribePartnerEventSourceResponseTypeDef
Usage example with kwargs
kwargs: DescribePartnerEventSourceRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.describe_partner_event_source(**kwargs)
  1. See DescribePartnerEventSourceRequestRequestTypeDef

describe_replay

Retrieves details about a replay.

Type annotations and code completion for boto3.client("events").describe_replay method. boto3 documentation

Method definition
def describe_replay(
    self,
    *,
    ReplayName: str,
) -> DescribeReplayResponseTypeDef:  # (1)
    ...
  1. See DescribeReplayResponseTypeDef
Usage example with kwargs
kwargs: DescribeReplayRequestRequestTypeDef = {  # (1)
    "ReplayName": ...,
}

parent.describe_replay(**kwargs)
  1. See DescribeReplayRequestRequestTypeDef

describe_rule

Describes the specified rule.

Type annotations and code completion for boto3.client("events").describe_rule method. boto3 documentation

Method definition
def describe_rule(
    self,
    *,
    Name: str,
    EventBusName: str = ...,
) -> DescribeRuleResponseTypeDef:  # (1)
    ...
  1. See DescribeRuleResponseTypeDef
Usage example with kwargs
kwargs: DescribeRuleRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.describe_rule(**kwargs)
  1. See DescribeRuleRequestRequestTypeDef

disable_rule

Disables the specified rule.

Type annotations and code completion for boto3.client("events").disable_rule method. boto3 documentation

Method definition
def disable_rule(
    self,
    *,
    Name: str,
    EventBusName: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DisableRuleRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.disable_rule(**kwargs)
  1. See DisableRuleRequestRequestTypeDef

enable_rule

Enables the specified rule.

Type annotations and code completion for boto3.client("events").enable_rule method. boto3 documentation

Method definition
def enable_rule(
    self,
    *,
    Name: str,
    EventBusName: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: EnableRuleRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.enable_rule(**kwargs)
  1. See EnableRuleRequestRequestTypeDef

generate_presigned_url

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

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

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

list_api_destinations

Retrieves a list of API destination in the account in the current Region.

Type annotations and code completion for boto3.client("events").list_api_destinations method. boto3 documentation

Method definition
def list_api_destinations(
    self,
    *,
    NamePrefix: str = ...,
    ConnectionArn: str = ...,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListApiDestinationsResponseTypeDef:  # (1)
    ...
  1. See ListApiDestinationsResponseTypeDef
Usage example with kwargs
kwargs: ListApiDestinationsRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_api_destinations(**kwargs)
  1. See ListApiDestinationsRequestRequestTypeDef

list_archives

Lists your archives.

Type annotations and code completion for boto3.client("events").list_archives method. boto3 documentation

Method definition
def list_archives(
    self,
    *,
    NamePrefix: str = ...,
    EventSourceArn: str = ...,
    State: ArchiveStateType = ...,  # (1)
    NextToken: str = ...,
    Limit: int = ...,
) -> ListArchivesResponseTypeDef:  # (2)
    ...
  1. See ArchiveStateType
  2. See ListArchivesResponseTypeDef
Usage example with kwargs
kwargs: ListArchivesRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_archives(**kwargs)
  1. See ListArchivesRequestRequestTypeDef

list_connections

Retrieves a list of connections from the account.

Type annotations and code completion for boto3.client("events").list_connections method. boto3 documentation

Method definition
def list_connections(
    self,
    *,
    NamePrefix: str = ...,
    ConnectionState: ConnectionStateType = ...,  # (1)
    NextToken: str = ...,
    Limit: int = ...,
) -> ListConnectionsResponseTypeDef:  # (2)
    ...
  1. See ConnectionStateType
  2. See ListConnectionsResponseTypeDef
Usage example with kwargs
kwargs: ListConnectionsRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_connections(**kwargs)
  1. See ListConnectionsRequestRequestTypeDef

list_endpoints

List the global endpoints associated with this account.

Type annotations and code completion for boto3.client("events").list_endpoints method. boto3 documentation

Method definition
def list_endpoints(
    self,
    *,
    NamePrefix: str = ...,
    HomeRegion: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListEndpointsResponseTypeDef:  # (1)
    ...
  1. See ListEndpointsResponseTypeDef
Usage example with kwargs
kwargs: ListEndpointsRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_endpoints(**kwargs)
  1. See ListEndpointsRequestRequestTypeDef

list_event_buses

Lists all the event buses in your account, including the default event bus, custom event buses, and partner event buses.

Type annotations and code completion for boto3.client("events").list_event_buses method. boto3 documentation

Method definition
def list_event_buses(
    self,
    *,
    NamePrefix: str = ...,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListEventBusesResponseTypeDef:  # (1)
    ...
  1. See ListEventBusesResponseTypeDef
Usage example with kwargs
kwargs: ListEventBusesRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_event_buses(**kwargs)
  1. See ListEventBusesRequestRequestTypeDef

list_event_sources

You can use this to see all the partner event sources that have been shared with your Amazon Web Services account.

Type annotations and code completion for boto3.client("events").list_event_sources method. boto3 documentation

Method definition
def list_event_sources(
    self,
    *,
    NamePrefix: str = ...,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListEventSourcesResponseTypeDef:  # (1)
    ...
  1. See ListEventSourcesResponseTypeDef
Usage example with kwargs
kwargs: ListEventSourcesRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_event_sources(**kwargs)
  1. See ListEventSourcesRequestRequestTypeDef

list_partner_event_source_accounts

An SaaS partner can use this operation to display the Amazon Web Services account ID that a particular partner event source name is associated with.

Type annotations and code completion for boto3.client("events").list_partner_event_source_accounts method. boto3 documentation

Method definition
def list_partner_event_source_accounts(
    self,
    *,
    EventSourceName: str,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListPartnerEventSourceAccountsResponseTypeDef:  # (1)
    ...
  1. See ListPartnerEventSourceAccountsResponseTypeDef
Usage example with kwargs
kwargs: ListPartnerEventSourceAccountsRequestRequestTypeDef = {  # (1)
    "EventSourceName": ...,
}

parent.list_partner_event_source_accounts(**kwargs)
  1. See ListPartnerEventSourceAccountsRequestRequestTypeDef

list_partner_event_sources

An SaaS partner can use this operation to list all the partner event source names that they have created.

Type annotations and code completion for boto3.client("events").list_partner_event_sources method. boto3 documentation

Method definition
def list_partner_event_sources(
    self,
    *,
    NamePrefix: str,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListPartnerEventSourcesResponseTypeDef:  # (1)
    ...
  1. See ListPartnerEventSourcesResponseTypeDef
Usage example with kwargs
kwargs: ListPartnerEventSourcesRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_partner_event_sources(**kwargs)
  1. See ListPartnerEventSourcesRequestRequestTypeDef

list_replays

Lists your replays.

Type annotations and code completion for boto3.client("events").list_replays method. boto3 documentation

Method definition
def list_replays(
    self,
    *,
    NamePrefix: str = ...,
    State: ReplayStateType = ...,  # (1)
    EventSourceArn: str = ...,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListReplaysResponseTypeDef:  # (2)
    ...
  1. See ReplayStateType
  2. See ListReplaysResponseTypeDef
Usage example with kwargs
kwargs: ListReplaysRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_replays(**kwargs)
  1. See ListReplaysRequestRequestTypeDef

list_rule_names_by_target

Lists the rules for the specified target.

Type annotations and code completion for boto3.client("events").list_rule_names_by_target method. boto3 documentation

Method definition
def list_rule_names_by_target(
    self,
    *,
    TargetArn: str,
    EventBusName: str = ...,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListRuleNamesByTargetResponseTypeDef:  # (1)
    ...
  1. See ListRuleNamesByTargetResponseTypeDef
Usage example with kwargs
kwargs: ListRuleNamesByTargetRequestRequestTypeDef = {  # (1)
    "TargetArn": ...,
}

parent.list_rule_names_by_target(**kwargs)
  1. See ListRuleNamesByTargetRequestRequestTypeDef

list_rules

Lists your Amazon EventBridge rules.

Type annotations and code completion for boto3.client("events").list_rules method. boto3 documentation

Method definition
def list_rules(
    self,
    *,
    NamePrefix: str = ...,
    EventBusName: str = ...,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListRulesResponseTypeDef:  # (1)
    ...
  1. See ListRulesResponseTypeDef
Usage example with kwargs
kwargs: ListRulesRequestRequestTypeDef = {  # (1)
    "NamePrefix": ...,
}

parent.list_rules(**kwargs)
  1. See ListRulesRequestRequestTypeDef

list_tags_for_resource

Displays the tags associated with an EventBridge resource.

Type annotations and code completion for boto3.client("events").list_tags_for_resource method. boto3 documentation

Method definition
def list_tags_for_resource(
    self,
    *,
    ResourceARN: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceARN": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

list_targets_by_rule

Lists the targets assigned to the specified rule.

Type annotations and code completion for boto3.client("events").list_targets_by_rule method. boto3 documentation

Method definition
def list_targets_by_rule(
    self,
    *,
    Rule: str,
    EventBusName: str = ...,
    NextToken: str = ...,
    Limit: int = ...,
) -> ListTargetsByRuleResponseTypeDef:  # (1)
    ...
  1. See ListTargetsByRuleResponseTypeDef
Usage example with kwargs
kwargs: ListTargetsByRuleRequestRequestTypeDef = {  # (1)
    "Rule": ...,
}

parent.list_targets_by_rule(**kwargs)
  1. See ListTargetsByRuleRequestRequestTypeDef

put_events

Sends custom events to Amazon EventBridge so that they can be matched to rules.

Type annotations and code completion for boto3.client("events").put_events method. boto3 documentation

Method definition
def put_events(
    self,
    *,
    Entries: Sequence[PutEventsRequestEntryTypeDef],  # (1)
    EndpointId: str = ...,
) -> PutEventsResponseTypeDef:  # (2)
    ...
  1. See PutEventsRequestEntryTypeDef
  2. See PutEventsResponseTypeDef
Usage example with kwargs
kwargs: PutEventsRequestRequestTypeDef = {  # (1)
    "Entries": ...,
}

parent.put_events(**kwargs)
  1. See PutEventsRequestRequestTypeDef

put_partner_events

This is used by SaaS partners to write events to a customer's partner event bus.

Type annotations and code completion for boto3.client("events").put_partner_events method. boto3 documentation

Method definition
def put_partner_events(
    self,
    *,
    Entries: Sequence[PutPartnerEventsRequestEntryTypeDef],  # (1)
) -> PutPartnerEventsResponseTypeDef:  # (2)
    ...
  1. See PutPartnerEventsRequestEntryTypeDef
  2. See PutPartnerEventsResponseTypeDef
Usage example with kwargs
kwargs: PutPartnerEventsRequestRequestTypeDef = {  # (1)
    "Entries": ...,
}

parent.put_partner_events(**kwargs)
  1. See PutPartnerEventsRequestRequestTypeDef

put_permission

Running PutPermission permits the specified Amazon Web Services account or Amazon Web Services organization to put events to the specified event bus.

Type annotations and code completion for boto3.client("events").put_permission method. boto3 documentation

Method definition
def put_permission(
    self,
    *,
    EventBusName: str = ...,
    Action: str = ...,
    Principal: str = ...,
    StatementId: str = ...,
    Condition: ConditionTypeDef = ...,  # (1)
    Policy: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See ConditionTypeDef
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: PutPermissionRequestRequestTypeDef = {  # (1)
    "EventBusName": ...,
}

parent.put_permission(**kwargs)
  1. See PutPermissionRequestRequestTypeDef

put_rule

Creates or updates the specified rule.

Type annotations and code completion for boto3.client("events").put_rule method. boto3 documentation

Method definition
def put_rule(
    self,
    *,
    Name: str,
    ScheduleExpression: str = ...,
    EventPattern: str = ...,
    State: RuleStateType = ...,  # (1)
    Description: str = ...,
    RoleArn: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (2)
    EventBusName: str = ...,
) -> PutRuleResponseTypeDef:  # (3)
    ...
  1. See RuleStateType
  2. See TagTypeDef
  3. See PutRuleResponseTypeDef
Usage example with kwargs
kwargs: PutRuleRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.put_rule(**kwargs)
  1. See PutRuleRequestRequestTypeDef

put_targets

Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule.

Type annotations and code completion for boto3.client("events").put_targets method. boto3 documentation

Method definition
def put_targets(
    self,
    *,
    Rule: str,
    Targets: Sequence[TargetTypeDef],  # (1)
    EventBusName: str = ...,
) -> PutTargetsResponseTypeDef:  # (2)
    ...
  1. See TargetTypeDef
  2. See PutTargetsResponseTypeDef
Usage example with kwargs
kwargs: PutTargetsRequestRequestTypeDef = {  # (1)
    "Rule": ...,
    "Targets": ...,
}

parent.put_targets(**kwargs)
  1. See PutTargetsRequestRequestTypeDef

remove_permission

Revokes the permission of another Amazon Web Services account to be able to put events to the specified event bus.

Type annotations and code completion for boto3.client("events").remove_permission method. boto3 documentation

Method definition
def remove_permission(
    self,
    *,
    StatementId: str = ...,
    RemoveAllPermissions: bool = ...,
    EventBusName: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: RemovePermissionRequestRequestTypeDef = {  # (1)
    "StatementId": ...,
}

parent.remove_permission(**kwargs)
  1. See RemovePermissionRequestRequestTypeDef

remove_targets

Removes the specified targets from the specified rule.

Type annotations and code completion for boto3.client("events").remove_targets method. boto3 documentation

Method definition
def remove_targets(
    self,
    *,
    Rule: str,
    Ids: Sequence[str],
    EventBusName: str = ...,
    Force: bool = ...,
) -> RemoveTargetsResponseTypeDef:  # (1)
    ...
  1. See RemoveTargetsResponseTypeDef
Usage example with kwargs
kwargs: RemoveTargetsRequestRequestTypeDef = {  # (1)
    "Rule": ...,
    "Ids": ...,
}

parent.remove_targets(**kwargs)
  1. See RemoveTargetsRequestRequestTypeDef

start_replay

Starts the specified replay.

Type annotations and code completion for boto3.client("events").start_replay method. boto3 documentation

Method definition
def start_replay(
    self,
    *,
    ReplayName: str,
    EventSourceArn: str,
    EventStartTime: Union[datetime, str],
    EventEndTime: Union[datetime, str],
    Destination: ReplayDestinationTypeDef,  # (1)
    Description: str = ...,
) -> StartReplayResponseTypeDef:  # (2)
    ...
  1. See ReplayDestinationTypeDef
  2. See StartReplayResponseTypeDef
Usage example with kwargs
kwargs: StartReplayRequestRequestTypeDef = {  # (1)
    "ReplayName": ...,
    "EventSourceArn": ...,
    "EventStartTime": ...,
    "EventEndTime": ...,
    "Destination": ...,
}

parent.start_replay(**kwargs)
  1. See StartReplayRequestRequestTypeDef

tag_resource

Assigns one or more tags (key-value pairs) to the specified EventBridge resource.

Type annotations and code completion for boto3.client("events").tag_resource method. boto3 documentation

Method definition
def tag_resource(
    self,
    *,
    ResourceARN: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceARN": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

test_event_pattern

Tests whether the specified event pattern matches the provided event.

Type annotations and code completion for boto3.client("events").test_event_pattern method. boto3 documentation

Method definition
def test_event_pattern(
    self,
    *,
    EventPattern: str,
    Event: str,
) -> TestEventPatternResponseTypeDef:  # (1)
    ...
  1. See TestEventPatternResponseTypeDef
Usage example with kwargs
kwargs: TestEventPatternRequestRequestTypeDef = {  # (1)
    "EventPattern": ...,
    "Event": ...,
}

parent.test_event_pattern(**kwargs)
  1. See TestEventPatternRequestRequestTypeDef

untag_resource

Removes one or more tags from the specified EventBridge resource.

Type annotations and code completion for boto3.client("events").untag_resource method. boto3 documentation

Method definition
def untag_resource(
    self,
    *,
    ResourceARN: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceARN": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_api_destination

Updates an API destination.

Type annotations and code completion for boto3.client("events").update_api_destination method. boto3 documentation

Method definition
def update_api_destination(
    self,
    *,
    Name: str,
    Description: str = ...,
    ConnectionArn: str = ...,
    InvocationEndpoint: str = ...,
    HttpMethod: ApiDestinationHttpMethodType = ...,  # (1)
    InvocationRateLimitPerSecond: int = ...,
) -> UpdateApiDestinationResponseTypeDef:  # (2)
    ...
  1. See ApiDestinationHttpMethodType
  2. See UpdateApiDestinationResponseTypeDef
Usage example with kwargs
kwargs: UpdateApiDestinationRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.update_api_destination(**kwargs)
  1. See UpdateApiDestinationRequestRequestTypeDef

update_archive

Updates the specified archive.

Type annotations and code completion for boto3.client("events").update_archive method. boto3 documentation

Method definition
def update_archive(
    self,
    *,
    ArchiveName: str,
    Description: str = ...,
    EventPattern: str = ...,
    RetentionDays: int = ...,
) -> UpdateArchiveResponseTypeDef:  # (1)
    ...
  1. See UpdateArchiveResponseTypeDef
Usage example with kwargs
kwargs: UpdateArchiveRequestRequestTypeDef = {  # (1)
    "ArchiveName": ...,
}

parent.update_archive(**kwargs)
  1. See UpdateArchiveRequestRequestTypeDef

update_connection

Updates settings for a connection.

Type annotations and code completion for boto3.client("events").update_connection method. boto3 documentation

Method definition
def update_connection(
    self,
    *,
    Name: str,
    Description: str = ...,
    AuthorizationType: ConnectionAuthorizationTypeType = ...,  # (1)
    AuthParameters: UpdateConnectionAuthRequestParametersTypeDef = ...,  # (2)
) -> UpdateConnectionResponseTypeDef:  # (3)
    ...
  1. See ConnectionAuthorizationTypeType
  2. See UpdateConnectionAuthRequestParametersTypeDef
  3. See UpdateConnectionResponseTypeDef
Usage example with kwargs
kwargs: UpdateConnectionRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.update_connection(**kwargs)
  1. See UpdateConnectionRequestRequestTypeDef

update_endpoint

Update an existing endpoint.

Type annotations and code completion for boto3.client("events").update_endpoint method. boto3 documentation

Method definition
def update_endpoint(
    self,
    *,
    Name: str,
    Description: str = ...,
    RoutingConfig: RoutingConfigTypeDef = ...,  # (1)
    ReplicationConfig: ReplicationConfigTypeDef = ...,  # (2)
    EventBuses: Sequence[EndpointEventBusTypeDef] = ...,  # (3)
    RoleArn: str = ...,
) -> UpdateEndpointResponseTypeDef:  # (4)
    ...
  1. See RoutingConfigTypeDef
  2. See ReplicationConfigTypeDef
  3. See EndpointEventBusTypeDef
  4. See UpdateEndpointResponseTypeDef
Usage example with kwargs
kwargs: UpdateEndpointRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.update_endpoint(**kwargs)
  1. See UpdateEndpointRequestRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("events").get_paginator method with overloads.