AWS::EventsV2::EventSource

EventsV2 EventSource

Resource schema for AWS::EventsV2::EventSource. A managed event source that forwards AWS service events or partner events onto a custom event bus.

Properties

5 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
Configuration
EventSourceConfiguration
Required
EventBusArn
string
RequiredCreate-only
Name
string
RequiredCreate-only
Description
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
CreationTimestringThe time the event source was created, as an ISO 8601 timestamp.
EventSourceArnstringThe Amazon Resource Name (ARN) of the event source. Its resource segment has the form event-sourcev2/<type>/<name>/<id>. The type segment is set by the service (aws.service for AWS service events, aws.partner for partner events) and is not part of the event source name. The id segment is a 25-character identifier generated by the service.
LastModifiedTimestringThe time the event source was last modified, as an ISO 8601 timestamp.
RevokedbooleanWhether the event bus owner has revoked this event source. Revocation is permanent: a revoked event source cannot be updated, but it can be deleted.
StatestringThe lifecycle state of the event source: CREATING, ACTIVE, UPDATING, CREATE_FAILED, UPDATE_FAILED, DELETING, or DELETE_FAILED. Revocation by the event bus owner is reported by the Revoked property, not by the state.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EventsV2::EventSource

Resources:
  MyResource:
    Type: AWS::EventsV2::EventSource
    Properties:
      Name: "my-name"
      EventBusArn: "arn:aws:service:region:account:resource"
      Configuration: "value"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

events:CreateEventSourceevents:DescribeEventSourceevents:ListEventSourceskms:Decryptkms:DescribeKeykms:Encryptkms:GenerateDataKeyWithoutPlaintextkms:ReEncryptFromkms:ReEncryptToevents:ListTagsForResourceevents:TagResource

read

events:DescribeEventSourcekms:Decryptevents:ListTagsForResource

update

events:UpdateEventSourceevents:DescribeEventSourceevents:CreateEventSourcekms:Decryptkms:DescribeKeykms:Encryptkms:GenerateDataKeyWithoutPlaintextkms:ReEncryptFromkms:ReEncryptToevents:TagResourceevents:UntagResource

delete

events:DeleteEventSourceevents:DescribeEventSource

list

events:ListEventSources

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceEventsV2
Properties10
Required3
TaggingSupported
Primary IDEventSourceArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NameEventBusArnConfiguration/PartnerEventsConfiguration/PartnerEventSourceArn

External Links