Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.connectors/v1.EventSubscription
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new EventSubscription in a given project,location and connection.
Create EventSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventSubscription(name: string, args: EventSubscriptionArgs, opts?: CustomResourceOptions);@overload
def EventSubscription(resource_name: str,
                      args: EventSubscriptionArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def EventSubscription(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      connection_id: Optional[str] = None,
                      event_subscription_id: Optional[str] = None,
                      destinations: Optional[EventSubscriptionDestinationArgs] = None,
                      event_type_id: Optional[str] = None,
                      jms: Optional[JMSArgs] = None,
                      location: Optional[str] = None,
                      name: Optional[str] = None,
                      project: Optional[str] = None,
                      subscriber: Optional[str] = None,
                      subscriber_link: Optional[str] = None)func NewEventSubscription(ctx *Context, name string, args EventSubscriptionArgs, opts ...ResourceOption) (*EventSubscription, error)public EventSubscription(string name, EventSubscriptionArgs args, CustomResourceOptions? opts = null)
public EventSubscription(String name, EventSubscriptionArgs args)
public EventSubscription(String name, EventSubscriptionArgs args, CustomResourceOptions options)
type: google-native:connectors/v1:EventSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var eventSubscriptionResource = new GoogleNative.Connectors.V1.EventSubscription("eventSubscriptionResource", new()
{
    ConnectionId = "string",
    EventSubscriptionId = "string",
    Destinations = new GoogleNative.Connectors.V1.Inputs.EventSubscriptionDestinationArgs
    {
        Endpoint = new GoogleNative.Connectors.V1.Inputs.EndPointArgs
        {
            EndpointUri = "string",
            Headers = new[]
            {
                new GoogleNative.Connectors.V1.Inputs.HeaderArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
        },
        ServiceAccount = "string",
        Type = GoogleNative.Connectors.V1.EventSubscriptionDestinationType.TypeUnspecified,
    },
    EventTypeId = "string",
    Jms = new GoogleNative.Connectors.V1.Inputs.JMSArgs
    {
        Name = "string",
        Type = GoogleNative.Connectors.V1.JMSType.TypeUnspecified,
    },
    Location = "string",
    Name = "string",
    Project = "string",
    Subscriber = "string",
    SubscriberLink = "string",
});
example, err := connectors.NewEventSubscription(ctx, "eventSubscriptionResource", &connectors.EventSubscriptionArgs{
	ConnectionId:        pulumi.String("string"),
	EventSubscriptionId: pulumi.String("string"),
	Destinations: &connectors.EventSubscriptionDestinationArgs{
		Endpoint: &connectors.EndPointArgs{
			EndpointUri: pulumi.String("string"),
			Headers: connectors.HeaderArray{
				&connectors.HeaderArgs{
					Key:   pulumi.String("string"),
					Value: pulumi.String("string"),
				},
			},
		},
		ServiceAccount: pulumi.String("string"),
		Type:           connectors.EventSubscriptionDestinationTypeTypeUnspecified,
	},
	EventTypeId: pulumi.String("string"),
	Jms: &connectors.JMSArgs{
		Name: pulumi.String("string"),
		Type: connectors.JMSTypeTypeUnspecified,
	},
	Location:       pulumi.String("string"),
	Name:           pulumi.String("string"),
	Project:        pulumi.String("string"),
	Subscriber:     pulumi.String("string"),
	SubscriberLink: pulumi.String("string"),
})
var eventSubscriptionResource = new EventSubscription("eventSubscriptionResource", EventSubscriptionArgs.builder()
    .connectionId("string")
    .eventSubscriptionId("string")
    .destinations(EventSubscriptionDestinationArgs.builder()
        .endpoint(EndPointArgs.builder()
            .endpointUri("string")
            .headers(HeaderArgs.builder()
                .key("string")
                .value("string")
                .build())
            .build())
        .serviceAccount("string")
        .type("TYPE_UNSPECIFIED")
        .build())
    .eventTypeId("string")
    .jms(JMSArgs.builder()
        .name("string")
        .type("TYPE_UNSPECIFIED")
        .build())
    .location("string")
    .name("string")
    .project("string")
    .subscriber("string")
    .subscriberLink("string")
    .build());
event_subscription_resource = google_native.connectors.v1.EventSubscription("eventSubscriptionResource",
    connection_id="string",
    event_subscription_id="string",
    destinations={
        "endpoint": {
            "endpoint_uri": "string",
            "headers": [{
                "key": "string",
                "value": "string",
            }],
        },
        "service_account": "string",
        "type": google_native.connectors.v1.EventSubscriptionDestinationType.TYPE_UNSPECIFIED,
    },
    event_type_id="string",
    jms={
        "name": "string",
        "type": google_native.connectors.v1.JMSType.TYPE_UNSPECIFIED,
    },
    location="string",
    name="string",
    project="string",
    subscriber="string",
    subscriber_link="string")
const eventSubscriptionResource = new google_native.connectors.v1.EventSubscription("eventSubscriptionResource", {
    connectionId: "string",
    eventSubscriptionId: "string",
    destinations: {
        endpoint: {
            endpointUri: "string",
            headers: [{
                key: "string",
                value: "string",
            }],
        },
        serviceAccount: "string",
        type: google_native.connectors.v1.EventSubscriptionDestinationType.TypeUnspecified,
    },
    eventTypeId: "string",
    jms: {
        name: "string",
        type: google_native.connectors.v1.JMSType.TypeUnspecified,
    },
    location: "string",
    name: "string",
    project: "string",
    subscriber: "string",
    subscriberLink: "string",
});
type: google-native:connectors/v1:EventSubscription
properties:
    connectionId: string
    destinations:
        endpoint:
            endpointUri: string
            headers:
                - key: string
                  value: string
        serviceAccount: string
        type: TYPE_UNSPECIFIED
    eventSubscriptionId: string
    eventTypeId: string
    jms:
        name: string
        type: TYPE_UNSPECIFIED
    location: string
    name: string
    project: string
    subscriber: string
    subscriberLink: string
EventSubscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EventSubscription resource accepts the following input properties:
- ConnectionId string
- EventSubscription stringId 
- Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- Destinations
Pulumi.Google Native. Connectors. V1. Inputs. Event Subscription Destination 
- Optional. The destination to hit when we receive an event
- EventType stringId 
- Optional. Event type id of the event of current EventSubscription.
- Jms
Pulumi.Google Native. Connectors. V1. Inputs. JMS 
- Optional. JMS is the source for the event listener.
- Location string
- Name string
- Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
- Project string
- Subscriber string
- Optional. name of the Subscriber for the current EventSubscription.
- SubscriberLink string
- Optional. Link for Subscriber of the current EventSubscription.
- ConnectionId string
- EventSubscription stringId 
- Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- Destinations
EventSubscription Destination Args 
- Optional. The destination to hit when we receive an event
- EventType stringId 
- Optional. Event type id of the event of current EventSubscription.
- Jms JMSArgs
- Optional. JMS is the source for the event listener.
- Location string
- Name string
- Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
- Project string
- Subscriber string
- Optional. name of the Subscriber for the current EventSubscription.
- SubscriberLink string
- Optional. Link for Subscriber of the current EventSubscription.
- connectionId String
- eventSubscription StringId 
- Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- destinations
EventSubscription Destination 
- Optional. The destination to hit when we receive an event
- eventType StringId 
- Optional. Event type id of the event of current EventSubscription.
- jms JMS
- Optional. JMS is the source for the event listener.
- location String
- name String
- Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
- project String
- subscriber String
- Optional. name of the Subscriber for the current EventSubscription.
- subscriberLink String
- Optional. Link for Subscriber of the current EventSubscription.
- connectionId string
- eventSubscription stringId 
- Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- destinations
EventSubscription Destination 
- Optional. The destination to hit when we receive an event
- eventType stringId 
- Optional. Event type id of the event of current EventSubscription.
- jms JMS
- Optional. JMS is the source for the event listener.
- location string
- name string
- Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
- project string
- subscriber string
- Optional. name of the Subscriber for the current EventSubscription.
- subscriberLink string
- Optional. Link for Subscriber of the current EventSubscription.
- connection_id str
- event_subscription_ strid 
- Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- destinations
EventSubscription Destination Args 
- Optional. The destination to hit when we receive an event
- event_type_ strid 
- Optional. Event type id of the event of current EventSubscription.
- jms JMSArgs
- Optional. JMS is the source for the event listener.
- location str
- name str
- Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
- project str
- subscriber str
- Optional. name of the Subscriber for the current EventSubscription.
- subscriber_link str
- Optional. Link for Subscriber of the current EventSubscription.
- connectionId String
- eventSubscription StringId 
- Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- destinations Property Map
- Optional. The destination to hit when we receive an event
- eventType StringId 
- Optional. Event type id of the event of current EventSubscription.
- jms Property Map
- Optional. JMS is the source for the event listener.
- location String
- name String
- Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
- project String
- subscriber String
- Optional. name of the Subscriber for the current EventSubscription.
- subscriberLink String
- Optional. Link for Subscriber of the current EventSubscription.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventSubscription resource produces the following output properties:
- CreateTime string
- Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
Pulumi.Google Native. Connectors. V1. Outputs. Event Subscription Status Response 
- Optional. Status indicates the status of the event subscription resource
- UpdateTime string
- Updated time.
- CreateTime string
- Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
EventSubscription Status Response 
- Optional. Status indicates the status of the event subscription resource
- UpdateTime string
- Updated time.
- createTime String
- Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- status
EventSubscription Status Response 
- Optional. Status indicates the status of the event subscription resource
- updateTime String
- Updated time.
- createTime string
- Created time.
- id string
- The provider-assigned unique ID for this managed resource.
- status
EventSubscription Status Response 
- Optional. Status indicates the status of the event subscription resource
- updateTime string
- Updated time.
- create_time str
- Created time.
- id str
- The provider-assigned unique ID for this managed resource.
- status
EventSubscription Status Response 
- Optional. Status indicates the status of the event subscription resource
- update_time str
- Updated time.
- createTime String
- Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- status Property Map
- Optional. Status indicates the status of the event subscription resource
- updateTime String
- Updated time.
Supporting Types
EndPoint, EndPointArgs    
- EndpointUri string
- The URI of the Endpoint.
- Headers
List<Pulumi.Google Native. Connectors. V1. Inputs. Header> 
- List of Header to be added to the Endpoint.
- EndpointUri string
- The URI of the Endpoint.
- Headers []Header
- List of Header to be added to the Endpoint.
- endpointUri String
- The URI of the Endpoint.
- headers List<Header>
- List of Header to be added to the Endpoint.
- endpointUri string
- The URI of the Endpoint.
- headers Header[]
- List of Header to be added to the Endpoint.
- endpoint_uri str
- The URI of the Endpoint.
- headers Sequence[Header]
- List of Header to be added to the Endpoint.
- endpointUri String
- The URI of the Endpoint.
- headers List<Property Map>
- List of Header to be added to the Endpoint.
EndPointResponse, EndPointResponseArgs      
- EndpointUri string
- The URI of the Endpoint.
- Headers
List<Pulumi.Google Native. Connectors. V1. Inputs. Header Response> 
- List of Header to be added to the Endpoint.
- EndpointUri string
- The URI of the Endpoint.
- Headers
[]HeaderResponse 
- List of Header to be added to the Endpoint.
- endpointUri String
- The URI of the Endpoint.
- headers
List<HeaderResponse> 
- List of Header to be added to the Endpoint.
- endpointUri string
- The URI of the Endpoint.
- headers
HeaderResponse[] 
- List of Header to be added to the Endpoint.
- endpoint_uri str
- The URI of the Endpoint.
- headers
Sequence[HeaderResponse] 
- List of Header to be added to the Endpoint.
- endpointUri String
- The URI of the Endpoint.
- headers List<Property Map>
- List of Header to be added to the Endpoint.
EventSubscriptionDestination, EventSubscriptionDestinationArgs      
- Endpoint
Pulumi.Google Native. Connectors. V1. Inputs. End Point 
- OPTION 1: Hit an endpoint when we receive an event.
- ServiceAccount string
- Service account needed for runtime plane to trigger IP workflow.
- Type
Pulumi.Google Native. Connectors. V1. Event Subscription Destination Type 
- type of the destination
- Endpoint
EndPoint 
- OPTION 1: Hit an endpoint when we receive an event.
- ServiceAccount string
- Service account needed for runtime plane to trigger IP workflow.
- Type
EventSubscription Destination Type 
- type of the destination
- endpoint
EndPoint 
- OPTION 1: Hit an endpoint when we receive an event.
- serviceAccount String
- Service account needed for runtime plane to trigger IP workflow.
- type
EventSubscription Destination Type 
- type of the destination
- endpoint
EndPoint 
- OPTION 1: Hit an endpoint when we receive an event.
- serviceAccount string
- Service account needed for runtime plane to trigger IP workflow.
- type
EventSubscription Destination Type 
- type of the destination
- endpoint
EndPoint 
- OPTION 1: Hit an endpoint when we receive an event.
- service_account str
- Service account needed for runtime plane to trigger IP workflow.
- type
EventSubscription Destination Type 
- type of the destination
- endpoint Property Map
- OPTION 1: Hit an endpoint when we receive an event.
- serviceAccount String
- Service account needed for runtime plane to trigger IP workflow.
- type "TYPE_UNSPECIFIED" | "ENDPOINT"
- type of the destination
EventSubscriptionDestinationResponse, EventSubscriptionDestinationResponseArgs        
- Endpoint
Pulumi.Google Native. Connectors. V1. Inputs. End Point Response 
- OPTION 1: Hit an endpoint when we receive an event.
- ServiceAccount string
- Service account needed for runtime plane to trigger IP workflow.
- Type string
- type of the destination
- Endpoint
EndPoint Response 
- OPTION 1: Hit an endpoint when we receive an event.
- ServiceAccount string
- Service account needed for runtime plane to trigger IP workflow.
- Type string
- type of the destination
- endpoint
EndPoint Response 
- OPTION 1: Hit an endpoint when we receive an event.
- serviceAccount String
- Service account needed for runtime plane to trigger IP workflow.
- type String
- type of the destination
- endpoint
EndPoint Response 
- OPTION 1: Hit an endpoint when we receive an event.
- serviceAccount string
- Service account needed for runtime plane to trigger IP workflow.
- type string
- type of the destination
- endpoint
EndPoint Response 
- OPTION 1: Hit an endpoint when we receive an event.
- service_account str
- Service account needed for runtime plane to trigger IP workflow.
- type str
- type of the destination
- endpoint Property Map
- OPTION 1: Hit an endpoint when we receive an event.
- serviceAccount String
- Service account needed for runtime plane to trigger IP workflow.
- type String
- type of the destination
EventSubscriptionDestinationType, EventSubscriptionDestinationTypeArgs        
- TypeUnspecified 
- TYPE_UNSPECIFIEDDefault state.
- Endpoint
- ENDPOINTEndpoint - Hit the value of endpoint when event is received
- EventSubscription Destination Type Type Unspecified 
- TYPE_UNSPECIFIEDDefault state.
- EventSubscription Destination Type Endpoint 
- ENDPOINTEndpoint - Hit the value of endpoint when event is received
- TypeUnspecified 
- TYPE_UNSPECIFIEDDefault state.
- Endpoint
- ENDPOINTEndpoint - Hit the value of endpoint when event is received
- TypeUnspecified 
- TYPE_UNSPECIFIEDDefault state.
- Endpoint
- ENDPOINTEndpoint - Hit the value of endpoint when event is received
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIEDDefault state.
- ENDPOINT
- ENDPOINTEndpoint - Hit the value of endpoint when event is received
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIEDDefault state.
- "ENDPOINT"
- ENDPOINTEndpoint - Hit the value of endpoint when event is received
EventSubscriptionStatusResponse, EventSubscriptionStatusResponseArgs        
- Description string
- Description of the state.
- State string
- State of Event Subscription resource.
- Description string
- Description of the state.
- State string
- State of Event Subscription resource.
- description String
- Description of the state.
- state String
- State of Event Subscription resource.
- description string
- Description of the state.
- state string
- State of Event Subscription resource.
- description str
- Description of the state.
- state str
- State of Event Subscription resource.
- description String
- Description of the state.
- state String
- State of Event Subscription resource.
Header, HeaderArgs  
HeaderResponse, HeaderResponseArgs    
JMS, JMSArgs  
- Name string
- Optional. Name of the JMS source. i.e. queueName or topicName
- Type
Pulumi.Google Native. Connectors. V1. JMSType 
- Optional. Type of the JMS Source. i.e. Queue or Topic
- name String
- Optional. Name of the JMS source. i.e. queueName or topicName
- type "TYPE_UNSPECIFIED" | "QUEUE" | "TOPIC"
- Optional. Type of the JMS Source. i.e. Queue or Topic
JMSResponse, JMSResponseArgs  
JMSType, JMSTypeArgs  
- TypeUnspecified 
- TYPE_UNSPECIFIEDDefault state.
- Queue
- QUEUEJMS Queue.
- Topic
- TOPICJMS Topic.
- JMSTypeType Unspecified 
- TYPE_UNSPECIFIEDDefault state.
- JMSTypeQueue 
- QUEUEJMS Queue.
- JMSTypeTopic 
- TOPICJMS Topic.
- TypeUnspecified 
- TYPE_UNSPECIFIEDDefault state.
- Queue
- QUEUEJMS Queue.
- Topic
- TOPICJMS Topic.
- TypeUnspecified 
- TYPE_UNSPECIFIEDDefault state.
- Queue
- QUEUEJMS Queue.
- Topic
- TOPICJMS Topic.
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIEDDefault state.
- QUEUE
- QUEUEJMS Queue.
- TOPIC
- TOPICJMS Topic.
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIEDDefault state.
- "QUEUE"
- QUEUEJMS Queue.
- "TOPIC"
- TOPICJMS Topic.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.