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:
- Connection
Id string - Event
Subscription 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
- Event
Type 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.
- Subscriber
Link string - Optional. Link for Subscriber of the current EventSubscription.
- Connection
Id string - Event
Subscription stringId - Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- Destinations
Event
Subscription Destination Args - Optional. The destination to hit when we receive an event
- Event
Type 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.
- Subscriber
Link string - Optional. Link for Subscriber of the current EventSubscription.
- connection
Id String - event
Subscription StringId - Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- destinations
Event
Subscription Destination - Optional. The destination to hit when we receive an event
- event
Type 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.
- subscriber
Link String - Optional. Link for Subscriber of the current EventSubscription.
- connection
Id string - event
Subscription stringId - Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
- destinations
Event
Subscription Destination - Optional. The destination to hit when we receive an event
- event
Type 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.
- subscriber
Link 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
Event
Subscription 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.
- connection
Id String - event
Subscription 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
- event
Type 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.
- subscriber
Link 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:
- Create
Time 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
- Update
Time string - Updated time.
- Create
Time string - Created time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
Event
Subscription Status Response - Optional. Status indicates the status of the event subscription resource
- Update
Time string - Updated time.
- create
Time String - Created time.
- id String
- The provider-assigned unique ID for this managed resource.
- status
Event
Subscription Status Response - Optional. Status indicates the status of the event subscription resource
- update
Time String - Updated time.
- create
Time string - Created time.
- id string
- The provider-assigned unique ID for this managed resource.
- status
Event
Subscription Status Response - Optional. Status indicates the status of the event subscription resource
- update
Time string - Updated time.
- create_
time str - Created time.
- id str
- The provider-assigned unique ID for this managed resource.
- status
Event
Subscription Status Response - Optional. Status indicates the status of the event subscription resource
- update_
time str - Updated time.
- create
Time 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
- update
Time String - Updated time.
Supporting Types
EndPoint, EndPointArgs
- Endpoint
Uri string - The URI of the Endpoint.
- Headers
List<Pulumi.
Google Native. Connectors. V1. Inputs. Header> - List of Header to be added to the Endpoint.
- Endpoint
Uri string - The URI of the Endpoint.
- Headers []Header
- List of Header to be added to the Endpoint.
- endpoint
Uri String - The URI of the Endpoint.
- headers List<Header>
- List of Header to be added to the Endpoint.
- endpoint
Uri 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.
- endpoint
Uri String - The URI of the Endpoint.
- headers List<Property Map>
- List of Header to be added to the Endpoint.
EndPointResponse, EndPointResponseArgs
- Endpoint
Uri 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.
- Endpoint
Uri string - The URI of the Endpoint.
- Headers
[]Header
Response - List of Header to be added to the Endpoint.
- endpoint
Uri String - The URI of the Endpoint.
- headers
List<Header
Response> - List of Header to be added to the Endpoint.
- endpoint
Uri string - The URI of the Endpoint.
- headers
Header
Response[] - List of Header to be added to the Endpoint.
- endpoint_
uri str - The URI of the Endpoint.
- headers
Sequence[Header
Response] - List of Header to be added to the Endpoint.
- endpoint
Uri 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.
- Service
Account 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
End
Point - OPTION 1: Hit an endpoint when we receive an event.
- Service
Account string - Service account needed for runtime plane to trigger IP workflow.
- Type
Event
Subscription Destination Type - type of the destination
- endpoint
End
Point - OPTION 1: Hit an endpoint when we receive an event.
- service
Account String - Service account needed for runtime plane to trigger IP workflow.
- type
Event
Subscription Destination Type - type of the destination
- endpoint
End
Point - OPTION 1: Hit an endpoint when we receive an event.
- service
Account string - Service account needed for runtime plane to trigger IP workflow.
- type
Event
Subscription Destination Type - type of the destination
- endpoint
End
Point - OPTION 1: Hit an endpoint when we receive an event.
- service_
account str - Service account needed for runtime plane to trigger IP workflow.
- type
Event
Subscription Destination Type - type of the destination
- endpoint Property Map
- OPTION 1: Hit an endpoint when we receive an event.
- service
Account 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.
- Service
Account string - Service account needed for runtime plane to trigger IP workflow.
- Type string
- type of the destination
- Endpoint
End
Point Response - OPTION 1: Hit an endpoint when we receive an event.
- Service
Account string - Service account needed for runtime plane to trigger IP workflow.
- Type string
- type of the destination
- endpoint
End
Point Response - OPTION 1: Hit an endpoint when we receive an event.
- service
Account String - Service account needed for runtime plane to trigger IP workflow.
- type String
- type of the destination
- endpoint
End
Point Response - OPTION 1: Hit an endpoint when we receive an event.
- service
Account string - Service account needed for runtime plane to trigger IP workflow.
- type string
- type of the destination
- endpoint
End
Point 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.
- service
Account String - Service account needed for runtime plane to trigger IP workflow.
- type String
- type of the destination
EventSubscriptionDestinationType, EventSubscriptionDestinationTypeArgs
- Type
Unspecified - TYPE_UNSPECIFIEDDefault state.
- Endpoint
- ENDPOINTEndpoint - Hit the value of endpoint when event is received
- Event
Subscription Destination Type Type Unspecified - TYPE_UNSPECIFIEDDefault state.
- Event
Subscription Destination Type 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
- 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
- Type
Unspecified - TYPE_UNSPECIFIEDDefault state.
- Queue
- QUEUEJMS Queue.
- Topic
- TOPICJMS Topic.
- JMSType
Type Unspecified - TYPE_UNSPECIFIEDDefault state.
- JMSType
Queue - QUEUEJMS Queue.
- JMSType
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.
- 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.