eventbridge

package
v3.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBus

type EventBus struct {
	pulumi.CustomResourceState

	// The description of event bus.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of event bus. The length is limited to 2 ~ 127 characters, which can be composed of letters, numbers or hyphens (-)
	EventBusName pulumi.StringOutput `pulumi:"eventBusName"`
}

Provides a Event Bridge Event Bus resource.

For information about Event Bridge Event Bus and how to use it, see [What is Event Bus](https://help.aliyun.com/document_detail/167863.html).

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eventbridge.NewEventBus(ctx, "example", &eventbridge.EventBusArgs{
			EventBusName: pulumi.String("my-EventBus"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Event Bridge Event Bus can be imported using the id, e.g.

```sh

$ pulumi import alicloud:eventbridge/eventBus:EventBus example <event_bus_name>

```

func GetEventBus

func GetEventBus(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EventBusState, opts ...pulumi.ResourceOption) (*EventBus, error)

GetEventBus gets an existing EventBus resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEventBus

func NewEventBus(ctx *pulumi.Context,
	name string, args *EventBusArgs, opts ...pulumi.ResourceOption) (*EventBus, error)

NewEventBus registers a new resource with the given unique name, arguments, and options.

func (*EventBus) ElementType

func (*EventBus) ElementType() reflect.Type

func (*EventBus) ToEventBusOutput

func (i *EventBus) ToEventBusOutput() EventBusOutput

func (*EventBus) ToEventBusOutputWithContext

func (i *EventBus) ToEventBusOutputWithContext(ctx context.Context) EventBusOutput

func (*EventBus) ToEventBusPtrOutput

func (i *EventBus) ToEventBusPtrOutput() EventBusPtrOutput

func (*EventBus) ToEventBusPtrOutputWithContext

func (i *EventBus) ToEventBusPtrOutputWithContext(ctx context.Context) EventBusPtrOutput

type EventBusArgs

type EventBusArgs struct {
	// The description of event bus.
	Description pulumi.StringPtrInput
	// The name of event bus. The length is limited to 2 ~ 127 characters, which can be composed of letters, numbers or hyphens (-)
	EventBusName pulumi.StringInput
}

The set of arguments for constructing a EventBus resource.

func (EventBusArgs) ElementType

func (EventBusArgs) ElementType() reflect.Type

type EventBusArray

type EventBusArray []EventBusInput

func (EventBusArray) ElementType

func (EventBusArray) ElementType() reflect.Type

func (EventBusArray) ToEventBusArrayOutput

func (i EventBusArray) ToEventBusArrayOutput() EventBusArrayOutput

func (EventBusArray) ToEventBusArrayOutputWithContext

func (i EventBusArray) ToEventBusArrayOutputWithContext(ctx context.Context) EventBusArrayOutput

type EventBusArrayInput

type EventBusArrayInput interface {
	pulumi.Input

	ToEventBusArrayOutput() EventBusArrayOutput
	ToEventBusArrayOutputWithContext(context.Context) EventBusArrayOutput
}

EventBusArrayInput is an input type that accepts EventBusArray and EventBusArrayOutput values. You can construct a concrete instance of `EventBusArrayInput` via:

EventBusArray{ EventBusArgs{...} }

type EventBusArrayOutput

type EventBusArrayOutput struct{ *pulumi.OutputState }

func (EventBusArrayOutput) ElementType

func (EventBusArrayOutput) ElementType() reflect.Type

func (EventBusArrayOutput) Index

func (EventBusArrayOutput) ToEventBusArrayOutput

func (o EventBusArrayOutput) ToEventBusArrayOutput() EventBusArrayOutput

func (EventBusArrayOutput) ToEventBusArrayOutputWithContext

func (o EventBusArrayOutput) ToEventBusArrayOutputWithContext(ctx context.Context) EventBusArrayOutput

type EventBusInput

type EventBusInput interface {
	pulumi.Input

	ToEventBusOutput() EventBusOutput
	ToEventBusOutputWithContext(ctx context.Context) EventBusOutput
}

type EventBusMap

type EventBusMap map[string]EventBusInput

func (EventBusMap) ElementType

func (EventBusMap) ElementType() reflect.Type

func (EventBusMap) ToEventBusMapOutput

func (i EventBusMap) ToEventBusMapOutput() EventBusMapOutput

func (EventBusMap) ToEventBusMapOutputWithContext

func (i EventBusMap) ToEventBusMapOutputWithContext(ctx context.Context) EventBusMapOutput

type EventBusMapInput

type EventBusMapInput interface {
	pulumi.Input

	ToEventBusMapOutput() EventBusMapOutput
	ToEventBusMapOutputWithContext(context.Context) EventBusMapOutput
}

EventBusMapInput is an input type that accepts EventBusMap and EventBusMapOutput values. You can construct a concrete instance of `EventBusMapInput` via:

EventBusMap{ "key": EventBusArgs{...} }

type EventBusMapOutput

type EventBusMapOutput struct{ *pulumi.OutputState }

func (EventBusMapOutput) ElementType

func (EventBusMapOutput) ElementType() reflect.Type

func (EventBusMapOutput) MapIndex

func (EventBusMapOutput) ToEventBusMapOutput

func (o EventBusMapOutput) ToEventBusMapOutput() EventBusMapOutput

func (EventBusMapOutput) ToEventBusMapOutputWithContext

func (o EventBusMapOutput) ToEventBusMapOutputWithContext(ctx context.Context) EventBusMapOutput

type EventBusOutput

type EventBusOutput struct {
	*pulumi.OutputState
}

func (EventBusOutput) ElementType

func (EventBusOutput) ElementType() reflect.Type

func (EventBusOutput) ToEventBusOutput

func (o EventBusOutput) ToEventBusOutput() EventBusOutput

func (EventBusOutput) ToEventBusOutputWithContext

func (o EventBusOutput) ToEventBusOutputWithContext(ctx context.Context) EventBusOutput

func (EventBusOutput) ToEventBusPtrOutput

func (o EventBusOutput) ToEventBusPtrOutput() EventBusPtrOutput

func (EventBusOutput) ToEventBusPtrOutputWithContext

func (o EventBusOutput) ToEventBusPtrOutputWithContext(ctx context.Context) EventBusPtrOutput

type EventBusPtrInput

type EventBusPtrInput interface {
	pulumi.Input

	ToEventBusPtrOutput() EventBusPtrOutput
	ToEventBusPtrOutputWithContext(ctx context.Context) EventBusPtrOutput
}

type EventBusPtrOutput

type EventBusPtrOutput struct {
	*pulumi.OutputState
}

func (EventBusPtrOutput) ElementType

func (EventBusPtrOutput) ElementType() reflect.Type

func (EventBusPtrOutput) ToEventBusPtrOutput

func (o EventBusPtrOutput) ToEventBusPtrOutput() EventBusPtrOutput

func (EventBusPtrOutput) ToEventBusPtrOutputWithContext

func (o EventBusPtrOutput) ToEventBusPtrOutputWithContext(ctx context.Context) EventBusPtrOutput

type EventBusState

type EventBusState struct {
	// The description of event bus.
	Description pulumi.StringPtrInput
	// The name of event bus. The length is limited to 2 ~ 127 characters, which can be composed of letters, numbers or hyphens (-)
	EventBusName pulumi.StringPtrInput
}

func (EventBusState) ElementType

func (EventBusState) ElementType() reflect.Type

type EventSource added in v3.6.0

type EventSource struct {
	pulumi.CustomResourceState

	// The detail describe of event source.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of event bus.
	EventBusName pulumi.StringOutput `pulumi:"eventBusName"`
	// The code name of event source.
	EventSourceName pulumi.StringOutput `pulumi:"eventSourceName"`
	// The config of external source.
	// When `externalSourceType` is `RabbitMQ`, The following attributes are supported:
	// `RegionId` - The region ID of RabbitMQ.
	// `InstanceId` - The instance ID of RabbitMQ.
	// `VirtualHostName` - The virtual host name of RabbitMQ.
	// `QueueName` - The queue name of RabbitMQ.
	// When `externalSourceType` is `RabbitMQ`, The following attributes are supported:
	// `RegionId` - The region ID of RabbitMQ.
	// `InstanceId` - The instance ID of RabbitMQ.
	// `Topic` - The topic of RabbitMQ.
	// `Offset` -  The offset of RabbitMQ, valid values: `CONSUME_FROM_FIRST_OFFSET`, `CONSUME_FROM_LAST_OFFSET` and `CONSUME_FROM_TIMESTAMP`.
	// `GroupID` - The group ID of consumer.
	// When `externalSourceType` is `MNS`, The following attributes are supported:
	// `QueueName` - The queue name of MNS.
	ExternalSourceConfig pulumi.MapOutput `pulumi:"externalSourceConfig"`
	// The type of external data source. Valid value : `RabbitMQ`, `RocketMQ` and `MNS`. **NOTE:** Only When `linkedExternalSource` is `true`, This field is valid.
	ExternalSourceType pulumi.StringPtrOutput `pulumi:"externalSourceType"`
	// Whether to connect to an external data source. Default value: `false`
	LinkedExternalSource pulumi.BoolOutput `pulumi:"linkedExternalSource"`
}

Provides a Event Bridge Event Source resource.

For information about Event Bridge Event Source and how to use it, see [What is Event Source](https://www.alibabacloud.com/help/doc-detail/188425.htm).

> **NOTE:** Available in v1.130.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eventbridge.NewEventSource(ctx, "example", &eventbridge.EventSourceArgs{
			Description:     pulumi.String("tf-test"),
			EventBusName:    pulumi.String("bus_name"),
			EventSourceName: pulumi.String("tftest"),
			ExternalSourceConfig: pulumi.StringMap{
				"QueueName": pulumi.String("mns_queuqe_name"),
			},
			ExternalSourceType:   pulumi.String("MNS"),
			LinkedExternalSource: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Event Bridge Event Source can be imported using the id, e.g.

```sh

$ pulumi import alicloud:eventbridge/eventSource:EventSource example <event_source_name>

```

func GetEventSource added in v3.6.0

func GetEventSource(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EventSourceState, opts ...pulumi.ResourceOption) (*EventSource, error)

GetEventSource gets an existing EventSource resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEventSource added in v3.6.0

func NewEventSource(ctx *pulumi.Context,
	name string, args *EventSourceArgs, opts ...pulumi.ResourceOption) (*EventSource, error)

NewEventSource registers a new resource with the given unique name, arguments, and options.

func (*EventSource) ElementType added in v3.6.0

func (*EventSource) ElementType() reflect.Type

func (*EventSource) ToEventSourceOutput added in v3.6.0

func (i *EventSource) ToEventSourceOutput() EventSourceOutput

func (*EventSource) ToEventSourceOutputWithContext added in v3.6.0

func (i *EventSource) ToEventSourceOutputWithContext(ctx context.Context) EventSourceOutput

func (*EventSource) ToEventSourcePtrOutput added in v3.6.0

func (i *EventSource) ToEventSourcePtrOutput() EventSourcePtrOutput

func (*EventSource) ToEventSourcePtrOutputWithContext added in v3.6.0

func (i *EventSource) ToEventSourcePtrOutputWithContext(ctx context.Context) EventSourcePtrOutput

type EventSourceArgs added in v3.6.0

type EventSourceArgs struct {
	// The detail describe of event source.
	Description pulumi.StringPtrInput
	// The name of event bus.
	EventBusName pulumi.StringInput
	// The code name of event source.
	EventSourceName pulumi.StringInput
	// The config of external source.
	// When `externalSourceType` is `RabbitMQ`, The following attributes are supported:
	// `RegionId` - The region ID of RabbitMQ.
	// `InstanceId` - The instance ID of RabbitMQ.
	// `VirtualHostName` - The virtual host name of RabbitMQ.
	// `QueueName` - The queue name of RabbitMQ.
	// When `externalSourceType` is `RabbitMQ`, The following attributes are supported:
	// `RegionId` - The region ID of RabbitMQ.
	// `InstanceId` - The instance ID of RabbitMQ.
	// `Topic` - The topic of RabbitMQ.
	// `Offset` -  The offset of RabbitMQ, valid values: `CONSUME_FROM_FIRST_OFFSET`, `CONSUME_FROM_LAST_OFFSET` and `CONSUME_FROM_TIMESTAMP`.
	// `GroupID` - The group ID of consumer.
	// When `externalSourceType` is `MNS`, The following attributes are supported:
	// `QueueName` - The queue name of MNS.
	ExternalSourceConfig pulumi.MapInput
	// The type of external data source. Valid value : `RabbitMQ`, `RocketMQ` and `MNS`. **NOTE:** Only When `linkedExternalSource` is `true`, This field is valid.
	ExternalSourceType pulumi.StringPtrInput
	// Whether to connect to an external data source. Default value: `false`
	LinkedExternalSource pulumi.BoolPtrInput
}

The set of arguments for constructing a EventSource resource.

func (EventSourceArgs) ElementType added in v3.6.0

func (EventSourceArgs) ElementType() reflect.Type

type EventSourceArray added in v3.6.0

type EventSourceArray []EventSourceInput

func (EventSourceArray) ElementType added in v3.6.0

func (EventSourceArray) ElementType() reflect.Type

func (EventSourceArray) ToEventSourceArrayOutput added in v3.6.0

func (i EventSourceArray) ToEventSourceArrayOutput() EventSourceArrayOutput

func (EventSourceArray) ToEventSourceArrayOutputWithContext added in v3.6.0

func (i EventSourceArray) ToEventSourceArrayOutputWithContext(ctx context.Context) EventSourceArrayOutput

type EventSourceArrayInput added in v3.6.0

type EventSourceArrayInput interface {
	pulumi.Input

	ToEventSourceArrayOutput() EventSourceArrayOutput
	ToEventSourceArrayOutputWithContext(context.Context) EventSourceArrayOutput
}

EventSourceArrayInput is an input type that accepts EventSourceArray and EventSourceArrayOutput values. You can construct a concrete instance of `EventSourceArrayInput` via:

EventSourceArray{ EventSourceArgs{...} }

type EventSourceArrayOutput added in v3.6.0

type EventSourceArrayOutput struct{ *pulumi.OutputState }

func (EventSourceArrayOutput) ElementType added in v3.6.0

func (EventSourceArrayOutput) ElementType() reflect.Type

func (EventSourceArrayOutput) Index added in v3.6.0

func (EventSourceArrayOutput) ToEventSourceArrayOutput added in v3.6.0

func (o EventSourceArrayOutput) ToEventSourceArrayOutput() EventSourceArrayOutput

func (EventSourceArrayOutput) ToEventSourceArrayOutputWithContext added in v3.6.0

func (o EventSourceArrayOutput) ToEventSourceArrayOutputWithContext(ctx context.Context) EventSourceArrayOutput

type EventSourceInput added in v3.6.0

type EventSourceInput interface {
	pulumi.Input

	ToEventSourceOutput() EventSourceOutput
	ToEventSourceOutputWithContext(ctx context.Context) EventSourceOutput
}

type EventSourceMap added in v3.6.0

type EventSourceMap map[string]EventSourceInput

func (EventSourceMap) ElementType added in v3.6.0

func (EventSourceMap) ElementType() reflect.Type

func (EventSourceMap) ToEventSourceMapOutput added in v3.6.0

func (i EventSourceMap) ToEventSourceMapOutput() EventSourceMapOutput

func (EventSourceMap) ToEventSourceMapOutputWithContext added in v3.6.0

func (i EventSourceMap) ToEventSourceMapOutputWithContext(ctx context.Context) EventSourceMapOutput

type EventSourceMapInput added in v3.6.0

type EventSourceMapInput interface {
	pulumi.Input

	ToEventSourceMapOutput() EventSourceMapOutput
	ToEventSourceMapOutputWithContext(context.Context) EventSourceMapOutput
}

EventSourceMapInput is an input type that accepts EventSourceMap and EventSourceMapOutput values. You can construct a concrete instance of `EventSourceMapInput` via:

EventSourceMap{ "key": EventSourceArgs{...} }

type EventSourceMapOutput added in v3.6.0

type EventSourceMapOutput struct{ *pulumi.OutputState }

func (EventSourceMapOutput) ElementType added in v3.6.0

func (EventSourceMapOutput) ElementType() reflect.Type

func (EventSourceMapOutput) MapIndex added in v3.6.0

func (EventSourceMapOutput) ToEventSourceMapOutput added in v3.6.0

func (o EventSourceMapOutput) ToEventSourceMapOutput() EventSourceMapOutput

func (EventSourceMapOutput) ToEventSourceMapOutputWithContext added in v3.6.0

func (o EventSourceMapOutput) ToEventSourceMapOutputWithContext(ctx context.Context) EventSourceMapOutput

type EventSourceOutput added in v3.6.0

type EventSourceOutput struct {
	*pulumi.OutputState
}

func (EventSourceOutput) ElementType added in v3.6.0

func (EventSourceOutput) ElementType() reflect.Type

func (EventSourceOutput) ToEventSourceOutput added in v3.6.0

func (o EventSourceOutput) ToEventSourceOutput() EventSourceOutput

func (EventSourceOutput) ToEventSourceOutputWithContext added in v3.6.0

func (o EventSourceOutput) ToEventSourceOutputWithContext(ctx context.Context) EventSourceOutput

func (EventSourceOutput) ToEventSourcePtrOutput added in v3.6.0

func (o EventSourceOutput) ToEventSourcePtrOutput() EventSourcePtrOutput

func (EventSourceOutput) ToEventSourcePtrOutputWithContext added in v3.6.0

func (o EventSourceOutput) ToEventSourcePtrOutputWithContext(ctx context.Context) EventSourcePtrOutput

type EventSourcePtrInput added in v3.6.0

type EventSourcePtrInput interface {
	pulumi.Input

	ToEventSourcePtrOutput() EventSourcePtrOutput
	ToEventSourcePtrOutputWithContext(ctx context.Context) EventSourcePtrOutput
}

type EventSourcePtrOutput added in v3.6.0

type EventSourcePtrOutput struct {
	*pulumi.OutputState
}

func (EventSourcePtrOutput) ElementType added in v3.6.0

func (EventSourcePtrOutput) ElementType() reflect.Type

func (EventSourcePtrOutput) ToEventSourcePtrOutput added in v3.6.0

func (o EventSourcePtrOutput) ToEventSourcePtrOutput() EventSourcePtrOutput

func (EventSourcePtrOutput) ToEventSourcePtrOutputWithContext added in v3.6.0

func (o EventSourcePtrOutput) ToEventSourcePtrOutputWithContext(ctx context.Context) EventSourcePtrOutput

type EventSourceState added in v3.6.0

type EventSourceState struct {
	// The detail describe of event source.
	Description pulumi.StringPtrInput
	// The name of event bus.
	EventBusName pulumi.StringPtrInput
	// The code name of event source.
	EventSourceName pulumi.StringPtrInput
	// The config of external source.
	// When `externalSourceType` is `RabbitMQ`, The following attributes are supported:
	// `RegionId` - The region ID of RabbitMQ.
	// `InstanceId` - The instance ID of RabbitMQ.
	// `VirtualHostName` - The virtual host name of RabbitMQ.
	// `QueueName` - The queue name of RabbitMQ.
	// When `externalSourceType` is `RabbitMQ`, The following attributes are supported:
	// `RegionId` - The region ID of RabbitMQ.
	// `InstanceId` - The instance ID of RabbitMQ.
	// `Topic` - The topic of RabbitMQ.
	// `Offset` -  The offset of RabbitMQ, valid values: `CONSUME_FROM_FIRST_OFFSET`, `CONSUME_FROM_LAST_OFFSET` and `CONSUME_FROM_TIMESTAMP`.
	// `GroupID` - The group ID of consumer.
	// When `externalSourceType` is `MNS`, The following attributes are supported:
	// `QueueName` - The queue name of MNS.
	ExternalSourceConfig pulumi.MapInput
	// The type of external data source. Valid value : `RabbitMQ`, `RocketMQ` and `MNS`. **NOTE:** Only When `linkedExternalSource` is `true`, This field is valid.
	ExternalSourceType pulumi.StringPtrInput
	// Whether to connect to an external data source. Default value: `false`
	LinkedExternalSource pulumi.BoolPtrInput
}

func (EventSourceState) ElementType added in v3.6.0

func (EventSourceState) ElementType() reflect.Type

type GetEventBusesArgs

type GetEventBusesArgs struct {
	// The event bus type.
	EventBusType *string `pulumi:"eventBusType"`
	// A list of Event Bus IDs. Its element value is same as Event Bus Name.
	Ids []string `pulumi:"ids"`
	// The name prefix.
	NamePrefix *string `pulumi:"namePrefix"`
	// A regex string to filter results by Event Bus name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getEventBuses.

type GetEventBusesBus

type GetEventBusesBus struct {
	// The time of this bus was created.
	CreateTime string `pulumi:"createTime"`
	// The description of event bus.
	Description string `pulumi:"description"`
	// The name of event bus.
	EventBusName string `pulumi:"eventBusName"`
	// The ID of the Event Bus. Its value is same as Queue Name.
	Id string `pulumi:"id"`
}

type GetEventBusesBusArgs

type GetEventBusesBusArgs struct {
	// The time of this bus was created.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of event bus.
	Description pulumi.StringInput `pulumi:"description"`
	// The name of event bus.
	EventBusName pulumi.StringInput `pulumi:"eventBusName"`
	// The ID of the Event Bus. Its value is same as Queue Name.
	Id pulumi.StringInput `pulumi:"id"`
}

func (GetEventBusesBusArgs) ElementType

func (GetEventBusesBusArgs) ElementType() reflect.Type

func (GetEventBusesBusArgs) ToGetEventBusesBusOutput

func (i GetEventBusesBusArgs) ToGetEventBusesBusOutput() GetEventBusesBusOutput

func (GetEventBusesBusArgs) ToGetEventBusesBusOutputWithContext

func (i GetEventBusesBusArgs) ToGetEventBusesBusOutputWithContext(ctx context.Context) GetEventBusesBusOutput

type GetEventBusesBusArray

type GetEventBusesBusArray []GetEventBusesBusInput

func (GetEventBusesBusArray) ElementType

func (GetEventBusesBusArray) ElementType() reflect.Type

func (GetEventBusesBusArray) ToGetEventBusesBusArrayOutput

func (i GetEventBusesBusArray) ToGetEventBusesBusArrayOutput() GetEventBusesBusArrayOutput

func (GetEventBusesBusArray) ToGetEventBusesBusArrayOutputWithContext

func (i GetEventBusesBusArray) ToGetEventBusesBusArrayOutputWithContext(ctx context.Context) GetEventBusesBusArrayOutput

type GetEventBusesBusArrayInput

type GetEventBusesBusArrayInput interface {
	pulumi.Input

	ToGetEventBusesBusArrayOutput() GetEventBusesBusArrayOutput
	ToGetEventBusesBusArrayOutputWithContext(context.Context) GetEventBusesBusArrayOutput
}

GetEventBusesBusArrayInput is an input type that accepts GetEventBusesBusArray and GetEventBusesBusArrayOutput values. You can construct a concrete instance of `GetEventBusesBusArrayInput` via:

GetEventBusesBusArray{ GetEventBusesBusArgs{...} }

type GetEventBusesBusArrayOutput

type GetEventBusesBusArrayOutput struct{ *pulumi.OutputState }

func (GetEventBusesBusArrayOutput) ElementType

func (GetEventBusesBusArrayOutput) Index

func (GetEventBusesBusArrayOutput) ToGetEventBusesBusArrayOutput

func (o GetEventBusesBusArrayOutput) ToGetEventBusesBusArrayOutput() GetEventBusesBusArrayOutput

func (GetEventBusesBusArrayOutput) ToGetEventBusesBusArrayOutputWithContext

func (o GetEventBusesBusArrayOutput) ToGetEventBusesBusArrayOutputWithContext(ctx context.Context) GetEventBusesBusArrayOutput

type GetEventBusesBusInput

type GetEventBusesBusInput interface {
	pulumi.Input

	ToGetEventBusesBusOutput() GetEventBusesBusOutput
	ToGetEventBusesBusOutputWithContext(context.Context) GetEventBusesBusOutput
}

GetEventBusesBusInput is an input type that accepts GetEventBusesBusArgs and GetEventBusesBusOutput values. You can construct a concrete instance of `GetEventBusesBusInput` via:

GetEventBusesBusArgs{...}

type GetEventBusesBusOutput

type GetEventBusesBusOutput struct{ *pulumi.OutputState }

func (GetEventBusesBusOutput) CreateTime

The time of this bus was created.

func (GetEventBusesBusOutput) Description

func (o GetEventBusesBusOutput) Description() pulumi.StringOutput

The description of event bus.

func (GetEventBusesBusOutput) ElementType

func (GetEventBusesBusOutput) ElementType() reflect.Type

func (GetEventBusesBusOutput) EventBusName

func (o GetEventBusesBusOutput) EventBusName() pulumi.StringOutput

The name of event bus.

func (GetEventBusesBusOutput) Id

The ID of the Event Bus. Its value is same as Queue Name.

func (GetEventBusesBusOutput) ToGetEventBusesBusOutput

func (o GetEventBusesBusOutput) ToGetEventBusesBusOutput() GetEventBusesBusOutput

func (GetEventBusesBusOutput) ToGetEventBusesBusOutputWithContext

func (o GetEventBusesBusOutput) ToGetEventBusesBusOutputWithContext(ctx context.Context) GetEventBusesBusOutput

type GetEventBusesResult

type GetEventBusesResult struct {
	Buses        []GetEventBusesBus `pulumi:"buses"`
	EventBusType *string            `pulumi:"eventBusType"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NamePrefix *string  `pulumi:"namePrefix"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getEventBuses.

func GetEventBuses

func GetEventBuses(ctx *pulumi.Context, args *GetEventBusesArgs, opts ...pulumi.InvokeOption) (*GetEventBusesResult, error)

This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user.

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := eventbridge.GetEventBuses(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("eventBridgeEventBusId1", ids.Buses[0].Id)
		opt0 := "^my-EventBus"
		nameRegex, err := eventbridge.GetEventBuses(ctx, &eventbridge.GetEventBusesArgs{
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("eventBridgeEventBusId2", nameRegex.Buses[0].Id)
		return nil
	})
}

```

type GetEventSourcesArgs added in v3.6.0

type GetEventSourcesArgs struct {
	// A list of Event Source IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Event Source name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getEventSources.

type GetEventSourcesResult added in v3.6.0

type GetEventSourcesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	Sources    []GetEventSourcesSource `pulumi:"sources"`
}

A collection of values returned by getEventSources.

func GetEventSources added in v3.6.0

func GetEventSources(ctx *pulumi.Context, args *GetEventSourcesArgs, opts ...pulumi.InvokeOption) (*GetEventSourcesResult, error)

This data source provides the Event Bridge Event Sources of the current Alibaba Cloud user.

> **NOTE:** Available in v1.130.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "the_resource_name"
		example, err := eventbridge.GetEventSources(ctx, &eventbridge.GetEventSourcesArgs{
			Ids: []string{
				"example_value",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstEventBridgeEventSourceId", example.Sources[0].Id)
		return nil
	})
}

```

type GetEventSourcesSource added in v3.6.0

type GetEventSourcesSource struct {
	// The detail describe of event source.
	Description string `pulumi:"description"`
	// The code name of event source.
	EventSourceName string `pulumi:"eventSourceName"`
	// The config of external data source.
	ExternalSourceConfig map[string]interface{} `pulumi:"externalSourceConfig"`
	// The type of external data source.
	ExternalSourceType string `pulumi:"externalSourceType"`
	// The ID of the Event Source.
	Id string `pulumi:"id"`
	// Whether to connect to an external data source.
	LinkedExternalSource bool   `pulumi:"linkedExternalSource"`
	Type                 string `pulumi:"type"`
}

type GetEventSourcesSourceArgs added in v3.6.0

type GetEventSourcesSourceArgs struct {
	// The detail describe of event source.
	Description pulumi.StringInput `pulumi:"description"`
	// The code name of event source.
	EventSourceName pulumi.StringInput `pulumi:"eventSourceName"`
	// The config of external data source.
	ExternalSourceConfig pulumi.MapInput `pulumi:"externalSourceConfig"`
	// The type of external data source.
	ExternalSourceType pulumi.StringInput `pulumi:"externalSourceType"`
	// The ID of the Event Source.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether to connect to an external data source.
	LinkedExternalSource pulumi.BoolInput   `pulumi:"linkedExternalSource"`
	Type                 pulumi.StringInput `pulumi:"type"`
}

func (GetEventSourcesSourceArgs) ElementType added in v3.6.0

func (GetEventSourcesSourceArgs) ElementType() reflect.Type

func (GetEventSourcesSourceArgs) ToGetEventSourcesSourceOutput added in v3.6.0

func (i GetEventSourcesSourceArgs) ToGetEventSourcesSourceOutput() GetEventSourcesSourceOutput

func (GetEventSourcesSourceArgs) ToGetEventSourcesSourceOutputWithContext added in v3.6.0

func (i GetEventSourcesSourceArgs) ToGetEventSourcesSourceOutputWithContext(ctx context.Context) GetEventSourcesSourceOutput

type GetEventSourcesSourceArray added in v3.6.0

type GetEventSourcesSourceArray []GetEventSourcesSourceInput

func (GetEventSourcesSourceArray) ElementType added in v3.6.0

func (GetEventSourcesSourceArray) ElementType() reflect.Type

func (GetEventSourcesSourceArray) ToGetEventSourcesSourceArrayOutput added in v3.6.0

func (i GetEventSourcesSourceArray) ToGetEventSourcesSourceArrayOutput() GetEventSourcesSourceArrayOutput

func (GetEventSourcesSourceArray) ToGetEventSourcesSourceArrayOutputWithContext added in v3.6.0

func (i GetEventSourcesSourceArray) ToGetEventSourcesSourceArrayOutputWithContext(ctx context.Context) GetEventSourcesSourceArrayOutput

type GetEventSourcesSourceArrayInput added in v3.6.0

type GetEventSourcesSourceArrayInput interface {
	pulumi.Input

	ToGetEventSourcesSourceArrayOutput() GetEventSourcesSourceArrayOutput
	ToGetEventSourcesSourceArrayOutputWithContext(context.Context) GetEventSourcesSourceArrayOutput
}

GetEventSourcesSourceArrayInput is an input type that accepts GetEventSourcesSourceArray and GetEventSourcesSourceArrayOutput values. You can construct a concrete instance of `GetEventSourcesSourceArrayInput` via:

GetEventSourcesSourceArray{ GetEventSourcesSourceArgs{...} }

type GetEventSourcesSourceArrayOutput added in v3.6.0

type GetEventSourcesSourceArrayOutput struct{ *pulumi.OutputState }

func (GetEventSourcesSourceArrayOutput) ElementType added in v3.6.0

func (GetEventSourcesSourceArrayOutput) Index added in v3.6.0

func (GetEventSourcesSourceArrayOutput) ToGetEventSourcesSourceArrayOutput added in v3.6.0

func (o GetEventSourcesSourceArrayOutput) ToGetEventSourcesSourceArrayOutput() GetEventSourcesSourceArrayOutput

func (GetEventSourcesSourceArrayOutput) ToGetEventSourcesSourceArrayOutputWithContext added in v3.6.0

func (o GetEventSourcesSourceArrayOutput) ToGetEventSourcesSourceArrayOutputWithContext(ctx context.Context) GetEventSourcesSourceArrayOutput

type GetEventSourcesSourceInput added in v3.6.0

type GetEventSourcesSourceInput interface {
	pulumi.Input

	ToGetEventSourcesSourceOutput() GetEventSourcesSourceOutput
	ToGetEventSourcesSourceOutputWithContext(context.Context) GetEventSourcesSourceOutput
}

GetEventSourcesSourceInput is an input type that accepts GetEventSourcesSourceArgs and GetEventSourcesSourceOutput values. You can construct a concrete instance of `GetEventSourcesSourceInput` via:

GetEventSourcesSourceArgs{...}

type GetEventSourcesSourceOutput added in v3.6.0

type GetEventSourcesSourceOutput struct{ *pulumi.OutputState }

func (GetEventSourcesSourceOutput) Description added in v3.6.0

The detail describe of event source.

func (GetEventSourcesSourceOutput) ElementType added in v3.6.0

func (GetEventSourcesSourceOutput) EventSourceName added in v3.6.0

func (o GetEventSourcesSourceOutput) EventSourceName() pulumi.StringOutput

The code name of event source.

func (GetEventSourcesSourceOutput) ExternalSourceConfig added in v3.6.0

func (o GetEventSourcesSourceOutput) ExternalSourceConfig() pulumi.MapOutput

The config of external data source.

func (GetEventSourcesSourceOutput) ExternalSourceType added in v3.6.0

func (o GetEventSourcesSourceOutput) ExternalSourceType() pulumi.StringOutput

The type of external data source.

func (GetEventSourcesSourceOutput) Id added in v3.6.0

The ID of the Event Source.

func (GetEventSourcesSourceOutput) LinkedExternalSource added in v3.6.0

func (o GetEventSourcesSourceOutput) LinkedExternalSource() pulumi.BoolOutput

Whether to connect to an external data source.

func (GetEventSourcesSourceOutput) ToGetEventSourcesSourceOutput added in v3.6.0

func (o GetEventSourcesSourceOutput) ToGetEventSourcesSourceOutput() GetEventSourcesSourceOutput

func (GetEventSourcesSourceOutput) ToGetEventSourcesSourceOutputWithContext added in v3.6.0

func (o GetEventSourcesSourceOutput) ToGetEventSourcesSourceOutputWithContext(ctx context.Context) GetEventSourcesSourceOutput

func (GetEventSourcesSourceOutput) Type added in v3.6.0

type GetRulesArgs added in v3.5.0

type GetRulesArgs struct {
	// The name of event bus.
	EventBusName string `pulumi:"eventBusName"`
	// A list of Rule IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Rule name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The rule name prefix.
	RuleNamePrefix *string `pulumi:"ruleNamePrefix"`
	// Rule status, either Enable or Disable.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getRules.

type GetRulesResult added in v3.5.0

type GetRulesResult struct {
	EventBusName string `pulumi:"eventBusName"`
	// The provider-assigned unique ID for this managed resource.
	Id             string         `pulumi:"id"`
	Ids            []string       `pulumi:"ids"`
	NameRegex      *string        `pulumi:"nameRegex"`
	Names          []string       `pulumi:"names"`
	OutputFile     *string        `pulumi:"outputFile"`
	RuleNamePrefix *string        `pulumi:"ruleNamePrefix"`
	Rules          []GetRulesRule `pulumi:"rules"`
	Status         *string        `pulumi:"status"`
}

A collection of values returned by getRules.

func GetRules added in v3.5.0

func GetRules(ctx *pulumi.Context, args *GetRulesArgs, opts ...pulumi.InvokeOption) (*GetRulesResult, error)

This data source provides the Event Bridge Rules of the current Alibaba Cloud user.

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "the_resource_name"
		example, err := eventbridge.GetRules(ctx, &eventbridge.GetRulesArgs{
			EventBusName: "example_value",
			Ids: []string{
				"example_value",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstEventBridgeRuleId", example.Rules[0].Id)
		return nil
	})
}

```

type GetRulesRule added in v3.5.0

type GetRulesRule struct {
	// The description of rule.
	Description string `pulumi:"description"`
	// The name of event bus.
	EventBusName string `pulumi:"eventBusName"`
	// The pattern to match interested events.
	FilterPattern string `pulumi:"filterPattern"`
	// The ID of the Rule.
	Id string `pulumi:"id"`
	// The name of rule.
	RuleName string `pulumi:"ruleName"`
	// Rule status, either Enable or Disable.
	Status string `pulumi:"status"`
	// The target for rule.
	Targets []GetRulesRuleTarget `pulumi:"targets"`
}

type GetRulesRuleArgs added in v3.5.0

type GetRulesRuleArgs struct {
	// The description of rule.
	Description pulumi.StringInput `pulumi:"description"`
	// The name of event bus.
	EventBusName pulumi.StringInput `pulumi:"eventBusName"`
	// The pattern to match interested events.
	FilterPattern pulumi.StringInput `pulumi:"filterPattern"`
	// The ID of the Rule.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of rule.
	RuleName pulumi.StringInput `pulumi:"ruleName"`
	// Rule status, either Enable or Disable.
	Status pulumi.StringInput `pulumi:"status"`
	// The target for rule.
	Targets GetRulesRuleTargetArrayInput `pulumi:"targets"`
}

func (GetRulesRuleArgs) ElementType added in v3.5.0

func (GetRulesRuleArgs) ElementType() reflect.Type

func (GetRulesRuleArgs) ToGetRulesRuleOutput added in v3.5.0

func (i GetRulesRuleArgs) ToGetRulesRuleOutput() GetRulesRuleOutput

func (GetRulesRuleArgs) ToGetRulesRuleOutputWithContext added in v3.5.0

func (i GetRulesRuleArgs) ToGetRulesRuleOutputWithContext(ctx context.Context) GetRulesRuleOutput

type GetRulesRuleArray added in v3.5.0

type GetRulesRuleArray []GetRulesRuleInput

func (GetRulesRuleArray) ElementType added in v3.5.0

func (GetRulesRuleArray) ElementType() reflect.Type

func (GetRulesRuleArray) ToGetRulesRuleArrayOutput added in v3.5.0

func (i GetRulesRuleArray) ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput

func (GetRulesRuleArray) ToGetRulesRuleArrayOutputWithContext added in v3.5.0

func (i GetRulesRuleArray) ToGetRulesRuleArrayOutputWithContext(ctx context.Context) GetRulesRuleArrayOutput

type GetRulesRuleArrayInput added in v3.5.0

type GetRulesRuleArrayInput interface {
	pulumi.Input

	ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput
	ToGetRulesRuleArrayOutputWithContext(context.Context) GetRulesRuleArrayOutput
}

GetRulesRuleArrayInput is an input type that accepts GetRulesRuleArray and GetRulesRuleArrayOutput values. You can construct a concrete instance of `GetRulesRuleArrayInput` via:

GetRulesRuleArray{ GetRulesRuleArgs{...} }

type GetRulesRuleArrayOutput added in v3.5.0

type GetRulesRuleArrayOutput struct{ *pulumi.OutputState }

func (GetRulesRuleArrayOutput) ElementType added in v3.5.0

func (GetRulesRuleArrayOutput) ElementType() reflect.Type

func (GetRulesRuleArrayOutput) Index added in v3.5.0

func (GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutput added in v3.5.0

func (o GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput

func (GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutputWithContext added in v3.5.0

func (o GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutputWithContext(ctx context.Context) GetRulesRuleArrayOutput

type GetRulesRuleInput added in v3.5.0

type GetRulesRuleInput interface {
	pulumi.Input

	ToGetRulesRuleOutput() GetRulesRuleOutput
	ToGetRulesRuleOutputWithContext(context.Context) GetRulesRuleOutput
}

GetRulesRuleInput is an input type that accepts GetRulesRuleArgs and GetRulesRuleOutput values. You can construct a concrete instance of `GetRulesRuleInput` via:

GetRulesRuleArgs{...}

type GetRulesRuleOutput added in v3.5.0

type GetRulesRuleOutput struct{ *pulumi.OutputState }

func (GetRulesRuleOutput) Description added in v3.5.0

func (o GetRulesRuleOutput) Description() pulumi.StringOutput

The description of rule.

func (GetRulesRuleOutput) ElementType added in v3.5.0

func (GetRulesRuleOutput) ElementType() reflect.Type

func (GetRulesRuleOutput) EventBusName added in v3.5.0

func (o GetRulesRuleOutput) EventBusName() pulumi.StringOutput

The name of event bus.

func (GetRulesRuleOutput) FilterPattern added in v3.5.0

func (o GetRulesRuleOutput) FilterPattern() pulumi.StringOutput

The pattern to match interested events.

func (GetRulesRuleOutput) Id added in v3.5.0

The ID of the Rule.

func (GetRulesRuleOutput) RuleName added in v3.5.0

func (o GetRulesRuleOutput) RuleName() pulumi.StringOutput

The name of rule.

func (GetRulesRuleOutput) Status added in v3.5.0

Rule status, either Enable or Disable.

func (GetRulesRuleOutput) Targets added in v3.5.0

The target for rule.

func (GetRulesRuleOutput) ToGetRulesRuleOutput added in v3.5.0

func (o GetRulesRuleOutput) ToGetRulesRuleOutput() GetRulesRuleOutput

func (GetRulesRuleOutput) ToGetRulesRuleOutputWithContext added in v3.5.0

func (o GetRulesRuleOutput) ToGetRulesRuleOutputWithContext(ctx context.Context) GetRulesRuleOutput

type GetRulesRuleTarget added in v3.5.0

type GetRulesRuleTarget struct {
	// The endpoint.
	Endpoint string `pulumi:"endpoint"`
	// The id of target.
	TargetId string `pulumi:"targetId"`
	// The type of target.
	Type string `pulumi:"type"`
}

type GetRulesRuleTargetArgs added in v3.5.0

type GetRulesRuleTargetArgs struct {
	// The endpoint.
	Endpoint pulumi.StringInput `pulumi:"endpoint"`
	// The id of target.
	TargetId pulumi.StringInput `pulumi:"targetId"`
	// The type of target.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetRulesRuleTargetArgs) ElementType added in v3.5.0

func (GetRulesRuleTargetArgs) ElementType() reflect.Type

func (GetRulesRuleTargetArgs) ToGetRulesRuleTargetOutput added in v3.5.0

func (i GetRulesRuleTargetArgs) ToGetRulesRuleTargetOutput() GetRulesRuleTargetOutput

func (GetRulesRuleTargetArgs) ToGetRulesRuleTargetOutputWithContext added in v3.5.0

func (i GetRulesRuleTargetArgs) ToGetRulesRuleTargetOutputWithContext(ctx context.Context) GetRulesRuleTargetOutput

type GetRulesRuleTargetArray added in v3.5.0

type GetRulesRuleTargetArray []GetRulesRuleTargetInput

func (GetRulesRuleTargetArray) ElementType added in v3.5.0

func (GetRulesRuleTargetArray) ElementType() reflect.Type

func (GetRulesRuleTargetArray) ToGetRulesRuleTargetArrayOutput added in v3.5.0

func (i GetRulesRuleTargetArray) ToGetRulesRuleTargetArrayOutput() GetRulesRuleTargetArrayOutput

func (GetRulesRuleTargetArray) ToGetRulesRuleTargetArrayOutputWithContext added in v3.5.0

func (i GetRulesRuleTargetArray) ToGetRulesRuleTargetArrayOutputWithContext(ctx context.Context) GetRulesRuleTargetArrayOutput

type GetRulesRuleTargetArrayInput added in v3.5.0

type GetRulesRuleTargetArrayInput interface {
	pulumi.Input

	ToGetRulesRuleTargetArrayOutput() GetRulesRuleTargetArrayOutput
	ToGetRulesRuleTargetArrayOutputWithContext(context.Context) GetRulesRuleTargetArrayOutput
}

GetRulesRuleTargetArrayInput is an input type that accepts GetRulesRuleTargetArray and GetRulesRuleTargetArrayOutput values. You can construct a concrete instance of `GetRulesRuleTargetArrayInput` via:

GetRulesRuleTargetArray{ GetRulesRuleTargetArgs{...} }

type GetRulesRuleTargetArrayOutput added in v3.5.0

type GetRulesRuleTargetArrayOutput struct{ *pulumi.OutputState }

func (GetRulesRuleTargetArrayOutput) ElementType added in v3.5.0

func (GetRulesRuleTargetArrayOutput) Index added in v3.5.0

func (GetRulesRuleTargetArrayOutput) ToGetRulesRuleTargetArrayOutput added in v3.5.0

func (o GetRulesRuleTargetArrayOutput) ToGetRulesRuleTargetArrayOutput() GetRulesRuleTargetArrayOutput

func (GetRulesRuleTargetArrayOutput) ToGetRulesRuleTargetArrayOutputWithContext added in v3.5.0

func (o GetRulesRuleTargetArrayOutput) ToGetRulesRuleTargetArrayOutputWithContext(ctx context.Context) GetRulesRuleTargetArrayOutput

type GetRulesRuleTargetInput added in v3.5.0

type GetRulesRuleTargetInput interface {
	pulumi.Input

	ToGetRulesRuleTargetOutput() GetRulesRuleTargetOutput
	ToGetRulesRuleTargetOutputWithContext(context.Context) GetRulesRuleTargetOutput
}

GetRulesRuleTargetInput is an input type that accepts GetRulesRuleTargetArgs and GetRulesRuleTargetOutput values. You can construct a concrete instance of `GetRulesRuleTargetInput` via:

GetRulesRuleTargetArgs{...}

type GetRulesRuleTargetOutput added in v3.5.0

type GetRulesRuleTargetOutput struct{ *pulumi.OutputState }

func (GetRulesRuleTargetOutput) ElementType added in v3.5.0

func (GetRulesRuleTargetOutput) ElementType() reflect.Type

func (GetRulesRuleTargetOutput) Endpoint added in v3.5.0

The endpoint.

func (GetRulesRuleTargetOutput) TargetId added in v3.5.0

The id of target.

func (GetRulesRuleTargetOutput) ToGetRulesRuleTargetOutput added in v3.5.0

func (o GetRulesRuleTargetOutput) ToGetRulesRuleTargetOutput() GetRulesRuleTargetOutput

func (GetRulesRuleTargetOutput) ToGetRulesRuleTargetOutputWithContext added in v3.5.0

func (o GetRulesRuleTargetOutput) ToGetRulesRuleTargetOutputWithContext(ctx context.Context) GetRulesRuleTargetOutput

func (GetRulesRuleTargetOutput) Type added in v3.5.0

The type of target.

type GetSchemaGroupsArgs

type GetSchemaGroupsArgs struct {
	DescriptionRegex *string  `pulumi:"descriptionRegex"`
	Ids              []string `pulumi:"ids"`
	OutputFile       *string  `pulumi:"outputFile"`
	Prefix           *string  `pulumi:"prefix"`
}

A collection of arguments for invoking getSchemaGroups.

type GetSchemaGroupsResult

type GetSchemaGroupsResult struct {
	DescriptionRegex *string                `pulumi:"descriptionRegex"`
	Descriptions     []string               `pulumi:"descriptions"`
	Groups           []GetSchemaGroupsGroup `pulumi:"groups"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	Prefix     *string  `pulumi:"prefix"`
}

A collection of values returned by getSchemaGroups.

func GetSchemaGroups

func GetSchemaGroups(ctx *pulumi.Context, args *GetSchemaGroupsArgs, opts ...pulumi.InvokeOption) (*GetSchemaGroupsResult, error)

type GetServiceArgs

type GetServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: `On` or `Off`. Default to `Off`.
	Enable *string `pulumi:"enable"`
}

A collection of arguments for invoking getService.

type GetServiceResult

type GetServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getService.

func GetService

func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)

Using this data source can open Event Bridge service automatically. If the service has been opened, it will return opened.

For information about Event Bridge and how to use it, see [What is Event Bridge](https://www.alibabacloud.com/help/en/doc-detail/163239.htm).

> **NOTE:** Available in v1.126.0+

> **NOTE:** This data source supports `cn-shanghai`, `cn-hangzhou` and `ap-southeast-1` regions.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "On"
		_, err := eventbridge.GetService(ctx, &eventbridge.GetServiceArgs{
			Enable: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type Rule added in v3.5.0

type Rule struct {
	pulumi.CustomResourceState

	// The description of rule.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of event bus.
	EventBusName pulumi.StringOutput `pulumi:"eventBusName"`
	// The pattern to match interested events. Event mode, JSON format. The value description is as follows: `stringEqual` mode. `stringExpression` mode. Each field has up to 5 expressions (map structure).
	FilterPattern pulumi.StringOutput `pulumi:"filterPattern"`
	// The name of rule.
	RuleName pulumi.StringOutput `pulumi:"ruleName"`
	// Rule status, either Enable or Disable. Valid values: `DISABLE`, `ENABLE`.
	Status pulumi.StringOutput `pulumi:"status"`
	// The target of rule.
	Targets RuleTargetArrayOutput `pulumi:"targets"`
}

Provides a Event Bridge Rule resource.

For information about Event Bridge Rule and how to use it, see [What is Rule](https://help.aliyun.com/document_detail/167854.html).

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleEventBus, err := eventbridge.NewEventBus(ctx, "exampleEventBus", &eventbridge.EventBusArgs{
			EventBusName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = eventbridge.NewRule(ctx, "exampleRule", &eventbridge.RuleArgs{
			EventBusName:  exampleEventBus.ID(),
			RuleName:      pulumi.Any(_var.Name),
			Description:   pulumi.String("test"),
			FilterPattern: pulumi.String("{\"source\":[\"crmabc.newsletter\"],\"type\":[\"UserSignUp\", \"UserLogin\"]}"),
			Targets: eventbridge.RuleTargetArray{
				&eventbridge.RuleTargetArgs{
					TargetId: pulumi.String("tf-test"),
					Endpoint: pulumi.String("acs:mns:cn-hangzhou:118938335****:queues/tf-test"),
					Type:     pulumi.String("acs.mns.queue"),
					ParamLists: eventbridge.RuleTargetParamListArray{
						&eventbridge.RuleTargetParamListArgs{
							ResourceKey: pulumi.String("queue"),
							Form:        pulumi.String("CONSTANT"),
							Value:       pulumi.String("tf-testaccEbRule"),
						},
						&eventbridge.RuleTargetParamListArgs{
							ResourceKey: pulumi.String("Body"),
							Form:        pulumi.String("ORIGINAL"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Event Bridge Rule can be imported using the id, e.g.

```sh

$ pulumi import alicloud:eventbridge/rule:Rule example <event_bus_name>:<rule_name>

```

func GetRule added in v3.5.0

func GetRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RuleState, opts ...pulumi.ResourceOption) (*Rule, error)

GetRule gets an existing Rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRule added in v3.5.0

func NewRule(ctx *pulumi.Context,
	name string, args *RuleArgs, opts ...pulumi.ResourceOption) (*Rule, error)

NewRule registers a new resource with the given unique name, arguments, and options.

func (*Rule) ElementType added in v3.5.0

func (*Rule) ElementType() reflect.Type

func (*Rule) ToRuleOutput added in v3.5.0

func (i *Rule) ToRuleOutput() RuleOutput

func (*Rule) ToRuleOutputWithContext added in v3.5.0

func (i *Rule) ToRuleOutputWithContext(ctx context.Context) RuleOutput

func (*Rule) ToRulePtrOutput added in v3.5.0

func (i *Rule) ToRulePtrOutput() RulePtrOutput

func (*Rule) ToRulePtrOutputWithContext added in v3.5.0

func (i *Rule) ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput

type RuleArgs added in v3.5.0

type RuleArgs struct {
	// The description of rule.
	Description pulumi.StringPtrInput
	// The name of event bus.
	EventBusName pulumi.StringInput
	// The pattern to match interested events. Event mode, JSON format. The value description is as follows: `stringEqual` mode. `stringExpression` mode. Each field has up to 5 expressions (map structure).
	FilterPattern pulumi.StringInput
	// The name of rule.
	RuleName pulumi.StringInput
	// Rule status, either Enable or Disable. Valid values: `DISABLE`, `ENABLE`.
	Status pulumi.StringPtrInput
	// The target of rule.
	Targets RuleTargetArrayInput
}

The set of arguments for constructing a Rule resource.

func (RuleArgs) ElementType added in v3.5.0

func (RuleArgs) ElementType() reflect.Type

type RuleArray added in v3.5.0

type RuleArray []RuleInput

func (RuleArray) ElementType added in v3.5.0

func (RuleArray) ElementType() reflect.Type

func (RuleArray) ToRuleArrayOutput added in v3.5.0

func (i RuleArray) ToRuleArrayOutput() RuleArrayOutput

func (RuleArray) ToRuleArrayOutputWithContext added in v3.5.0

func (i RuleArray) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleArrayInput added in v3.5.0

type RuleArrayInput interface {
	pulumi.Input

	ToRuleArrayOutput() RuleArrayOutput
	ToRuleArrayOutputWithContext(context.Context) RuleArrayOutput
}

RuleArrayInput is an input type that accepts RuleArray and RuleArrayOutput values. You can construct a concrete instance of `RuleArrayInput` via:

RuleArray{ RuleArgs{...} }

type RuleArrayOutput added in v3.5.0

type RuleArrayOutput struct{ *pulumi.OutputState }

func (RuleArrayOutput) ElementType added in v3.5.0

func (RuleArrayOutput) ElementType() reflect.Type

func (RuleArrayOutput) Index added in v3.5.0

func (RuleArrayOutput) ToRuleArrayOutput added in v3.5.0

func (o RuleArrayOutput) ToRuleArrayOutput() RuleArrayOutput

func (RuleArrayOutput) ToRuleArrayOutputWithContext added in v3.5.0

func (o RuleArrayOutput) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleInput added in v3.5.0

type RuleInput interface {
	pulumi.Input

	ToRuleOutput() RuleOutput
	ToRuleOutputWithContext(ctx context.Context) RuleOutput
}

type RuleMap added in v3.5.0

type RuleMap map[string]RuleInput

func (RuleMap) ElementType added in v3.5.0

func (RuleMap) ElementType() reflect.Type

func (RuleMap) ToRuleMapOutput added in v3.5.0

func (i RuleMap) ToRuleMapOutput() RuleMapOutput

func (RuleMap) ToRuleMapOutputWithContext added in v3.5.0

func (i RuleMap) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleMapInput added in v3.5.0

type RuleMapInput interface {
	pulumi.Input

	ToRuleMapOutput() RuleMapOutput
	ToRuleMapOutputWithContext(context.Context) RuleMapOutput
}

RuleMapInput is an input type that accepts RuleMap and RuleMapOutput values. You can construct a concrete instance of `RuleMapInput` via:

RuleMap{ "key": RuleArgs{...} }

type RuleMapOutput added in v3.5.0

type RuleMapOutput struct{ *pulumi.OutputState }

func (RuleMapOutput) ElementType added in v3.5.0

func (RuleMapOutput) ElementType() reflect.Type

func (RuleMapOutput) MapIndex added in v3.5.0

func (RuleMapOutput) ToRuleMapOutput added in v3.5.0

func (o RuleMapOutput) ToRuleMapOutput() RuleMapOutput

func (RuleMapOutput) ToRuleMapOutputWithContext added in v3.5.0

func (o RuleMapOutput) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleOutput added in v3.5.0

type RuleOutput struct {
	*pulumi.OutputState
}

func (RuleOutput) ElementType added in v3.5.0

func (RuleOutput) ElementType() reflect.Type

func (RuleOutput) ToRuleOutput added in v3.5.0

func (o RuleOutput) ToRuleOutput() RuleOutput

func (RuleOutput) ToRuleOutputWithContext added in v3.5.0

func (o RuleOutput) ToRuleOutputWithContext(ctx context.Context) RuleOutput

func (RuleOutput) ToRulePtrOutput added in v3.5.0

func (o RuleOutput) ToRulePtrOutput() RulePtrOutput

func (RuleOutput) ToRulePtrOutputWithContext added in v3.5.0

func (o RuleOutput) ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput

type RulePtrInput added in v3.5.0

type RulePtrInput interface {
	pulumi.Input

	ToRulePtrOutput() RulePtrOutput
	ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput
}

type RulePtrOutput added in v3.5.0

type RulePtrOutput struct {
	*pulumi.OutputState
}

func (RulePtrOutput) ElementType added in v3.5.0

func (RulePtrOutput) ElementType() reflect.Type

func (RulePtrOutput) ToRulePtrOutput added in v3.5.0

func (o RulePtrOutput) ToRulePtrOutput() RulePtrOutput

func (RulePtrOutput) ToRulePtrOutputWithContext added in v3.5.0

func (o RulePtrOutput) ToRulePtrOutputWithContext(ctx context.Context) RulePtrOutput

type RuleState added in v3.5.0

type RuleState struct {
	// The description of rule.
	Description pulumi.StringPtrInput
	// The name of event bus.
	EventBusName pulumi.StringPtrInput
	// The pattern to match interested events. Event mode, JSON format. The value description is as follows: `stringEqual` mode. `stringExpression` mode. Each field has up to 5 expressions (map structure).
	FilterPattern pulumi.StringPtrInput
	// The name of rule.
	RuleName pulumi.StringPtrInput
	// Rule status, either Enable or Disable. Valid values: `DISABLE`, `ENABLE`.
	Status pulumi.StringPtrInput
	// The target of rule.
	Targets RuleTargetArrayInput
}

func (RuleState) ElementType added in v3.5.0

func (RuleState) ElementType() reflect.Type

type RuleTarget added in v3.5.0

type RuleTarget struct {
	// The endpoint of target.
	Endpoint string `pulumi:"endpoint"`
	// A list of param.
	ParamLists []RuleTargetParamList `pulumi:"paramLists"`
	// The ID of target.
	TargetId string `pulumi:"targetId"`
	// The type of target. Valid values: `acs.fc.function`, `acs.mns.topic`, `acs.mns.queue`,`http`,`acs.sms`,`acs.mail`,`acs.dingtalk`,`https`, `acs.eventbridge`,`acs.rabbitmq` and `acs.rocketmq`.
	Type string `pulumi:"type"`
}

type RuleTargetArgs added in v3.5.0

type RuleTargetArgs struct {
	// The endpoint of target.
	Endpoint pulumi.StringInput `pulumi:"endpoint"`
	// A list of param.
	ParamLists RuleTargetParamListArrayInput `pulumi:"paramLists"`
	// The ID of target.
	TargetId pulumi.StringInput `pulumi:"targetId"`
	// The type of target. Valid values: `acs.fc.function`, `acs.mns.topic`, `acs.mns.queue`,`http`,`acs.sms`,`acs.mail`,`acs.dingtalk`,`https`, `acs.eventbridge`,`acs.rabbitmq` and `acs.rocketmq`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (RuleTargetArgs) ElementType added in v3.5.0

func (RuleTargetArgs) ElementType() reflect.Type

func (RuleTargetArgs) ToRuleTargetOutput added in v3.5.0

func (i RuleTargetArgs) ToRuleTargetOutput() RuleTargetOutput

func (RuleTargetArgs) ToRuleTargetOutputWithContext added in v3.5.0

func (i RuleTargetArgs) ToRuleTargetOutputWithContext(ctx context.Context) RuleTargetOutput

type RuleTargetArray added in v3.5.0

type RuleTargetArray []RuleTargetInput

func (RuleTargetArray) ElementType added in v3.5.0

func (RuleTargetArray) ElementType() reflect.Type

func (RuleTargetArray) ToRuleTargetArrayOutput added in v3.5.0

func (i RuleTargetArray) ToRuleTargetArrayOutput() RuleTargetArrayOutput

func (RuleTargetArray) ToRuleTargetArrayOutputWithContext added in v3.5.0

func (i RuleTargetArray) ToRuleTargetArrayOutputWithContext(ctx context.Context) RuleTargetArrayOutput

type RuleTargetArrayInput added in v3.5.0

type RuleTargetArrayInput interface {
	pulumi.Input

	ToRuleTargetArrayOutput() RuleTargetArrayOutput
	ToRuleTargetArrayOutputWithContext(context.Context) RuleTargetArrayOutput
}

RuleTargetArrayInput is an input type that accepts RuleTargetArray and RuleTargetArrayOutput values. You can construct a concrete instance of `RuleTargetArrayInput` via:

RuleTargetArray{ RuleTargetArgs{...} }

type RuleTargetArrayOutput added in v3.5.0

type RuleTargetArrayOutput struct{ *pulumi.OutputState }

func (RuleTargetArrayOutput) ElementType added in v3.5.0

func (RuleTargetArrayOutput) ElementType() reflect.Type

func (RuleTargetArrayOutput) Index added in v3.5.0

func (RuleTargetArrayOutput) ToRuleTargetArrayOutput added in v3.5.0

func (o RuleTargetArrayOutput) ToRuleTargetArrayOutput() RuleTargetArrayOutput

func (RuleTargetArrayOutput) ToRuleTargetArrayOutputWithContext added in v3.5.0

func (o RuleTargetArrayOutput) ToRuleTargetArrayOutputWithContext(ctx context.Context) RuleTargetArrayOutput

type RuleTargetInput added in v3.5.0

type RuleTargetInput interface {
	pulumi.Input

	ToRuleTargetOutput() RuleTargetOutput
	ToRuleTargetOutputWithContext(context.Context) RuleTargetOutput
}

RuleTargetInput is an input type that accepts RuleTargetArgs and RuleTargetOutput values. You can construct a concrete instance of `RuleTargetInput` via:

RuleTargetArgs{...}

type RuleTargetOutput added in v3.5.0

type RuleTargetOutput struct{ *pulumi.OutputState }

func (RuleTargetOutput) ElementType added in v3.5.0

func (RuleTargetOutput) ElementType() reflect.Type

func (RuleTargetOutput) Endpoint added in v3.5.0

func (o RuleTargetOutput) Endpoint() pulumi.StringOutput

The endpoint of target.

func (RuleTargetOutput) ParamLists added in v3.5.0

A list of param.

func (RuleTargetOutput) TargetId added in v3.5.0

func (o RuleTargetOutput) TargetId() pulumi.StringOutput

The ID of target.

func (RuleTargetOutput) ToRuleTargetOutput added in v3.5.0

func (o RuleTargetOutput) ToRuleTargetOutput() RuleTargetOutput

func (RuleTargetOutput) ToRuleTargetOutputWithContext added in v3.5.0

func (o RuleTargetOutput) ToRuleTargetOutputWithContext(ctx context.Context) RuleTargetOutput

func (RuleTargetOutput) Type added in v3.5.0

The type of target. Valid values: `acs.fc.function`, `acs.mns.topic`, `acs.mns.queue`,`http`,`acs.sms`,`acs.mail`,`acs.dingtalk`,`https`, `acs.eventbridge`,`acs.rabbitmq` and `acs.rocketmq`.

type RuleTargetParamList added in v3.5.0

type RuleTargetParamList struct {
	// The format of param.  Valid values: `ORIGINAL`, `TEMPLATE`, `JSONPATH`, `CONSTANT`.
	Form string `pulumi:"form"`
	// The resource key of param.  For more information, see [Event target parameters](https://help.aliyun.com/document_detail/185887.htm)
	ResourceKey string `pulumi:"resourceKey"`
	// The template of param.
	Template *string `pulumi:"template"`
	// The value of param.
	Value *string `pulumi:"value"`
}

type RuleTargetParamListArgs added in v3.5.0

type RuleTargetParamListArgs struct {
	// The format of param.  Valid values: `ORIGINAL`, `TEMPLATE`, `JSONPATH`, `CONSTANT`.
	Form pulumi.StringInput `pulumi:"form"`
	// The resource key of param.  For more information, see [Event target parameters](https://help.aliyun.com/document_detail/185887.htm)
	ResourceKey pulumi.StringInput `pulumi:"resourceKey"`
	// The template of param.
	Template pulumi.StringPtrInput `pulumi:"template"`
	// The value of param.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (RuleTargetParamListArgs) ElementType added in v3.5.0

func (RuleTargetParamListArgs) ElementType() reflect.Type

func (RuleTargetParamListArgs) ToRuleTargetParamListOutput added in v3.5.0

func (i RuleTargetParamListArgs) ToRuleTargetParamListOutput() RuleTargetParamListOutput

func (RuleTargetParamListArgs) ToRuleTargetParamListOutputWithContext added in v3.5.0

func (i RuleTargetParamListArgs) ToRuleTargetParamListOutputWithContext(ctx context.Context) RuleTargetParamListOutput

type RuleTargetParamListArray added in v3.5.0

type RuleTargetParamListArray []RuleTargetParamListInput

func (RuleTargetParamListArray) ElementType added in v3.5.0

func (RuleTargetParamListArray) ElementType() reflect.Type

func (RuleTargetParamListArray) ToRuleTargetParamListArrayOutput added in v3.5.0

func (i RuleTargetParamListArray) ToRuleTargetParamListArrayOutput() RuleTargetParamListArrayOutput

func (RuleTargetParamListArray) ToRuleTargetParamListArrayOutputWithContext added in v3.5.0

func (i RuleTargetParamListArray) ToRuleTargetParamListArrayOutputWithContext(ctx context.Context) RuleTargetParamListArrayOutput

type RuleTargetParamListArrayInput added in v3.5.0

type RuleTargetParamListArrayInput interface {
	pulumi.Input

	ToRuleTargetParamListArrayOutput() RuleTargetParamListArrayOutput
	ToRuleTargetParamListArrayOutputWithContext(context.Context) RuleTargetParamListArrayOutput
}

RuleTargetParamListArrayInput is an input type that accepts RuleTargetParamListArray and RuleTargetParamListArrayOutput values. You can construct a concrete instance of `RuleTargetParamListArrayInput` via:

RuleTargetParamListArray{ RuleTargetParamListArgs{...} }

type RuleTargetParamListArrayOutput added in v3.5.0

type RuleTargetParamListArrayOutput struct{ *pulumi.OutputState }

func (RuleTargetParamListArrayOutput) ElementType added in v3.5.0

func (RuleTargetParamListArrayOutput) Index added in v3.5.0

func (RuleTargetParamListArrayOutput) ToRuleTargetParamListArrayOutput added in v3.5.0

func (o RuleTargetParamListArrayOutput) ToRuleTargetParamListArrayOutput() RuleTargetParamListArrayOutput

func (RuleTargetParamListArrayOutput) ToRuleTargetParamListArrayOutputWithContext added in v3.5.0

func (o RuleTargetParamListArrayOutput) ToRuleTargetParamListArrayOutputWithContext(ctx context.Context) RuleTargetParamListArrayOutput

type RuleTargetParamListInput added in v3.5.0

type RuleTargetParamListInput interface {
	pulumi.Input

	ToRuleTargetParamListOutput() RuleTargetParamListOutput
	ToRuleTargetParamListOutputWithContext(context.Context) RuleTargetParamListOutput
}

RuleTargetParamListInput is an input type that accepts RuleTargetParamListArgs and RuleTargetParamListOutput values. You can construct a concrete instance of `RuleTargetParamListInput` via:

RuleTargetParamListArgs{...}

type RuleTargetParamListOutput added in v3.5.0

type RuleTargetParamListOutput struct{ *pulumi.OutputState }

func (RuleTargetParamListOutput) ElementType added in v3.5.0

func (RuleTargetParamListOutput) ElementType() reflect.Type

func (RuleTargetParamListOutput) Form added in v3.5.0

The format of param. Valid values: `ORIGINAL`, `TEMPLATE`, `JSONPATH`, `CONSTANT`.

func (RuleTargetParamListOutput) ResourceKey added in v3.5.0

The resource key of param. For more information, see [Event target parameters](https://help.aliyun.com/document_detail/185887.htm)

func (RuleTargetParamListOutput) Template added in v3.5.0

The template of param.

func (RuleTargetParamListOutput) ToRuleTargetParamListOutput added in v3.5.0

func (o RuleTargetParamListOutput) ToRuleTargetParamListOutput() RuleTargetParamListOutput

func (RuleTargetParamListOutput) ToRuleTargetParamListOutputWithContext added in v3.5.0

func (o RuleTargetParamListOutput) ToRuleTargetParamListOutputWithContext(ctx context.Context) RuleTargetParamListOutput

func (RuleTargetParamListOutput) Value added in v3.5.0

The value of param.

type SchemaGroup

type SchemaGroup struct {
	pulumi.CustomResourceState

	Description pulumi.StringPtrOutput `pulumi:"description"`
	Format      pulumi.StringOutput    `pulumi:"format"`
	GroupId     pulumi.StringOutput    `pulumi:"groupId"`
}

func GetSchemaGroup

func GetSchemaGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SchemaGroupState, opts ...pulumi.ResourceOption) (*SchemaGroup, error)

GetSchemaGroup gets an existing SchemaGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSchemaGroup

func NewSchemaGroup(ctx *pulumi.Context,
	name string, args *SchemaGroupArgs, opts ...pulumi.ResourceOption) (*SchemaGroup, error)

NewSchemaGroup registers a new resource with the given unique name, arguments, and options.

func (*SchemaGroup) ElementType

func (*SchemaGroup) ElementType() reflect.Type

func (*SchemaGroup) ToSchemaGroupOutput

func (i *SchemaGroup) ToSchemaGroupOutput() SchemaGroupOutput

func (*SchemaGroup) ToSchemaGroupOutputWithContext

func (i *SchemaGroup) ToSchemaGroupOutputWithContext(ctx context.Context) SchemaGroupOutput

func (*SchemaGroup) ToSchemaGroupPtrOutput

func (i *SchemaGroup) ToSchemaGroupPtrOutput() SchemaGroupPtrOutput

func (*SchemaGroup) ToSchemaGroupPtrOutputWithContext

func (i *SchemaGroup) ToSchemaGroupPtrOutputWithContext(ctx context.Context) SchemaGroupPtrOutput

type SchemaGroupArgs

type SchemaGroupArgs struct {
	Description pulumi.StringPtrInput
	Format      pulumi.StringPtrInput
	GroupId     pulumi.StringInput
}

The set of arguments for constructing a SchemaGroup resource.

func (SchemaGroupArgs) ElementType

func (SchemaGroupArgs) ElementType() reflect.Type

type SchemaGroupArray

type SchemaGroupArray []SchemaGroupInput

func (SchemaGroupArray) ElementType

func (SchemaGroupArray) ElementType() reflect.Type

func (SchemaGroupArray) ToSchemaGroupArrayOutput

func (i SchemaGroupArray) ToSchemaGroupArrayOutput() SchemaGroupArrayOutput

func (SchemaGroupArray) ToSchemaGroupArrayOutputWithContext

func (i SchemaGroupArray) ToSchemaGroupArrayOutputWithContext(ctx context.Context) SchemaGroupArrayOutput

type SchemaGroupArrayInput

type SchemaGroupArrayInput interface {
	pulumi.Input

	ToSchemaGroupArrayOutput() SchemaGroupArrayOutput
	ToSchemaGroupArrayOutputWithContext(context.Context) SchemaGroupArrayOutput
}

SchemaGroupArrayInput is an input type that accepts SchemaGroupArray and SchemaGroupArrayOutput values. You can construct a concrete instance of `SchemaGroupArrayInput` via:

SchemaGroupArray{ SchemaGroupArgs{...} }

type SchemaGroupArrayOutput

type SchemaGroupArrayOutput struct{ *pulumi.OutputState }

func (SchemaGroupArrayOutput) ElementType

func (SchemaGroupArrayOutput) ElementType() reflect.Type

func (SchemaGroupArrayOutput) Index

func (SchemaGroupArrayOutput) ToSchemaGroupArrayOutput

func (o SchemaGroupArrayOutput) ToSchemaGroupArrayOutput() SchemaGroupArrayOutput

func (SchemaGroupArrayOutput) ToSchemaGroupArrayOutputWithContext

func (o SchemaGroupArrayOutput) ToSchemaGroupArrayOutputWithContext(ctx context.Context) SchemaGroupArrayOutput

type SchemaGroupInput

type SchemaGroupInput interface {
	pulumi.Input

	ToSchemaGroupOutput() SchemaGroupOutput
	ToSchemaGroupOutputWithContext(ctx context.Context) SchemaGroupOutput
}

type SchemaGroupMap

type SchemaGroupMap map[string]SchemaGroupInput

func (SchemaGroupMap) ElementType

func (SchemaGroupMap) ElementType() reflect.Type

func (SchemaGroupMap) ToSchemaGroupMapOutput

func (i SchemaGroupMap) ToSchemaGroupMapOutput() SchemaGroupMapOutput

func (SchemaGroupMap) ToSchemaGroupMapOutputWithContext

func (i SchemaGroupMap) ToSchemaGroupMapOutputWithContext(ctx context.Context) SchemaGroupMapOutput

type SchemaGroupMapInput

type SchemaGroupMapInput interface {
	pulumi.Input

	ToSchemaGroupMapOutput() SchemaGroupMapOutput
	ToSchemaGroupMapOutputWithContext(context.Context) SchemaGroupMapOutput
}

SchemaGroupMapInput is an input type that accepts SchemaGroupMap and SchemaGroupMapOutput values. You can construct a concrete instance of `SchemaGroupMapInput` via:

SchemaGroupMap{ "key": SchemaGroupArgs{...} }

type SchemaGroupMapOutput

type SchemaGroupMapOutput struct{ *pulumi.OutputState }

func (SchemaGroupMapOutput) ElementType

func (SchemaGroupMapOutput) ElementType() reflect.Type

func (SchemaGroupMapOutput) MapIndex

func (SchemaGroupMapOutput) ToSchemaGroupMapOutput

func (o SchemaGroupMapOutput) ToSchemaGroupMapOutput() SchemaGroupMapOutput

func (SchemaGroupMapOutput) ToSchemaGroupMapOutputWithContext

func (o SchemaGroupMapOutput) ToSchemaGroupMapOutputWithContext(ctx context.Context) SchemaGroupMapOutput

type SchemaGroupOutput

type SchemaGroupOutput struct {
	*pulumi.OutputState
}

func (SchemaGroupOutput) ElementType

func (SchemaGroupOutput) ElementType() reflect.Type

func (SchemaGroupOutput) ToSchemaGroupOutput

func (o SchemaGroupOutput) ToSchemaGroupOutput() SchemaGroupOutput

func (SchemaGroupOutput) ToSchemaGroupOutputWithContext

func (o SchemaGroupOutput) ToSchemaGroupOutputWithContext(ctx context.Context) SchemaGroupOutput

func (SchemaGroupOutput) ToSchemaGroupPtrOutput

func (o SchemaGroupOutput) ToSchemaGroupPtrOutput() SchemaGroupPtrOutput

func (SchemaGroupOutput) ToSchemaGroupPtrOutputWithContext

func (o SchemaGroupOutput) ToSchemaGroupPtrOutputWithContext(ctx context.Context) SchemaGroupPtrOutput

type SchemaGroupPtrInput

type SchemaGroupPtrInput interface {
	pulumi.Input

	ToSchemaGroupPtrOutput() SchemaGroupPtrOutput
	ToSchemaGroupPtrOutputWithContext(ctx context.Context) SchemaGroupPtrOutput
}

type SchemaGroupPtrOutput

type SchemaGroupPtrOutput struct {
	*pulumi.OutputState
}

func (SchemaGroupPtrOutput) ElementType

func (SchemaGroupPtrOutput) ElementType() reflect.Type

func (SchemaGroupPtrOutput) ToSchemaGroupPtrOutput

func (o SchemaGroupPtrOutput) ToSchemaGroupPtrOutput() SchemaGroupPtrOutput

func (SchemaGroupPtrOutput) ToSchemaGroupPtrOutputWithContext

func (o SchemaGroupPtrOutput) ToSchemaGroupPtrOutputWithContext(ctx context.Context) SchemaGroupPtrOutput

type SchemaGroupState

type SchemaGroupState struct {
	Description pulumi.StringPtrInput
	Format      pulumi.StringPtrInput
	GroupId     pulumi.StringPtrInput
}

func (SchemaGroupState) ElementType

func (SchemaGroupState) ElementType() reflect.Type

type Slr added in v3.5.0

type Slr struct {
	pulumi.CustomResourceState

	// The product name for SLR. EventBridge can automatically create the following service-linked roles:
	// Event source related: `AliyunServiceRoleForEventBridgeSourceRocketMQ`, `AliyunServiceRoleForEventBridgeSourceActionTrail`, `AliyunServiceRoleForEventBridgeSourceRabbitMQ`
	// Target related: `AliyunServiceRoleForEventBridgeConnectVPC`, `AliyunServiceRoleForEventBridgeSendToFC`, `AliyunServiceRoleForEventBridgeSendToSMS`, `AliyunServiceRoleForEventBridgeSendToDirectMail`, `AliyunServiceRoleForEventBridgeSendToRabbitMQ`, `AliyunServiceRoleForEventBridgeSendToRocketMQ`
	ProductName pulumi.StringOutput `pulumi:"productName"`
}

Using this data source can create Event Bridge service-linked roles(SLR). EventBridge may need to access another Alibaba Cloud service to implement a specific feature. In this case, EventBridge must assume a specific service-linked role, which is a Resource Access Management (RAM) role, to obtain permissions to access another Alibaba Cloud service.

For information about Event Bridge service-linked roles(SLR) and how to use it, see [What is service-linked roles](https://www.alibabacloud.com/help/doc-detail/181425.htm).

> **NOTE:** Available in v1.129.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eventbridge.NewSlr(ctx, "slr", &eventbridge.SlrArgs{
			ProductName: pulumi.String("AliyunServiceRoleForEventBridgeSourceRocketMQ"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetSlr added in v3.5.0

func GetSlr(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SlrState, opts ...pulumi.ResourceOption) (*Slr, error)

GetSlr gets an existing Slr resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSlr added in v3.5.0

func NewSlr(ctx *pulumi.Context,
	name string, args *SlrArgs, opts ...pulumi.ResourceOption) (*Slr, error)

NewSlr registers a new resource with the given unique name, arguments, and options.

func (*Slr) ElementType added in v3.5.0

func (*Slr) ElementType() reflect.Type

func (*Slr) ToSlrOutput added in v3.5.0

func (i *Slr) ToSlrOutput() SlrOutput

func (*Slr) ToSlrOutputWithContext added in v3.5.0

func (i *Slr) ToSlrOutputWithContext(ctx context.Context) SlrOutput

func (*Slr) ToSlrPtrOutput added in v3.5.0

func (i *Slr) ToSlrPtrOutput() SlrPtrOutput

func (*Slr) ToSlrPtrOutputWithContext added in v3.5.0

func (i *Slr) ToSlrPtrOutputWithContext(ctx context.Context) SlrPtrOutput

type SlrArgs added in v3.5.0

type SlrArgs struct {
	// The product name for SLR. EventBridge can automatically create the following service-linked roles:
	// Event source related: `AliyunServiceRoleForEventBridgeSourceRocketMQ`, `AliyunServiceRoleForEventBridgeSourceActionTrail`, `AliyunServiceRoleForEventBridgeSourceRabbitMQ`
	// Target related: `AliyunServiceRoleForEventBridgeConnectVPC`, `AliyunServiceRoleForEventBridgeSendToFC`, `AliyunServiceRoleForEventBridgeSendToSMS`, `AliyunServiceRoleForEventBridgeSendToDirectMail`, `AliyunServiceRoleForEventBridgeSendToRabbitMQ`, `AliyunServiceRoleForEventBridgeSendToRocketMQ`
	ProductName pulumi.StringInput
}

The set of arguments for constructing a Slr resource.

func (SlrArgs) ElementType added in v3.5.0

func (SlrArgs) ElementType() reflect.Type

type SlrArray added in v3.5.0

type SlrArray []SlrInput

func (SlrArray) ElementType added in v3.5.0

func (SlrArray) ElementType() reflect.Type

func (SlrArray) ToSlrArrayOutput added in v3.5.0

func (i SlrArray) ToSlrArrayOutput() SlrArrayOutput

func (SlrArray) ToSlrArrayOutputWithContext added in v3.5.0

func (i SlrArray) ToSlrArrayOutputWithContext(ctx context.Context) SlrArrayOutput

type SlrArrayInput added in v3.5.0

type SlrArrayInput interface {
	pulumi.Input

	ToSlrArrayOutput() SlrArrayOutput
	ToSlrArrayOutputWithContext(context.Context) SlrArrayOutput
}

SlrArrayInput is an input type that accepts SlrArray and SlrArrayOutput values. You can construct a concrete instance of `SlrArrayInput` via:

SlrArray{ SlrArgs{...} }

type SlrArrayOutput added in v3.5.0

type SlrArrayOutput struct{ *pulumi.OutputState }

func (SlrArrayOutput) ElementType added in v3.5.0

func (SlrArrayOutput) ElementType() reflect.Type

func (SlrArrayOutput) Index added in v3.5.0

func (SlrArrayOutput) ToSlrArrayOutput added in v3.5.0

func (o SlrArrayOutput) ToSlrArrayOutput() SlrArrayOutput

func (SlrArrayOutput) ToSlrArrayOutputWithContext added in v3.5.0

func (o SlrArrayOutput) ToSlrArrayOutputWithContext(ctx context.Context) SlrArrayOutput

type SlrInput added in v3.5.0

type SlrInput interface {
	pulumi.Input

	ToSlrOutput() SlrOutput
	ToSlrOutputWithContext(ctx context.Context) SlrOutput
}

type SlrMap added in v3.5.0

type SlrMap map[string]SlrInput

func (SlrMap) ElementType added in v3.5.0

func (SlrMap) ElementType() reflect.Type

func (SlrMap) ToSlrMapOutput added in v3.5.0

func (i SlrMap) ToSlrMapOutput() SlrMapOutput

func (SlrMap) ToSlrMapOutputWithContext added in v3.5.0

func (i SlrMap) ToSlrMapOutputWithContext(ctx context.Context) SlrMapOutput

type SlrMapInput added in v3.5.0

type SlrMapInput interface {
	pulumi.Input

	ToSlrMapOutput() SlrMapOutput
	ToSlrMapOutputWithContext(context.Context) SlrMapOutput
}

SlrMapInput is an input type that accepts SlrMap and SlrMapOutput values. You can construct a concrete instance of `SlrMapInput` via:

SlrMap{ "key": SlrArgs{...} }

type SlrMapOutput added in v3.5.0

type SlrMapOutput struct{ *pulumi.OutputState }

func (SlrMapOutput) ElementType added in v3.5.0

func (SlrMapOutput) ElementType() reflect.Type

func (SlrMapOutput) MapIndex added in v3.5.0

func (o SlrMapOutput) MapIndex(k pulumi.StringInput) SlrOutput

func (SlrMapOutput) ToSlrMapOutput added in v3.5.0

func (o SlrMapOutput) ToSlrMapOutput() SlrMapOutput

func (SlrMapOutput) ToSlrMapOutputWithContext added in v3.5.0

func (o SlrMapOutput) ToSlrMapOutputWithContext(ctx context.Context) SlrMapOutput

type SlrOutput added in v3.5.0

type SlrOutput struct {
	*pulumi.OutputState
}

func (SlrOutput) ElementType added in v3.5.0

func (SlrOutput) ElementType() reflect.Type

func (SlrOutput) ToSlrOutput added in v3.5.0

func (o SlrOutput) ToSlrOutput() SlrOutput

func (SlrOutput) ToSlrOutputWithContext added in v3.5.0

func (o SlrOutput) ToSlrOutputWithContext(ctx context.Context) SlrOutput

func (SlrOutput) ToSlrPtrOutput added in v3.5.0

func (o SlrOutput) ToSlrPtrOutput() SlrPtrOutput

func (SlrOutput) ToSlrPtrOutputWithContext added in v3.5.0

func (o SlrOutput) ToSlrPtrOutputWithContext(ctx context.Context) SlrPtrOutput

type SlrPtrInput added in v3.5.0

type SlrPtrInput interface {
	pulumi.Input

	ToSlrPtrOutput() SlrPtrOutput
	ToSlrPtrOutputWithContext(ctx context.Context) SlrPtrOutput
}

type SlrPtrOutput added in v3.5.0

type SlrPtrOutput struct {
	*pulumi.OutputState
}

func (SlrPtrOutput) ElementType added in v3.5.0

func (SlrPtrOutput) ElementType() reflect.Type

func (SlrPtrOutput) ToSlrPtrOutput added in v3.5.0

func (o SlrPtrOutput) ToSlrPtrOutput() SlrPtrOutput

func (SlrPtrOutput) ToSlrPtrOutputWithContext added in v3.5.0

func (o SlrPtrOutput) ToSlrPtrOutputWithContext(ctx context.Context) SlrPtrOutput

type SlrState added in v3.5.0

type SlrState struct {
	// The product name for SLR. EventBridge can automatically create the following service-linked roles:
	// Event source related: `AliyunServiceRoleForEventBridgeSourceRocketMQ`, `AliyunServiceRoleForEventBridgeSourceActionTrail`, `AliyunServiceRoleForEventBridgeSourceRabbitMQ`
	// Target related: `AliyunServiceRoleForEventBridgeConnectVPC`, `AliyunServiceRoleForEventBridgeSendToFC`, `AliyunServiceRoleForEventBridgeSendToSMS`, `AliyunServiceRoleForEventBridgeSendToDirectMail`, `AliyunServiceRoleForEventBridgeSendToRabbitMQ`, `AliyunServiceRoleForEventBridgeSendToRocketMQ`
	ProductName pulumi.StringPtrInput
}

func (SlrState) ElementType added in v3.5.0

func (SlrState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL